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's interaction with socket binding can lead to unexpected source port rewriting, necessitating solutions like TCP_REPAIR or TCP Fast Open for scenarios involving packet rewriting and socket usage, particularly for soft-unicast address spaces.
All Cloudflare trails