quotation:[Copy]
[Copy]
【Print page】 【Download 【PDF Full text】 View/Add CommentDownload reader Close

←Previous page|Page Next →

Back Issue    Advanced search

This Paper:Browse 3080   Download 556 本文二维码信息
码上扫一扫!
多目标控制系统中TCP粘包问题的解决方法
党琦1,2,苟茹君1,3,董广然1,2,季茂鹏1,2
0
(1.西安卫星测控中心,西安 710043;2.航天器在轨故障诊断与维修重点实验室,西安 710043;3.宇航动力学国家重点实验室,西安 710043)
摘要:
测控设备采用传输控制协议/网际协议(TCP/IP)作为基础协议,进行遥控多通道并行工作时易造成网络数据粘包。针对此问题,在对TCP协议特点进行分析的基础上,通过讨论TCP编程模型和流交付模型,研究了发生TCP数据流粘包时的网络数据特征,并分析了发生网络粘包的原因,提出了局域网环境下采用短连接、发送端及格式数据组包3种解决网络粘包的方法。实际测试结果证明了这3种方法的适应性及格式数据方法还原TCP网络数据包的有效性,可为基于TCP应用软件开发提供借鉴。
关键词:  多目标控制系统  TCP数据流  网络粘包  网络程序设计
DOI:10.3969/j.issn.1001-893x.2017.09.018
基金项目:
Methods for solving TCP sticky packet problem in multi-object control systems
DANG Qi1,2,GOU Rujun1,3,DONG Guangran1,2,JI Maopeng1,2
(1.Xi′an Satellite Control Center,Xi′an 710043,China;2.Key Laboratory for Fault Diagnosis & Maintenance of Spacecraft in Orbit,Xi′an 710043,China;3.State Key Laboratory of Astronautic Dynamics,Xi′an 710043,China)
Abstract:
It′s easy to cause the problem of network data sticking when the tracking,telemetry and command(TT&C) equipment works in multi-channel and parallel state by using transmission control protocol/Internet protocol(TCP/IP) as the basis protocol.According to the analysis of TCP features,through discussion of the TCP program model and stream delivery model,the network data features have being researched when TCP data stream stick happens,and the cause of data stream stick is analyzed. Three methods for solving the problem are given by short links,transmitter side process and format data packet. The test results have verified the adaptability of three methods and the effectiveness of rebuilding TCP network data packet by using the format data method. The research provides the reference for the software development based on TCP.
Key words:  multi-object control system  TCP data stream  sticky packet  network programming