首页 | 本学科首页   官方微博 | 高级检索  
     

一种高效网络数据捕包平台的设计与实现
引用本文:张志斌,郭莉,陈明宇,方滨兴.一种高效网络数据捕包平台的设计与实现[J].计算机工程,2005,31(20):212-213.
作者姓名:张志斌  郭莉  陈明宇  方滨兴
作者单位:[1]中国科学院计算技术研究所,北京100080 [2]中国科学院研究生院,北京100089
摘    要:提出了一种基于用户空间的捕包平台设计——ULPF(User Level Packet Filter)。系统完全在用户空间实现;通过修改网卡驱动将数据绕过操作系统内核直接提交给用户空间避免了耗时的数据拷贝操作;利用网络数据包长度的局部性实现了一个高效的内存分配算法避免了多线程带来的内存分配开销。实验证明,该平台基本可以实现将网络数据流线速还原到TCP层。

关 键 词:捕包  网络协议栈  内核  内存分配
文章编号:1000-3428(2005)20-0212-02
收稿时间:08 23 2004 12:00AM
修稿时间:2004-08-23

A High Performance User Level Packet Capture System
ZHANG Zhibin, GUO Li, CHEN Mingyu, FANG Binxing.A High Performance User Level Packet Capture System[J].Computer Engineering,2005,31(20):212-213.
Authors:ZHANG Zhibin  GUO Li  CHEN Mingyu  FANG Binxing
Affiliation:1. Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100080; 2. Graduate School, CAS, Beijing 100089
Abstract:This paper designs a packet capture system ULPF(User Level Packet Filter),which is completely implemented in user level.With optimizing network driver,people bypass kernel and put packets to user level directly so that they can avoid data copying which is time consuming.Advantage of the locality of packets length is taken to design an efficient memory allocator instead of malloc which will show its inefficiency inmultithread environment.The test result indicates that this system can process TCP packets almost at line speed.
Keywords:Packet capture  Network protocol stack  Kernel  Memory allocator
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号