The 100GbE Datapath Trade-Off: XDP, DPDK, AF_XDP, and the Whiteboard Monster

AI-generated editorial image of a glass whiteboard crowded with unlabeled system diagrams in a server lab.

Stepping back two paces from the floor-to-ceiling glass whiteboard in our lab, marker in hand, I realized we had physically run out of glass. From the ceiling down to the aluminum tray, the surface was an unbroken maze of packet parsing state machines, lockless ring buffers, NUMA nodes, and DMA ring descriptors. We had spent four hours mapping an ultra-low-latency datapath for 100GbE line-rate processing, and staring at that dense thicket of arrows, one cold truth hit me: we were designing an over-engineered monster.

The problem was not ambition. It was treating every possible optimization as a day-one requirement. Enough arrows can make a whiteboard look convincing. They do not make the system maintainable.

Start with the workload, not the datapath religion

My starting vote is eBPF/XDP, not because it wins every benchmark, but because I want evidence before accepting a more specialized operating model. First establish the ordinary Linux path as a reference. If that meets the contract, congratulations: you can stop designing.

Define that contract explicitly: packet-size distribution, offered load, burst shape, acceptable loss, tail-latency target, and CPU budget. “100GbE” names the link, not the application requirement. The same distinction drives my discussion of why bandwidth is not the networking contract.

XDP is a baseline, not free compute

Native XDP runs in the driver receive path; generic XDP is a different execution mode. Neither means “no CPU required.” Kernel XDP processing still consumes host CPU, and queue placement and contention belong in the evaluation. The kernel’s redirect documentation describes driver processing within NAPI and exposes tracepoints for diagnosing redirect drops.[2]

The eBPF verifier checks properties such as valid memory access and helper arguments. That is valuable safety machinery, not proof of correct packet policy or acceptable latency.[1] My preference is narrow parsing and explicit decisions, not smuggling an entire application into the earliest hook because the hook is fashionable.

DPDK buys control, not a latency guarantee

DPDK poll-mode drivers bypass the traditional kernel network stack and expose descriptor-driven packet processing to userspace. Its documentation emphasizes core/queue relationships, batching, memory pools, and NUMA locality.[3] Those are engineering responsibilities, not implementation trivia.

I would not sign off on “deterministic latency” because somebody selected DPDK. Require measured tail behavior under the intended load and resource placement. A fast average is not a service-level guarantee.

Busy polling can consume dedicated processing capacity even when useful work is scarce. But “every DPDK application spins forever at 100%” is also too convenient: DPDK documents monitor, pause, and frequency-scaling power-management schemes, with platform and driver qualifications.[4] Evaluate the actual configuration, including its latency/power trade-off.

AF_XDP is not ordinary sockets with magic rings

AF_XDP uses the socket API for setup, but packet handling involves userspace UMEM and RX, TX, FILL, and COMPLETION rings. That is not ordinary TCP/UDP socket semantics. Receive delivery also depends on matching the socket’s device and queue to the XDP redirect configuration.[5]

Zero-copy requires NIC/driver support. Binding with XDP_ZEROCOPY forces that mode or fails; otherwise the kernel can fall back to copy mode. Verify what actually ran before celebrating the benchmark.[5]

There is no universal AF_XDP “fragmentation ceiling.” Multi-buffer packet support and zero-copy segment limits are capabilities to query on the deployed combination. A packet spanning multiple buffers is not the same thing as IP fragmentation and reassembly. Define which case your test exercises.[5]

Offload the right work, not accountability

Hardware offload is not one architecture. DPDK’s generic flow API describes matching, actions, and counters, while explicitly qualifying device compatibility; no implementation supports every feature combination.[6] A common API helps portability. It does not make capabilities identical.

I would not budget zero host CPU for an entire offloaded service. Ask who handles rule updates, misses, exceptions, and recovery. Likewise, do not assume every SmartNIC requires FPGA synthesis or guarantees vendor captivity. Review the actual programming model, toolchain, and exit cost. “It runs in hardware” is a placement decision, not an operations plan.

A practical gate before adding another box

Consider a hypothetical UDP filtering service on a 100GbE interface. Start with a reference implementation and a small XDP policy, then compare alternatives against the same traffic and policy. These are evaluation steps, not results from that lab session:

  • Fix the contract: define packet mixes, bursts, loss allowance, latency percentiles, and available cores.
  • Record the platform: NIC, firmware, driver, kernel, queue configuration, and NUMA placement.
  • Verify execution: confirm XDP mode or AF_XDP copy/zero-copy mode; query relevant multi-buffer support.
  • Test ugly cases: include state exhaustion, consumer stalls, malformed traffic, and a separately defined IP-fragment policy.
  • Demand recovery: rehearse policy rollback and link/device recovery, with counters explaining loss.

This is the same operational instinct behind counting the cost of topology changes: an optimization earns its place only after transition and recovery costs are included.

The whiteboard needs an eraser

I still favor XDP as the first optimization to evaluate here. I would move toward AF_XDP, DPDK, or hardware offload when profiling identifies a specific shortfall and the alternative justifies its operational bill.

The strongest architecture review question is not “which option is fastest?” It is “what evidence would make us remove this component?” If nobody can answer, the monster already has a maintenance contract.

Topics / hashtags: #Networking #LinuxKernel #eBPF #DPDK #SystemsArchitecture #LowLatency

Originally posted on LinkedIn: Join the engineering discussion.

References

  1. Linux kernel: eBPF verifier
  2. Linux kernel: XDP redirect and debugging
  3. DPDK: Poll Mode Driver
  4. DPDK: Power Management
  5. Linux kernel: AF_XDP
  6. DPDK: Generic flow API