The P2P Solution Research and Design Based on NAT Traversing Technology
Lei Yu,Tongping Shen,Sheng Hu,Fangliang Huang
DOI: https://doi.org/10.1109/IMCEC46724.2019.8984136
2019-10-01
Abstract:The technology of NAT (Network Address Translation) efficiently relieves the shortage pressure of IPv4 address, and it plays an important role in protecting network security. The technology development of P2P (Peer to Peer) changed the traditional structure of C/S and made communication parities can exchange information and resources directly and quickly. However, the existence of NAT has certain influence to the application of NAT. Based on this condition, the P2P solution that traverses NAT was put forwarded. The program is consist of P2P Server and P2P client, and the server runs on a computer that has a public network IP, and the client runs behind two different NATs, to simulate NAT traversal by Socket program for realizing P2P communication. The experiment result shows that P2P communication between two hosts locates behind NAT can be realized without interactive data passing through the central server.
Computer Science