How We Built a 400 Gbps DDoS Filter — and Released It as Open Source

FastNetMon

November 27, 2026

Home ‣ FastNetMon Blog ‣ How We Built a 400 Gbps DDoS Filter — and Released It as Open Source

For more than a decade, we've been pushing the boundaries of high-performance DDoS detection and automated mitigation. With FastACL, we turned our engineering attention to the next logical step: the filtering data plane itself.

FastNetMon already supports a range of mitigation workflows, from RTBH and BGP FlowSpec to traffic diversion to scrubbing centres. Each has its place, and there is no single correct response for every network or every attack.

But we saw a clear need to move beyond the filtering capabilities of conventional routing infrastructure. High-performance, dedicated packet filtering was the natural next step in the evolution of our DDoS defence technology.

Inline DDoS filtering itself, of course, is not a new idea. Commercial appliances and scrubbing platforms have done it for years. Yet much of that technology remains locked inside proprietary black boxes, leaving network engineers with limited visibility into how their traffic is actually classified and filtered.

We believed network operators deserved a better alternative.

The engineering challenge we took on was specific:

Could we build a high-performance filtering data plane entirely in software, push it to hundreds of millions of packets per second on commodity server hardware — and make the filtering engine available as open source?

An open-source alternative would give network engineers the freedom to inspect the engine, benchmark it on their own hardware, integrate it with their existing infrastructure and understand its limitations.

The obvious problem to solve was performance.

This is the story of how we approached it, and how we built FastACL.

Putting a server directly in the traffic path

The project started internally under the code name FastACL.

The engineering objective was straightforward to describe and considerably harder to implement: take standard x86 server hardware and place it directly in a high-speed network path.

Every packet travelling through that path would encounter the software data plane. The system would classify it against the active mitigation policy, discard matching attack traffic and forward permitted packets.

That changes the nature of the problem completely.

An out-of-band detection system can analyse exported telemetry. An inline system has no such luxury: when the network is being hit, the filter is being hit too.

And when you're talking about 100 GbE and beyond, there is very little time available per packet.

For the packet-processing foundation, we used FD.io VPP and DPDK.

VPP provides a high-performance software data plane organised around a graph of packet-processing nodes. Rather than processing each packet through an entire pipeline individually, it processes vectors of packets together, making more efficient use of the CPU and its caches.

DPDK provides the high-speed packet I/O infrastructure needed to move traffic between the network interfaces and the software data plane.

This gave us a foundation on which to build the part specific to DDoS mitigation: the filtering engine.

Building the first 100G test lab

Our original device under test was based on a single-socket AMD EPYC 7742, with 64 physical cores, 128 threads, 256 GB of DDR4-3200 memory and a Mellanox ConnectX-5 100 GbE NIC.

Traffic came from a separate machine built around an AMD Ryzen 7 5800X, 32 GB of RAM and another ConnectX-5 100G interface.

We used TRex to generate traffic across physical network links rather than relying on a synthetic software-only benchmark.

The traffic generator is an important part of an experiment like this. If it cannot saturate the link, you cannot establish whether the device under test has reached its actual limit.

Our Ryzen-based traffic generator was capable of producing approximately 142 million packets per second and saturating the 100 GbE link.

We also established a baseline for VPP without active filtering rules. Under the tested forwarding workload, it processed approximately 120–126 Mpps, with an aggregate processing measurement of 121.26 Mpps.

That provided a reference point for evaluating the filtering engine.

It is worth noting that forwarding and dropping are different workloads. A packet that is dropped does not need to traverse the complete forwarding and transmission path. So the performance of the filtering engine cannot be compared directly with the forwarding baseline as though filtering were simply an additional operation on top of identical processing.

One million filtering rules

Forwarding packets quickly is one thing.

Classifying them while maintaining a very large mitigation policy is another.

In our June tests, we loaded FastACL with 1,000,000 active filtering rules and subjected it to sustained traffic generated using TRex's fwd-flood-32 profile.

The result:

140.90 million packets per second processed and dropped, representing 99.19 Gbps on the wire.

The filter was operating close to the capacity of the 100 GbE interface while enforcing a million-rule configuration.

