Measuring characteristics of TCP connections at Internet scale
Oct 29, 2025Suleman Ahmad, Peter Wu

Summary
This post shares aggregate insights about TCP connection characteristics observed through Cloudflare's global CDN. It details the methodology for collecting and analyzing socket-level metadata from the Linux kernel's TCP_INFO struct, focusing on connections that close gracefully with a FIN packet and have at least one successful HTTP request. The analysis presents empirical data on packet counts (response packets, and packet ratios between client and server) and bytes sent, highlighting the heavy-tailed nature of internet traffic and differences across HTTP protocol versions. This data is intended to inform simulations and provide a deeper understanding of real-world network behavior.
More from the Data Infrastructure & Analytics trail
- Introducing Cloudflare Basin: an open, serverless data platform, now generally available
- Introducing the Billable Usage API: programmatic cost visibility for Cloudflare
- Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402
- How we built Cloudflare's data platform and an AI agent on top of it
- Iran's Internet is partially restored, Cloudflare Radar data shows