Abstract
Next-generation datacenters require highly efficient network load balancing to manage the growing scale of artificial intelligence (AI) training and general datacenter traffic. However, existing Ethernet-based solutions, such as Equal Cost Multi-Path (ECMP) and oblivious packet spraying (OPS), struggle to maintain high network utilization due to both increasing traffic demands and the expanding scale of datacenter topologies, which also exacerbate network failures. To address these limitations, we propose REPS, a lightweight decentralized per-packet adaptive load balancing algorithm designed to optimize network utilization while ensuring rapid recovery from link failures. REPS adapts to network conditions by caching good-performing paths. In case of a network failure, REPS re-routes traffic away from it in less than 100 microseconds. REPS is designed to be deployed with next-generation out-of-order transports, such as Ultra Ethernet, and uses less than 25 bytes of per-connection state regardless of the topology size. We extensively evaluate REPS in large-scale simulations and FPGA-based NICs.
Introduction
Modern AI training clusters are scaling to unprecedented sizes, often exceeding 100,000 nodes. These massive infrastructures rely on high-speed Ethernet, yet traditional traffic management methods are reaching their limits. The industry standard, Equal Cost Multi-Path (ECMP), hashes flows to single paths, frequently causing "collisions" where multiple heavy flows congest a single link while others remain underutilized. While Oblivious Packet Spraying (OPS) improves utilization by scattering packets across all paths, it remains "blind" to network health. If a link fails or its capacity degrades, OPS continues to send data into the "black hole," leading to significant performance loss and data drops.
The REPS Mechanism: Adaptive Path Recycling
REPS (Recycled Entropy Packet Spraying) introduces a decentralized, path-aware feedback loop that operates at the hardware level. The core idea is to treat the "Entropy Value" (EV)—typically the Source Port in a UDP header—as a path identifier.
The algorithm follows a simple logic:
- Exploration: When the sender's buffer is empty, it picks a random EV to explore new paths.
- Feedback: The receiver returns Acknowledgements (ACKs) containing the EV of the received packet.
- Recycling: If an ACK arrives without an Explicit Congestion Notification (ECN) mark, the path is deemed "clean," and its EV is stored in a small circular buffer (typically 8 slots).
- Exploitation: For subsequent packets, the sender prioritizes "recycling" EVs from the buffer, ensuring traffic stays on high-quality paths.
- Failure Mitigation (Freezing Mode): Upon detecting a potential link failure (e.g., via timeout), REPS enters "Freezing Mode." It stops random exploration and exclusively reuses known "safe" EVs from its buffer, re-routing traffic away from failed links in under 100 microseconds.
Performance Evaluation
The authors evaluated REPS using the htsim packet-level simulator and real-world FPGA-based NICs across synthetic benchmarks, production traces (Facebook, WebSearch), and AI collective patterns (Allreduce, Alltoall).
Key results include:
- Throughput and Speedup: In symmetric networks, REPS achieves up to a 6x speedup over ECMP and a 1.25x improvement over OPS.
- Resilience: In asymmetric or failing networks, REPS is 5x faster than ECMP and significantly more effective at preventing packet drops than OPS.
- Efficiency: REPS is exceptionally lightweight, requiring only ~25 bytes of state per connection, compared to 368 bytes for MPTCP. This makes it ideal for direct implementation in high-speed NIC hardware.
Conclusion and Future Work
REPS demonstrates that a simple, decentralized "recycling" mechanism can significantly enhance data center network performance and reliability. By leveraging existing transport signals like ECN and ACKs, it avoids the need for complex central controllers. Future work may explore incorporating delay-based signals or In-band Network Telemetry (INT) to further refine path selection in environments where ECN is not available. As networks transition to out-of-order transports like Ultra Ethernet, REPS provides a scalable foundation for next-generation load balancing.
Summary updated