Design and implementation of P2P - based instant messaging server

Author
SongGuang
Advisor
DuanHanCong , YangQunLi
School
University of Electronic Science and Technology
Major
Software Engineering
Classification
TP393.05 Network equipment
Degree
Master's thesis
Year
2011
Downloads
92
Citations
0

Request the full text

Abstract

With the continuous improvement of people's living standard , people interaction information , timeliness requirements are increasing , route of transmission of the traditional media ( television, newspapers ) has been unable to fully meet the needs of the people , so the dependence on Internet technology more and more strong . Therefore, with the domestic and foreign enterprises invested energy research on the Internet , the Internet in recent years , the rapid development . This , as the two hot spots in the Internet , P2P networks and instant messaging have become the most important corporate concerns and input . Instant messaging is now the business has gradually become an integral part of people 's online activities . It gradually from personal business evolution to the enterprise business , enterprise instant messaging technology research , today 's instant communications research focus . Aggregate P2P P2P-based instant messaging and instant messaging each bit , compared with the original instant communication , but also has its own unique advantages . This paper describes the principle of instant communication technology based on P2P and detailed understanding and analysis of P2P and instant messaging technology , combined with the current P2P and instant messaging technology development status , design a P2P-based instant messaging system . The system is a the paragraph hybrid P2P network model , without dependence on any particular point , thus reducing the burden on the server in C / S structure . NAT traversal for P2P networks to achieve two-way communication to put forward their own solution . Underlying communication using asynchronous non-blocking to ease the pressure of server-side CPU to avoid CPU idling . Structures of the instant messaging network characteristics simulated test environment to fully test this model , and testing process , carried out a detailed analysis and argument in this environment . Has been tested , the system has basically reached the requirements of the overall design , each module is basically to normal operation .

Table of contents

Summary 4-5 Abstract 5-9 Chapter Introduction the background 9-13 1.1 topics 9-12 1.2 Research Significance 12 1.3 of this paper is organized as follows 12-13 Chapter II technical background 13-37 2.1 nbsp the P2P definition of the characteristics and classification; 13-15 2.1.1 P2P networks defined 13 2.1.2 P2P networks characteristics 13-14 2.1.3 the P2P classified 14-15 2.2 definition and application advantages of instant communication the 15-17 2.2.1 instant messaging defined 15-16 2.2.2 the advantages of instant communication 16 2.2.3 instant messaging application 16-17 2.3 P2P security issues 17 2.4 Introduction to the UNIX operating system 17-19 2.4.1 the origin and development of the UNIX operating system 17-18 2.4.2 UNIX operating system of characteristics 18 - 19 2.5 UNIX network structure and support agreement 19-22 2.5.1 UNIX network hierarchy running 19-20 2.5.2 UNIX TCP / IP protocol 20-22 2.6 UNIX platforms to build an Internet network environment the 22-27 2.6.1 UNIX network programming event-driven 22-23 2.6.2 TCP / IP configuration information nbsp 23-25 ?? the 2.6.3 remote file transfer services; 25 2.6.4 remote login Telnet service 25-26 2.6.5 UNIX network file system support the key technologies 26-27 2.7 system design - Epoll architecture 27-33 2.7 the .1 Epoll About 27 2.7.2 Epoll, advantages the 27-28 2.7.3 Epoll, two operating modes Detailed 28-29 2.7.4 epoll interface 29-30 the 2.7.5 specific implementation steps 30-31 2.7.6 the Linux under EPOLL test efficiency 31-33 < br /> 2.8 system design of key technologies - within the network across the the node 33-37 2.8.1 Analysis 33-34 2.8.2 The system within network through the implementation method 34-37 Chapter P2P instant communication system design and analysis the 37-52 3.1 System Requirements Analysis 37-41 < br /> 3.1.1 system functional requirements 37-39 3.1.2 system use case diagrams and process 39-41 3.2 overall system. design 41 - 50 3.2.1 system architecture design of the network model the 3.2.2 system topology 41-43 the 43-44 3.2.3 system architecture 44 3.2.4 system flow chart the 3.2.5 system state transitions 44-46 46-48 3.2.6 User characteristics 48 -49 3.2.7 system function module divided 49-50 3.3 system development and operating environment the 50-52 3.3.1 System Development Environment 50 3.3.2 system operating environment 50-52 Chapter detailed design and implementation of 52-68 4.1 server cluster server Description 52 4.2 Login control key modules of the server 52-56 4.2.1 Login control server function 52 4.2.2 Login the control server key module design and implementation of 52-54 4.2.3 User status change request processing module are found; the 54-56 4.3 instant messaging session low detailed design and realization nbsp General description; 56-63 4.3.1 56-57 4.3.2 class diagram the 57-63 4.4 file transfer module Design and Implementation nbsp Function; 63-67 4.4.1 63 4.4.2 detailed design 63-67 4.7 This chapter summarizes 67-68 the the System Test 68-73 5.1 testing purposes 68 5.2 test environment 68 5.3 Functional Test 68 5.4 performance test the 68-72 5.4.1 connection test 69-71 5.4.2 server load pressure test 71-72 5.5 error test (memory leak check) 72 5.6 Chapter Summary 72-73 Chapter 6 Conclusions and Prospects 73-75 6.1 Conclusion the 73-74 6.1.1 The Current Situation 73 6.1.2 System Features the 73-74 6.2 Looking 74-75 Acknowledgements to References 75-76 76-78

