Cloudflare architecture and how BPF eats the world
May 18, 2019Marek Majkowski

Summary
This post details Cloudflare's extensive use of eBPF (extended Berkeley Packet Filter) within its Linux-based edge network infrastructure. It highlights how eBPF is employed for critical functions such as volumetric DoS mitigation (XDP eBPF), layer 4 load balancing (XDP eBPF), and sophisticated socket filtering for UDP traffic. The post also touches upon custom kernel patches and iptables modules (TPROXY) used to overcome Linux networking limitations for advanced dispatching and handling of high volumes of traffic, showcasing a deep dive into kernel-level optimizations for network performance and security.
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