Font Size: a A A

The Optimizing Design Of Mobile Im Based On XMPP Protocol

Posted on:2018-12-10Degree:MasterType:Thesis
Country:ChinaCandidate:Z K HanFull Text:PDF
GTID:2348330518959143Subject:Communication and Information System
Abstract/Summary:PDF Full Text Request
With the rapid development of mobile networks and mobile devices,Instant Messaging(IM)applications,which were favored by users on the PC side,increasingly,began to perform themselves on mobile side.In recent years,the IM application of the mobile terminal is flourishing,in fact,there is more commercial competition behind their market appears to be prosperous.Therefore,which communication protool should be use,it depends on which company the IM application products belongs to,the majority of companies is using their own custom communication protocol,so,the IM application of different companies can not communicate with each other.This has lead to the user must install kins of IM applications on the mobile side to meet demand.The XMPP protocol solves the problem of communication in the isomerous application systems,which allows the users on different client terminal to communicate with each other,so,this is one of the reasons why it can become a mainstream communication protocol.In addition,the XMPP protocol is based on XML,and itself has the flexibility,openness and scalability that makes it ideal to develope IM application on mobile terminal.XMPP protocol was originally designed for PC,so some defects happened when used for mobile terminal.Mainly manifested in the following several aspects.Battery storage capacity of mobile devices generally is small,while XMPP protocol is electricity-intensive,in order to improve this problems,people need take their efforts to research and optimize the protocol for the purpose of saving electricity.In addition,mobile network has instability,particularly under the weak network environment?it will not be able to fully guarantee the message delivered to the receiver if the XMPP protocol takes the confirmation way of the original expansion protocol,and this way is not entirely appropriate in a weak network environment because of it's inefficient,so,the way of message confirmation under the weak network,need improvement through many studies.according to the above problem,This topic analyze the XMPP protocol,and put forward solutions.through the analysis for the problem of power consumption in protocol,found the reason is that mobile device is active for a long time,and not quickly enter into silence because the client updates the intent state nformation about friends frequently,For the problems found,this paper presents a scenario to adapt to the power control mechanism.IM application usage can be divided into three scenarios,each scenario using different attendance status information update strategy,meanwhile,between the client and the server increase the proxy server in order to cache the state information of present,by way of modeling the relationship between the cache time and save electricity to cache time.There have many studies for the scene,after the scene switching to send scene flag the server so that to update relative strategy and achieve the goal of power saving.About the problem of message confirmation,the analysis found that the original message confirmed mechanism in XMPP protocol adopts the way sending a message company with a confirmation,Not only this way has quite a bit inefficient,but also easy to caused channel waste problem and network slowdown under the network environment,Through research,this paper put forward a receipt confirmation mechanism based on the grouping of message,to improve the above mentioned problems by increasing corresponding attributes in the original message section,adding the message number?designing the retransmission algorithm and the way of batch confirmation.besides,for sending message,confirming message,timeout and retransmission of the proposed project has research and analysis in order to achieve the purpose of improving efficiency.In order to verify the feasibility of the above research,this paper designed and implemented the online customer service system based on the optimized XMPP protocol.The system can implemented the interactions between customer and customer service,information push and visit the commodities and others.the paper has described the detailed design and implementation about the client,the server,and database,and the research point mentioned above.Finally,a detailed protocol is given,and this paper analyzed the performance of online customer service system and the results of XMPP protocol.System operation and the experimental results show that the function of online customer service system,the optimized XMPP protocol is obviously improved in power control and message confirmation performance.it turns out that subject achieved expected effect.
Keywords/Search Tags:instant messaging, XMPP protocol, Energy saving strategy, Message confirmation, online customer service
PDF Full Text Request
Related items