[1]赵成青,李宥谋,刘永斌,等.LWIP 中零拷贝技术的研究与应用[J].计算机技术与发展,2018,28(07):182-186.[doi:10.3969/ j. issn.1673-629X.2018.07.039]
 ZHAO Cheng-qing,LI You-mou,LIU Yong-bin,et al.Research and Application of Zero Copy Technology in LWIP[J].,2018,28(07):182-186.[doi:10.3969/ j. issn.1673-629X.2018.07.039]
点击复制

LWIP 中零拷贝技术的研究与应用()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
28
期数:
2018年07期
页码:
182-186
栏目:
应用开发研究
出版日期:
2018-07-10

文章信息/Info

Title:
Research and Application of Zero Copy Technology in LWIP
文章编号:
1673-629X(2018)07-0182-05
作者:
赵成青李宥谋刘永斌王 涛
西安邮电大学,陕西 西安 710000
Author(s):
ZHAO Cheng-qingLI You-mouLIU Yong-binWANG Tao
Xi’an University of Posts and Telecommunications,Xi’an 710000,China
关键词:
分层内存映射指针传递零拷贝IPC 方式
Keywords:
layeredmemory mappingpointer passingzero copyIPC mode
分类号:
TP216
DOI:
10.3969/ j. issn.1673-629X.2018.07.039
文献标志码:
A
摘要:
LWIP 是一种轻量级的 TCP/ IP 协议栈。 在运行过程中占用少量的资源,主要应用在低端的嵌入式系统。文中从物理层到应用层,分三个层次分析了 LWIP 协议栈的数据传递过程。 分别是物理层到协议栈内部的数据传递过程、协议栈内部本身的数据传递过程、协议栈和外部应用程序数据的传递过程。 而数据在协议栈内部传递时,通过 pbuf 缓冲包在各层之间传递数据包的地址指针已经实现了数据在协议栈内部各层之间的零拷贝传递。 提出了在物理网卡和 LWIP 协议栈传递数据、外部应用程序和 LWIP 协议栈传递数据时的改进方法,避免了数据的两次拷贝,从而实现了数据从物理层直达应用层,提高了系统的传输效率和并发性能。 测试结果表明,数据传输速率从未优化的 2.04 MB/ s 提升到 9.8 MB/ s,已接近网卡性能极限。
Abstract:
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 to 9.8 MB/ s,which is close to the network card performance limit.

相似文献/References:

[1]王小君 何庆.资源网格中的一种资源检索机制[J].计算机技术与发展,2010,(03):63.
 WANG Xiao-jun,HE Qing.A Kind of Hierarchical Search Mechanism in the Resources Grid[J].,2010,(07):63.
[2]谢慧婷 孙力娟 肖甫 王光辉.卫星网络控制系统体系结构研究[J].计算机技术与发展,2009,(10):207.
 XIE Hui-ting,SUN Li-juan,XIAO Fu,et al.Research on Satellite Network Control System Structure[J].,2009,(07):207.
[3]张华健 唐家益.基于DNS和分层技术的Anycast实现[J].计算机技术与发展,2006,(07):85.
 ZHANG Hua-jian,TANG Jia-yi.Implementation of Anycast Based on DNS and Hierarchism[J].,2006,(07):85.
[4]刘靖龙 刘颖 张思东.基于RTL8169网卡的零拷贝技术研究与实现[J].计算机技术与发展,2011,(08):22.
 LIU Jing-long,LIU Ying,ZHANG Si-dong.Research and Implementation of Zero Copy Based on RTL8169 Network Card[J].,2011,(07):22.
[5]陈春玲 张玲.分层混合路由协议的研究与仿真[J].计算机技术与发展,2011,(11):137.
 CHEN Chun-ling,ZHANG Ling.Research and Simulation of Hierarchical Mix Routing Protocol[J].,2011,(07):137.
[6]陈荟慧 王伟静.基于UML的数据流图可视化编辑工具的设计[J].计算机技术与发展,2012,(05):145.
 CHEN Hui-hui,WANG Wei-jing.Design of Visual Edit Tool for DFD Based on UML[J].,2012,(07):145.
[7]李苏婷,张 严.ntyft/ntyxt 算子下共变-异变模拟的前同余性[J].计算机技术与发展,2019,29(09):40.[doi:10. 3969 / j. issn. 1673-629X. 2019. 09. 008]
 LI Su-ting,ZHANG Yan.Precongrunence of Covariant-contravariant Simulation under ntyft/ntyxt Operators[J].,2019,29(07):40.[doi:10. 3969 / j. issn. 1673-629X. 2019. 09. 008]
[8]王 丹,高东怀,宁玉文,等.医学院校智慧教室互动环境设计研究[J].计算机技术与发展,2019,29(11):178.[doi:10. 3969 / j. issn. 1673-629X. 2019. 11. 036]
 WANG Dan,GAO Dong-huai,NING Yu-wen,et al.Research on Interactive Environment Design of Smart Classroom in Medical College[J].,2019,29(07):178.[doi:10. 3969 / j. issn. 1673-629X. 2019. 11. 036]
[9]黄向平,彭明田,杨永凯.基于内存映射文件的复杂对象快速读取方法[J].计算机技术与发展,2020,30(03):82.[doi:10. 3969 / j. issn. 1673-629X. 2020. 03. 016]
 HUANG Xiang-ping,PENG Ming-tian,YANG Yong-kai.Fast Reading Method of Complex Objects Based on Memory Mapping Files[J].,2020,30(07):82.[doi:10. 3969 / j. issn. 1673-629X. 2020. 03. 016]
[10]魏竞毅,赖 俊,陈希亮.基于互信息的智能博弈对抗分层强化学习研究[J].计算机技术与发展,2022,32(09):142.[doi:10. 3969 / j. issn. 1673-629X. 2022. 09. 022]
 WEI Jing-yi,LAI Jun,CHEN Xi-liang.Research on Hierarchical Reinforcement Learning of Intelligent Game Confrontation Based on Mutual Information[J].,2022,32(07):142.[doi:10. 3969 / j. issn. 1673-629X. 2022. 09. 022]

更新日期/Last Update: 2018-09-05