摘要
零拷贝技术是提高通用计算机报文采集性能的重要技术手段,可以增强网络数据包捕获能力,并降低系统的资源消耗。提出了一种基于PF_DMA的零拷贝报文捕获改进方法,对相关Linux内核函数进行扩展和替换,在不改变原有内核和网卡驱动代码的基础上,实现报文的零拷贝,实验结果表明,该方法保持了PF_DMA捕包的高效率,同时具有更好的通用性和可移植性。
Zero-Copy technique has been widely used in packed-capture, it can increase network packet capture performance and decrease the consumption of system resource. This paper proposes an improved Zero-Copy method based on PF_DMA which is implemented by hook Linux kernel functions. This method avoids the modifications of the code of Linux kernel and NIC drivers. Experimental results show that this method keeps high efficient in packet capture and can be ported easily compared to PF_DMA.
出处
《电子设计工程》
2013年第13期135-137,共3页
Electronic Design Engineering