Free — no signup required

Introduction: When "Fast Enough" Isn't

2 min read

Hitting the Speed Wall

For 99% of applications—web browsing, streaming video, checking email—the standard Linux networking stack is perfectly fast enough. Packets arrive, the operating system processes them, and your application gets its data. Nobody notices the overhead.

But what if you are a high-frequency trading firm where a microsecond delay means losing millions of dollars on a trade? What if you are a telecommunications provider routing 5G traffic for an entire city, or a cloud provider running a hyperscaler data center where a single server must forward 100 gigabits of traffic per second?

When you start pushing tens of gigabits (10Gbps, 40Gbps, 100Gbps+) per second, the standard way Linux handles packets becomes the bottleneck—not the hardware, not the cable, but the software path the packet travels through the operating system.

Why the Standard Stack Struggles

Every single packet that arrives at your Network Interface Card (NIC) triggers a hardware interrupt—a signal that forces the CPU to stop whatever it is doing, save its current state, switch context into the kernel, process the packet headers, copy data from kernel memory to user-space memory, and then switch back. This context-switching overhead is tiny for a single packet. But at 10 million packets per second, your CPU spends the majority of its time just managing interruptions rather than running your application.

The standard Linux networking stack was designed for correctness, security, and generality—not for raw throughput at extreme packet rates. It passes packets through multiple layers (NIC driver → kernel socket buffer → TCP/IP stack → system call interface → user-space application), each adding latency and CPU cycles.

To go faster, we need to change the rules. The techniques in this lesson—kernel bypass, hardware offloading, smarter interrupt handling, and larger packet sizes—each attack a different part of this overhead problem.

This is one of 18 chapters

Every chapter is free — Kubernetes, Terraform, SRE, distributed systems, and more — with fast daily review built in.

Sign up free