基于XMPP協(xié)議的移動消息應(yīng)用的設(shè)計(jì)與實(shí)現(xiàn)
發(fā)布時間:2018-10-23 14:34
【摘要】:隨著移動互聯(lián)網(wǎng)及其應(yīng)用的發(fā)展,移動消息應(yīng)用的類型呈現(xiàn)多樣性特征。因?yàn)榭蛻舳讼蚍⻊?wù)器發(fā)送消息的技術(shù)已經(jīng)非常成熟,所以移動消息應(yīng)用需要面對的核心問題是從服務(wù)器到客戶端下行消息的問題,即如何實(shí)現(xiàn)“消息推送”。而“消息推送”可以大大提高用戶活躍度,所以“消息推送”已經(jīng)逐步成為各個移動互聯(lián)網(wǎng)應(yīng)用的標(biāo)配。 本文主要研究從服務(wù)器到Android手機(jī)客戶端推送消息的問題,并將推送作為服務(wù)供其他應(yīng)用使用。經(jīng)過廣泛的調(diào)研,本文選用XMPP協(xié)議作為從服務(wù)器向客戶端推送消息的協(xié)議。推送服務(wù)器一方面通過REST接口向第三方應(yīng)用提供推送消息的服務(wù),另一方面與Android客戶端之間維持XMPP持久連接,并推送消息。本文重點(diǎn)解決了消息推送協(xié)議設(shè)計(jì)、服務(wù)器支持大量手機(jī)用戶長時間在線、客戶端與服務(wù)器保持持久網(wǎng)絡(luò)連接等關(guān)鍵技術(shù)問題。 本文首先調(diào)研了XMPP協(xié)議和現(xiàn)有的消息推送系統(tǒng)架構(gòu),設(shè)計(jì)了基于XMPP協(xié)議的移動消息應(yīng)用架構(gòu)。而后本文詳細(xì)分析了如何通過擴(kuò)展XMPP協(xié)議實(shí)現(xiàn)消息的可靠推送。接下來,本文重點(diǎn)介紹了推送服務(wù)器的設(shè)計(jì)與實(shí)現(xiàn),包括數(shù)據(jù)庫、REST接口以及推送模塊的設(shè)計(jì)與實(shí)現(xiàn)。接著本文對客戶端的設(shè)計(jì)與實(shí)現(xiàn)加以說明,包括用戶界面子系統(tǒng)以及通信子系統(tǒng)。用戶界面子系統(tǒng)負(fù)責(zé)提供用戶操作界面,允許用戶進(jìn)行推送消息管理;通信子系統(tǒng)通過后臺長時運(yùn)行的服務(wù)與服務(wù)器保持連接。最后使用真機(jī)對系統(tǒng)的電量消耗、流量消耗、穩(wěn)定性以及性能等進(jìn)行了測試,證明了系統(tǒng)的有效性。
[Abstract]:With the development of mobile Internet and its applications, the types of mobile messaging applications are diverse. Because the technology of sending messages from client to server is very mature, the core problem that mobile messaging applications need to face is the downlink message from server to client, that is, how to implement "message push". Message push can greatly improve user activity, so message push has gradually become the standard for all mobile Internet applications. In this paper, the problem of pushing messages from server to Android mobile phone client is studied, and push is used as a service for other applications. After extensive investigation, this paper chooses XMPP protocol as the protocol to push messages from the server to the client. On the one hand, push server provides push message service to third party application through REST interface; on the other hand, it maintains XMPP persistent connection with Android client and pushes message. This paper focuses on solving the key technical problems such as message push protocol design, server supporting a large number of mobile phone users online for a long time, the client and the server to maintain a persistent network connection, and so on. In this paper, the XMPP protocol and the existing message push system architecture are investigated, and the mobile messaging application architecture based on XMPP protocol is designed. Then this paper analyzes in detail how to extend the XMPP protocol to achieve reliable message push. Then, this paper focuses on the design and implementation of push server, including database, REST interface and push module design and implementation. Then the design and implementation of the client are described, including user interface subsystem and communication subsystem. The user interface subsystem is responsible for providing user interface, allowing users to manage push messages, and the communication subsystem maintains connection to the server through the service running in the background long time. Finally, the power consumption, flow consumption, stability and performance of the system are tested by real computer, which proves the effectiveness of the system.
【學(xué)位授予單位】:北京郵電大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP311.52;TP393.04
本文編號:2289531
[Abstract]:With the development of mobile Internet and its applications, the types of mobile messaging applications are diverse. Because the technology of sending messages from client to server is very mature, the core problem that mobile messaging applications need to face is the downlink message from server to client, that is, how to implement "message push". Message push can greatly improve user activity, so message push has gradually become the standard for all mobile Internet applications. In this paper, the problem of pushing messages from server to Android mobile phone client is studied, and push is used as a service for other applications. After extensive investigation, this paper chooses XMPP protocol as the protocol to push messages from the server to the client. On the one hand, push server provides push message service to third party application through REST interface; on the other hand, it maintains XMPP persistent connection with Android client and pushes message. This paper focuses on solving the key technical problems such as message push protocol design, server supporting a large number of mobile phone users online for a long time, the client and the server to maintain a persistent network connection, and so on. In this paper, the XMPP protocol and the existing message push system architecture are investigated, and the mobile messaging application architecture based on XMPP protocol is designed. Then this paper analyzes in detail how to extend the XMPP protocol to achieve reliable message push. Then, this paper focuses on the design and implementation of push server, including database, REST interface and push module design and implementation. Then the design and implementation of the client are described, including user interface subsystem and communication subsystem. The user interface subsystem is responsible for providing user interface, allowing users to manage push messages, and the communication subsystem maintains connection to the server through the service running in the background long time. Finally, the power consumption, flow consumption, stability and performance of the system are tested by real computer, which proves the effectiveness of the system.
【學(xué)位授予單位】:北京郵電大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP311.52;TP393.04
【參考文獻(xiàn)】
相關(guān)期刊論文 前3條
1 羅軍舟;吳文甲;楊明;;移動互聯(lián)網(wǎng):終端、網(wǎng)絡(luò)與服務(wù)[J];計(jì)算機(jī)學(xué)報(bào);2011年11期
2 吳振強(qiáng);周彥偉;喬子芮;;移動互聯(lián)網(wǎng)下可信移動平臺接入機(jī)制[J];通信學(xué)報(bào);2010年10期
3 沈奎林;杜瑾;;基于Openfire+Spark構(gòu)建IM實(shí)時交流平臺[J];現(xiàn)代圖書情報(bào)技術(shù);2011年05期
,本文編號:2289531
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/2289531.html
最近更新
教材專著