bypass4netns:在无根容器中加速 TCP/IP 通信

Naoki Matsumoto, Akihiro Suda
{"title":"bypass4netns:在无根容器中加速 TCP/IP 通信","authors":"Naoki Matsumoto, Akihiro Suda","doi":"arxiv-2402.00365","DOIUrl":null,"url":null,"abstract":"\"Rootless containers\" is a concept to run the entire container runtimes and\ncontainers without the root privileges. It protects the host environment from\nattackers exploiting container runtime vulnerabilities. However, when rootless\ncontainers communicate with external endpoints, the network performance is low\ncompared to rootful containers because of the overhead of rootless networking\ncomponents. In this paper, we propose bypass4netns that accelerates TCP/IP\ncommunications in rootless containers by bypassing slow networking components.\nbypass4netns uses sockets allocated on the host. It switches sockets in\ncontainers to the host's sockets by intercepting syscalls and injecting the\nfile descriptors using Seccomp. Our method with Seccomp can handle statically\nlinked applications that previous works could not handle. Also, we propose\nhigh-performance rootless multi-node communication. We confirmed that rootless\ncontainers with bypass4netns achieve more than 30x faster throughput than\nrootless containers without it. In addition, we evaluated performance with\napplications and it showed large improvements on some applications.","PeriodicalId":501333,"journal":{"name":"arXiv - CS - Operating Systems","volume":"5 1 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"bypass4netns: Accelerating TCP/IP Communications in Rootless Containers\",\"authors\":\"Naoki Matsumoto, Akihiro Suda\",\"doi\":\"arxiv-2402.00365\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"\\\"Rootless containers\\\" is a concept to run the entire container runtimes and\\ncontainers without the root privileges. It protects the host environment from\\nattackers exploiting container runtime vulnerabilities. However, when rootless\\ncontainers communicate with external endpoints, the network performance is low\\ncompared to rootful containers because of the overhead of rootless networking\\ncomponents. In this paper, we propose bypass4netns that accelerates TCP/IP\\ncommunications in rootless containers by bypassing slow networking components.\\nbypass4netns uses sockets allocated on the host. It switches sockets in\\ncontainers to the host's sockets by intercepting syscalls and injecting the\\nfile descriptors using Seccomp. Our method with Seccomp can handle statically\\nlinked applications that previous works could not handle. Also, we propose\\nhigh-performance rootless multi-node communication. We confirmed that rootless\\ncontainers with bypass4netns achieve more than 30x faster throughput than\\nrootless containers without it. In addition, we evaluated performance with\\napplications and it showed large improvements on some applications.\",\"PeriodicalId\":501333,\"journal\":{\"name\":\"arXiv - CS - Operating Systems\",\"volume\":\"5 1 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-02-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Operating Systems\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2402.00365\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Operating Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2402.00365","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

"无根容器 "是在没有 root 权限的情况下运行整个容器运行时和容器的概念。它可以保护主机环境,防止攻击者利用容器运行时漏洞。然而,当无根容器与外部端点通信时,由于无根网络组件的开销,网络性能与有根容器相比较低。在本文中,我们提出了 bypass4netns,通过绕过缓慢的网络组件来加速无根容器中的 TCP/IP 通信。它通过拦截系统调用并使用 Seccomp 注入文件描述符,将容器中的套接字切换到主机的套接字。我们使用 Seccomp 的方法可以处理静态链接应用程序,这是以前的工作无法处理的。此外,我们还提出了高性能无根多节点通信。我们证实,带有 bypass4netns 的无根容器的吞吐量比没有 bypass4netns 的无根容器快 30 倍以上。此外,我们还通过应用对性能进行了评估,结果表明在某些应用上有很大改进。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
bypass4netns: Accelerating TCP/IP Communications in Rootless Containers
"Rootless containers" is a concept to run the entire container runtimes and containers without the root privileges. It protects the host environment from attackers exploiting container runtime vulnerabilities. However, when rootless containers communicate with external endpoints, the network performance is low compared to rootful containers because of the overhead of rootless networking components. In this paper, we propose bypass4netns that accelerates TCP/IP communications in rootless containers by bypassing slow networking components. bypass4netns uses sockets allocated on the host. It switches sockets in containers to the host's sockets by intercepting syscalls and injecting the file descriptors using Seccomp. Our method with Seccomp can handle statically linked applications that previous works could not handle. Also, we propose high-performance rootless multi-node communication. We confirmed that rootless containers with bypass4netns achieve more than 30x faster throughput than rootless containers without it. In addition, we evaluated performance with applications and it showed large improvements on some applications.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信