arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.05455cs.NIcs.DCcs.OS
收藏

ONCache:一种基于缓存的低开销容器覆盖网络

ONCache: A Cache-Based Low-Overhead Container Overlay Network

Shengkai Lin, Shizhen Zhao, Peirui Cao, Xinchi Han, Quan Tian, Wenfeng Liu, Qi Wu, Donghai Han, Xinbing Wang

AI总结:

针对容器覆盖网络开销大或兼容性差的问题,提出基于缓存的覆盖网络ONCache,利用eBPF技术消除额外开销,在保持灵活性与兼容性的同时显著提升了网络性能并降低CPU开销。

摘要:

近年来,容器的普及日益广泛。尽管容器简化并加速了应用开发,但现有的容器网络技术要么产生显著开销,损害分布式应用的性能;要么丧失灵活性或兼容性,阻碍了其在生产环境中的广泛部署。我们仔细分析了覆盖网络的内核数据路径,量化了数据路径各段消耗的时间,并识别出覆盖网络相比裸金属的额外开销。我们观察到,这种额外开销在数据包之间产生了重复的结果,这启发我们在覆盖网络内部引入缓存。我们设计并实现了ONCache(Overlay Network Cache,覆盖网络缓存),这是一种基于缓存的容器覆盖网络,旨在消除额外开销的同时保持灵活性与兼容性。我们使用扩展的伯克利数据包过滤器(eBPF)实现了ONCache,仅需524行代码,并将其作为Antrea的插件集成。借助ONCache,容器能够获得与裸金属相当的网络性能。与标准覆盖网络相比,ONCache将TCP的吞吐量和请求-响应事务率分别提高了12%和36%(UDP分别为20%和34%),同时显著降低了每个数据包的CPU开销。流行的分布式应用也能从ONCache中受益。

英文摘要:

Recent years have witnessed a widespread adoption of containers. While containers simplify and accelerate application development, existing container network technologies either incur significant overhead, which hurts performance for distributed applications, or lose flexibility or compatibility, which hinders the widespread deployment in production. We carefully analyze the kernel data path of an overlay network, quantifying the time consumed by each segment of the data path and identifying the \emph{extra overhead} in an overlay network compared to bare metal. We observe that this extra overhead generates repetitive results among packets, which inspires us to introduce caches within an overlay network. We design and implement ONCache (\textbf{O}verlay \textbf{N}etwork \textbf{Cache}), a cache-based container overlay network, to eliminate the extra overhead while maintaining flexibility and compatibility. We implement ONCache using the extended Berkeley Packet Filter (eBPF) with only 524 lines of code, and integrate it as a plugin of Antrea. With ONCache, containers attain networking performance akin to that of bare metal. Compared to the standard overlay networks, ONCache improves throughput and request-response transaction rate by 12\% and 36\% for TCP (20\% and 34\% for UDP), respectively, while significantly reducing per-packet CPU overhead. Popular distributed applications also benefit from ONCache.

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

↑