arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1901.10664cs.NIcs.OS
收藏

用户空间网络驱动程序

User Space Network Drivers

Paul Emmerich, Maximilian Pudelko, Simon Bauer, Stefan Huber, Thomas Zwickl, Georg Carle

摘要:

用户空间数据包处理框架(如DPDK和netmap)的兴起使开发人员和研究人员更容易访问低级代码。以前,驱动程序代码隐藏在内核中,很少被高层开发人员修改,甚至查看。如今这些障碍已经消失,但开发人员仍然将用户空间驱动程序视为黑盒,神奇地加速应用程序。我们想改变这一点:每一个构建高速网络应用程序的研究人员都应该了解底层驱动程序的复杂性,特别是当它们影响性能时。我们提出了ixy,一个用户空间的网络驱动程序设计的简单性和教育的目的,以表明快速包IO不是黑魔法,但仔细工程。ixy专注于用户空间数据包处理的基本要素:包括整个NIC驱动程序的数据包转发器使用不到1,000行C代码。这篇论文是部分写在教程风格的案例研究,我们的驱动程序的实现为英特尔82599家庭和虚拟VirtIO处理器。前者允许我们在精简的实现上推理驱动程序和框架的性能,以单独评估各个优化。VirtIO支持确保每个人都可以在虚拟机中运行它。我们的代码在BSD许可证下是免费和开源的,网址是https://github.com/emmericp/ixy

英文摘要:

The rise of user space packet processing frameworks like DPDK and netmap makes low-level code more accessible to developers and researchers. Previously, driver code was hidden in the kernel and rarely modified, or even looked at, by developers working at higher layers. These barriers are gone nowadays, yet developers still treat user space drivers as black-boxes magically accelerating applications. We want to change this: every researcher building high-speed network applications should understand the intricacies of the underlying drivers, especially if they impact performance. We present ixy, a user space network driver designed for simplicity and educational purposes to show that fast packet IO is not black magic but careful engineering. ixy focuses on the bare essentials of user space packet processing: a packet forwarder including the whole NIC driver uses less than 1,000 lines of C code. This paper is partially written in tutorial style on the case study of our implementations of drivers for both the Intel 82599 family and for virtual VirtIO NICs. The former allows us to reason about driver and framework performance on a stripped-down implementation to assess individual optimizations in isolation. VirtIO support ensures that everyone can run it in a virtual machine. Our code is available as free and open source under the BSD license at https://github.com/emmericp/ixy

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