Research and Realization on P2P Communication Based on NAT Traversal
- Author
- YinJingJing
- Advisor
- WeiHuiQin
- School
- Beijing Jiaotong University
- Major
- Computer Science and Technology
- Classification
- TN919.2 Data communications network
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 85
- Citations
- 0
Abstract
This paper based on the background of home remote monitoring system, does research on the reliable and high efficient Peer-to-Peer Communication over WAN. In China, the communication endpoint located in home network is usually behind NAT, the endpoint from public network cannot directly access the inside one and have to establish P2P communication with the help of NAT traversal.This paper firstly introduces the different types of NAT behavior, and proposes a complete set of solutions for NAT traversal used in P2P applications:the client in the private network can initiate connection to the device which in the public and vice versa; if the two peers behind different EIM NATs, we use UDP Hole Punching to traverse NAT; if all of the above method won’t work effectively, we use a public server to relay messages to each other. All these technologies are widely used in nowadays, and we apply them to our home remote monitoring system.Further more, we introduce a reliable UDP based application level data transport protocol—UDT to transfer data reliably after punching UDP hole to traverse NAT successfully. We not only learn to use UDT but also improve it to enhance the ability to seize the bandwidth.When using a public server to assist the P2P communication to traverse NAT, how to implement high concurrency service app with response quickly and running stable is our purpose, how to develop agile service app with cost acceptable and easy to extend is our goal, the author according to the characteristics of multi-core processor, selected Half-Sync/Half-Async pattern as the research object, proposed the task allocating strategy based on correlation degree between tasks and the task scheduling algorithm based on resource utilization to improve Half-Sync/Half-Async pattern.
Table of contents
Thanks 5-6
Summary 6-7
ABSTRACT 7-13
1 Introduction 13-17
1.1 research background and significance domestic and foreign research status quo 1.2 13-14
14-15
1.2.1 development Status home remote monitoring system 14
Research Status 1.2.2 NAT traversal technology main content and organization of 14-15
1.3 papers 15-17
2 theoretical and technical basis 17 - 29
2.1 NAT technology introduced 17-20
2.1.1 NAT types 17-18
2.1.2 NAT features 18-20 <br / > 2.2 point to point applications across NAT 20-22
2.2.1 reverse connection 20
2.2.2 UDP holes 20-21
2.2.3 TCP holes 21
2.2.4 server transfer 21-22
2.3 UDP-based data Transfer Protocol UDT 22-24
2.3.1 UDT features 22-23
2.3.2 UDT hierarchical structure 23-24
2.4 assist NAT traversal server 24 - 29
2.4.1 multicore processor technology 25-27
2.4.2 several concurrent service scheduling model 27-29
3 system Design 29-36
3.1 overall system design 29-31
3.1.1 functional analysis 29-30
3.1.2 design 30-31
3.2 subsystem design 31-36
3.2.1 NAT Server 31-33
3.2.2 Mngt Server 33-34 <br / > 3.2.3 data communication subsystem 34-36
4 system implementation 36-49
4.1 NAT traversal process 36-39
4.1. a direct connection 36
4.1.2 reverse connection 36-37
4.1.3 UDP holes 37-38
4.1.4 server transit 38-39
4.2 UDT use 39-45
4.2.1 UDT common interface 39-42
4.2.2 UDT and UDP holes integration 42-43
4.2.3 using UDT transfer data 43-44
4.2.4 upgrade UDT bandwidth preemption capability 44-45 <br / > 4.3 -point cross-platform communication module 45-49
4.3.1 internal implementation logic 45-47
4.3.2 package unified call interface 47-48
4.3.3 package underlying system calls 48-49
5 Mngt Server performance optimization 49-55
5.1 semi-synchronous / asynchronous half 49-50
5.2 task allocation model 50-52
5.3 task execution algorithm 52-55
6 system testing and results analysis 55 - 66
6.1 NAT traversal test 55-62
6.1.1 direct connection 55-58
6.1.2 reverse connection 58-59
6.1.3 UDP holes 59-61
6.1.4 server transfer 61-62
6.2 Mngt Server to improve testing and analysis 62-66
6.2.1 light load 62-63
6.2.2 appropriate set 63-64
6.2.3 overload 64-66 <br / > 7 summary and Outlook 66-67
References 67-69
Author Biography 69-71
dissertation dataset 71
Related dissertations
- The Research of Streaming Media Traversal NAT Based on the Improvement of ICE Protocol
- The Research and Implementation to Achieve High-Quality Transmission in P2P Content Distribution System Focused on Specific Users
- Design and Implementation of the P2P Instant Message System Based on NAT Traversal
- Microfinance Wholesale Mechanism Research and Construction Analysis
- The Investigation Report of P2P Lending
- Risk Management of P2P Network Financing Mode
- The Construction of P2P Networks Lending Risk Management System in China
- Research on Knowledge Sharing Model of Semantic Community Based on P2P Networks
- The Design and Implementation of SIP Based Managing and Control System for Smart Electricity
- Research on Key Technologies in End Hopping
- The Application of P2P Traffic Identify and Monitoring Technology In the Network Operation
- Design and Implementation of Home Network Remote Management System based on CWMP
- Design and Implementation of P2P-VoD System Based on BitTorrent
- Study on Community-Based Information Retrieval System in Peer-to-Peer Networks
- Research on Game Server Architecture Based on Kademlia
- The Research on WAN Distributed Storage Technologies Based on P2P Architecture
- Research and Improvement of Distributed Lookup Protocol Based on Chord
- Research on Kev Technologies of Content Distribution in P2P Network
- Research and Implementatioil of Mobile Streaming Media Platform Based on Cloud Computing
- Research on the improvement of Chord algorithm in P2P network