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.
Key components of the implementation include:
- 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.
- Redundancy Factor ($R$): The encoder sends $R$ linear combinations for every TCP packet, providing proactive error correction.
- 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.
- 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.
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