TCP Connections for P2P Apps: A Software Approach to Solving the NAT Problem

Jeffrey L. Eppinger

2018 · 41 citations · 6 references

Concepts

TL;DR

NAT boxes increasingly block P2P TCP connections, and existing solutions—relays, reconfiguration, SIP/UDP tunneling, UPnP, IPv6—have scalability, mobility, infrastructure, or protocol issues. The authors propose enabling direct TCP connections between peers. They introduce NatTrav, a Java NAT traversal package that establishes direct TCP links between NATed peers and is evaluated against other solutions. The study concludes that current NAT traversal methods are limited by scalability, mobility, infrastructure, and nonstandard protocols.

Abstract

Many P2P applications need to connect to each other via TCP, but are increasingly stymied by NAT boxes. Some popular P2P applications do not address NAT traversal or do so poorly. A few newer ones route communications between NATed peers through relay servers or through non-NATed peers, or they ask users to reconfigure their NAT boxes. Some emerging solutions suggest using SIP to set up tunneling over UDP, using UPnP, or even deploying IPv6. This paper argues that the above approaches suffer from scalability problems, do not address mobility issues, require deploying new network infrastructure, or require using nonstandard communications interfaces, non-standard communication stacks, and non-standard security protocols. We advocate direct TCP connections between peers. We present NatTrav, our NAT Traversal Java package that makes TCP connections between NATed peers and addresses all of the above concerns. We then compare NatTrav with some of the other current and emerging solutions.

References

6