A packet-filtering platform is not purchased in packets per second alone. It consumes servers, CPU time, memory, development effort and operational attention. Two dataplanes that reach the same throughput can have very different costs once monitoring, routing, maintenance and spare capacity are included.
XDP and DPDK represent different approaches to fast packet handling. Neither is universally the cheaper or faster architecture.
Two models of packet processing
Native XDP runs a verified eBPF program early in a compatible Linux receive driver. It can reject traffic without building the full networking-stack representation needed by later processing, or pass accepted traffic through ordinary Linux networking. The original XDP research describes this integration with the operating system.
DPDK provides user-space packet I/O and processing libraries. Its poll-mode driver documentation describes queue ownership, burst operations and the run-to-completion and pipeline models. Applications often dedicate logical cores to receive and process packets with low scheduling overhead. Polling behavior varies by application; a permanent busy loop is not a universal requirement.
There is also overlap between the architectures. Linux AF_XDP provides a way to deliver selected traffic to user space. DPDK has an AF_XDP driver, so the choice is not always kernel-only versus complete kernel bypass.
Pay for useful work, not idle capacity alone
Imagine two fictional deployments. One reserves four cores continuously for packet I/O, while the other scales receive work with traffic and uses idle CPU for other services. The first may be attractive for a dedicated appliance that runs at high utilization. The second may be economical on a mixed-use server with unpredictable demand.
The arithmetic depends on what the remaining cores can actually do. CPU isolation, housekeeping threads, NUMA placement and application scheduling all affect whether unused capacity is genuinely available. A core saved during quiet periods has little financial value if the machine cannot safely consolidate another workload onto it.
Power measurements matter too. Do not infer watts from CPU utilization percentages alone. Compare whole-system consumption at idle, normal load and the design workload, including networking hardware.
The policy is part of the benchmark
A receive-and-drop loop measures a narrow part of a production dataplane. Real filtering may involve policy selection, counters, bounded state, packet validation and forwarding. The cost depends on the policy and traffic distribution as well as I/O.
Compare like with like: equivalent security behavior, accepted-traffic delivery, packet sizes, queue layout, CPU frequency and hardware. Record sustained throughput and loss over repeated runs, not the best short sample. The historic XDP paper is evidence about its own experimental configuration, not a ranking of every modern NIC, kernel and DPDK application.
Memory locality is particularly important when network queues and processing cores span sockets. DPDK's driver guide discusses local allocation; Linux's network scaling documentation describes queue steering. Both architectures still have to move data through physical hardware.
Operations change the business case
A Linux-integrated dataplane may reuse established routing, provisioning, interface monitoring and kernel lifecycle processes. DPDK may fit an organization that already maintains user-space switches or custom network appliances. Depending on the driver and architecture, managing device ownership, memory pools and recovery can add work or provide valuable control.
Evaluate how policy changes are validated, how counters survive restarts, whether failure leaves traffic flowing or blocked, and how upgrades affect availability. Development time and emergency maintenance are costs even if the software is free.
A defensible economic comparison divides the monthly cost of the complete deployment by the sustained amount of legitimate service it can preserve at the required reliability level. Include reserve nodes, engineering time and power. Do not claim a winner from peak packet-drop throughput alone. The best architecture is the one whose operational and security requirements remain satisfied at the lowest sustainable total cost.

