首页> 中文期刊>计算机应用研究 >Linux环境下普适性零拷贝平台的研究与实现

Linux环境下普适性零拷贝平台的研究与实现

     

摘要

This paper analyzed the mechanism of the existing various zero-copy platforms and their advantages and disadvanta-ges comprehensively, and achieved a packet capture platform based on universal zero-copy (PCPUZ). Through direct modifi-cation of memory allocation and release mechanism of socket buffer in Linux kernel, data packets could be directly accessed to by the user program. And this platform overcame the shortcomings of poor compatibility and portability in common zero-copy technology, and it could be used directly in different model cards and different versions of the network card drivers. Perform-ance testing and analysis show that in the case of low-end configuration, the throughputs of PCPUZ for 64 Byte and 1500 Byte messages are 620 000 pps (about 320 Mbps) and 74 000 pps (about 889 Mbps) respectively. In the high-end configuration, can reach 1.1 million pps (563 Mbps) and 81 OOOpps (975 Mbps). PCPUZ surpasses the traditional ones' in performance. Compared with the common proprietary platforms of zero-copy, its performance has got a certain improvement, the platform portability and practicality are also enhanced.%综合分析了现有的多种零拷贝平台的实现机制及优缺点,实现了一种具有普适意义的零拷贝捕包平台(packet capture platform based on universal zero-copy,PCPUZ).通过直接对Linux内核中套接字缓冲区的内存分配和释放机制的修改,实现用户程序对数据报文的直接访问,并且克服了普通零拷贝技术应用范围单一、移植性差等缺点,面对不同型号网卡、不同版本网卡驱动,均可直接使用该平台.通过性能测试和分析表明,在低端配置的情况下,对64 Byte与1 500 Byte的报文捕获能力分别达到62万pps (320 Mbps)和7.4万pps(889 Mbps).在高端配置下,可分别达到110万pps(563 Mbps)和8.1万pps(975 Mbps).与传统的报文捕获机制相比,报文捕获能力有了非常显著的提高.与常见的专有零拷贝平台相比,性能也有一定的提升,并大大提高了平台的移植性和实用性.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号