摘要
为了提高流量采集的性能,提出了一种基于软中断和内存映射的流量采集方法,通过实现一个能够接收所有数据报文的协议处理函数,并通过内存映射技术,让用户空间程序直接访问内核数据包,避免了数据报文在内核态传输的内存操作,缩短了数据报文传递路径,极大的节省了CPU的开销.性能测试结果表明,数据报文的采集能力有了极大提高.
The method of traffic collection based on SOFTIRQ and memory mapping was proposed in order to improve the performance of traffic collection.By realizing a user-defined protocol processing function for receiving all packets and using the technology of memory mapping,the user program can access the kernel packet directly.The method avoids the memory access in kernel state and shortens the path for transmiting a packet and saves much CPU overhead.The test results indicate that the traffic collection capability is largely improved.
出处
《内蒙古科技大学学报》
CAS
2009年第2期152-154,共3页
Journal of Inner Mongolia University of Science and Technology
基金
内蒙古高等学校科学研究基金资助项目(NJzy08077)
关键词
流量采集
软中断
内存映射
flow collection
SOFTIRQ memory mapping