NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Network coding meets TCP

Jay Kumar Sundararajan, Devavrat Shah, Muriel Médard, Michael Mitzenmacher, João Barros · DOI

Abstract

We propose a mechanism that incorporates network coding into TCP with only minor changes to the protocol stack, thereby allowing incremental deployment. In our scheme, the source transmits random linear combinations of packets currently in the congestion window. At the heart of our scheme is a new interpretation of ACKs - the sink acknowledges every degree of freedom (i.e., a linear combination that reveals one unit of new information) even if it does not reveal an original packet immediately. Such ACKs enable a TCP-like sliding-window approach to network coding. Our scheme has the nice property that packet losses are essentially masked from the congestion control algorithm. Our algorithm therefore reacts to packet drops in a smooth manner, resulting in a novel and effective approach for congestion control over networks involving lossy links such as wireless links. Our experiments show that our algorithm achieves higher throughput compared to TCP in the presence of lossy wireless links. We also establish the soundness and fairness properties of our algorithm.

Introduction

Standard TCP protocols, while highly effective for wired networks, often perform poorly in wireless environments. This performance gap stems from TCP's fundamental assumption that packet loss is a primary indicator of network congestion. In response to a drop, TCP drastically reduces its transmission window. However, wireless links are inherently lossy due to physical factors like interference and fading. When TCP misinterprets these random losses as congestion, it unnecessarily throttles throughput, leading to significant underutilization of available bandwidth.

The TCP/NC Architecture

To address this, we introduce a Network Coding (NC) Layer designed as a "shim" between the Transport (TCP) and Network (IP) layers. This architectural choice, illustrated in Figure 1, ensures compatibility with existing applications and IP-based routing, facilitating incremental deployment.

The Network Coding Layer is integrated as a shim between the Transport and Network layers.

Core Mechanism: Degrees of Freedom

The proposed scheme shifts the focus from individual packets to "degrees of freedom." Instead of transmitting raw packets ($p_1, p_2, \dots$), the source sends random linear combinations of all packets currently within its congestion window.

As shown in Figure 2, the receiver's behavior is redefined. Rather than acknowledging a specific packet index, the receiver sends an ACK whenever it receives an "innovative" linear combination—one that is linearly independent of previously received data. This provides the receiver with a new "degree of freedom."

Transmission of random linear combinations allows the receiver to acknowledge "degrees of freedom," effectively masking packet losses from the TCP layer.

A critical abstraction in this system is the concept of a packet being "seen." A packet is considered "seen" if the receiver has enough information to eventually decode it, even if the actual decoding (via Gaussian elimination) cannot happen immediately. The receiver generates ACKs for the oldest "unseen" packet, providing the ordered feedback that TCP expects while masking the underlying algebraic operations.

Performance Evaluation

We evaluated the TCP/NC protocol using the ns-2 simulator on a 4-hop tandem network topology. The experiments compared TCP/NC against standard TCP variants (Vegas and Reno) under varying packet loss rates.

The results demonstrate a dramatic performance advantage for TCP/NC in lossy environments. In a scenario with a 5% loss rate per link, standard TCP throughput dropped to near zero (~0.007 Mbps), while TCP/NC maintained a robust 0.39 Mbps—a nearly 50-fold improvement. Furthermore, the authors established that TCP/NC is fair to standard TCP flows, sharing bandwidth equitably when they coexist on the same link.

Discussion and Conclusion

By transforming packet loss into a manageable "fictitious delay" rather than a congestion signal, TCP/NC allows congestion control algorithms (specifically TCP-Vegas) to maintain steady transmission rates. This approach respects the end-to-end principle of the Internet, as intermediate routers remain unaware of the coding layer.

While the current implementation introduces some computational and header overhead due to linear algebra operations, the massive throughput gains on wireless links present a compelling case for this hybrid approach. Future work will focus on optimizing field sizes for hardware efficiency and exploring the benefits of intermediate node re-coding.

Summary updated

BibTeX
@inproceedings{sundararajan2008network,
  author = {Jay Kumar Sundararajan and Devavrat Shah and Muriel Médard and Michael Mitzenmacher and João Barros},
  title = {{Network coding meets TCP}},
  booktitle = {INFOCOM},
  year = {2008},
  doi = {10.1109/infcom.2009.5061931},
}
Figure