Related dissertations

  1. The Design and Implementation of Campus Network Resource Sharing and Interaction System Based on JXTA
    LiuJiang ·Tianjin University ·2012 ·Master's thesis
  2. University Office of Instant Messaging System Design and Implementation
    MengYan ·Shandong University ·2013 ·Master's thesis
  3. Design and Implementation of an Epoll-Based Information Push System
  4. Design and Implementation of the Embedded Digital STB Instant Messaging System Based on XMPP and P2P Protocol
    LiuHuJun ·Shandong University ·2012 ·Master's thesis
  5. Design and Application of Software Architecture Based on Ajar Handset Platform
    LiuQianFa ·Zhejiang University ·2007 ·Master's thesis
  6. The Design and Implementation of High-performance Distributed Data Cache System
  7. Study of Related Issues of Network Accounting Information System Establishment
    YangYan ·Ocean University of China ·2012 ·Master's thesis
  8. Microfinance Wholesale Mechanism Research and Construction Analysis
  9. The Investigation Report of P2P Lending
  10. Risk Management of P2P Network Financing Mode
    WangSheng ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  11. The Construction of P2P Networks Lending Risk Management System in China
    LuoYang ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  12. Research on Knowledge Sharing Model of Semantic Community Based on P2P Networks
  13. Research and Implementation of the Evaluation Technology of Energy Consumption in Wireless Sensor Networks under the Complex Environments
    XuJie ·Harbin Institute of Technology ·2012 ·Master's thesis
  14. The Application of P2P Traffic Identify and Monitoring Technology In the Network Operation
  15. Design and Implementation of P2P-VoD System Based on BitTorrent
    ZhuangYingJie ·Northeastern University ·2011 ·Master's thesis
  16. Study on Community-Based Information Retrieval System in Peer-to-Peer Networks
  17. Research on Game Server Architecture Based on Kademlia
    ZhongZuoLong ·Donghua University ·2013 ·Master's thesis
  18. The Research on WAN Distributed Storage Technologies Based on P2P Architecture
    YangLei ·Hunan University ·2013 ·Doctoral dissertation
  19. Research and Improvement of Distributed Lookup Protocol Based on Chord
    LiaoXiaoNa ·Tianjin University ·2012 ·Master's thesis
  20. Research on Kev Technologies of Content Distribution in P2P Network
    ZhangJianWei ·Zhejiang University ·2013 ·Doctoral dissertation