The DPDK Engine: packet analysis and filtering at 100 GbE.

The DPDK Engine is the data plane that the Packet Sensor and the Packet Filter run on when a link carries more packets than the Linux kernel can handle. It takes the packets straight from the network card, on CPU cores of its own, analyzes them, and can forward and filter the traffic itself: as a bridge in the path, or as the next hop for traffic diverted by BGP. DPDK itself is part of Wanguard and Wansight, so there is nothing to compile; the engine is licensed as an add-on.

85 Mpps analyzed on one server in our lab · forwarding at line rate on 100–⁠200 GbE Mellanox/NVIDIA cards · $1,410 / year

The DPDK Engine takes packets from the network card’s receive queues on CPU cores of its own; distributor cores match the filtering rules and forward or drop each packet, worker cores analyze the traffic and report to the Console; the Linux kernel is not in the pathTHE NETWORK CARDReceive queuespackets from the linkTransmit queuesforwarded trafficLinux kernelnot in the pathDPDK Engineon CPU cores of its ownDistributor coresread · match the rulesforward or dropWorker coresgraphs · topsanomaly detectionpacket dataDroppedwhat a rule matchesConsolegraphs · anomaliesrules and countersFour forwarding modesreceive only · bridge · bridge in the card · next hopDPDK itself is part of the software: nothing to compile
  1. The network card hands its packets to the engine.The engine reads the card’s receive queues itself, on CPU cores of its own. The Linux kernel is not in the path.
  2. Distributor cores read the packets.They match each one against the filtering rules, then forward it or drop it.
  3. Worker cores do the analysis.Graphs, tops and anomaly detection, from the packet data the distributor cores pass on.
  4. The Console shows the result.The traffic, the anomalies, the rules with what each one dropped, and the engine’s own counters.
packets inforwarded traffic and statisticsdropped by a filtering rule

Who needs it

The engine is an add-on for one job: processing packets at rates the kernel cannot reach. Detection and mitigation from flows never need it.

A good fit

The DPDK Engine fits when

  • A Packet Sensor has to analyze a 40 or 100 GbE link in full, or tens of millions of packets per second, on one server.
  • A Packet Filter stands in the path of a fast link and has to forward and filter every packet: in-line mitigation.
  • A scrubbing server is the next hop for traffic diverted by BGP and should send the clean traffic back itself, to a gateway or through GRE tunnels.
  • One server should watch or bridge several ports under one Sensor license.
Not needed

You can do without it when

  • You work from flows. A Flow Sensor and a Flow Filter read what the routers export and never touch a packet.
  • libpcap, PF_RING or Netmap keep up with your link. A Packet Sensor on these capture engines needs no extra license.
  • You want everything the kernel firewall can do: it also matches payload content and countries, it can rate-limit, and the kernel can route.
  • Other software on the server has to use the same ports. The engine takes its ports for itself.

One process: analysis, forwarding and filtering

A port of the network card can serve one process only. So on the engine, a Packet Sensor and a Packet Filter that share a port run as one: the Filter works inside the Sensor, on the same packets, and the two need one DPDK Engine license, not two.

Analysis that scales with cores

The Packet Sensor’s graphs, tops and anomaly detection are computed on worker cores, and more packets per second take more cores. One instance reads several ports, looks inside GRE and VXLAN tunnels, and runs several packet captures at once.

The Packet Sensor →

Forwarding without the kernel

The engine moves the traffic between ports itself: as a transparent bridge, as a bridge inside the network card, or as the next hop for diverted traffic, with GRE tunnels for the way back. A single port can carry both sides of a bridge, as two VLANs.

The four forwarding modes →

Filtering in the data plane

The Packet Filter’s rules are enforced by the built-in dataplane firewall before a packet is forwarded, and cards with the DPDK Flow API can also drop in hardware. The rules follow the detection in under a second, and each one counts the packets and bits it stopped.

Filters →

Four forwarding modes

The mode says what the engine does with a packet once it has looked at it. It is a setting of the instance, and both a Packet Sensor and a Packet Filter can use any of the four.

ModeThe engineTypical useCapacity
DisabledReceives, analyzes and reports. It transmits nothing.A passive Packet Sensor on a mirror port or a TAP. Attacks are dropped elsewhere: by a blackhole, by Flowspec routers or by another server.that of the CPU cores: see the lab figures below
Transparent BridgeForwards each frame unchanged to the partner port, or drops it when a rule matches. The fastest of the modes that forward in software.In-line mitigation: a layer-2 bridge, with no address to configure on either side.that of the CPU cores: around 50 Mpps between two 100 GbE ports on one Intel Xeon 6212U
Hardware BridgeThe network card forwards between its two ports by itself and drops what the rules name. A 1-in-N sample reaches the software, for the graphs and the detection.In-line mitigation at 100 and 200 GbE.line rate on 100 and 200 GbE links, on Mellanox/NVIDIA cards
IP ForwardingAnswers ARP, NDP and ping on its ports like a router, and passes each packet on to a gateway or, per prefix, into a GRE tunnel.Scrubbing by BGP diversion: the server is the next hop for the attacked prefix and sends the clean traffic back.that of the CPU cores

