面向普通大众的快速用户态网络
Fast Userspace Networking for the Rest of Us
AI总结:
本文针对公有云 vNIC 特性受限与应用灵活性需求,提出基于“最小公分母”模型和微内核设计的用户态网络栈 Machnet,在仅依赖基础 NIC 特性时保持高性能与低 IPC 开销。
摘要:
在用户态网络栈历经十年研究之后,为什么新的解决方案对大多数开发者而言仍然难以使用?我们认为,这是因为它们忽视了两点:(1)公有云 NIC(vNIC)的硬件约束;(2)应用程序所需的灵活性。关于前者,最先进的方案依赖于 vNIC 中并未广泛提供的特定 NIC 特性(例如流导向、深缓冲)。至于后者,这些网络栈大多强制采用一种限制性很强的执行模型,与云应用需求并不契合。我们提出了一种为公有云 VM 构建的新型用户态网络栈 Machnet。Machnet 的核心是一个新的“最小公分母”模型,即一种具有最小特性集、并得到所有内核旁路 vNIC 支持的概念性 NIC。其挑战在于:仅依赖基础特性(例如没有流导向、没有 RSS 重配置)的同时,构建一种性能可与现有网络栈相媲美的新解决方案。Machnet 采用微内核设计,相比库操作系统设计,在应用执行方面提供更高灵活性;我们表明,在大型云网络中,微内核的进程间通信开销可以忽略不计。
英文摘要:
After a decade of research in userspace network stacks, why do new solutions remain inaccessible to most developers? We argue that this is because they ignored (1) the hardware constraints of public cloud NICs (vNICs) and (2) the flexibility required by applications. Concerning the former, state-of-the-art proposals rely on specific NIC features (e.g., flow steering, deep buffers) that are not broadly available in vNICs. As for the latter, most of these stacks enforce a restrictive execution model that does not align well with cloud application requirements. We propose a new userspace network stack, Machnet, built for public cloud VMs. Central to Machnet is a new ''Least Common Denominator'' model, a conceptual NIC with a minimal feature set supported by all kernel-bypass vNICs. The challenge is to build a new solution with performance comparable to existing stacks while relying only on basic features (e.g., no flow steering, no RSS reconfiguration). Machnet uses a microkernel design to provide higher flexibility in application execution compared to a library OS design; we show that microkernels' inter-process communication overhead is negligible on large cloud networks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。