Font Size: a A A

Study And Application Of The Instant Messaging Technology For Mobile Devices

Posted on:2018-10-09Degree:MasterType:Thesis
Country:ChinaCandidate:D H CuiFull Text:PDF
GTID:2348330536986039Subject:Engineering
Abstract/Summary:PDF Full Text Request
The presentation of instant messaging has enriched people's daily life and work,it also meets the needs of people to communicate anytime,anywhere.With the popularity of smart devices,mobile instant messaging applications users ushered in a big outbreak.Mobile instant messaging applications are widely used,but there are also many challenges,mainly in two aspects.On the one hand,the traditional instant messaging protocol does not take into account the characteristics of mobile devices at the beginning of the design,a wide range of mobile devices,uneven processing ability,short work time,expensive networking tariffs,these protocols are not in the mobile application performance ideal;On the other hand in the development of mobile instant messaging applications there are many difficulties in the process to ensure the stability of the communication environment,the orderliness of the messages,the immediacy of the messages,the concurrent processing of messages,the existence of these difficulties make the developer can not be the main energy on the business logic development,thus increasing the development costs and reducing the development efficiency.Based on the above challenges,this paper designs an instant messaging protocol for mobile devices to reduce the power and traffic consumption during the communication process.In addition,this paper designs and implements an instant messaging server framework,which can effectively reduce the difficulty of application development.Firstly,this paper studies the traditional instant messaging protocols and technologies,compares the various communication technologies and points out the existing problems of the protocol.Secondly,this paper focuses on the MQTT protocol based on publish-subscribe model,and analyzes that the protocol is applicable to the mobile device environment.Thirdly,MQTT-IM is designed for the mobile device based on MQTT protocol,and the protocol packet is encoded by using Protobuf as data exchange optimization technology to further reduce the message size in data transmission.Then,through the analysis of commonly used instant messaging applications,this paper identifies the instant messaging core business processes,and gives the corresponding use case diagram;And then,based on the object-oriented design method,the overall architecture design of the instant messaging server framework is given,which is divided into business logic layer,responsibility chain layer and communication scheduling layer from top to bottom.After that,the interface design of each component of the server framework and the call relation among the components are introduced.The server-side framework mainly introduces the realization process of the core functions such as topic subscription,instant messaging,attendance information presentation,and the implementation of four variable points including the choice of message codec mode,the responsibility chain of message processing,the choice of business processing method,the choice of database implementation,and the existence of these variable points is an important guarantee for good scalability and ease of use.Finally,an application case is designed by using the instant messaging server framework in this paper.By using the test of the application case,the use of the client in terms of power and traffic is given,and the energy saving advantages of the framework and protocol are verified.
Keywords/Search Tags:Instant Messaging, MQTT Protocol, Framework Design, Mobile Internet
PDF Full Text Request
Related items