基于HTTP長連接的WEB實時通信技術(shù)的研究
發(fā)布時間:2018-05-13 11:34
本文選題:WEB實時應(yīng)用 + HTTP長連接 ; 參考:《電子科技大學(xué)》2014年碩士論文
【摘要】:現(xiàn)階段,WEB應(yīng)用的形式越來越豐富,各種WEB應(yīng)用層出不窮,實時WEB的應(yīng)用也逐漸變得廣泛,實時天氣、股票行情、實時系統(tǒng)監(jiān)控等,這些WEB實時應(yīng)用的流行推動著實時通信技術(shù)的發(fā)展。從傳統(tǒng)的輪詢方式到Flash XMLSocekt,再到AJXA流行后的基于AJAX的長輪詢方式,每種技術(shù)都在前者的基礎(chǔ)上取得了進步,但是都或多或少存在一定不足。目前,最新的WEB實時通信技術(shù)是HTML5標準中的WebSocket,現(xiàn)階段還處于草案時期,但是大多數(shù)廠商在各自的產(chǎn)品中已經(jīng)開始支持它了。然而現(xiàn)在大多數(shù)實時通信解決方案都是對已有技術(shù)的簡單運用,很難全面地解決現(xiàn)實環(huán)境中實時通信所遭遇的一些棘手問題。本論文的目的就是針對目前WEB實時應(yīng)用中的不足,通過最新的WebSocket技術(shù),結(jié)合現(xiàn)有的一些理論技術(shù)提出一種WEB實時通信的解決方案,旨在解決WEB實時通信中低網(wǎng)絡(luò)吞吐率、低資源利用率、高延時等問題,并針對云計算環(huán)境下產(chǎn)生的高并發(fā)實時應(yīng)用進行優(yōu)化與改進。具體的研究過程為:首先提出了基于HTTP長連接的WEB實時通信模型,在模型中,通過WebSocket實現(xiàn)客戶端與瀏覽器的持久連接,并且結(jié)合Comet解決瀏覽器兼容問題;其次分別對模型的客戶端和服務(wù)器端進行相應(yīng)設(shè)計,包括客戶端瀏覽器支持的設(shè)計,服務(wù)器長連接管理的設(shè)計,連接復(fù)用與連接負載均衡的設(shè)計等;然后綜合運用現(xiàn)有的理論基礎(chǔ)和技術(shù)對模型進行初步的設(shè)計與實現(xiàn);接著運用該模型實現(xiàn)一個支持高并發(fā)的實時網(wǎng)頁聊天系統(tǒng),以及實現(xiàn)云平臺中系統(tǒng)狀態(tài)監(jiān)測的WEB端實時通信功能;最后對模型進行理論測試并進行分析,以及對實現(xiàn)的應(yīng)用系統(tǒng)進行相應(yīng)測試得出實驗結(jié)果。本文提出的基于HTTP長連接的WEB實時通信模型,能夠改善實時通信中常見的低網(wǎng)絡(luò)吞吐率、高延時等問題,特別針對大規(guī)模實時通信提出了連接復(fù)用和負載均衡的處理,能夠適應(yīng)目前大規(guī)模實時通信系統(tǒng)的要求。通過驗證,該實時通信技術(shù)方案可以滿足高并發(fā)實時通信要求,能有效減少服務(wù)器資源的利用,提高用戶體驗。
[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.
【學(xué)位授予單位】:電子科技大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP393.09
【參考文獻】
相關(guān)期刊論文 前2條
1 黃錦昌,李仲麟;支持HTTP多路復(fù)用的代理服務(wù)器的設(shè)計與實現(xiàn)[J];計算機應(yīng)用;2003年S1期
2 羅大暉;陳娟;;基于HTML5的Web離線應(yīng)用研究與實現(xiàn)[J];計算機應(yīng)用與軟件;2012年12期
相關(guān)碩士學(xué)位論文 前1條
1 張帥;大規(guī)模即時通知系統(tǒng)研究與實現(xiàn)[D];吉林大學(xué);2012年
,本文編號:1882976
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1882976.html
最近更新
教材專著