结合共享内存和NAPI技术提出了一种基于通用硬件平台和开源软件实现的高速网络链路数据包捕获方案,能够将数据包的捕获能力和捕获效率提升到一个新水平。通过实验表明,在通用PC服务器上实现该方案完全能够满足千兆链路的监测需求,数据包处理能力可达到线速148.8万pps。
Take the advantages of share memory and NAPI, proposed a new packet capture method. The method was implemented under high performance PC server with Linux operating system. The results of the experiment show that the proposed method is more efficient than Libpcap and Kernel module based method. The performance of packet capture with the new method has been improved significantly and can capture/process nearly all packets at line speed under gigabit network.