The Study and Implementation of Zero-Copy Packet Capture Platform
Wang Bai · Chinese Journal of Computers · 2005
Based on the Zero Copy network I/O, a high performance packet capture platform (HPPCP) is proposed in this paper. By realizing DMA the packet from network card to the memory that the user program can access directly, HPPCP avoids the memory access in kernel state and shortens the path to transmit a packet; by managing the data buffer using the ring theory, HPPCP can work without collision to access the shared resource. The latency in communication is efficiently reduced for these two improvements. Experimental results indicate that the throughputs of HPPCP for 64Byte and 1500Byte messages are 900,000pps (about 439Mbps) and 82000pps (about 939Mbps) respectively, and HPPCP surpasses the traditional ones’ in performance.