Cloudflare
Cloudflare logoCloudflare · Feature trail

TCP Port Sharing Behavior

7 posts · Dec 2012 – Sep 2024

What this trail covers

Cloudflare's understanding and utilization of Linux's conntrack subsystem has evolved from avoiding it for simplicity to actively investigating its intricacies for new product needs. This includes understanding its state management, capacity limits, and the implications of its behavior when full, such as implicit packet drops and EPERM errors for UDP flows. The company is exploring its use in containerized environments and the nuances of its strict vs. loose modes. This post details how conntrack is used to manage TCP port sharing behavior, particularly in scenarios with a large number of bound TCP sockets, and how increasing the LHTABLE size and binding to ANY_IP addresses for TCP traffic resolved latency issues.

All Cloudflare trails