Receive Side Scaling, or RSS, distributed the incoming packets across receive queues serviced by 32 physical CPU cores.

The significance of this result was not simply that a software data plane could handle 100G traffic. VPP and other high-performance networking frameworks had already demonstrated that.

The important part was that the filtering engine was active, the rule set contained one million entries, and the traffic profile placed substantial pressure on the system's packet-processing capacity.

The result demonstrated that large-scale classification and high packet rates could coexist on conventional server hardware.

Why we care so much about packets per second

A headline like "400 Gbps" is easy to understand.

For a packet-processing system, it is also incomplete.

Imagine two traffic streams consuming the same amount of bandwidth. One consists of relatively large packets. The other consists of tiny packets.

The number on the link may be identical, but the amount of work the CPU has to perform can be radically different.

Every packet has to be received, parsed, classified, acted on and either forwarded or discarded. A small packet still requires many of the same processing operations as a much larger one.

As packet size falls, therefore, packets per second becomes a critical stress test.

This matters particularly for DDoS. Attackers do not have to optimise their traffic for the convenience of the mitigation system.

There is also an important detail about how packet sizes are measured.

A 100 GbE interface carrying minimum-sized Ethernet frames has a theoretical capacity of approximately 148.8 million packets per second.

In our original TRex experiments, the traffic profile constructed 64-byte packets before the Ethernet frame check sequence was added. Including the four-byte FCS, the Ethernet frame was 68 bytes. Accounting for the preamble and interframe gap, each packet occupied 88 bytes of transmission capacity.

That gives a theoretical maximum of approximately 142 Mpps for this particular profile.

Our measured 140.90 Mpps was therefore very close to the actual line-rate limit of the workload.

This distinction is easy to overlook, but it matters when comparing packet-processing benchmarks across different systems.

Bandwidth, packet rate, packet size and the measurement convention all need to be understood together.

The real problem is classification

A DDoS filter that can process packets extremely quickly but becomes unusable when you install a substantial mitigation policy isn't particularly useful.

The classifier is therefore one of the most important pieces of FastACL.

The original implementation used an algorithm called Tuple Space Search, or TSS.

The basic idea is to organise rules according to their mask shapes. A mask shape describes which packet fields a rule constrains and which prefix lengths it uses, rather than the specific values it matches.

For example, a million rules matching different /24 destination prefixes can all share the same mask shape.

Rules matching /32 destinations would belong to a different shape. Rules additionally constraining a source prefix or transport protocol could introduce others.

In the original FastACL classifier, each distinct shape had its own hash table.

Instead of examining a million rules individually, the classifier could mask the relevant packet fields and perform a hash lookup for each distinct shape.

The important consequence is that the number of rules alone does not determine how much classification work is required.

A million rules with a small number of mask shapes can be considerably cheaper to search than a much smaller rule set containing a wide variety of shapes.

And that is particularly relevant to DDoS mitigation, where large numbers of rules can share similar structural characteristics.

Why not just use VPP's existing ACL classifier?

VPP already has an ACL plugin.

Rather than assuming that a custom classifier would perform better, we tested what would happen if we reused VPP's existing classification engine.

The stock VPP ACL plugin uses a variation of Tuple Space Search called TupleMerge.

With TupleMerge, rules with different but compatible masks can be grouped into shared classification partitions. This reduces the number of hash lookups required when a rule set contains many distinct shapes.

The trade-off is that a lookup can return candidate rules that require additional verification against their original matching conditions.

Our original FastACL implementation used plain TSS, keeping separate hash tables for exact mask shapes.

To compare the implementations, we integrated the stock VPP ACL classifier into the same packet-processing node and tested both engines with identical rules and traffic.

The experiment used five rules sharing a single mask shape, running across 32 worker cores on our AMD EPYC 7742 platform.

The results were striking.

Classification engineCPU cycles per packetThroughput
Original FastACL plain TSS82142 Mpps
Stock VPP ACL engine2,352Approximately 29 Mpps

Under this particular workload, the original FastACL classifier reached the link's packet-rate ceiling, while the stock ACL engine was limited by its processing cost.

