Summary

  • RFC 9611 lets IKEv2 peers negotiate several Child SAs with identical Traffic Selectors so separate CPUs or queues can own independent keys and sequence counters. Matching policy is the point; shared cryptographic state is not.
  • SA_RESOURCE_INFO flags logical group membership and may carry opaque debugging data. It is not an interoperable CPU map, a scheduling command, or proof that a single packet touched the named resource. TS_MAX_QUEUE refuses more SAs for one selector pair without banning other selector combinations.
  • A credible capacity claim needs receipts after the handshake: inbound and outbound installation, local resource binding, trigger and scheduler behaviour, packet distribution, replay and drop counters, rekey and delete handling, and measured delivered throughput.

Two gateways. Same selector pair. Every Child SA green. The dashboard glows, and somebody in the meeting concludes that encryption is now spread across a dozen CPUs at both ends.

The dashboard is describing a negotiation. It is not describing a machine.

One peer may have installed every inbound SA because it promised to receive on them, while quietly skipping duplicate outbound halves its smaller hardware will never use. Another may have created several SAs and still steer nearly every packet to the first. A third may lose a resource-specific SA after a Delete Notify and never rebuild it, because its packet triggers carry no CPU identity. The protocol state stays valid the whole time. The capacity plane stays lopsided.

RFC 9611 exists because a single Child SA eventually becomes a scaling boundary. Encryption needs sequence numbers, keys and anti-replay state. When many CPUs share one outbound sequence counter, locking and synchronisation eat the throughput that parallel execution was supposed to buy. Switching replay protection off removes the symptom by weakening the security property. The RFC takes the harder road: allow multiple Child SAs with identical Traffic Selectors, each with independently derived keying material and its own sequence space.

The design is narrow, and that narrowness is the point. It standardises just enough language for peers to agree that several SAs belong to one logical selector group, and to refuse excess members precisely. It never pretends one peer can operate the other peer's scheduler.

Identical selectors describe coverage, not execution

IKEv2 already permitted multiple Child SAs with identical selectors. What it lacked was a way to say why another apparently redundant SA was being requested. SA_RESOURCE_INFO supplies that signal. The initiator includes it while negotiating the initial or an additional Child SA; a willing responder echoes the notification. Later members arrive through ordinary CREATE_CHILD_SA exchanges.

Every member must preserve the negotiated Child-SA properties of the first: algorithms, TSi and TSr, transport or tunnel mode, compression behaviour and the rest of the policy envelope. That sameness stops a resource group from quietly rewriting the traffic or security contract. It does not fuse the members into one cryptographic object. Each still gets its own keying material, SPI and sequence state.

That distinction is the whole architecture. The common layer specifies which traffic may use the group. The local layer decides which CPU, queue or accelerator owns a member, and which packets reach it. A peer can verify the first through negotiation. It cannot infer the second from selector equality — no matter how tidy the dashboard looks.

The optional Resource Identifier makes the boundary clearer rather than weaker. The value should be unique among SAs with the same selectors, but the peer may use it only for debugging. A literal CPU number would leak hardware detail and help an attacker correlate traffic with a resource. More importantly, the identifier has no portable semantics. queue-7 at one endpoint authorises, selects and names exactly nothing at the other.

Independent counters are the performance mechanism

ESP sequence numbers are not decorative telemetry. They support anti-replay processing, and outbound assignment has to stay coherent. On a busy multicore gateway, serialising many workers around one counter becomes the bottleneck. RFC 9611's parallelism comes from creating several valid cryptographic domains instead of pretending one mutable domain has no coordination cost.

That yields a precise claim: a resource-specific Child SA can keep its own sequence counter and keys. It does not yield a throughput promise. The RFC reports a contemporary example in which aggregate throughput rose from roughly 5 Gbps on one CPU to 40–60 Gbps on 25–30 CPUs. That observation explains the motivation. It is not a benchmark certificate for another processor, cipher implementation, packet size, NIC, topology or traffic mix.

So a test has to record more than aggregate bandwidth. It should show packet counts per inbound and outbound SA, the spread across local resources, replay-window and integrity failures, drops during creation or rekey, CPU and accelerator saturation, and application-visible delivery. A total can climb while one member starves, one direction stays serialised, or reordering quietly shoves pressure into the anti-replay window.

Inbound and outbound commitments are not mirror images

Different resource counts make apparent symmetry unsafe. A smaller peer may decide not to install a second outbound SA for a resource it will never use. It must still install every negotiated inbound SA, because the remote peer is entitled to transmit on each of them. The accepted exchange therefore creates a receive obligation even when it creates no matching local transmit demand.

