← Back to section · Standards & Specifications
Retooling IKEv2 for Post-Quantum: Multiple Key Exchanges, Fragmentation and Preshared Keys
IPsec cannot swap in a named group the way TLS does. IKEv2's retrofit is assembled from three published RFCs — 9242, 9370 and 8784 — covering how large payloads travel, how multiple exchanges stack, and how the transition is backstopped.
Among the IETF’s PQC fronts, IPsec’s progress bar is furthest along. TLS’s hybrid framework is still a draft and the certificate side is still arguing encodings, while the three puzzle pieces IKEv2 needed — moving large payloads, stacking multiple exchanges, backstopping the transition — are all published RFCs. Understanding how the three documents divide the work shows why post-quantum VPN gateways are “an engineering problem now”.
Piece one: RFC 8784, the transitional backstop
First to land was RFC 8784 (2020): mix an out-of-band distributed post-quantum preshared key (PPK) into IKEv2’s key derivation. The logic is direct — even if a quantum computer one day breaks ECDH, recorded tunnel traffic stays sealed without the preshared key. It needs no new algorithms and little implementation change, and was the first PQC option gateway vendors shipped. Its limits are equally clear: distributing and rotating preshared keys is an operational burden, and it protects only the symmetric leg without providing real PQC public-key capability. A transition measure, not the destination.
Piece two: RFC 9242, paving the road for large payloads
Real PQC exchange has a prior obstacle: IKEv2’s initial exchange runs over UDP and is designed to avoid fragmentation, while ML-KEM public keys and ciphertexts are kilobyte-scale — they do not fit the size assumptions of the original exchanges. RFC 9242 (2022) defines the IKEv2 Intermediate Exchange: a new, repeatable exchange type inserted between the initial and authentication exchanges, together with IKE fragmentation, built to carry bulky key-exchange payloads. It contains no PQC content itself, yet it is the road PQC had to travel to enter IKEv2 — build the road, then run the traffic.
Piece three: RFC 9370, multiple key exchanges
RFC 9370 (2023) is the line’s main document. It extends IKEv2 so that a single negotiation can run additional key exchanges in sequence beyond the initial classical one, with every exchange’s shared secret feeding key derivation in order. The typical configuration becomes: first exchange ECDH, additional exchange ML-KEM — the final session key then requires an attacker to break both, the same red line as TLS hybrid design. The document also handles negotiation failure, downgrade protection and composition with RFC 9242 and RFC 8784, including stacking PPK on top of multiple exchanges. Two design details deserve attention. First, additional exchanges are optionally negotiated: both sides signal support and willingness in the initial messages, and a peer without support can fall back to a classical single exchange — this preserves interoperability with legacy gateways, but it means deployers must state in policy whether that fallback is allowed, or hybrid security can be silently configured away. Second, the order and position in which the multiple secrets enter key derivation is fixed with no implementer discretion — a lesson absorbed from historical key-agreement incidents caused by concatenation-order ambiguity. One detail governs policy, the other implementation; they correspond exactly to the two question classes a deployment review should ask.
The gateway case: why IPsec goes early
IPsec tunnels have several features that rank them early in migration order: gateway-to-gateway tunnels are long-lived, they carry aggregated traffic (recording one tunnel records a whole branch office), and both ends are usually controlled by one organisation with manageable upgrade windows. Add “protocol obstacles cleared” and the remaining work is purely product implementation progress and deployment policy: which parameter sets, whether to add PPK as a second belt, how to schedule gateway firmware upgrades. For teams planning network-side migration, this line’s certainty is among the highest on the whole PQC map.
Edges still open
The three RFCs complete the key-exchange route. IPsec’s authentication side — signatures in gateway certificates — still rides on the overall X.509 ecosystem’s progress, breathing with LAMPS’ certificate documents. And the extra round trips and payload of additional exchanges affect tunnel setup latency on poor links; that must be measured before deployment, since protocol permission does not mean every link is unaffected. These edges do not change the conclusion: IPsec is one of the few protocols whose PQC retrofit can move today from the tracking list to the implementation list. In execution terms, a pragmatic starting order is: confirm the three RFCs’ implementation status in gateway firmware and enable PPK as the immediate backstop; validate multiple-exchange latency and fragmentation behaviour on lab links; then enable ML-KEM additional exchanges site by site, closing unneeded downgrade fallbacks by policy. Every step rests on a published RFC with clear acceptance points — that “documents first, implementations follow” ordering is exactly what the IPsec line demonstrates to the other protocols.
Against the TLS route: why IPsec could land first
Both lines put hybrid key exchange into a protocol, yet IPsec finished its documents ahead of TLS — the contrast is instructive. First, protocol structure: IKEv2 is natively a multi-exchange, extensible negotiation protocol, so adding an exchange type follows its grain; TLS 1.3 is exquisitely sensitive about handshake timing and size, and every change must fight the global middlebox ecosystem. Second, deployment topology: IPsec endpoints are usually gateways under one organisation’s control, so negotiation peers are predictable; TLS servers face arbitrary clients across the Internet and must design for the most conservative peer. Third, the direction of historical baggage: the IKE community had discussed post-quantum preshared keys years earlier, so “layering extra secrets into IKE” had both mental and mechanical preparation. The transferable lesson for other protocols: retrofit difficulty is set not by the algorithms but by a protocol’s extensibility structure and deployment topology — when estimating your own stack’s migration effort, look at those two before the algorithm table.
References
- IETF, RFC 9370: Multiple Key Exchanges in the Internet Key Exchange Protocol Version 2 (IKEv2), 2023. https://www.rfc-editor.org/rfc/rfc9370
- IETF, RFC 9242: Intermediate Exchange in the Internet Key Exchange Protocol Version 2 (IKEv2), 2022. https://www.rfc-editor.org/rfc/rfc9242
- IETF, RFC 8784: Mixing Preshared Keys in the Internet Key Exchange Protocol Version 2 (IKEv2) for Post-quantum Security, 2020. https://www.rfc-editor.org/rfc/rfc8784
- IETF, RFC 7296: Internet Key Exchange Protocol Version 2 (IKEv2), 2014. https://www.rfc-editor.org/rfc/rfc7296
Tags: IPsecIKEv2RFC 9370VPNHybrid Key Exchange