RepFlow: Minimizing Flow Completion Times with Replicated Flows in Data Centers

Hong Xu, Baochun Li · DOI

Introduction

In modern data centers, interactive services like web search and retail rely on "partition-aggregation" workflows. A single user request might trigger thousands of tiny "mouse" flows across the network. The user's experience is dictated by the tail latency—the time it takes for the very last flow to arrive.

The primary obstacle for these short flows is Head-of-Line (HOL) blocking. Standard data center load balancing (ECMP) hashes flows onto paths blindly. Frequently, a time-sensitive short flow gets stuck in a switch buffer behind a massive "elephant" flow (like a backup or data migration), causing its completion time to skyrocket from microseconds to milliseconds. While sophisticated solutions like DCTCP or pFabric exist, they often require "clean-slate" hardware or complex kernel modifications that are difficult to deploy at scale.

Methodology: The Power of Two Choices

RepFlow is a transport-agnostic design that exploits the path diversity inherent in data center topologies, such as Fat-trees. It operates entirely at the application layer, requiring no changes to switch hardware or operating system kernels.

Figure 1: Path diversity in a data center topology. RepFlow replicates short flows to avoid paths blocked by large 'elephant' flows.

The system employs a simple four-step process:

  1. Heuristic Replication: The system identifies "short" flows, typically those $\le$ 100KB.
  2. Proactive Redundancy: Instead of sending one flow, RepFlow immediately opens two independent TCP connections to the receiver.
  3. Path Diversity via Hashing: By using different destination port numbers for the two connections, RepFlow ensures that the network's ECMP (Equal-Cost Multi-Path) mechanism hashes them onto two different physical paths.
  4. First-to-Finish: The application accepts data from whichever flow completes first and terminates the laggard.

The core statistical insight is that congestion is often localized. If the probability of one path being congested is $\rho$, the probability of two independent paths being congested simultaneously is $\rho^2$, drastically reducing the likelihood of hitting a worst-case delay.

Evaluation and Key Results

The authors evaluated RepFlow using NS-3 simulations of a 1,024-host Fat-tree and real-world emulations on Mininet. They tested against empirical workloads from Web Search and Data Mining environments.

Figure 2: Mean Flow Completion Time (FCT) vs. network load. RepFlow consistently outperforms standard TCP by bypassing localized congestion.

Key findings include:

  • Significant Speedups: RepFlow provides a 50%–70% reduction in both mean and 99th percentile FCT across various network loads. In low-load scenarios, it can be up to 10x faster than standard TCP at the 99th percentile.
  • Minimal Overhead: While critics might fear doubling traffic, short flows account for the vast majority of connections but a tiny fraction (often <10%) of total bytes. Doubling this fraction results in a negligible total traffic increase of approximately 1–3.5%.
  • Complementary to DCTCP: RepFlow acts as a force multiplier for advanced protocols. When combined with DCTCP, it achieves performance levels rivaling specialized hardware solutions like pFabric.

Conclusion and Future Work

RepFlow offers a practical, deployable solution to the tail latency problem in data centers. By leveraging path diversity and the "power of two" choices, it effectively bypasses transient congestion. Future work includes refining the 100KB threshold through dynamic tuning and conducting a formal study of the system's resilience during major network outages.

Summary updated

BibTeX
@inproceedings{xu2013repflow,
  author = {Hong Xu and Baochun Li},
  title = {{RepFlow: Minimizing Flow Completion Times with Replicated Flows in Data Centers}},
  booktitle = {INFOCOM},
  year = {2013},
  doi = {10.1109/infocom.2014.6848094},
}
Figure