Optimizing Tail Latency in Commodity Datacenters using Forward Error Correction

Gaoxiong Zeng, Li Chen, Bairen Yi, Kai ChenarXiv 2021

Abstract

CloudBurst is a simple, readily deployable transport protocol designed to slash "tail latency" (the 99th percentile delay) for short messages in datacenters. By combining Forward Error Correction (FEC) with parallel transmission over multiple network paths, it achieves up to a 63% reduction in completion times compared to industry standards like DCTCP, all without requiring complex hardware modifications.

Introduction

In modern datacenters, user-facing applications—such as web search or social media feeds—rely on thousands of "short flows." These small messages must be delivered near-instantaneously to maintain a responsive user experience. However, performance is often bottlenecked by tail latency: the significant delay experienced by a small fraction of messages due to network congestion, "incast" events, or shallow switch buffers.

Traditional protocols like TCP struggle in these environments because they rely on retransmissions. When a packet is lost, the sender often waits for a "Retransmission Timeout" (RTO), which can be orders of magnitude longer than the actual network delay. While existing research proposes complex solutions involving global network monitoring or custom switch hardware, these are difficult to deploy in "commodity" datacenters. CloudBurst offers a pragmatic alternative: high performance through end-host simplicity.

Methodology: The CloudBurst Architecture

CloudBurst shifts the burden of reliability from reactive retransmissions to proactive redundancy. Its architecture is built upon three core pillars:

  1. Rateless FEC Encoding: Using LT Codes (Luby Transform), CloudBurst decomposes a message into packets and generates a continuous stream of encoded symbols. The primary advantage of FEC is that the receiver only needs to collect any $k$ encoded packets to reconstruct the original $k$ source packets.
  2. Multipath Bursting: Instead of selecting a single path, the sender "sprays" these encoded packets across all available network paths (using standard techniques like ECMP) in parallel. This "burst-until-received" strategy ensures that if one path is congested or fails, packets from faster, underutilized paths reach the receiver first.
  3. Aggressive Switch Dropping: To minimize queueing delays, CloudBurst traffic is assigned to a dedicated, minimal queue on commodity switches. If the queue fills, the switch drops the packet. Because CloudBurst uses FEC, these drops do not trigger a slow retransmission cycle; the receiver simply waits for the next redundant packet from a different path.
CloudBurst System Architecture overview.

Implementation Details

The protocol utilizes random linear combinations (or XOR-based LT codes) to create redundancy. As shown in the figure below, the message is split into $k$ packets, which are then combined into encoded symbols and distributed across $n$ paths.

Multipath FEC Encoding and Transmission.

Evaluation and Results

The authors evaluated CloudBurst using physical testbeds (leaf-spine topology with Pronto switches and Dell servers) and large-scale ns-2 simulations (144 hosts, 40Gbps links). They emulated standard datacenter traffic patterns with message sizes ranging from 5KB to 93KB.

Key Results

  • Tail Latency Reduction: CloudBurst achieved a 63.69% reduction in 99th percentile completion times compared to DCTCP and a 60.06% reduction compared to PIAS.
  • Superiority over "Clean-Slate" Designs: In simulations, it outperformed pFabric—a highly regarded but difficult-to-implement theoretical protocol—by 24%.
  • Resilience: The system remained stable during "incast" events and handled link failures gracefully, as redundant packets on remaining paths automatically filled the gap.
  • Overhead: The performance gain comes at a "coding overhead" of approximately 49% (sending ~1.5x more data). For short, latency-sensitive flows, this is a highly efficient trade-off.

Discussion and Conclusion

CloudBurst demonstrates that FEC can be used as a latency-optimization tool rather than just a reliability mechanism. By making packet loss a non-event for protocol logic, it bypasses the "RTO cliff" and maintains a smooth latency profile.

However, there are limitations. Decoding FEC packets is computationally expensive ($O(k^2)$), which may necessitate hardware offloading (e.g., SmartNICs) for 100Gbps+ networks. Additionally, while CloudBurst excels in the network core, it cannot resolve congestion on the "last-hop" link to the receiver. Finally, the 50% redundancy overhead makes it unsuitable for long flows, suggesting a future hybrid approach that switches between CloudBurst and standard TCP based on flow size.

Summary updated

BibTeX
@misc{zeng2021optimizing,
  author = {Gaoxiong Zeng and Li Chen and Bairen Yi and Kai Chen},
  title = {{Optimizing Tail Latency in Commodity Datacenters using Forward Error Correction}},
  year = {2021},
  eprint = {2110.15157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.15157},
}
Figure