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

Interfacing network coding with TCP: an implementation

Jay Kumar Sundararajan, Szymon Jakubczak, Muriel Médard, Michael Mitzenmacher, João BarrosarXiv 2009

Abstract

This paper presents TCP/NC, a practical integration of network coding into the TCP/IP stack. By inserting a coding "shim" layer between the transport and network layers, the system masks non-congestion-related packet losses common in wireless environments from TCP’s congestion control mechanisms. Experimental results demonstrate that TCP/NC maintains high throughput in high-loss scenarios where standard TCP performance collapses.

Introduction

Standard TCP interprets packet loss as a signal of network congestion, prompting it to reduce its transmission rate. While effective for wired networks, this behavior is detrimental in wireless settings where losses often stem from physical layer interference or fading rather than buffer overflows. Previous attempts to use network coding often introduced significant delays due to block-based processing, interfering with TCP's timing and window management. This work addresses these challenges by implementing a sliding-window coding approach that integrates seamlessly with existing TCP implementations like Reno.

Methods

The authors propose a "shim" layer, TCP/NC, positioned between the TCP and IP layers. This architecture allows for transparent integration without modifying the existing TCP protocol at the endpoints.

System architecture of TCP/NC showing the encoder and decoder shim layers between TCP and the IP Network.

Key components of the implementation include:

  1. Sliding Window Coding: Instead of fixed blocks, the encoder uses a sliding window to create Random Linear Network Coding (RLNC) combinations of packets currently in the TCP send window.
  2. Redundancy Factor ($R$): The encoder sends $R$ linear combinations for every TCP packet, providing proactive error correction.
  3. Degrees of Freedom ACKs: The receiver acknowledges every linearly independent combination received (a "degree of freedom"), rather than specific packet IDs. This keeps the TCP sender informed of progress even before full decoding.
  4. Gaussian Elimination: The decoder reconstructs original packets using standard linear algebra.

The system was implemented using the Click modular router on Linux and tested over 802.11a wireless links with artificial loss rates ranging from 0% to 25%.

Key Results

The primary metric for evaluation was goodput over a 20-second session. The experimental results show a dramatic improvement over standard TCP in lossy conditions.

Comparison of Goodput vs. Packet Loss Rate for standard TCP and TCP/NC, demonstrating the resilience of the network coding approach.

As shown in Figure 6, TCP/NC demonstrates remarkable resilience to packet loss. At a 20% loss rate, standard TCP goodput effectively drops to near zero, while TCP/NC maintains approximately 400 KB/s. While standard TCP experiences a sharp "cliff" in performance as loss increases, TCP/NC exhibits a graceful, linear degradation. In lossless conditions (0% loss), TCP/NC incurs a minor performance penalty (approx. 10%) due to computational and header overhead, which is quickly offset as link reliability decreases.

Conclusion

TCP/NC successfully bridges the gap between network coding theory and practical TCP implementation. By masking wireless losses as slight increases in delay rather than congestion signals, it enables robust performance on unreliable links. Future work includes optimizing for multi-hop scenarios and reducing the computational overhead of Gaussian elimination for high-speed networks.

Summary updated

BibTeX
@misc{sundararajan2009interfacing,
  author = {Jay Kumar Sundararajan and Szymon Jakubczak and Muriel Médard and Michael Mitzenmacher and João Barros},
  title = {{Interfacing network coding with TCP: an implementation}},
  year = {2009},
  eprint = {0908.1564},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0908.1564},
}
Figure