This is not a claim that plain TSS is universally superior to TupleMerge.

Nor does it mean that every VPP ACL workload would produce the same results.

The experiment compared two implementations under a specific filtering workload. The stock VPP ACL engine provides general-purpose functionality, while our original classifier was considerably narrower in scope.

What the experiment demonstrated was the value of designing a classifier around the characteristics of the traffic and policies it actually needs to handle.

A million rules are not necessarily a million problems

We also measured what happens when the diversity of rule shapes increases.

Using approximately one million filtering rules and 32 worker cores, we progressively increased the number of distinct mask shapes in the original plain-TSS classifier.

The results revealed where the performance trade-off really was.

Distinct mask shapesClassification cycles per packetThroughput
177142.1 Mpps
4122142.1 Mpps
8171140.9 Mpps
16290138.2 Mpps
32538102.9 Mpps
641,09656.8 Mpps

With a handful of mask shapes, the filter maintained approximately 100 GbE line rate.

As the number of distinct shapes grew, the classifier had to perform more lookups. Eventually, that additional work exceeded the available processing budget and throughput declined.

This is why simply advertising support for a million filtering rules does not tell the whole story.

The structure of those rules matters.

For a network engineer evaluating a software-based DDoS filter, the number of installed rules is only one dimension of performance. The diversity of matching conditions, overlap between rules, traffic distribution and memory requirements are also important.

These experiments also illustrate the benefit of TupleMerge when the policy becomes more heterogeneous.

Plain TSS can be extremely efficient when there are relatively few distinct shapes. Merging compatible shapes can become advantageous when there are many.

Different workloads favour different trade-offs.

Making classification fast was only half the problem

Once classification became sufficiently cheap, another interesting question emerged.

Where was the rest of the CPU time going?

Our engineer Denys Haryachyy profiled the packet-processing pipeline during the 100G filtering experiments.

In one measured drop workload, the processing cost was approximately 346 CPU cycles per packet.

The breakdown looked like this:

Processing stageCPU cycles per packet
DPDK packet input193
FastACL classifier74
Ethernet input processing39
IPv4 input processing23
Packet disposal17
Total346

Only around 21% of the measured processing cost came from the classifier.

Receiving packets from the NIC and moving them through the VPP processing graph accounted for considerably more of the available CPU time.

This is an important observation because it changes where further optimisation effort is likely to pay off.

Even if we could make the classifier infinitely fast, the system would still need to receive the packet, process its headers and eventually dispose of or forward it.

An efficient algorithm is essential, but the performance of the complete data plane depends on much more than that algorithm.

Building a high-performance packet filter is a systems engineering problem.

Why adding more CPU cores isn't always the answer

The AMD EPYC 7742 gave us 64 physical CPU cores.

It would be tempting to assume that the best way to maximise performance was simply to use all of them.

But the relationship between CPU cores and packet-processing throughput is not that straightforward.

Incoming traffic first arrives in receive queues on the network interface. RSS distributes packets across those queues, and worker threads drain them.

If too much traffic lands in a particular queue, that queue can overflow even when other CPU cores still have processing capacity available.

In our original 100G experiments, we measured the following throughput while varying the number of workers:

Worker coresPacket rate
834 Mpps
1688 Mpps
26142 Mpps
32142 Mpps

With insufficient queues and workers, the system could not drain all the incoming traffic quickly enough.

Once the workload was distributed across 26 workers, it reached the packet-rate limit of the tested interface.

Adding another six workers provided additional processing headroom but did not increase measured throughput.

The bottleneck had moved from the processing of individual packets to the capacity and distribution of incoming traffic.

That distinction matters when scaling software data planes. Having enough aggregate CPU capacity is not sufficient if the hardware cannot distribute the workload effectively.

The optimisations that actually mattered

There is a long list of techniques associated with high-performance packet processing: batching, prefetching, inlining, loop optimisation, branch prediction and careful memory layout.

But implementing all of them indiscriminately does not necessarily produce a faster VPP plugin.

VPP already provides much of that infrastructure.

Its vector-processing architecture amortises the cost of invoking processing nodes across batches of packets. Much of the conventional work around efficient packet processing is already handled by the framework.

