Abstract
This paper presents Sprinklers, a novel architecture for load-balanced switches (LBS) that eliminates packet reordering while maintaining high scalability. By employing randomized, variable-sized "stripes" to route traffic from Virtual Output Queues (VOQs) through intermediate ports, Sprinklers ensures in-order delivery and achieves 100% throughput. The architecture utilizes dyadic intervals and Orthogonal Latin Squares to coordinate traffic, resulting in near-perfect load balancing and significantly lower latency compared to traditional frame-based LBS approaches.
Introduction
As Internet traffic continues to scale in both volume and speed, conventional crossbar switches face significant bottlenecks due to centralized scheduling. Load-balanced switches (LBS) offer a scalable alternative by spreading incoming traffic across a middle stage of intermediate ports. However, a primary challenge in LBS design is the "packet reordering" problem: because different paths through the switch may experience varying levels of congestion, packets sent in sequence may arrive at their destination out of order. This is highly detrimental to TCP performance, as out-of-order delivery is often misinterpreted as packet loss.
The Sprinklers Architecture
Sprinklers addresses the reordering problem by introducing a "stripe-based" routing approach. Instead of spreading packets individually across all available paths, the system groups packets from a specific Virtual Output Queue (VOQ) into "stripes" that traverse a set of consecutive intermediate ports. This creates a "fat path" for each flow, ensuring that packets within a stripe maintain their relative order.
Key Technical Components
- Variable-Size Striping: The width (number of ports) of a stripe is dynamically adjusted to be proportional to the traffic rate of its corresponding VOQ.
- Dyadic Intervals: To prevent complex overlaps and simplify scheduling, stripe sizes are restricted to powers of two ($2^k$). This ensures that any two stripe intervals are either disjoint or one completely contains the other.
- Randomized Permutation: The system utilizes Orthogonal Latin Squares (OLS) to coordinate how stripes are assigned across all $N^2$ VOQs. This ensures that while each VOQ chooses its path randomly, the aggregate load across all intermediate ports remains balanced.
- Largest Stripe First (LSF) Scheduling: A distributed scheduling policy prioritizes larger stripes at both input and intermediate ports, ensuring the switch remains work-conserving and throughput-optimal.
Performance and Scalability
The paper evaluates Sprinklers through theoretical analysis and synthetic traffic simulations (e.g., Uniform and Quasi-Diagonal traffic). Key findings include:
- Stability and Throughput: The switch is proven to be 100% stable for any admissible traffic. For a $2048 \times 2048$ switch at 93% load, the probability of a queue overflow is approximately $3.09 \times 10^{-18}$, effectively zero in practice.
- Latency Reduction: Unlike previous "Uniform Frame Spreading" (UFS) methods that force low-rate flows to wait for a full frame of $N$ packets, Sprinklers allows low-rate flows to use small stripes, drastically reducing latency for light traffic.
- Implementation Efficiency: All algorithmic components, including stripe generation and LSF scheduling, can be implemented in constant time $O(1)$ at each port, making the architecture highly scalable for massive port counts.
Conclusion
Sprinklers provides a robust, reordering-free solution for high-performance switching. By combining randomized striping with dyadic intervals and coordinated permutations, it achieves the theoretical benefits of load-balanced switches without the traditional drawbacks of high latency or complex reassembly logic.
Summary updated