Design and Implementation of Web-Oriented Instant Messaging Syatem Based on XMPP Protocol

Author
WangZuo
Advisor
LiaoJianXin
School
Beijing University of Posts and Telecommunications
Major
Computer Science and Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
228
Citations
7

Request the full text

Abstract

Instant messaging system is a popular Internet direction, it has changed the traditional means of communication for people to e-mail-based, to give people a real-time messaging platform to enrich people's contact information, as well as improve the internal efficiency of the staff. With the rapid development of network technology, instant communication system is emerging, such as Microsoft's MSN, Tencent QQ, China Mobile's Fetion etc.. At present, the market has emerged out of a business online customer service system, it is a Web-oriented mode of instant communication system, application platform for SMEs to improve their visibility, rapid increase website sales, lower promotional costs. However, these systems are based on their own proprietary protocols to communicate, interoperability is very inconvenient. IETF's XMPP (Extensible Messaging and Presence Protocol) protocol to an open XML-based data model, a distributed network architecture to solve the problems of traditional instant messaging systems can not achieve interoperability between help enhance the real-time communication interoperability between systems. XMPP is an open, flexible and scalable XML-based real-time news and online agreement, which provides the service of a \XML is a readable text format, with an open, flexible, lightweight, easy to create and read the advantages. With XML, it is easy to build a gateway to achieve a the XMPP system with non-XMPP system interoperability. Particular purpose server XMPP gateway, the main function is translated into the docking system using non-XMPP protocol XMPP protocol, the system returns the data as well as docking translated into the XMPP. Tedious work, Web browser-based client in addition to have a basic instant messaging features, and also eliminates the need for desktop terminal installed, updated and provided to the user as long as the browser can always the possibility of instant communication. Web2.0 technology continues to evolve, the real-time nature of the Web browser client information, and enhance the user experience, and provides technical support for the application of the Web-oriented mode of communication systems. In this thesis, in this context, began XMPP-based instant messaging system on the Web mode. Main tasks: first to study the instant messaging system characteristics and architecture, and the two mainstream protocol XMPP and SIMPLE comparative analysis; Second, a detailed study of XMPP Principles and Techniques for building XMPP instant messaging system to provide theoretical support; Third, the background based on distributed, the front desk of the system based on browser / server mode architecture design, and using the Java programming language to implement the entire system to complete user registration, login, change status, view friends status, increase / delete friends, send instant messages and other functions; JavaScript AJAX-based rich client technology design and Web client and the completion of the long polling technique between the rich client and Web server communication; fifth, designed and implemented XMPP instant messaging system with a short message, multimedia message of value-added services interoperability, communication party instant messaging using a mobile phone short message / multimedia message in the form with the Web client.

Table of contents

