A Research on Traversing NAT and Hiding Protocol Heterogeneity
- Author
- PengZhongPing
- Advisor
- PengYuXing
- School
- National University of Defense Science and Technology
- Major
- Computer technology
- Classification
- TP393.03 Network interconnect technology
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 77
- Citations
- 0
Abstract
As the construction of three level network initiated by People’s Armed Police Corps of Tibet is tending to be accomplished, the computer applications based on the platform of three-level network are more prevalent than before. However, due to the influences of NAT, there are still problems laying on the way of peer-to-peer communication among the corps, division and squadron. Therefore, how to traverse NAT successfully becomes the key part to realize the transparent visit to the peer-to-peer resources.At present, the Hole Punching approach based on UDP is one of the most mainstream techniques to solve the problems on NAT traversing. Generally, this approach achieves NAT traversing by two steps, firstly, acquires the global address and port of the corresponding NAT from the public network servers,secondly, sends the connection request directly to the acquired address and port. In this dissertation, after analyzing and comparing several commonly used approaches on NAT traversing, our three kinds of approaches based on UDT, which means reliable data transport protocol based on UDP, are put forward to solve the NAT traversing problems of three-level network of People’s Armed Police Corps of Tibet, by compounding UDT protocol and Hole Punching techniques with the characteristics of the applications of three-level network.In our approaches, whether to initiate an UDT connection or a TCP one between two peers is depending on whether there is necessity to traverse NAT or not. However, no matter what choice it is, the software developers have to program different codes for the two kinds of communication protocols-UDT and TCP, respectively, which puts difficulties in the way of relative software development with no doubt. Thus, hiding the heterogeneity of UDT and TCP is the best method to improve the capability of code transplantation.Based on the deep analysis of the JAVA Socket system, we define the JAVA classes and factory classes to initiate UDT connection, realize SocketImplFactory interface and creatSocketImpl method, and then implement JAVA encapsulation to the UDT through JNI techniques. Upon that one application can initiate an UDT connection or a TCP one by calling the same JAVA Socket API so as to hide the heterogeneity of these two kinds of protocols.
Table of contents
Abstract 10-11
ABSTRACT 11-12
first chapter 12-19
1.1 Background and significance 12-14
1.2 Research 14-17
1.3 main content 17-18
1.4 papers organizational structure 18-19
Chapter II Research 19-32
2.1 NAT technical analysis 19-24
2.1.1 NAT works 19-20
2.1.2 NAT type 20-21
2.1.3 traditional NAT address mapping 21-24
2.2 NAT pass through 24-27
2.2.1 Hole Punching 24-25
2.2.2 STUN 25-26
2.2.3 UPnP 26-27
2.3 UDT protocol analyzer 27-28
2.3.1 UDT protocol hierarchy 27
2.3.2 UDT protocol and NAT traversal 27-28
2.4 heterogeneous shielding principle analysis 28-31
2.4.1 shielded hardware details 28-29
2.4.2 agreements is heterogeneous shield 29-31
2.5 Summary 31-32
UDT protocol-based NAT traversal 32-45
3.1 Corps three-tier network structure Introduction 32-33
3.2 three-tier network environment, mid-stream media applications difficult analysis 33-34
3.3 NAT through the process 34-36
3.3.1 NAT through the sortation 34-35
3.3.2 NAT through the process 35-36
3.4 NAT traversal based on the UDT protocol design 36-43
3.4.1 Corps three-tier network of NAT traversal classification analysis 36-37
3.4.2 Corps three-tier network, NAT traversal program detailed design 37-43
3.5 program test analysis 43-44
3.6 Summary 44-45
the fourth chapter of the communication protocols heterogeneity shielded 45-55
4.1 Background 45-46
4.2 protocol and application analysis 46
4.3 design ideas 46-48
4.3.1 The basic idea 46-48
4.3.2 hierarchy 48
4.4 The structural design 48-53
4.4.1 JAVA the Socket system analysis 48-50
4.4.2 shielded UDT protocol design 50-53
4.5 experiments and conclusions 53-54
4.6 Summary 54-55
the fifth chapter of the design and experimental 55-70
5.1 NAT through the design 55-59
5.1.1 NAT traversal function module division 55
5.1.2 NAT traversal function module algorithm processes 55-59
5.2 protocol heterogeneous shielding design 59-64
5.2.1 protocol heterogeneity shielding module divided 59
5.2.2 protocol heterogeneity shielded module works 59-60
5.2.3 protocol heterogeneity shielding module algorithm processes 60-64
5.3 lab environment 64-65
5.4 experiments and conclusions 65-68
5.4.1 NAT traversal experiment 65-67
5.4.2 protocol heterogeneous shielding experiment 67-68
5.4.3 experimental conclusion 68
5.5 Summary 68-70
Chapter VI Summary and Outlook 70-72
6.1 work summary 70
6.2 Next work 70-72
thank 72-73
References 73-75
author academic achievements obtained during the study period, 75
Related dissertations
- Research on Video Error Concealment and Transmission Control Strategy Based on3G Networks
- Research and Realization on P2P Communication Based on NAT Traversal
- Research and Implementation of Middleware in Multimedia Communication System
- UDP-based real-time and reliable transmission of multimedia data
- UDT -based real-time streaming media encryption transmission technology research