LineSwitch: Efficiently Managing Switch Flow in Software-Defined Networking while Effectively Tackling DoS Attacks

Moreno Ambrosin, Mauro Conti, Fabio De Gaspari, Radha Poovendran

Introduction

Software-Defined Networking (SDN) has revolutionized network management by decoupling the control plane (the network's logical "brain") from the data plane (the physical switches). This architecture allows for centralized, programmable control over network traffic. However, this separation introduces a critical vulnerability: the communication channel between the switches and the controller. When a switch encounters a packet for which it has no matching flow rule, it must forward a request to the controller. This mechanism, while flexible, is susceptible to Control Plane Saturation attacks.

The Vulnerability: Control Plane Saturation

In a typical saturation attack, an adversary floods the network with spoofed TCP SYN packets. Each unique packet triggers a request from the switch to the controller, quickly overwhelming the controller's processing capacity or exhausting the bandwidth of the control channel.

Existing defenses, most notably Avant-Guard, attempt to mitigate this by implementing a "SYN Proxy" within the data plane. In this model, the switch intercepts the initial handshake and only alerts the controller once the connection is verified as legitimate. While effective against simple flooding, the authors of this paper identify a secondary vulnerability: the "State Trap." Proxying every connection requires the switch to maintain significant state information in its memory. Attackers can exploit this by shifting their focus to a Buffer Saturation Attack, filling the switch's memory, or a Port Exhaustion Attack, leveraging the finite number of available ports (approximately 64,000) for proxied connections to a single destination.

The LineSwitch Approach

To address these limitations, the authors propose LineSwitch, an efficient OpenFlow extension designed to provide robust security with minimal state overhead. LineSwitch moves away from the "proxy everything" paradigm toward a surgical, probabilistic verification method.

Message flow of a proxied TCP handshake between hosts and the SDN controller.

Key Mechanisms

  1. Selective Proxying: LineSwitch only proxies the initial connection from a previously unknown source IP. Once a host successfully completes a TCP handshake, it is deemed "trusted." Subsequent connections from this IP are allowed to pass through natively, with only a small, tunable probability ($P_p$) of being re-verified. This drastically reduces the memory footprint on the switch.
  2. Probabilistic Blacklisting: If a source fails to complete the handshake, LineSwitch blacklists the IP. To counter persistent attackers using non-spoofed IPs, the duration of this blacklist increases exponentially with repeated failed attempts.
  3. State Reduction: By minimizing the number of connections that require active proxying, LineSwitch prevents the buffer saturation that plagues previous state-heavy defenses.

Experimental Evaluation

The researchers evaluated LineSwitch using the Mininet network emulator and a POX controller. The testbed simulated various scenarios, including synthetic SYN flooding (1 to 6.5 Mbps) and legitimate HTTP traffic. The goal was to measure the performance overhead during normal operation and the resilience of the system under adversarial conditions.

Results and Discussion

The experimental results demonstrate that LineSwitch significantly outperforms Avant-Guard in both efficiency and resilience. Under normal traffic conditions, LineSwitch introduced a mere 7.67% time overhead, compared to 41.83% for Avant-Guard. This performance gap widened under attack; at a 6.5 Mbps SYN flood, LineSwitch's overhead remained stable at 5.45%, while Avant-Guard's rose to 36.92%.

Comparison of saturation times under varying attack bandwidths for different buffer sizes (2^20 and 2^22 bytes).

Crucially, LineSwitch proved far more resilient to buffer saturation. As shown in the figures above, a switch running Avant-Guard was incapacitated in roughly 75 seconds under a buffer-filling attack. In contrast, LineSwitch lasted over 10 times longer (769 seconds) even with conservative settings. With lower migration probabilities ($P_p$), the system can theoretically withstand such attacks indefinitely. Despite this increased efficiency, LineSwitch maintained a 100% success rate for legitimate page retrievals, matching the security efficacy of its predecessors.

Conclusion

LineSwitch demonstrates that data plane security must be as resource-efficient as it is effective. By utilizing probabilistic verification and selective proxying, LineSwitch protects the SDN control plane without creating new bottlenecks in the switch's memory. This approach provides a scalable and robust defense against DoS attacks, ensuring network availability even under heavy adversarial pressure.

Summary updated

BibTeX
@inproceedings{ambrosin2015lineswitch,
  author = {Moreno Ambrosin and Mauro Conti and Fabio De Gaspari and Radha Poovendran},
  title = {{LineSwitch: Efficiently Managing Switch Flow in Software-Defined Networking while Effectively Tackling DoS Attacks}},
  booktitle = {AsiaCCS},
  year = {2015},
  url = {https://openreview.net/forum?id=29lzxgIAj4},
}
Figure