
This post is a repost of a technical blog originally published by Denys Haryachyy, shared here with permission as part of ongoing research and engineering work around FastNetMon’s inline traffic processing capabilities.
In the first part, which also explains how a SYN flood exhausts a server’s handshake state, I built the stateless half of a SYN proxy for FD.io VPP: every SYN gets a SYN-ACK carrying an AES-128 SYN cookie, and nothing is stored. This part checks the cookie in the client’s ACK and gives only a valid one a session in SFDP, VPP’s stateful data plane. A forged ACK is refused before SFDP creates anything, through a small per-tenant pre-filter hook I added to SFDP. On port 1 of a 400G ConnectX-8 the proxy answers 209 Mpps of SYNs and checks 209 Mpps of forged ACKs, limited by the NIC port rather than the proxy.
Where the SYN Proxy Sits
The node synproxy-cookie-ip4 is a feature on the ip4-unicast arc, ordered before every SFDP entry feature. It answers SYNs itself, marks pure ACKs for a later check and lets every packet but a SYN continue into SFDP.
The client sees an ordinary three-way handshake; inside VPP each of its packets takes its own path, and only the ACK with a valid cookie creates an SFDP session.

Validating the Returning ACK
The client returns the cookie in its ACK. The proxy rebuilds the cookie from the ACK’s own fields with the same batched AES code that minted it and compares the two, so the check needs no stored state. It runs in its own node, synproxy-ack-ip4, and only when SFDP finds no session for the ACK, as in Linux SYNPROXY. A forged cookie, or one older than the timeout, is dropped.
An SFDP Pre-Filter
Stock SFDP creates a session for every packet that matches no session, so I proposed per-tenant pre-filters, now under review in VPP’s Gerrit. On a miss SFDP asks the tenant’s pre-filter before it creates a session, and a refused packet goes to a slow-path node instead.
The proxy’s pre-filter refuses an ACK whose cookie has not been checked yet, so SFDP hands it to synproxy-ack-ip4, and admits it once the cookie proves valid. Everything else passes untouched. A tenant without a pre-filter pays nothing measurable: with every packet a new flow, sfdp-lookup-ip4 costs 480 cycles per packet with the patch and 480 to 520 without it.
Only a valid cookie writes to SFDP, so the session table bounds real connections, not attack traffic.
Test Setup
| DUT | AMD EPYC 9534 with an NVIDIA ConnectX-8 (400G), VPP 26.02 with the SFDP pre-filter patch |
| Generator | TRex with ConnectX-7 #1 and #2 (200G each), through a switch into ConnectX-8 port 1 |
| Workers | 8 to 32 for the floods, 1 to 4 for established connections, one per core |
| SYN flood | 64 B SYNs without TCP options; random source address, port and ISN |
| ACK flood | 64 B ACKs with random cookies, all forged |
| Established | 65,536 connections opened through the proxy, then ACKs or data on them |
| Method | offered rate swept per point; cycles from VPP’s runtime statistics; frame sizes include the 4-byte FCS |
Packet Rate on One 400G Port

Twenty workers answer 209 Mpps of 64 B SYNs, and 24 workers check 209 Mpps of forged ACKs; more workers do not raise either rate. The session table stayed empty at every point.
That is 35% of 400G line rate, which is 595 Mpps with 64 B frames. The limit is the NIC port, not the proxy: at 209 Mpps the port discards the excess while the workers still have idle cycles, and VPP that only drops packets gets 226 Mpps from the same port. With 1500 B frames the port carries the full 400 Gbps.
Where the Cycles Go

A forged ACK costs the proxy 39 cycles against 46 for a SYN, which also builds the SYN-ACK; SFDP adds 56 to look the ACK up and hand it over.
Established Connections
For traffic of connections that already exist, TRex completes 65,536 real handshakes through the proxy — SYN, the DUT’s SYN-ACK, the ACK with its cookie — and then floods those connections with ACKs and with 122-byte data segments. The baseline is the same flood on a tenant without the proxy, where SFDP creates each session on its first packet.

The proxy adds about 27 cycles to every packet of an established connection, 236 against 209 on one worker: about 9 to mark the ACK, 10 in a per-session step that keeps the client’s handshake values for the next part, and 8 more in SFDP’s lookup. That leaves 86 to 94% of the plain SFDP rate.
Summary
- The proxy checks ACK cookies without stored state.
- An SFDP pre-filter, proposed upstream, stops a forged ACK before SFDP creates a session.
- SYN and forged-ACK floods leave the session table empty.
- Established connections keep 86 to 94% of the plain SFDP rate.
- 209 Mpps of SYNs or forged ACKs on one 400G port, limited by the NIC, not the proxy.
- Next: opening the server-side connection and splicing the two connections.






