The quantum state of a TCP port
Mar 20, 2023Jakub Sitnicki

Summary
This post explores the complex rules governing TCP port sharing in Linux, detailing how different combinations of local IP addresses, ports, and the use of SO_REUSEADDR affect socket binding and connection establishment. It provides a deep dive into the kernel's internal mechanisms for managing network ports and sockets, which is crucial for understanding the underlying infrastructure that supports Cloudflare's global network and its ability to handle massive amounts of traffic efficiently and reliably.
More from the DNS Infrastructure & Naming Conventions trail
- The keys to the Internet change on October 11, 2026. Are you ready?
- 1.1.1.1 now supports post-quantum DNSSEC, all 2,420 bytes of it
- How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache
- BGP ORIGIN attribute manipulation and its impact on the Internet
- Cloudflare Internal DNS is now generally available