Design and Implementation of the P2P Instant Message System Based on NAT Traversal
- Author
- ZhangJingYi
- Advisor
- JiangJianGuo , LuLeBin
- School
- Xi'an University of Electronic Science and Technology
- Major
- Computer technology
- Classification
- TP393.09 The application of computer network
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 75
- Citations
- 1
Abstract
Instant messaging system has been widely used , and being used in enterprises and institutions of the system from the campus network construction projects . Peer-to-peer ( P2P ) technology for real-time communication system to improve the existing client / server ( C / S ) structure has a lot of problems , to a large extent to achieve the communication between peers , to some extent the liberation of the server , to improve the transmission rate . However , P2P systems present in the Network Address Translation ( NAT ) environment hampered typical problem of the connection can not be established , therefore , it is necessary to conduct an in-depth study on this issue . For the above, the basic functions to complete instant messaging system , focused on solving the problem of NAT traversal . The following is the main work of this paper : 1 , system requirements analysis , research the functional architecture of the existing instant messaging system , and the system ( peer - to - peer technology and NAT ) conducted a comprehensive study and analysis , to master the technology, the basic principle ; 2 , the system analysis of the survey results , a comprehensive comparison today NAT traversal technology , the use of UDP Hole Punching main Relaying supplemented penetrate solutions ; overall design and detailed design of the system , and in accordance with the design results of the various functional modules of the system , including the different types of NAT penetration corresponding to sub-module ; 4 , the performance test system NAT traversal module and UDP reliable transmission mechanism , and adjust individual parameters according to test results , and further improve the health of the system . The current system in the experimental stage , to solve the NAT affect communication disruption , improve the lack of campus network , to meet user needs . The system is running well , stable performance, basically achieved the expected goals .
Table of contents
Abstract 3-4
Abstract 4-7
first chapter 7-13
1.1 Background and Significance 7 - 9
1.1.1 source project 7-8
1.1.2 significance of this topic 8-9
1.1.3 instant messaging 9 < br /> 1.2 this issue is the status quo 9-11
1.3 This work and thesis structure 11-13
1.3.1 This work 11-12
1.3.2 The structure of the paper 12-13
Chapter related technologies and programs selected 13-33
2.1 P2P Overview 13-18
2.1.1 P2P basic concepts 13-14
2.1.2 P2P mode and C / S pattern comparison 14-15
2.1.3 P2P form 15-16
2.1.4 P2P technology, and representative products 16-17
2.1.5 P2P instant messaging system 17-18
2.1 .6 P2P Summary 18
2.2 NAT and its traversal technology 18-30
2.2.1 NAT principle 18-20
2.2.2 NAT Classification 20-23
2.2.3 NAT traversal technology research 23-30
2.3 key technical scheme selection 30-31 <br / > 2.3.1 NAT traversal technology performance comparison 30-31
2.3.2 penetrating scheme selection 31
2.4 Summary 31-33 <br / > Chapter overall system design 33-47
3.1 System Overview 33-34
3.2 System Requirements Analysis 34-35
3.3 system physical architecture 35-36
3.4 functional structure design 36-38
3.5 system port design 38-39
3.6 architecture design 39-40
3.7 NAT penetration module design 40-42
3.7.1 Function module design 40-41
3.7.2 Process Design 41-42
3.8 System Basic Flowchart 42-43
3.9 database design 43-46
3.10 Summary 46-47
Chapter IV system detailed design and implementation 47-71
4.1 server-side design 47-49
4.1.1 server key features 47
4.1.2 Server-side detailed design 47-49
4.1.3 runtime environment and choice of development tools 49
4.2 Client Overview 49-50
4.2.1 IETF instant messaging software architecture 49-50
4.2.2 runtime environment and development tools of choice 50
4.3 user login and state management module 50-58
4.3.1 User Login 51-53
4.3.2 NAT type detection sub-module 53-55
4.3.3 user exits 55-56
4.3.4 User State Management 56-58
4.4 contact management module 58
4.5 file transfer module 58 -67
4.5.1 NAT penetration module design and implementation 60-64
4.5.2 UDP reliable communication 64-67
4.6 functional groups module 67-70
4.6.1 group established 67-68
4.6.2 join groups 68
4.6.3 within the group communication 68-69
4.6.4 members quit the group 69
4.6.5 revocation group 69-70
4.7 Summary 70-71
Chapter System testing 71-75
5.1 test software and test environment 71
5.2 NAT penetration test 71 - 73
5.3 UDP reliable transmission test 73-74
5.4 stress test 74
5.5 Summary 74-75
Chapter VI Conclusion 75-77
6.1 Summary 75
6.2 Prospects 75-77
Thanks 77-79
References 79-80
Related dissertations
- Research and Realization on P2P Communication Based on NAT Traversal
- Application Research of SSL and IPSec Technology in Constructing VPN
- Peer-to-Peer Instant Messaging System
- SIP-based network address through design
- Research and Realization of Solution for NAT Traversal in P2P Communications
- The Design and Implementation of SIP Based Managing and Control System for Smart Electricity
- Research on Key Technologies in End Hopping
- Design and Implementation of Home Network Remote Management System based on CWMP
- Research and Implementation of the Application Proxy System for IPv4/IPv6Transition
- Design and Development of Postal Marketing Support Platform Based on Android
- Design and implementation of mobile phone software and network instant communication software
- Design and Implementation of Network Office System Based on Enterprise Instant Messaging Tool MyQQ
- Reseach on Marching-on In-time Scheme and the Fast Algorithm of Time Domain Integral Equation
- Dongguan City Environmental Protection Bureau analysis and design of collaborative office platform
- Design and Implementation of Enterprise Instant Messaging System
- Research and Implementation of Android-based Instant Messaging Platform
- Design and Implementation of the Instant Messaging System Based on Java
- Design and Implementation of iOS IM System Based on Openfire Server
- Reasearch and Design of Instant P2P Voice Commuication System Based on Wi-Fi Hotspot
- Research on Voice Characteristic of Instant Messaging