当前位置:主页 > 管理论文 > 移动网络论文 >

基于XMPP协议的移动消息应用的设计与实现

发布时间:2018-10-23 14:34
【摘要】:随着移动互联网及其应用的发展,移动消息应用的类型呈现多样性特征。因为客户端向服务器发送消息的技术已经非常成熟,所以移动消息应用需要面对的核心问题是从服务器到客户端下行消息的问题,即如何实现“消息推送”。而“消息推送”可以大大提高用户活跃度,所以“消息推送”已经逐步成为各个移动互联网应用的标配。 本文主要研究从服务器到Android手机客户端推送消息的问题,并将推送作为服务供其他应用使用。经过广泛的调研,本文选用XMPP协议作为从服务器向客户端推送消息的协议。推送服务器一方面通过REST接口向第三方应用提供推送消息的服务,另一方面与Android客户端之间维持XMPP持久连接,并推送消息。本文重点解决了消息推送协议设计、服务器支持大量手机用户长时间在线、客户端与服务器保持持久网络连接等关键技术问题。 本文首先调研了XMPP协议和现有的消息推送系统架构,设计了基于XMPP协议的移动消息应用架构。而后本文详细分析了如何通过扩展XMPP协议实现消息的可靠推送。接下来,本文重点介绍了推送服务器的设计与实现,包括数据库、REST接口以及推送模块的设计与实现。接着本文对客户端的设计与实现加以说明,包括用户界面子系统以及通信子系统。用户界面子系统负责提供用户操作界面,允许用户进行推送消息管理;通信子系统通过后台长时运行的服务与服务器保持连接。最后使用真机对系统的电量消耗、流量消耗、稳定性以及性能等进行了测试,证明了系统的有效性。
[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.
【学位授予单位】:北京邮电大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP311.52;TP393.04

【参考文献】

相关期刊论文 前3条

1 罗军舟;吴文甲;杨明;;移动互联网:终端、网络与服务[J];计算机学报;2011年11期

2 吴振强;周彦伟;乔子芮;;移动互联网下可信移动平台接入机制[J];通信学报;2010年10期

3 沈奎林;杜瑾;;基于Openfire+Spark构建IM实时交流平台[J];现代图书情报技术;2011年05期



本文编号:2289531

资料下载
论文发表

本文链接:https://www.wllwen.com/guanlilunwen/ydhl/2289531.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户faae6***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com