首页 | 本学科首页   官方微博 | 高级检索  
     

一种跨平台的实时TCP/IP协议栈设计
引用本文:黄云婷,;江南,;杜承烈.一种跨平台的实时TCP/IP协议栈设计[J].计算机工程,2014(9):134-137.
作者姓名:黄云婷  ;江南  ;杜承烈
作者单位:[1]西北工业大学计算机学院,西安710129; [2]中国船舶重工集团公司750试验场,昆明650051
摘    要:为提高异构系统下网络通信的实时性,提出一种跨平台的实时TCP/IP协议栈(RTTCP/IP)实现方法。运用操作系统适配技术屏蔽底层数据处理的差异性,增强协议栈的可移植性和可扩展性;通过简化TCP/IP协议栈的结构,减少协议栈对系统资源的占用;采用内存映射技术,将内核空间地址映射到用户空间,避免用户与内核间的数据拷贝操作;引入基于时分多址的介质访问机制和数据包优先级策略,防止网络传输冲突,解决数据包优先级倒置问题。测试结果表明,RTTCP/IP实现方法能够减少系统开销和通信延迟,提高系统实时性和稳定性。

关 键 词:TCP/IP协议栈  实时性  通信协议  内存管理  数据包优先级  介质访问

A Design of Cross-platform Real-time TCP/IP Protocol Stack
Affiliation:HUANG Yun-ting,JIANG Nan,DU Cheng-lie ( 1. School of Computer, Northwestern Polytechnical University, Xi' an 710129, China; 2. 750 Testing Ground, China Shipbuilding Industry Corporation, Kunming 650051, China)
Abstract:In order to improve the real-time performance of a heterogeneous communication system,this paper proposes a cross-platform Real-time TCP/IP(RTTCP/IP)protocol stack. It introduces an OS independent layer in RTTCP/IP to shield the difference of system-level data processing to provide a good portability and extensibility. It simplifies the standard TCP/IP in RTTCP/IP so that less system resources are demanded,which makes RTTCP/IP a light-weight protocol stack. It avoids duplicating the data packets while delivering the data within the RTTCP/IP protocol stack,and it attempts to adopt a TDMA MAC in the RTTCP/IP protocol stack to avoid communication collisions. Besides,to guarantee the emergency data can be processed in the foreseeable period of time,it introduces a priority mechanism to tackle the thread,or packet,priority reversing problem. Test results show that the RTTCP/IP implementation method can reduce the system overhead and communication delay,and improve system real-time performance and stability.
Keywords:TCP/IP protocol stack  real-time  communication protocol  memory management  packet priority  media access
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号