Backpressure Flow Control

Prateesh Goyal, Preey Shah, Naveen Kr. Sharma, Mohammad Alizadeh, Thomas E. AndersonarXiv 2019

Abstract

Effective congestion control for data center networks is becoming increasingly challenging with a growing amount of latency sensitive traffic, much fatter links, and extremely bursty traffic. Widely deployed algorithms, such as DCTCP and DCQCN, are still far from optimal in many plausible scenarios, particularly for tail latency. Many operators compensate by running their networks at low average utilization, dramatically increasing costs. In this paper, we argue that we have reached the practical limits of end-to-end congestion control. Instead, we propose, implement, and evaluate a new congestion control architecture called Backpressure Flow Control (BFC). BFC provides per-hop per-flow flow control, but with bounded state, constant-time switch operations, and careful use of buffers. We demonstrate BFC's feasibility by implementing it on Tofino2, a state-of-the-art P4-based programmable hardware switch. In simulation, we show that BFC achieves near optimal throughput and tail latency behavior even under challenging conditions such as high network load and incast cross traffic. Compared to existing end-to-end schemes, BFC achieves 2.3 - 60 X lower tail latency for short flows and 1.6 - 5 X better average completion time for long flows.

The Challenge of Modern Data Center Congestion

Traditional data center congestion control mechanisms, such as DCTCP or DCQCN, rely on end-to-end (E2E) feedback loops. In these systems, switches mark packets during congestion, and receivers notify senders to reduce their transmission rates. However, as link speeds approach 400 Gbps and beyond, this approach faces significant hurdles.

First, feedback is often too slow; at high speeds, a short flow may complete before the first congestion signal returns. Second, traffic is increasingly bursty, changing faster than E2E loops can react. Finally, switch buffers are shrinking relative to link capacity, leaving less room to absorb bursts while waiting for E2E signals. While hop-by-hop solutions like Priority Flow Control (PFC) exist, they often suffer from Head-of-Line (HoL) blocking, where a single congested flow can stall unrelated traffic.

Backpressure Flow Control (BFC) Architecture

To address these issues, we propose Backpressure Flow Control (BFC). BFC reintroduces per-hop, per-flow control but optimizes it for the scale of modern 12.8 Tbps programmable hardware.

BFC Architecture: Mapping flows to physical queues with backpressure feedback.

The BFC architecture consists of several key components:

  • Dynamic Queue Assignment: BFC maps active flows to a limited set of physical hardware queues. This ensures flow isolation and prevents HoL blocking.
  • Per-Hop Backpressure: When a queue exceeds a threshold, a "pause" signal is sent to the immediate upstream neighbor. This reaction occurs within ~1-2 microseconds, an order of magnitude faster than E2E loops.
  • Hardware Efficiency: By implementing BFC on the Intel Tofino2 ASIC, we demonstrate that it can operate at line rate using less than 10% of the switch's stateful memory.

Scalability via Active Flow Tracking

A major innovation of BFC is Active Flow Tracking. Rather than maintaining state for every possible connection, BFC only tracks flows with packets currently in a switch queue.

CDF of active flows at a port, demonstrating that the number of concurrent flows remains small even at high link speeds.

As shown in the figure above, the number of active flows at a port remains surprisingly small—often fewer than 10—even as link speeds increase to 400G. This empirical finding allows BFC to provide the benefits of fine-grained flow control with a bounded amount of hardware state.

Evaluation and Results

We evaluated BFC using ns-3 simulations across various workloads, including Google data center traces, Facebook Hadoop traces, and WebSearch benchmarks.

Key results include:

  • Tail Latency: BFC achieved 2.3x to 60x lower tail latency for short flows compared to state-of-the-art schemes like HPCC and DCQCN.
  • Throughput: Elephant flows saw average completion time improvements of 1.6x to 5x.
  • Stability: BFC remained efficient even at 95% network utilization, whereas E2E schemes often become unstable above 80%.

Limitations and Future Work

While BFC significantly improves performance, it is not strictly lossless; in extreme incast scenarios, minor packet drops (~0.007%) can occur. Additionally, if the number of active flows exceeds available physical queues, BFC reverts to a stochastic mode where HoL blocking may re-emerge. Future work includes exploring hybrid approaches that pair BFC with a thin E2E layer to handle these edge cases and developing strategies for incremental deployment across heterogeneous networks.

Summary updated

BibTeX
@misc{goyal2019backpressure,
  author = {Prateesh Goyal and Preey Shah and Naveen Kr. Sharma and Mohammad Alizadeh and Thomas E. Anderson},
  title = {{Backpressure Flow Control}},
  year = {2019},
  eprint = {1909.09923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.09923},
}
Figure