Abstract
In response to the problems of high computational overhead and lack of flexibility in traditional IP spoofing attack mitigation methods, a method for mitigating IP spoofing attacks in SDN based on a dynamic restriction strategy is proposed. By using the triplet information in the Packet-In message to trace the attack path and locate the source host of the IP spoofing attack; the controller formulates a dynamic restriction strategy to limit the new flow forwarding function of the switch port connected to the attack source host, and then restores its function to forward new flows after the restriction period expires; the duration of the restriction period increases with the number of times it is detected as an attack source. This dynamic restriction strategy can prevent attack traffic from entering the SDN network, thereby effectively avoiding the overload of SDN switches, controllers, and links. Additionally, since there is no need for real-time monitoring of these restricted switch ports during the restriction period, this method has a higher mitigation efficiency and consumes fewer resources when dealing with long-duration attacks compared to traditional methods.
Introduction
Software Defined Networking (SDN) architectures decouple the control plane from the data plane, centralizing network intelligence in a controller. While this offers flexibility, it introduces vulnerabilities. When an SDN switch encounters a packet without a matching rule in its flow table, it generates a Packet-In message to the controller. Attackers exploit this via IP spoofing, flooding the network with forged packets to overwhelm the controller's CPU and exhaust switch flow table memory.
Traditional mitigation strategies, such as static blacklisting or complex real-time monitoring, often suffer from high computational overhead or lack the flexibility to handle legitimate traffic recovery. This paper proposes a lightweight, dynamic restriction method designed to stop attacks at the source while minimizing resource consumption.
Methodology
The proposed defense mechanism consists of three core components: triplet-based tracing, a dynamic restriction strategy, and flow table management.
Triplet-Based Tracing
Rather than deploying resource-intensive monitoring agents, the system utilizes existing metadata within standard Packet-In messages. By analyzing the "triplet" of Source IP, Destination IP, and Forwarding Time, and cross-referencing this with the known network topology, the controller can accurately trace the attack path back to the specific physical ingress port.
Dynamic Restriction Strategy
Once an attack source is identified, the controller applies a dynamic restriction to the offending switch port. Unlike permanent blocking, this strategy uses an exponential backoff timer. The initial restriction period ($T_{set}$) is set (e.g., 20 seconds), and for each subsequent detection of an attack from the same source, the duration doubles according to the formula $T_{lim} = T_{set} * 2^{n-1}$. This approach penalizes persistent attackers while allowing for the eventual recovery of compromised or misidentified hosts.
Flow Table Management
To prevent flow table overflow, the system implements a "slimming" algorithm. It periodically inspects flow table entries, specifically looking at the structure defined in the OpenFlow protocol.
By monitoring the Counters field, the system identifies entries with low packet counts—typical of spoofed traffic—and removes them to reclaim memory.
Experimental Setup
The method was validated using the Mininet network emulator with a 4-ary Fat-Tree topology comprising 20 switches. Attack traffic was generated using Hping3 at rates up to 95,000 packets per second, while normal background traffic consisted of custom UDP packet streams.
Results and Discussion
Experimental results demonstrate that the method is highly effective and efficient. Upon detecting a 95 Kp/s attack, the controller successfully throttled the malicious traffic to zero within seconds.
Key advantages identified include:
- Resource Efficiency: By halting monitoring of restricted ports during the "time-out" period, the system significantly reduces computational load compared to "always-on" inspection methods.
- Stability: Communication between legitimate hosts remained unaffected during active mitigation, ensuring zero collateral damage.
- Automatic Recovery: The system restores port functionality automatically after the restriction period, reducing the need for manual administrative intervention.
Conclusion and Future Work
This lightweight approach provides a scalable solution for IP spoofing in SDN environments by leveraging existing protocol features and dynamic policies. Future research will focus on extending this method to multi-controller environments, implementing machine learning to optimize restriction thresholds ($T_{set}$), and conducting further validation on larger, more complex network topologies.
Summary updated