This is why an SA count is such a poor capacity metric. The same negotiated inventory can mean paired inbound/outbound resources on one host, all inbound plus a smaller outbound set on another, or independently moved halves on a gateway with asymmetric traffic. On an endpoint that generates the protected traffic, the two directions should normally stay paired on the same CPU. A gateway may move them independently.

Moving an SA later carries a hidden bill. If the implementation skipped an unused outbound half, the move may require creating that SAD entry and recovering key material the IKE daemon would otherwise have destroyed. Local key-retention policy becomes part of resource mobility. The peer-visible Resource Identifier says nothing about whether that capability exists.

Demand creation can race with itself

RFC 9611 allows eager creation of all resource-specific SAs, or creation on demand. During the roughly one-round-trip negotiation, a generic SA usable by all CPUs can carry traffic. A packet can also be relayed to a CPU that already holds a usable SA, at a performance cost.

The on-demand path is harder to reason about. Both peers can initiate additional SAs at the same time. A triggering packet may travel over the first SA; its reply can trigger negotiation in the opposite direction. Rekey temporarily multiplies state again, because new SAs arrive before old ones disappear. The RFC therefore recommends allowing at least twice the available CPU count for a selector combination, rather than treating the physical CPU count as a rigid protocol ceiling.

When the ceiling is reached, the response matters. TS_MAX_QUEUE means no more resource-specific Child SAs for this TSi/TSr pair. NO_ADDITIONAL_SAS is too broad, because it could be read as refusing even a Child SA for different selectors. A precise error preserves future choice.

Admission is still not distribution. A peer that accepted eight members may send on one. A peer that refused the ninth may still hold ample useful capacity. Queue limit, installed inventory, active inventory and delivered work are four different measurements wearing the same word.

Deletion exposes the need for a return path

Per-resource SAs can be deleted when their resources go idle. That sounds like ordinary lifecycle management until an implementation lacks per-CPU or per-queue trigger messages. After receiving a Delete Notify, it may have no event telling it when the resource-specific SA should come back.

Recreate it immediately and you can produce an infinite exchange if the peer keeps deleting it. Never recreate it and both endpoints spend the rest of the day on the first SA. The deletion was valid in both cases. The missing piece is the decision mechanism after deletion.

This is a recurring infrastructure lesson dressed in new clothes: a teardown signal is not a restoration policy. A state transition needs a defined owner, trigger, backoff and observation point. Otherwise a clean control-plane history ends in a quietly degraded steady state — the most expensive kind, because nobody files a ticket.

The local packet trigger is therefore an important receipt. Implementations supporting per-CPU SAs should extend their SPD-to-IKE trigger to carry a CPU or queue identifier. The trigger does not need to become global protocol identity. It needs to let the local system rebuild the link between demand and a resource.

The trust boundary is deployment-specific

The feature makes most sense between high-volume gateways whose administrators already share a trust relationship. Every additional SA consumes state, and an unbounded request pattern becomes denial-of-service pressure or slow per-packet SAD lookup. The RFC recommends limits per selector pair, just as implementations limit half-open negotiations.

Remote-access VPNs have a different incentive structure. Their peers are numerous, less mutually trusted and often outside one operational domain. RFC 9611 does not recommend per-CPU SAs there, and does not recommend enabling them by default. A feature built to remove trusted-gateway contention should not become a client-controlled state multiplier.

This is also why hardware detail stays home. A debugging token may help correlate an SA during a joint investigation. It should not disclose a stable CPU number, or invite a peer to treat a local execution detail as an entitlement.

A capacity receipt has several signatures

An operator can turn the RFC into a testable evidence chain without enlarging the protocol:

  1. Record the intended selector group and why parallel SAs are needed.
  2. Record each accepted Child SA, SPI, algorithms and independent key/sequence domain.
  3. Verify inbound and outbound SAD installation separately on both endpoints.
  4. Bind each local member to a CPU, queue or accelerator through local evidence, not the peer's opaque token.
  5. Demonstrate that packet triggers and scheduling distribute actual flows across the intended members.
  6. Observe replay, integrity, drop and reordering counters per SA.
  7. Exercise simultaneous creation, rekey overlap, idle deletion and recovery without loops or permanent collapse to one member.
  8. Measure delivered throughput and latency at the service boundary, not only encryption-loop utilisation.

The final receipt may show the design works. It may instead show that the protocol negotiated perfectly while a driver, scheduler, trigger, key-retention rule or asymmetric peer became the binding constraint. Both results are useful, because both name the layer that actually owns the outcome.

That is the discipline RFC 9611 rewards, and it is the same discipline that keeps any coordination layer honest: fix the minimum shared rules, then let running code — not a green tick — prove what was delivered.

Sources