TL;DR
This paper introduces Hydra, a novel framework for scaling Software-Defined Networking (SDN) controllers by intelligently distributing their functions across multiple servers. By combining topological and functional slicing, Hydra significantly improves controller responsiveness and reduces convergence time during network failures, outperforming traditional approaches.
What Problem Does This Paper Address?
As Software-Defined Networking (SDN) becomes more prevalent, the centralized control plane faces scalability challenges. Distributing the controller across multiple servers is a common solution, but existing methods like "topological slicing" (partitioning network switches and assigning each partition to a controller) have limitations. These include:
- Application Interference: Latency-sensitive applications (like route lookup) can be slowed down by co-located, compute-intensive applications (like route computation), leading to missed deadlines or increased flow setup times.
- Conflicting Optimization Goals: Simultaneously achieving fast convergence times after failures and low response times for individual requests is difficult.
- Communication Overhead: When applications are split across partitions, inter-partition communication can introduce significant latency.
The paper aims to address these issues by proposing a more flexible and intelligent way to distribute SDN controller functions.
Methods
Hydra introduces functional slicing as a complementary approach to topological slicing. Instead of just partitioning switches, functional slicing allows different SDN applications (or functions) within the same topological partition to be placed on physically distinct servers. This provides more granular control over placement.
Key techniques employed by Hydra include:
- Hybrid Slicing: Hydra combines topological and functional slicing. It first determines the optimal number of topological partitions to minimize convergence time, then uses functional slicing to place applications within those partitions.
- Communication-Aware Placement Algorithm: This algorithm models the dependencies between SDN applications as a communication graph. It aims to minimize latency for latency-sensitive applications by avoiding placing critical, communicating functions on different machines unnecessarily. This is formulated as an integer linear programming problem and solved using heuristics.
- Thread Prioritization: To protect real-time applications (like heart-beat handlers) from latency-sensitive ones, Hydra assigns different thread priorities. Real-time applications get the highest priority, followed by latency-sensitive ones, while compute-intensive applications are separated.
Datasets
The paper evaluates Hydra using the Floodlight SDN controller and a custom-generated traffic workload. They modified CBench, a tool for generating packet-in events, to create traffic patterns meaningful to their simulated network topology. No specific public datasets were used for evaluation.
Key Insights and Ideas
- Functional slicing is a powerful complement to topological slicing: It offers a new dimension for distributing controller logic, allowing for finer-grained placement and better isolation of application types.
- Communication patterns are crucial for placement: Simply distributing functions isn't enough; understanding how they interact is key to minimizing latency, especially for critical paths.
- Separating compute-intensive tasks is vital: Isolating applications like shortest path computation from real-time and latency-sensitive ones dramatically improves the performance of the latter.
- Prioritization matters for real-time guarantees: Even with functional slicing, explicit thread prioritization is necessary to ensure real-time applications meet their deadlines, especially under load.
Key Results
- Reduced Convergence Time: Hydra achieved significantly lower convergence times for the shortest path computation (DJ) application compared to topological slicing, especially as the number of partitions increased. For example, with 8 partitions, convergence time was optimized, whereas topological slicing was forced to use more partitions, leading to higher convergence times.
- Improved Latency-Sensitive Application Performance: Hydra demonstrated better scalability for latency-sensitive applications (Firewall and Route Lookup), achieving higher throughput at higher loads compared to topological slicing. This is attributed to the isolation of these applications from the load spikes of compute-intensive tasks.
- Enhanced Real-time Application Responsiveness: Hydra significantly reduced missed deadlines for real-time heart-beat handlers. The 95th and 99th percentile latencies for heart-beats were around 10ms with Hydra, compared to about 30ms with topological slicing, preventing spurious link failures.
- Prioritization Gains: Isolating prioritization showed that real-time applications (HB) performed much better when prioritized over latency-sensitive ones (RL), meeting deadlines even at high heart-beat rates.
Limitations and Future Work
- Production-Scale Complexity: The authors acknowledge that experimenting with production-scale controllers is difficult without access to production networks and workloads. Their current setup, while extensive, is a simulation.
- Dynamic Load Adaptation: While Hydra's placement algorithm is fast enough to respond to load variations, the current evaluation focuses on a fixed placement. The paper suggests that future work could explore dynamic re-partitioning and placement.
- Fault Tolerance: The paper mentions that fault tolerance mechanisms are orthogonal and can be generalized, but a detailed implementation and evaluation of fault tolerance with Hydra is not presented.
- Consistency Guarantees: The paper notes that while their model can incorporate datastore costs, it assumes a logically separate, globally-consistent datastore. Future work could explore integrating consistency guarantees more deeply into the placement model.
Summary updated