Abstract 4-6 ABSTRACT 6-11 first chapter 11-14 1.1 Background topics 11-12 1.1.1 Background 11-12 1.1.2 significance of the topic 12 1.1.3 research 1.2 thesis structure 12-13 1.3 This chapter Summary 13-14 instant messaging Overview 14-20 2.1 instant messaging feature 14-15 2.2 instant messaging architecture 15-16 2.2.1 client / server architecture 15 2.2.2 browser / server structure 15-16 2.2.3 peer-to-peer structure 16 2.3 mainstream instant messaging protocol 16-19 2.3.1 SIMPLE protocol 16-18 2.3.2 XMPP protocol 18 2.3.3 SIMPLE and XMPP protocol contrast 18-19 2.4 This chapter Summary 19-20 Chapter XMPP protocol research 20-25 3.1 XMPP protocol 20-21 3.1.1 XMPP protocol stack 20 3.1.2 XMPP address 20-21 3.1.3 XML stream XML section 21 3.2 XMPP elements 21-24 3.2.1 Message 21-22 3.2.2 Presence 22-23 3.2.3 IQ 23-24 3.3 XMPP development 24 3.4 This chapter Summary 24-25 Design and Implementation of the server side Chapter 25-56 4.1 overall system architecture design 25-26 4.2 XMPP server design 26-36 4.2.1 connection module 27 4.2.2 Address Resolution module 27-28 4.2.3 routing module 28 4.2.4 XML parsing module 28-29 4.2.5 Session Management Module 29-35 4.2.6 log management 35-36 4.3 interoperability with Internet value-added services of short message 36-42 4.3.1 Short Message Networking 36 4.3.2 CMPP introduced 36-38 4.3.3 Interworking with short message 38-42 4.3.3.1 interworking solutions 38-39 4.3.3.2 through issues to be addressed 39-42 4.4 Multimedia Messaging Service interoperability 42-48 4.4.1 Multimedia Messaging Networking 42-43 4.4.2 the MM7 interface introduced 43-44 4.4.3 MMS interworking 44-48 4.4.3.1 interworking solutions 44-46 4.4.3.2 interoperability issues to be addressed 46-48 4.5 database design 48-50 4.6 server-side key module 50-55 4.6.1 connector 50-51 4.6.2 Address Resolution module 51 4.6.3 XML parsing module 51-52 4.6.4 Session Management Module 52-53 4.6.5 Message Processing Module 53 4.6.6 protocol conversion module 53-55 4.6.7 database module 55 4.7 This chapter Summary 55-56 Design and Implementation of Chapter Web client 56-80 5.1 client tasks Overview and structural design 56-57 5.2 related technologies 57-65 5.2.1 rich client 57-59 Overview 5.2.2 AJAX 59-62 5.2.2.1 XMLHttpRequest introduced 60-62 the 5.2.2.1.1 XMLHttpRequest properties 60-62 the 5.2.2.1.2 XMLHttpRequest operating 62 5.2.3 common design patterns 62-65 5.2.3.1 MVC design pattern 62-63 5.2.3.2 observer mode 63-64 the 5.2.3.3 factory mode 64-65 5.3 Web client design 65-69 the the 5.3.1 browser side rich client design 65-66 5.3.2 Web container side server design 66 5.3.3 rich client and Web Server interaction design 66-69 5.3.3.1 Push with the Pull 66-67 5.3.3.2 AJAX interaction design 67-69 the 5.3.3.2.1 the client sends a request to the server data 67 the 5.3.3.2.2 the server to pass data to the client 67-68 the 5.3.3.2.3 client and server heartbeat 68-69 5.3.3.2.4 client server session management 69 5.4 Web client key modules to achieve 69-79 5.4.1 browser side rich client module 69-71 5.4.2 Web service side of the container side achieve 71-75 classes and their relationships 5.4.2.1 71-72 5.4.2.2 configuration information 72-75 5.4.3 AJAX long polling interact achieve 75-79 5.4.3.1 browser side 75-76 5.4.3.2 Web Server side 76-79 5.5 This chapter Summary 79-80 Summary and Outlook The 80-81 the References 81-83 Acknowledgements 83-84 studying for a master's degree has been published during or hired papers 84

Related dissertations

  1. Research and Implementation of Android-based Instant Messaging Platform
    LiZuoPeng ·South China University of Technology ·2013 ·Master's thesis
  2. Security Analysis Andapplicationstudy of XMPP Protocol
  3. The Design and Implementation of Enterprise-Level IM System Based on Jabber/XMPP
  4. Design and Implementation of UC Client Platform Based on SIP and XMPP Protocol
  5. Design and Implementation of the Embedded Digital STB Instant Messaging System Based on XMPP and P2P Protocol
    LiuHuJun ·Shandong University ·2012 ·Master's thesis
  6. Design and Implementation of the Client Software for Instant Messaging System on Android
  7. Research and Implementation of Instant Messaging Application for Android Phone Based on XMPP Protocol
    GaoMingPeng ·Nanchang University ·2012 ·Master's thesis
  8. Improvement and Implementation of InstLink Server System
  9. Application Integration Based on Jabber/XMPP Communication Platform
    GuoNa ·Jilin University ·2008 ·Master's thesis
  10. Study on the key technology of the Web-oriented applications of real-time communication system
  11. The Research and Implementation of Enterprise Instant Messaging System Based on XMPP
    CuiZhenXing ·Wuhan University of Technology ·2008 ·Master's thesis
  12. P2P instant messaging software design based on the XMPP protocol
    WuYan ·Zhejiang University ·2007 ·Master's thesis
  13. Research and Implementation of the the Jabber protocol phone instant messaging system
    GuoChunLei ·Guizhou University ·2007 ·Master's thesis
  14. Research on Chemistry Collaboration Environment and Its Implementation in e-Science of Computational Chemistry
    DuZuo ·Lanzhou University ·2007 ·Master's thesis
  15. Design and Implementation of the UIM (Unified Instant Messaging) system client
    WangShunChao ·Beijing University ·2007 ·Master's thesis
  16. The Research and Application of the Protocols and Technology about Jabber
    SongBo ·Jilin University ·2006 ·Master's thesis
  17. In Office Modules XMPP Application and Expansion
  18. Research of Instant Message Dedicated to Campus Network
    WangQuanHong ·Beijing Forestry University ·2008 ·Master's thesis
  19. Research and Implementation of the Web Instant Messaging Agent
  20. Research and Implementation of Instant Messaging Based on Linux
    LiChangCheng ·Harbin Engineering University ·2008 ·Master's thesis