- 1、本文档共10页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于动态通讯元TCP客户端新型通讯模型研究与应用
基于动态通讯元TCP客户端新型通讯模型研究与应用
摘要:该文针对复杂协议的网络通讯,建立了一个全新的TCP (Transmission Control Protocol)客户端的通讯模型。该模型提出了一个网络通讯的最小单位——通讯元,利用解释结构模型分析复杂协议的通讯元图谱,将通讯元动态地添加到处理线程中进行匹配,简化了处理过程并极大提高了运行效率。同时该文利用该模型设计出了一个通用的TCP客户端模块,封装了通讯底层的细节,提供了方便的接口。将该模块应用于城市消防远程监控软件设计中,实际运行表明:该模型具有简单的接口和稳定、高效的运行机制。
关键词: TCP;解析结构模型;动态通讯元
中图分类号:TN915 文献标识码:A 文章编号:1009-3044(2013)04-0702-05
The Research and Application of a New TCP Client Model Based on Dynamic Communication Unit
FANG Jian-jie
(College of Information Science Technology, Xiamen University, Xiamen 361005, China)
Abstract: In this paper we proposed a new communication model of TCP client (Transmission Control Protocol) to solve the problem of the network communication which has complex protocols. The idea of communication unit which is the smallest unit of a network communication is advanced, so that we can describe the complex protocols by these units. Then analyze the communication units pattern of the complex protocol by means of interpretive structure modeling(ISM). it turns out that it will be a much more effective way to add communication units dynamically into the processing thread, and at the same time the process could be simplified. Based on this model a general TCP client model has been designed with lower-layer-protocol encapsulated inside and convenient interfaces accessible. This module has been applied in the city elevator remote monitoring system, and it has a very good performance because of its simple interfaces, stabilization and high effectiveness.
Key words:TCP; interpretive structural mode; dynamic communication unit
在传统的C/S协议通讯架构设计中,针对一个客户端主体通常存在着数以百千计的协议,其中大部分协议更是存在先后次序和分支以形成众多协议链和交叉协议网。通常CS通讯架构设计采用接收数据后遍历所有协议以获得匹配操作[1]。该种通讯方??在简单协议的CS通讯中较为高效,但是对于协议数量达到成千上万的复杂协议通讯,对于接收的每一次数据都需要遍历一次协议组,对于频繁的协议通讯而言是巨大的系统开销,并导致通讯效率降低。该文提出网络协议通讯中通讯最小单位——通讯元的概念,并通过解释结构模型分析通讯元协议链,将其进行级间分解,利用协议链通讯的次序关系动态加载/卸载通讯元,使得接收数据后需要匹配的协议数量大幅度降低,极大地提高了通讯效率。
1 通讯模型的建立
1.1 通讯元定义
通讯的基本操作有两种:接收数据,记为[R(Xi)];发送数据,记为[S(Xi)]。其中[Xi
文档评论(0)