Grafting sockets for fast container networking
Grafting sockets for fast container networking
复制标题
DOI:
10.1145/3230718.3230723
复制
发表时间:
2018-07
期刊:
影响因子:
--
通讯作者:
Ryo Nakamura;Y. Sekiya;Hajime Tazaki
中科院分区:
文献类型:
--
作者:
Ryo Nakamura;Y. Sekiya;Hajime Tazaki
This paper proposes a novel approach for fast container networking that enables applications in containers to utilize host network stacks directly with proper access control. Our approach, called socket-grafting, offers a new socket-layer communication channel by grafting sockets in containers onto sockets in host network stacks. In contrast to recent approaches that make network stacks faster by using high-speed packet I/O techniques, socket-grafting makes container networking faster by bypassing a container's network stack and virtual interfaces. As a concrete implementation of socket-grafting, we designed AF_GRAFT, which is a new address family for the socket layer. AF_GRAFT performs interconnection between the two socket layers in the container and host network stacks. In this paper, we describe socket-grafting, AF_GRAFT design, and its implementation on Linux. Our evaluation results demonstrate that the proposed method doubled throughput and reduced latency by 23% compared with traditional NAT-based container networking, and improved the network performance of containerized HTTP servers and message queues.