Introduction
Software-Defined Networking (SDN) relies on a centralized controller to manage network traffic. For the controller to make effective routing decisions, it must maintain an accurate and up-to-date map of the network topology. The industry standard for this task is the OpenFlow Discovery Protocol (OFDP), which utilizes Link Layer Discovery Protocol (LLDP) packets. However, OFDP suffers from significant security vulnerabilities and performance bottlenecks. This paper introduces sOFTDP, a redesigned protocol that offloads link monitoring to switches, enhancing both security and efficiency.
The Vulnerabilities of OFDP
The current OpenFlow Discovery Protocol (OFDP) is fundamentally flawed. It operates by having the controller periodically poll every port in the network. The controller sends a Packet-out message containing an LLDP packet to a switch, which then forwards it. If a neighboring switch receives this LLDP packet, it sends a Packet-in message back to the controller, confirming a link exists.
This mechanism presents two major issues:
- Efficiency: As the network size increases, the number of LLDP packets scales linearly, leading to high CPU overhead at the controller.
- Security: LLDP packets are typically unauthenticated and sent in clear-text. This lack of security allows for several types of attacks, including switch spoofing, link fabrication, and LLDP flooding.
sOFTDP: A New Approach
sOFTDP addresses these flaws by shifting from a "polling" model to an "event-driven" model. Instead of the controller constantly asking for updates, the switches themselves monitor their local links and report changes.
Key Technical Components
- Bidirectional Forwarding Detection (BFD): sOFTDP leverages BFD, a lightweight protocol that runs directly between switches to detect link failures in milliseconds, far faster than traditional LLDP cycles.
- Asynchronous Notifications: Switches are modified to send a
BFD_STATUSmessage to the controller only when a link state change is detected. - Hashed LLDP Content: To prevent spoofing and fingerprinting, LLDP packets are hashed or encrypted, ensuring only legitimate discovery messages are processed.
- "Drop LLDP" Rules: By default, switches are programmed to drop unsolicited LLDP packets, neutralizing flooding attacks at the network edge.
- Fast-Failover Groups: Utilizing OpenFlow's native "Fast-Failover" capabilities, sOFTDP pre-programs backup paths to maintain traffic flow during topology changes.
Evaluation and Results
The authors evaluated sOFTDP using an emulated testbed with Mininet, Open vSwitch (OVS), and the Floodlight controller. The results demonstrate significant improvements over standard OFDP:
- CPU Efficiency: Controller CPU usage remains nearly constant regardless of network size, unlike the linear growth seen with OFDP.
- Detection Speed: New links are detected in an average of 5.68ms, while link removals are detected in 3.25ms.
- Security Mitigation: The protocol successfully defended against switch spoofing, link fabrication, and LLDP flooding attacks that typically cripple standard SDN deployments.
Conclusion and Future Work
sOFTDP provides a robust solution for secure and efficient topology discovery in SDN. By empowering switches with local link monitoring and implementing cryptographic protections, it eliminates the primary weaknesses of OFDP. Future work includes standardizing the custom BFD_STATUS message within the OpenFlow specification and conducting larger-scale tests on physical high-performance hardware.
Summary updated