摘要
针对内核态驱动开销大,而用户态驱动可以消除系统调用及数据包拷贝等高额开销的特点,文章将一个内核态的网卡驱动程序移植到了用户态。文章分析了内核态驱动与用户态驱动的软件框架特点,给出了移植用户态驱动需要解决的问题及相应的技术方案,并给出了移植实现的要点及性能优化措施。实验表明,经移植和优化的用户态驱动程序可以达到10Gbps的数据包输入/输出速度,从而可以应用于各种高速流量监视系统中。
To eliminate the substantial overhead of packet copy and system calls from kernel mode NIC driver, this paper ports a kernel mode NIC driver to the user space. After comparing the characteristics of the software frameworks of the two driver implementations, this paper analyzes the problems needing to be resolved and their corresponding solutions, and then presents the key techniques related to porting realization and the performance optimization measures. Experiments show that the ported and optimized user mode NIC driver can easily reach 10Gbps packet I/O speed, and therefore is eligible to be used in high speed network monitoring systems.
出处
《电子技术(上海)》
2012年第8期17-21,共5页
Electronic Technology
关键词
用户态驱动
零拷贝
性能优化
user space NIC driver
zero-copy
performance optimization