Low-Overhead Intra-Host Container Communication With Hardware Offloading
Containers are widely embraced for their deployment and performance benefits over virtual machines. Yet, for many data-intensive applications in containerized clouds, bulky data transfers may impose performance issues. In particular, communication across co-located containers on the same host incurs large overheads in memory copy and the kernel’s TCP stack. Existing solutions such as shared-memory networking and RDMA have their own limitations, including insufficient memory isolation and limited scalability. This paper presents PipeDevice, a new system for low overhead intra-host container communication. PipeDevice follows a hardware-software co-design approach — it offloads data forwarding entirely onto hardware, which accesses application data in hugepages on the host, thereby eliminating CPU overhead from memory copy and TCP processing. PipeDevice preserves memory isolation and scales well to connections, making it deployable in public clouds. Isolation is achieved by allocating dedicated memory to each connection from hugepages. To achieve high scalability, PipeDevice stores the connection states entirely in host DRAM and manages them in software. Evaluation with a prototype implementation on commodity FPGA shows that for delivering 80Gbps across containers PipeDevice saves 63.2% CPU compared to kernel TCP stack, and 40.5% over FreeFlow. PipeDevice provides salient benefits to applications. For example, we port baidu-allreduce to PipeDevice and obtain <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$\sim 2.2\times $ </tex-math></inline-formula> gains in allreduce throughput.
Authors
- Zhixiong Niu (ORCID: https://orcid.org/0000-0001-6947-9740)
- Ran Shu (ORCID: https://orcid.org/0000-0002-2021-4917)
- Dongsu Han (ORCID: https://orcid.org/0000-0001-6922-7244)
- Hong Xu (ORCID: https://orcid.org/0000-0002-9359-9571)
- Qiang Su (ORCID: https://orcid.org/0000-0002-4482-6248)
- Yongqiang Xiong (ORCID: https://orcid.org/0000-0003-4175-0097)
- Chun Jason Xue (ORCID: https://orcid.org/0000-0002-6431-9868)
- Peng Cheng (ORCID: https://orcid.org/0000-0003-4014-4757)
Institutions
- Korea Advanced Institute of Science and Technology (KR)
- Chinese University of Hong Kong (HK)
- Microsoft Research Asia (China) (CN)
- Mohamed bin Zayed University of Artificial Intelligence (AE)
Publication Details
- Journal
- IEEE Transactions on Networking
- Published
- 2025-01-22
- DOI
- https://doi.org/10.1109/ton.2024.3520210
- Primary Topic
- Interconnection Networks and Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Chinese University of Hong Kong