Abstract:
Aiming at the drawbacks of traditional packet capture mechanism such as redundantly memory copy, frequently interrupt handle and context switch, this paper proposes the idea that control the packet transmission in user space, uses real-time Linux kernel and zero-copy to reform the NIC device driver. The throughputs of new packet platform result for 64 Byte and 1 500 Byte are 473 Mb/s and 947 Mb/s. Experimental result proves that compared with the traditional platform, the new platform gets a remarkable enhancement on performance.
Key words:
zero copy,
packet capture,
real-time Linux
摘要: 针对传统报文捕获机制中内存拷贝冗余、中断处理及上下文切换频繁等弊端,提出在用户空间控制报文传输的思想,采用实时Linux内核及零拷贝思想对网卡驱动进行改造。捕包平台在捕获64 Byte及1 500 Byte的报文时,吞吐量分别达到了473 Mb/s和943 Mb/s,实验结果证明,与传统报文捕获平台相比,新平台的性能有显著提高。
关键词:
零拷贝,
报文捕获,
实时Linux
CLC Number:
DUAN Chen-sheng; YANG Chang-hao; CHU Wei. Network Packet Capture Platform Based on RTAI[J]. Computer Engineering, 2009, 35(20): 160-162.
段辰生;杨昌昊;褚 伟. RTAI下的网络报文捕获平台[J]. 计算机工程, 2009, 35(20): 160-162.