Intelligent SDN: Adaptive Traffic Engineering & Load Balancing
Adaptive Software-Defined Networking controller implementing real-time link congestion detection, elephant flow rerouting, and multipath load balancing.
Overview
An autonomous Software-Defined Networking (SDN) controller engineered in Python on top of the POX framework and Mininet emulation environment. Proactively monitors link utilization across complex network topologies, isolates bandwidth-heavy elephant flows, and dynamically installs OpenFlow rules to balance traffic across redundant paths.
Problem
Traditional static routing protocols (like OSPF or ECMP) direct traffic along rigid shortest paths, resulting in severe packet loss and link bottlenecks while alternative parallel paths sit idle.
Solution
Designed an adaptive traffic engineering controller that periodically interrogates switch port statistics via OpenFlow. When port utilization crosses dynamic thresholds, the controller isolates elephant flows and calculates lowest-cost disjoint paths to re-route heavy flows without disrupting existing flows.
Architecture
- Mininet Emulated Topology (Open vSwitch Instances)
- OpenFlow 1.0 Protocol
- POX Controller Core (Port Statistics Collector
- Flow Classifier
- Dijkstra Disjoint Path Calculator
- FlowMod Rule Injector)
Results
- Eliminated single-link congestion under saturated test transfers using dynamic rerouting
- Maximized aggregate network throughput across multipath topologies during concurrent Iperf benchmarks
Challenges
- Preventing route oscillation (flapping) when multiple heavy flows simultaneously compete for alternative paths
- Minimizing OpenFlow controller inquiry overhead while maintaining real-time telemetry responsiveness
Lessons learned
- Hysteresis dampening and adaptive utilization thresholds are essential to prevent route flapping in SDN controllers
- Fine-grained packet counters in OpenFlow allow precise discrimination between elephant and mice flows