Research and Implementation of Traversing NAT Based on Peer-to-peer Network
- Author
- YunLiang
- Advisor
- WangZuoRong
- School
- Huazhong University of Science and Technology
- Major
- Communication and Information System
- Classification
- TP393.02 Computer network architecture and design
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 239
- Citations
- 2
Abstract
Peer-to-peer network technologies is one of hotspot network applications, which has achieved great success in File-Sharings , distributed computation and distributed storage and etc. aspects. However, the network address translation technology which is raised to solve the problems of IP address lackness and network security causes the p2p network communication problem. How to solve the problem of traverse NAT for signaling and mediastream efficiently will become the key technology for implementation and extension of P2P network. In this paper, the principle and traverse method of NAT technique are mainly discussed, combining with the feature of P2P network to solve the NAT traverse problem of UDP and TCP, and one scheme is designed for P2P network traversing communication .Comparing with traditional the module of C/S , P2P network module has the features of strong extensibility and high automation netting mode, as for the security consideration , many terminals that behind the NAT, or even after multiple NATs , the outside network cannot access the internal computers directly , which brings great difficulties to resource sharing . Among the existing traverse schemes, some need to remark the current equipments, and few are fit for the P2P network, such as: STUN, TRUN and etc. Among them, STUN is better for UDP traversing, but cannot traverse symmetrical NAT. Though TRUN can traverse symmetrical NAT, it causes network delay because packet needs to transmit through TRUN server. These schemes are not fit for the NAT traverse problem of UDP and TCP in P2P network.In this paper, the hole punching scheme is raised and the signaling transfer and packet transmit are departed in structure. Signaling is transmitted through united servers, so as to implement punching in NAT, and thus the packet can pass through the "hole" to traverse NAT easily without servers’ retransmitting, and finally implements NAT traversing of UDP and TCP.The hole puching scheme must set up the Public Network Rendezvous Server. Relaying,Connection Reversal and ect technology is used to implement punching a hole in the single NAT and multiple NAT. In this way, the scheme implements the UDP communication. As for TCP communication,Considering TCP is a kind of multidirection connection server, the scheme implements the TCP traversing by this way that client imitate the SYN&ACK packet and the Rendezvous Server control message forwarding. The scheme implements symmetrical NAT traversing by port predicting technology. In this scheme, the Rendezvous Server only transmit signaling while the packet can traverse NAT transparently ,and thus it can reduse the network delay caused by Packet Forwarding of the server.Finally, the functionality of scheme is tested and whose result explains that this scheme can implement multiple styles of NAT traversing through UDP and TCP, and makes little time-delay.
Table of contents
Abstract 4-5
Abstract 5-10
1 Introduction 10-15
1.1 Background and Significance topic 10-12
1.1.1 P2P Technology Overview 10-11
1.1.2 NAT technology applications and problems 11-12
1.2 research status 12-13
1.3 The main contents and chapters arranged 13-15
2 P2P networks and NAT traversal technology related agreements 15-31
2.1 P2P networks Features 15-19
2.1.1 C / S model systems and P2P systems contrast 15-16
2.1.2 P2P network model 16-19
2.2 TCP / IP Protocol Overview 19-24
2.2.1 TCP / IP communication protocol Principle 19-21
2.2.2 UDP Overview 21
2.2.3 TCP Overview 21-24
2.3 NAT technology and related issues 24-28
2.3.1 NAT definition 24
2.3.2 NAT classification 24-28
2.4 NAT to P2P communication problems brought 28-30
2.5 Chapter Summary 30-31
3 NAT traversal solution 31-37
3.1 Existing solutions 31-35
3.1.1 Application Layer Gateway 31-32
3.1.2 middle box 32
3.1.3 STUN protocol 32-33
3.1.4 TURN protocol 33-34
3.1.5 RSIP protocol 34
3.1.6 tunnel through technology 34-35
3.2 solutions analysis 35-36
3.3 Chapter Summary 36-37
4 peer NAT traversal implementation 37-55
4.1 related technologies 37-39
4.1.1 transit 37-38
4.1.2 Connection inverted 38-39
4.1.3 build server 39
4.2 peer in the realization of UDP through NAT 39-45
4.2.1 build P2P session 39-40
4.2.2 in the same post-NAT peer connection 40-41
4.2.3 NAT in different post- peer connection 41-42
4.2.4 after NAT in multiple peer connections 42-44
4.2.5 idle timeout for UDP processing 44-45
4.3 peer NAT traversal of TCP implementation 45-54
4.3.1 TCP through the NAT method of analysis 45-47
4.3.2 port prediction 47-49
4.3.3 after different types of peer NAT traversal solution to achieve 49-54
4.4 Summary 54-55
5 test environment and test results 55-60
5.1 test environment 55-57
5.2 test items and test results 57-59
5.3 Chapter Summary 59-60
6 full text of the summary and outlook 60-62
6.1 Full Summary 60-61
6.2 Prospects 61-62
Thanks 62-63
References 63-65
Related dissertations
- The Research of Trust Evaluation in E-Commerce and Peer-to-Peer Networks
- The Design and Simulation of Peer to Peer Video on Demand Based on Network Coding
- Design and Simulation of P2P Live Streaming Protocol Based on SVC Streams
- Study on the selection of improved particle swarm optimization algorithm of Web services based on P2P environment
- Research of the Peer-to-Peer Adaptive Routing Protocol Based on Ant Colony Algorithm
- The Study and Implementation of NAT Traversal Technology
- Research on Bittorrent-based Peer to Peer Media Streamin Scheduling Mechanism
- A Research into Key Problems in Designing eMule System Client
- Research on the Search Mechanism in Structured P2p Network Based on Interest
- Research on Data Scheduling Algorithm and Peer Selection Strategy of P2P Streaming System
- Design and Large-scale Simulation of P2P Live Streaming Localization
- Research on Resources Locating Strategy of Peer to Peer Network
- Design and Implementation of P2P Video System
- Studying on P2P Super Node Selecting Mechanism Based on Trust Model
- Research on Resource Discovery Mechanism in Peer-to-Peer Network
- Research on Incentive Mechanism for Nodes Cooperation in Peer-to-Peer Networks
- Reseach on Trust Model and Incentive Mechanism in Peer-to-Peer Networks
- Research on File-Sharing Service Optimization Technology of P2P Network
- Research of User Behavior and System Capability of P2P Application
- Research on Resource Discovery for Peer-to-Peer Resource Sharing System