基于HTTP长连接的WEB实时通信技术的研究
发布时间:2018-05-13 11:34
本文选题:WEB实时应用 + HTTP长连接 ; 参考:《电子科技大学》2014年硕士论文
【摘要】:现阶段,WEB应用的形式越来越丰富,各种WEB应用层出不穷,实时WEB的应用也逐渐变得广泛,实时天气、股票行情、实时系统监控等,这些WEB实时应用的流行推动着实时通信技术的发展。从传统的轮询方式到Flash XMLSocekt,再到AJXA流行后的基于AJAX的长轮询方式,每种技术都在前者的基础上取得了进步,但是都或多或少存在一定不足。目前,最新的WEB实时通信技术是HTML5标准中的WebSocket,现阶段还处于草案时期,但是大多数厂商在各自的产品中已经开始支持它了。然而现在大多数实时通信解决方案都是对已有技术的简单运用,很难全面地解决现实环境中实时通信所遭遇的一些棘手问题。本论文的目的就是针对目前WEB实时应用中的不足,通过最新的WebSocket技术,结合现有的一些理论技术提出一种WEB实时通信的解决方案,旨在解决WEB实时通信中低网络吞吐率、低资源利用率、高延时等问题,并针对云计算环境下产生的高并发实时应用进行优化与改进。具体的研究过程为:首先提出了基于HTTP长连接的WEB实时通信模型,在模型中,通过WebSocket实现客户端与浏览器的持久连接,并且结合Comet解决浏览器兼容问题;其次分别对模型的客户端和服务器端进行相应设计,包括客户端浏览器支持的设计,服务器长连接管理的设计,连接复用与连接负载均衡的设计等;然后综合运用现有的理论基础和技术对模型进行初步的设计与实现;接着运用该模型实现一个支持高并发的实时网页聊天系统,以及实现云平台中系统状态监测的WEB端实时通信功能;最后对模型进行理论测试并进行分析,以及对实现的应用系统进行相应测试得出实验结果。本文提出的基于HTTP长连接的WEB实时通信模型,能够改善实时通信中常见的低网络吞吐率、高延时等问题,特别针对大规模实时通信提出了连接复用和负载均衡的处理,能够适应目前大规模实时通信系统的要求。通过验证,该实时通信技术方案可以满足高并发实时通信要求,能有效减少服务器资源的利用,提高用户体验。
[Abstract]:At the present stage, the forms of Web applications are becoming more and more abundant, various WEB applications emerge in endlessly, and the applications of real-time WEB are becoming more and more extensive, such as real-time weather, stock market, real-time system monitoring, etc. The popularity of these WEB real-time applications promotes the development of real-time communication technology. From the traditional polling method to Flash XML ocekt and to the long polling method based on AJAX after AJXA, each technology has made progress on the basis of the former, but more or less there are some shortcomings. At present, the latest WEB real-time communication technology is Web socket in the HTML5 standard, which is still in the draft stage, but most manufacturers have already begun to support it in their respective products. However, most real-time communication solutions are simple applications of existing technologies, and it is difficult to solve some thorny problems encountered by real-time communication in real environment. The purpose of this paper is to aim at the deficiency of the current WEB real-time application, through the latest WebSocket technology, combining with some existing theories and technologies, a solution of WEB real-time communication is put forward, which aims at solving the low network throughput of WEB real-time communication. Low resource utilization, high latency and other problems, and high concurrent real-time applications generated in cloud computing environment are optimized and improved. The specific research process is as follows: firstly, the WEB real-time communication model based on HTTP long connection is proposed. In the model, the persistent connection between client and browser is realized through WebSocket, and the problem of browser compatibility is solved with Comet. Secondly, the corresponding design of the client side and the server side of the model are carried out, including the design of the client browser support, the design of the server long connection management, the design of connection reuse and connection load balancing, etc. Then we use the existing theory and technology to design and implement the model, and then use the model to implement a real-time web chat system with high concurrency. Finally, the model is tested and analyzed in theory, and the corresponding test results of the application system are obtained. In this paper, the WEB real-time communication model based on HTTP long connection can improve the low network throughput, high delay and other common problems in real-time communication, especially for large-scale real-time communication connection multiplexing and load balancing processing. It can adapt to the requirement of large-scale real-time communication system. It is proved that the real-time communication scheme can meet the requirements of high concurrent real-time communication, reduce the utilization of server resources and improve the user experience.
【学位授予单位】:电子科技大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP393.09
【参考文献】
相关期刊论文 前2条
1 黄锦昌,李仲麟;支持HTTP多路复用的代理服务器的设计与实现[J];计算机应用;2003年S1期
2 罗大晖;陈娟;;基于HTML5的Web离线应用研究与实现[J];计算机应用与软件;2012年12期
相关硕士学位论文 前1条
1 张帅;大规模即时通知系统研究与实现[D];吉林大学;2012年
,本文编号:1882976
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/1882976.html