With a single port, the two sides of a bridge can be two VLANs of that port. For the way back through GRE, each prefix can have up to four tunnel endpoints: the engine shares the traffic between them and, with keepalives on, leaves out one that stops answering. The forwarding modes, in the docs →

Sized by packets per second

The engine does the same work for a 64-byte packet as for a 1,518-byte one, so a server is sized for the packet rate of its link, not for the bit rate. A full 100 GbE link is about 8 million packets per second at 1,518 bytes, 23 million at 512 bytes and 149 million at 64 bytes.

Analyzed without loss in our lab, by a passive Packet Sensor on one server

TrafficPackets per secondEngine cores
100 Gbit/s of 1,518-byte frames8.1 Mpps1 Distributor + 2 Workers
100 Gbit/s of 512-byte frames23.3 Mpps2 Distributors + 3 Workers
64-byte frames30.9 Mpps2 Distributors + 4 Workers
64-byte frames85 Mpps5 Distributors + 12 Workers

The server: one 24-core AMD EPYC 9224 at 2.5 GHz with an NVIDIA ConnectX-7 card. The Packet Sensor: 20 decoders, the Basic stats engine, no forwarding. Forwarding and the rules of a Packet Filter add work that these figures do not include. For planning, count one Distributor core for every 15 Mpps and one Worker core for every 5 Mpps, and leave one core to the operating system.

What the server needs

  • Processor. Any Intel processor from Sandy Bridge on, or an AMD Zen. Many cores serve the engine better than a few fast ones, and it should run on the socket the network card is attached to.
  • Memory. At least 8 GB reserved as 1 GB hugepages, more on busy systems.
  • Network card. Mellanox and NVIDIA ConnectX cards run on the Linux distribution’s own drivers. Most Intel and Broadcom cards from 10 to 100 GbE work as well.
  • Software. DPDK itself comes inside Wanguard and Wansight. The guide walks through the hugepages, the ports and the core plan, step by step.
  • Tuning. The Console shows the engine’s own counters: packets received and forwarded, and how well each stage keeps up. A core plan is adjusted from what they say.

Sizing the engine, in the docs →Build your own appliance →Full system requirements →

What it asks in return

The engine is fast because it takes the hardware for itself. These are the things to know before you choose it.

The user guide compares the three ways of mitigating on a server, the kernel, Flowspec and DPDK, in one table. Choosing a method of DDoS mitigation, in the docs →

  • The ports belong to the engine. One process uses them. The kernel and the other programs on the server do not see their traffic.
  • Its cores are always busy. The engine polls the card all the time instead of waiting for its interrupts, so its cores run at 100% whatever the traffic, and the server draws more power.
  • The set-up takes more care. Hugepages are reserved at boot, every core gets a role, and the plan is tuned from the Console’s counters. During a trial our engineers help with it.
  • Fewer kinds of rules than the kernel firewall. The dataplane firewall matches addresses, ports, protocols, fragments, packet lengths, TTLs and TCP flags. Payload content, countries and rate limits are the kernel firewall’s.
  • In the path it is a bridge, not a router. As the next hop for diverted traffic it forwards between its ports, without being a full router.
  • The hardware bridge has limits of its own. It needs a Mellanox or NVIDIA card. The card enforces only the kinds of rules its flow engine supports, and the Sensor and the Filter analyze a sample of the traffic.

What a license covers

A DPDK Engine license is $1,410 a year, on top of the license of the component that runs on the engine. A Packet Filter that runs inside a DPDK Packet Sensor shares the Sensor’s engine and its license. libpcap, PF_RING and Netmap need no such license.

SetupWhat runs on the engineLicensesPer year
Packet SensorA Wanguard Packet Sensor on one port of its server or on several: graphs, accounting and DDoS detection.Wanguard Sensor $595 + DPDK Engine $1,410$2,005
Wansight Packet SensorThe same Sensor without DDoS detection.Wansight Sensor $345 + DPDK Engine $1,410$1,755
In-line or scrubbing serverA Packet Sensor with a Packet Filter running inside it: detection, forwarding and filtering on one engine.Wanguard Sensor $595 + Wanguard Filter $995 + one DPDK Engine $1,410$3,000
Packet Filter aloneA Packet Filter on an engine of its own, started by a Sensor that runs elsewhere.Wanguard Filter $995 + DPDK Engine $1,410, and the license of that Sensor$2,405 + the Sensor

Licenses are yearly; two, three or four years paid in advance cost 5, 10 or 15% less. DPDK Engine licenses, in the store →  ·  Pricing in full →

Try the full product on your own hardware

Every feature, any number of servers, 30 days — by requesting a free evaluation license. Our engineers help you set it up.

Request a trial key
Debian 11–13Ubuntu 20–26RHEL 9–10RockyAlmaLinux
1

Request a key

Fill in the trial form. We review it and email download links, documentation and a 30-day license within 24 hours.

2

Install on a spare Linux server

Any 64-bit Intel/AMD box or VM. Packages install under /opt in minutes; size the hardware with the system requirements.

3

Run it for real, then buy

Ask us anything during the trial. When it earns its keep, buy licenses in the online store — the trial installation carries on with the new key.

Already running Wanguard?

The latest release is Wanguard 9.0. Upgrading from 8.x? Read the release notes first.