期刊文献+

LWIP中零拷贝技术的研究与应用 被引量:3

Research and Application of Zero Copy Technology in LWIP
下载PDF
导出
摘要 LWIP是一种轻量级的TCP/IP协议栈。在运行过程中占用少量的资源,主要应用在低端的嵌入式系统。文中从物理层到应用层,分三个层次分析了LWIP协议栈的数据传递过程。分别是物理层到协议栈内部的数据传递过程、协议栈内部本身的数据传递过程、协议栈和外部应用程序数据的传递过程。而数据在协议栈内部传递时,通过pbuf缓冲包在各层之间传递数据包的地址指针已经实现了数据在协议栈内部各层之间的零拷贝传递。提出了在物理网卡和LWIP协议栈传递数据、外部应用程序和LWIP协议栈传递数据时的改进方法,避免了数据的两次拷贝,从而实现了数据从物理层直达应用层,提高了系统的传输效率和并发性能。测试结果表明,数据传输速率从未优化的2.04 MB/s提升到9.8 MB/s,已接近网卡性能极限。 LWIP,a lightweight TCP/IP stack,occupies a small amount of resources during the operation and is mainly used in low-end embedded systems.From the physical layer to the application layer,the data transfer process of the LWIP protocol stack is analyzed in three levels which are the data transfer process from the physical layer to the protocol stack,the data transfer process inside the protocol stack,and the data transfer between the protocol stack and the external application program. When the data is passed inside the protocol stack,the address pointer of the data packet is transmitted between the layers through the pbuf buffer packet,and the data has been transmitted by zero copy between the layers of the protocol stack.We propose an improved method to transfer data between the physical network card and the LWIP protocol stack,the external application program and the LWIP protocol stack,so as to avoid the two copy of the data.The system realizes the direct application of data from the physical layer to the application layer,and improves the transmission efficiency and the concurrent performance of the system.Test shows that the rate of data transmission has been optimized from 2.04 MB/s to9.8 MB/s,which is close to the network card performance limit.
作者 赵成青 李宥谋 刘永斌 王涛 ZHAO Cheng-qing;LI You-mou;LIU Yong-bin;WANG Tao(Xi'an University of Posts and Telecommunications,Xi'an 710000,China)
机构地区 西安邮电大学
出处 《计算机技术与发展》 2018年第7期182-186,共5页 Computer Technology and Development
基金 陕西省重大科技创新专项资助项目(2010ZKC02-08)
关键词 分层 内存映射 指针传递 零拷贝 IPC方式 layered memory mapping pointer passing zero copy IPC mode
  • 相关文献

参考文献6

二级参考文献30

共引文献83

同被引文献23

引证文献3

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部