In further experiments on the EPYC 7742 platform, Denys measured the incremental benefits of several conventional data-plane optimisation techniques.

Some produced surprisingly little improvement in the tested processing path.

Two areas stood out: branch prediction and avoiding contention between CPU cores over shared cache lines.

Branch mispredictions carried a measured cost of approximately 25 CPU cycles. That might not sound significant, but it becomes expensive when an operation is repeated hundreds of millions of times per second.

Memory layout was another particularly important consideration.

For example, a packet filter needs counters. If multiple worker threads repeatedly update counters that share writable cache lines, the CPU's cache-coherency mechanisms can turn an apparently simple increment into a substantial source of contention.

Giving workers their own appropriately aligned counter storage avoids much of that problem.

In a dedicated counter-update microbenchmark, the difference between contended and isolated storage amounted to a factor of 57.

That does not mean FastACL became 57 times faster. It demonstrates how expensive a relatively small memory-layout mistake can be when many cores repeatedly modify shared data.

The lesson from these experiments is that performance engineering is not about accumulating as many optimisation techniques as possible.

It is about measuring where the system actually spends its time.

How the classifier evolved

The current FastACL Community implementation has evolved beyond the original plain-TSS classifier described in our June experiments.

It now supports both plain Tuple Space Search and TupleMerge, with TupleMerge enabled by default.

Rather than maintaining an entirely separate classification tuple for every exact mask shape, TupleMerge can group compatible rules under less restrictive masks. Candidate matches are then checked against the original rule conditions.

This allows the classifier to accommodate more diverse rule sets while preserving the intended filtering decisions.

Plain TSS remains available as a configuration option.

FastACL also incorporates a number of additional optimisations in its current classifier.

It uses compact hash keys where the rule structure permits them, reducing the amount of data involved in classification lookups.

It can carry the filtering action in the classifier result, allowing a straightforward drop decision to avoid another lookup in the rule pool.

And it uses rule precedence to terminate searches when the remaining tuples cannot produce a higher-priority match.

The current implementation therefore combines the underlying principles of the original classifier with techniques for handling a broader range of filtering policies efficiently.

The custom classifier remains an important part of FastACL, but it is no longer accurate to describe the project as simply a choice of plain TSS over TupleMerge.

The architecture has evolved.

From 100G to 400G

When we first showed FastACL publicly in June, the headline result was our million-rule filtering experiment: 140.90 Mpps and 99.19 Gbps on a single server.

By the time we announced FastACL Community on 25 September 2026, subsequent testing on a single AMD EPYC 7742-based platform had reached two further milestones:

  • 270 million packets per second using 64-byte packets.
  • 400 Gbps throughput across two 200 GbE interfaces using medium-sized packets.

These were separate benchmark conditions.

We are not claiming that the system simultaneously achieved 270 Mpps and 400 Gbps under an identical packet-size profile. Nor should the earlier million-rule benchmark be interpreted as establishing the same rule configuration for every subsequent test.

One result demonstrates high packet-processing capacity. The other demonstrates high bandwidth throughput.

For DDoS mitigation, both matter.

The engineering experiments along the way also highlight why those headline numbers cannot be attributed to a single clever algorithm.

Classifier efficiency, CPU cycle budgets, receive queues, RSS distribution, memory access and the underlying VPP processing pipeline are all part of the system.

The result is a software filtering engine capable of operating at a scale more commonly associated with specialised networking platforms.

And the hardware underneath it is conventional server hardware.

From a fast filtering engine to a usable mitigation system

Getting impressive numbers in a benchmark isn't enough.

To be useful to network engineers, the filter also needs a practical way to express and manage mitigation policies.

FastACL uses the BGP FlowSpec matching model.

Network engineers already familiar with FlowSpec will recognise its approach to describing traffic using combinations of network prefixes, protocols, ports and other packet characteristics.

FastACL Community supports the 12 advertised FlowSpec matching components for IPv4 and IPv6, based on RFC 8955 and RFC 8956.

These include source and destination prefixes, protocols, ports and port ranges, ICMP fields, TCP flags, packet length, DSCP and fragmentation flags.

