A stateful NAT benchmark can report zero packet loss and still be worthless — not because the traffic was wrong, but because nobody counted the connections that were already there. RFC 9693 fixes that by dragging preconditioning into the measurement itself: phase 1 creates a bounded population of stateful NAT connections and records their translated four-tuples, and only then may phase 2 measure throughput, loss or latency against state the tester can actually name. The score starts before the stopwatch.

Summary

  • RFC 9693 makes preconditioning part of the measurement: phase 1 builds a bounded set of NAT connections and records their translated four-tuples; only then may phase 2 measure throughput, loss or latency against known state.
  • A clean phase-2 result proves one declared black-box experiment. It does not open the hidden connection table, reproduce Internet traffic, characterize TCP automatically, establish production headroom, or prove that a user transaction survived.

Three tables, one alibi

The benchmark opens on an asymmetry. An Initiator can push a brand-new four-tuple through a stateful gateway in the client-to-server direction; the Device Under Test may create a connection-tracking entry, translate the packet and forward it. A Responder cannot pull the same trick in reverse. Invent a tuple it never saw, and the gateway is supposed to drop the packet on the floor.

RFC 9693 turns that asymmetry into architecture. The Tester has an Initiator and a Responder. The opaque DUT holds its connection-tracking table. The Responder holds a separate state table, populated only from translated packets it actually received. Three different evidence objects, three different stories: offered traffic says what the Tester attempted; the DUT's behaviour says which packets crossed; the Responder's table says which translated tuples were observed; and a returned packet says which of those tuples still admitted reverse traffic.

Dashboards erase that distinction with impressive speed. A label such as “one million sessions” can mean one million offered tuples, one million forward packets received, one million entries assumed to exist, or one million entries validated in reverse. RFC 9693 supplies the missing chain of custody.

Random ports can manufacture billions of experiments

RFC 4814 recommends pseudorandom, uniformly distributed transport ports so a device cannot flatter itself with convenient hashing patterns. On a stateless forwarder, that advice simply widens coverage. On a stateful NAT, every unfamiliar four-tuple is also a polite request to create state.

Take RFC 4814's broad source and destination ranges with a single address pair and you get 3,170,829,312 possible port combinations. Add source or destination address ranges and the tuple space becomes their product. A tester that treats all of it as harmless variation can exhaust the connection table before it ever measures the property it came for.

So RFC 9693 keeps the pseudorandomness and shrinks the ranges — a relatively large source-port range, a smaller destination-port range, mirroring the real asymmetry between ephemeral client ports and a handful of popular services. The exact ranges stay in the result. “Random traffic” is not a portable workload description; it is a rumour.

Phase 1 builds the state. Phase 2 spends it.

Phase 1 sends traffic only from the Initiator. Each frame crosses the DUT, triggers stateful translation and — when the tuple is new — creates a connection. The Responder records the translated tuple and says nothing. Two stores fill at once: the DUT's inaccessible connection table and the Tester's observable return-path table.

None of that is optional. It must happen before phase-2 throughput, latency, frame-loss or packet-delay-variation tests, and it must happen slowly enough that preconditioning is not mistaken for an establishment-rate stress test. RFC 9693 therefore requires the maximum connection-establishment rate to be measured first; the preparatory phase then runs safely below it.

The method defines two deliberately different operating conditions. To measure establishment, every phase-1 frame uses a different tuple and the timeout outlives phase 1, so each offered frame asks for new state and nothing old disappears. To measure steady-state forwarding, phase 1 enumerates the complete intended tuple set and the timeout outlives phase 1, the inter-phase gap and phase 2, so no new connection should appear and none should expire during the timed run.

Controlled extremes, not a portrait of production — and that is the point: they separate the cost of creating state from the cost of forwarding through state that already exists.

Forward receipt is not reverse validation

The DUT is a black box; the Tester cannot read its table. Even when every phase-1 frame lands at the Responder, the connection behind it may already be gone. The establishment rate may have been too high, an entry may have been replaced, a table limit may have bitten after forwarding.

Validation therefore runs the path backwards. The Responder reads every stored tuple and sends one test frame for each, at a lower rate derived from a safety factor. If all of them arrive at the Initiator, the experiment has evidence that the tested connections existed and that the chosen forward and reverse rates were survivable.

The claim stays narrow on purpose. It does not reveal the table's layout, size or policy. It proves reachability through a bounded set at a moment in time. And a missing reverse frame is not automatically “capacity exhausted” — the phase-1 creation rate may have been too high, the validation rate may have been too high, or the DUT may simply have replaced or garbage-collected the entry.

Capacity is an interval before it is a number

RFC 9693 treats connection-table capacity as an inference problem, not a readout. Start with a safe count, C0, and a validated establishment rate, R0. Double the connection count until the DUT collapses or establishment performance falls off a cliff. Then binary-search the interval down to a declared error bound.

What survives depends on replacement policy. A gateway may refuse new state while keeping its first entries; it may evict under LRU; it may delete a whole batch of LRU entries in one garbage-collection sweep. That last case can hand back fewer validation successes than the physical table holds. A precise-looking survivor count is therefore not always the table size — it is the table size filtered through policy.

Deletion needs its own receipt. The tear-down rate divides a loaded connection count by the measured time for an implementation-specific out-of-band deletion. Clearing an entire table and deleting entries one at a time are not assumed to cost the same. A throughput score cannot stand in for either.

Order, time and CPU belong in the result

The Responder is not a neutral notebook. RFC 9693 recommends round-robin writes so its state stays fresh and aligned with the DUT, and pseudorandom reads following RFC 4814's distribution discipline; round-robin reads are the cheaper alternative. Ascending or descending tuple order may be tested separately. Ordering can expose a hash, cache or replacement effect, so it cannot quietly vanish from the report.

Neither can time. The initial table state, the UDP timeout, the duration of both phases and the gap between them decide whether connections are created, refreshed or deleted. Neither can compute allocation. The RFC recommends scaling series over flow counts and active CPU cores, and requires performance-affecting settings — hashsize, nf_conntrack_max, hardware, operating system, kernel, implementation version — to be disclosed.

And results must be repeated. The recommended summary is the median with first and 99th percentiles, plus the repetition count and the binary-search error. That is what turns “fast” from a mood into a reproducible experimental claim.

UDP draws a benchmark boundary, not the Internet

The classic method uses UDP so the Tester can offer arbitrary constant frame rates without tripping over TCP congestion control, flow control or a three-way handshake. The choice is defensible and it is limiting: a NAT implementation may run different TCP and UDP timeouts, or different code paths entirely. RFC 9693 says so plainly, warning that a UDP result need not characterize Internet forwarding, and points to RFC 9411 for testing protocols such as HTTP and HTTPS.

So a loss-free phase 2 proves that one DUT, on one software build, in one configuration, with one tuple population, ordering, timeout, traffic direction, rate and CPU allocation, forwarded one bounded workload. It does not prove the hidden entries matched an imagined schema, that real traffic shares the distribution, that TCP behaves the same, that capacity includes operational reserve, or that a user-visible service stayed up.

That is not a flaw in the benchmark. It is the discipline that makes the score usable. The standard supplies a common experimental grammar; running code supplies the observation; management is supposed to preserve the receipts between them.

Sources