Scalable Kernel TCP Design and Implementation for Short-Lived Connections

Author:

Lin Xiaofeng1,Chen Yu2,Li Xiaodong3,Mao Junjie2,He Jiaquan2,Xu Wei2,Shi Yuanchun2

Affiliation:

1. Sina Corporation, ZHIHU Corporation, Beijing, China

2. Tsinghua University, Beijing, China

3. Sina Corporation, Beijing, China

Abstract

With the rapid growth of network bandwidth, increases in CPU cores on a single machine, and application API models demanding more short-lived connections, a scalable TCP stack is performance-critical. Although many clean-state designs have been proposed, production environments still call for a bottom-up parallel TCP stack design that is backward-compatible with existing applications. We present Fastsocket, a BSD Socket-compatible and scalable kernel socket design, which achieves table-level connection partition in TCP stack and guarantees connection locality for both passive and active connections. Fastsocket architecture is a ground up partition design, from NIC interrupts all the way up to applications, which naturally eliminates various lock contentions in the entire stack. Moreover, Fastsocket maintains the full functionality of the kernel TCP stack and BSD-socket-compatible API, and thus applications need no modifications. Our evaluations show that Fastsocket achieves a speedup of 20.4x on a 24-core machine under a workload of short-lived connections, outperforming the state-of-the-art Linux kernel TCP implementations. When scaling up to 24 CPU cores, Fastsocket increases the throughput of Nginx and HAProxy by 267% and 621% respectively compared with the base Linux kernel. We also demonstrate that Fastsocket can achieve scalability and preserve BSD socket API at the same time. Fastsocket is already deployed in the production environment of Sina WeiBo, serving 50 million daily active users and billions of requests per day.

Funder

National High Technology Research and Development Program of China

Natural Science Foundation of China

National Science and Technology Major Project of China

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference42 articles.

1. Haproxy. http://haproxy.1wt.eu/. Haproxy. http://haproxy.1wt.eu/.

2. http_load - multiprocessing http test client. http://www.acme.com/software/http_load/. http_load - multiprocessing http test client. http://www.acme.com/software/http_load/.

3. Hypertext transfer protocol -- http/1.0. http://tools.ietf.org/html/rfc1945. Hypertext transfer protocol -- http/1.0. http://tools.ietf.org/html/rfc1945.

4. Lock statistics. https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/lockstat.txt. Lock statistics. https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/lockstat.txt.

5. Tcp syn flooding attacks and common mitigations. http://tools.ietf.org/html/rfc4987. Tcp syn flooding attacks and common mitigations. http://tools.ietf.org/html/rfc4987.

Cited by 24 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Transparent network acceleration for big data computing in Java;2023 IEEE 22nd International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom);2023-11-01

2. SegaNet: An Advanced IoT Cloud Gateway for Performant and Priority-Oriented Message Delivery;Proceedings of the 7th Asia-Pacific Workshop on Networking;2023-06-29

3. Light: A Compatible, high-performance and scalable user-level network stack;Computer Networks;2023-06

4. Highly Concurrent TCP Session Connection Management System on FPGA Chip;Micromachines;2023-02-03

5. Performance Benchmarking of the QUIC Transport Protocol;2023 IEEE 20th Consumer Communications & Networking Conference (CCNC);2023-01-08

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3