The distinction is worth making: FastACL is not itself a BGP FlowSpec routing implementation.

It uses the FlowSpec matching model to describe filtering policies and executes those policies directly in its packet-processing data plane.

FastACL Community provides permit and drop actions, individual rule statistics, aggregate counters and packet sampling.

Sampling can take a copy of selected packets before the filtering action is applied. This means engineers can inspect sampled traffic even when the rule subsequently discards the original packet.

The filter supports both routed and bridged operation, with management interfaces exposed through VPP.

The binary API provides the appropriate control interface for automated rule management while traffic is flowing. CLI commands are also available for inspection and debugging.

These capabilities turn a fast packet classifier into something that can be integrated into a broader DDoS mitigation architecture.

FastACL does not have to use FastNetMon for detection

FastNetMon and FastACL fit together naturally.

FastNetMon can identify the attack and participate in generating the mitigation decision. FastACL can enforce the resulting filtering policy at packet level.

But FastACL is not dependent on FastNetMon for detection.

The architectural separation is important:

Telemetry → Detection and orchestration → Mitigation policy → FastACL

Meanwhile, network traffic passes through FastACL, where attack packets are dropped and permitted traffic continues towards its destination.

The detection and orchestration system operates independently of the filtering data plane.

FastNetMon can occupy that detection and orchestration role, but another system can do the same job.

An operator with an existing detection pipeline can integrate FastACL without having to replace that pipeline.

Equally, FastNetMon users can continue to use RTBH, BGP FlowSpec and other mitigation mechanisms where those approaches are appropriate.

FastACL adds another component to the architecture rather than requiring operators to abandon everything they already have.

And then we made it open source

FastNetMon has deep roots in open source.

FastNetMon Community has been available for more than a decade, helping network operators build high-performance DDoS detection workflows without making the detection engine itself another proprietary black box.

With FastACL Community, we are extending that philosophy into the filtering data plane.

High-speed packet-processing software is difficult to build. Software that needs to behave predictably while the network is actively under attack presents an additional challenge.

Across our experiments, we demonstrated filtering at hundreds of millions of packets per second, support for million-rule configurations and 400 Gbps throughput on a single commodity server platform.

On 25 September 2026, we released FastACL Community under the Apache License 2.0.

The classifier and filtering data plane are available for engineers to inspect, build, benchmark and integrate themselves.

That also means nobody has to take our benchmark graphs on faith.

Put it on different CPUs.

Try another NIC.

Load your own rule distributions.

Change the mask shapes.

Drive it from your own detection engine.

Experiment with different packet sizes and traffic distributions.

Find the limits.

That is one of the most valuable things about making this technology available as open source. Other engineers can investigate the same questions, reproduce experiments, discover new limitations and contribute improvements.

Where this leaves us

FastACL doesn't make every other DDoS mitigation mechanism obsolete.

It shouldn't.

RTBH remains a brutally effective tool when sacrificing one target protects an entire network.

FlowSpec remains extremely useful for distributing selective filtering policies through infrastructure that can enforce them.

External scrubbing remains essential when the size of an attack exceeds the capacity an operator can reasonably provision locally.

A good DDoS mitigation architecture will often use several of these approaches.

What FastACL adds is another option: a high-performance software filtering data plane that the network operator can own, inspect and run themselves.

We believe FastACL Community is the world's first open-source DDoS scrubbing data plane built for commodity hardware.

The benchmark results demonstrate what is possible under the tested conditions. Real-world capacity will depend on the hardware, configuration, rule distribution, traffic profile and deployment architecture.

And that is precisely why making the engine open source matters.

Network operators can evaluate it against their own requirements, rather than relying exclusively on a vendor's performance claims.

We've spent more than a decade working on the detection side of the DDoS problem.

With FastACL Community, we are extending our open-source work to the system that actually handles the attack packets.

The source is available on GitHub under Apache 2.0:

FastACL Community on GitHub


Further technical reading

For engineers interested in the implementation details and the experiments behind FastACL, our engineer Denys Haryachyy has documented several aspects of the development work:

The current classifier architecture and configuration options are also described in the FastACL technical documentation.