您好,欢迎来到中国测试科技资讯平台!

首页> 《中国测试》期刊 >本期导读>TCP/IP协议的零拷贝和简化实现

TCP/IP协议的零拷贝和简化实现

2340    2016-01-23

免费

全文售价

作者:宋佳1, 谢湘楠2, 冉蜀阳1

作者单位:1. 四川大学电气信息学院, 四川成都 610065;
2. 中国测试技术研究院, 四川成都 610021


关键词:TCP/IP; MBUF; 零拷贝; 数据采集; 嵌入式


摘要:

对嵌入式数据采集系统与PC间通过以太网的数据通讯进行了研究。这类嵌入式系统与PC配置于同一网段,数据包的大小比较固定,但是要求传输速度快,系统资源占用率小。通过在网卡驱动程度程序中直接使用简化的MBUF结构,实现了发送和接收数据的零拷贝,减少了CPU占用率。通过简化IP层协议和实现其它协议层中最基本的功能,大大减少了代码量。适用于资源比较紧张的系统与PC间的快速数据通讯。


Simplified and zero-copy TCP/IP protocol based on data captrure system

SONG Jia1, XIE Xiang-nan2, RAN Shu-yang1

1. School of Electrical Engineering and Information, Sichuan University, Chengdu 610065, China;
2. National Institute of Measurement and Testing Technology, Chengdu 610021, China

Abstract: To study the TCP/IP protocol used in the embedded system with limited code space and CPU usage, this paper introduced the zero-copy and simplified TCP/IP protocol. Using simplified MBUF structure in Ethernet adapter's driver, simplifying the IP layer handle, implement only the needed protocol. Thus, the code size and CPU usage are largely reduced.

Keywords: TCP/IP; MBUF; Zero-copy; Data capture; Embedded system

2007, 33(1): 114-117  收稿日期: 2006-8-3;收到修改稿日期: 2006-10-19

基金项目: 

作者简介: 

参考文献

[1] James F.Kurose,Keith W.ROSS计算机网络:自顶向下方法与Internet特色[M].北京:高等教育出版社,2001.
[2] Gary R.Wright,W.Richard Stevens TCP/IP详解卷1:协议[M].北京:机械工业出版社,2000.
[3] Gary R.Wright,W.Richard Stevens TCP/IP详解卷2:实现[M].北京:机械工业出版社,2000.
[4] 李素侠,段友祥.嵌入式TCP/IP协议的分析与研究[J].微计算机信息,2005,21(7):52-53.
[5] 林宏,吴景东.基于TCP/IP的嵌入式通信模块设计[J] 福建电脑,2006,3:136-137.
[6] 吴胜昔,路东昕,赵霞.基于嵌入式TCP/IP协议的数据采集器[J].微型电脑应用,2006,26(1):28-31.