arXiv:2610.25799cs.CROct 2026

Manuscript Offprint

arXiv:2610.25799

PQC Migration of IPsec: Reliable Composite Key Sharing Mechanisms in IKEv2

Rahul, Manjesh Kumar Hanawal, Sameer G. Kulkarni, Tirumaleswar Reddy K

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

RAHUL, Indian Institute of Technology Bombay, India

MANJESH K. HANAWAL, Indian Institute of Technology Bombay, India

SAMEER G. KULKARNI, Indian Institute of Technology Gandhinagar, India

TIRUMALESWAR REDDY K, Nokia, India

The threat of quantum computers breaking classical cryptographic is accelerating the adoption of quantum-resistant cryptographic algorithms. Several government agencies have set a tight time-line for upgradation of all system to support post quantum cryptographs. We study post-quantum migration of IPSec protocols and their impact on network performance. The large key lengths in Post-Quantum Cryptography (PQC) cannot fit in a single IP packet leading to IP fragmentation. This can cause failure of security associations and degrade performance of IKEv2 under poor network conditions. To tackle this problem, we study a new key-sharing mechanism for IKEv2 and evaluate its performance. Unlike current hybrid key-sharing approaches, which send the classical and quantum keys sequentially over UDP or TCP (as in RFC 9370), the new approach concatenates them into a single composite key and transport them over TCP to ensure a reliable handshake.

We implement and benchmark the new composite key sharing handshake mechanism against the existing hybrid algorithms that use either UDP or TCP. Extensive experiments under various network conditions demonstrate that the new approach significantly improves handshake time and energy consumption by avoiding the severe retransmission penalties of the Hybrid handshake mechanism. At 1% packet loss, the handshake time of composite key sharing mechanism is better by at least 20% than hybrid mechanisms, and the improvement get better with higher packet loss reaching 30% at 10% packet loss. Energy consumption follows the same pattern achieving reduction of 29% at 10% packet loss.

ACM Reference Format:

Rahul, Manjesh K. Hanawal, Sameer G. Kulkarni, and Tirumaleswar Reddy K. 2026. PQC Migration of IPsec: Reliable Composite Key Sharing Mechanisms in IKEv2. 1, 1 (October 2026), 25 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

Every time a VPN connection is established or a corporate network is accessed remotely, protocols such as Internt Protocol Security (IPsec) and Internet Key Exchange verion 2 (IKEv2) work in the background to secure the communication. They authenticate peers, negotiate cryptographic keys, and create encrypted tunnels to protect data as it travels across public networks. The security of these systems relies on the computational complexity of reversing cryptographic algorithms to recover the keys. However, advances in quantum computing (QC) invalidate these assumptions to pose a significant threat to the security of VPN connections worldwide. Post-quantum cryptographic (PQC) algorithms address this emerging threat by preserving the cryptographic security through the mathematical constructs that are believed to remain computationally intractable even for quantum computers [1, 2]. This resilience is achieved through the use of quantum-resistant

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM XXXX-XXXX/2026/10-ART

https://doi.org/10.1145/nnnnnnn.nnnnnnn

Rahul, Manjesh K. Hanawal, Sameer G. Kulkarni, and Tirumaleswar Reddy K

mathematical constructions (e.g., lattices, hash functions, or multivariate polynomials), which often require large key sizes than those used in classical cryptographic algorithms [3]. Several government agencies have announced a roadmap for migration to post-quantum cryptographic algorithms in security protocols, and some have set a deadline for migrations as early as 2031 [1][2]. NIST's August 2024 standardization of ML-KEM [4] resolved the cryptographic question of which key encapsulation mechanism replaces Diffie-Hellman. However, for the operators running IKEv2 [5] gateways, it opened a different question, i.e., how can ML-KEM be deployed while maintaining the scalability and performance required by production VPN infrastructures?

With Curve25519, one of the most widely used Elliptic Curve Cryptography (ECC), the 256-bit (32-byte) key results in a 262-byte IKE_SA_INIT message that can easily fit within a single UDP datagram on any standard Ethernet network (MTU = 1,500 bytes). In contrast, with ML-KEM-768, the key size increases to 1,184 bytes, resulting in a payload message of nearly 1,400 bytes IKE_SA_INIT message. Moreover, with ML-KEM-1024 [4] the key size increases to 1,568 bytes and correspondingly the IKE_SA_INIT message size increases to ~1800 bytes, exceeding the standard MTU and forcing it to be fragmented. Consequently, with PQC, although the cryptography is strengthened, the underlying transport becomes more fragile, exposing VPN deployments to performance degradation issues, such as, increased latency, retransmissions, and lower connection establishment performance. Moreover, the transition to PQC cannot be achieved by simply replacing classical algorithms, as the established classical public-key schemes have undergone decades of cryptanalysis and are well understood against classical adversaries, Whereas PQC algorithms, despite extensive evaluation and standardization, have comparatively shorter security histories. This demands to leverage the strengths of classical algorithms alongside PQC during the transitional period. Hence, the current deployment advocates the use of hybrid key-sharing in which both classical and post quantum crypto algorithms are used together. This ensures the resulting session key to remain secure, provided at least one of the constituent schemes is not broken. However, this approach further increases the handshake message size by transmitting both classical and post-quantum keys to further worsen the IP fragmentation issues and the transport burden.

To address the fragmentation problem, RFC 7383 [6] introduced ‘IKE Fragmentation’ that splits the oversized IKE payloads at the IKE protocol layer before they reach IP, enabling per-fragment retransmission to avoid IP-layer reassembly failures. However, this did not solve the IP fragmentation of the crypto payload as IKE fragmentation cannot 1,2^{1,2} be used in the initial IKEv2 exchange IKE_SA_INIT. RFC 9242 [7] defined ‘Intermediate Exchange’ or IKE_INTERMEDIATE as a new exchange for IKEv2 where one or more message exchanges may take place right after the IKE_SA_INIT. This enables IKE messages to be fragmented at the application layer, allowing payloads exceeding the path MTU to be transmitted without IP fragmentation. RFC 9730 [8] leverages this mechanism to realize hybrid key exchange, in which the IKE_SA_INIT message carries the classical key share, and subsequent IKE_INTERMEDIATE messages carry the PQC key share. All the IKE messages exchanged during this hybrid key-sharing use UDP. Although functional, the current hybrid key-sharing with UDP poses three fundamental limitations that hinder its practical deployment: Performance degradations: The larger handshake messages in hybrid post-quantum key exchange increase the likelihood of IP fragmentation, making connection establishment substantially more sensitive to packet loss as the loss of a single fragment forces retransmission of the entire message. In IKEv2, such losses trigger application-layer retransmission timers that typically operate in a 1-2s timeout [5]. This leads to substantial increase in handshake latency even under

1^{1}RFC 7383 was designed primarily to handle IP fragmentation caused by large authentication certificates in IKE_AUTH.

2^{2}IKE fragmentation is designed to fragment only encrypted IKE messages because encryption along with integrity protection ensure that the receiver can safely reassemble the fragments without exposing the protocol to new attacks.

modest network loss conditions. Our benchmarks show that even ≤1%\leq 1\% loss-rate can result in 2−4×2-4\times increase in the connection establishment time.

Security: PQ crypto payload exchanged in IKE_INTERMEDIATE must still be protected using the keys derived from the classical key exchange IKE_SA_INIT message to ensure reliable delivery and reassembly over UDP. Hence, the security of the overall mechanism remains partially anchored in classical cryptography, rather than being fully independent of it.

PQ-only support: as cryptographically relevant quantum computers (CRQCs) become more prevalent, the regulations are likely to mandate the use of post-quantum only systems. However, the current hybrid key-sharing over UDP cannot be used in such a scenario as it relies on classic crypto to handle IP fragmentation issues.

To overcome these limitations, we design, prototype and evaluate a novel composite hybrid key exchange mechanism proposed in an IETF Internet-Draft [9]. Instead of exchanging classical and post-quantum key shares over multiple round trips, the proposed mechanism combines both components into a single composite public key. It builds upon the SEPARATE_TRANSPORTS [10] which decouples the transport of control and data traffic by carrying IKEv2 control messages over TCP while preserving UDP transport for ESP [11] packets. This ensures to reliably transport the large IKE_SA_INIT messages over TCP using the encapsulation format defined in RFC 9329 [12]. We evaluate the performance of this novel composite key-sharing mechanism of IKEv2 with TCP. Even though, the TCP was recommended for key-exchange in RFC 9329, it did not find wider adaptation as the RFC 9329 maintained TCP for subsequent ESP messages without any transport switch 3^{3}. This resulted in nested TCP resulting degradation of performance due to TCP meltdown [13]. The new composite mechanism uses TCP for IKEv2 key exchange and UDP for ESP payloads through a transport switch. Our evaluation supports that this transport switch does not degrade the performance while offering a reliable transport needed for longer PQ keys. We believe, our extensive evaluation support PQC migration of IPsec with the composite key-sharing mechanism while maintaining the scalability and performance requirements of VPN infrastructure.

We implement the composite key-sharing algorithm on strongSwan 6.0 [14]. For reproducibility, a local fork with our modifications is made available at [15]. We emulate realistic network conditions by varying both packet loss rates and network delay parameters. Our evaluation suggests that the composite key-share over TCP outperforms the hybrid key-share, with increasingly larger gains under poor network conditions. In summary, our contributions include:

• We implement novel composite key-sharing mechanism on IKEv2 stack of strongSwan 6.0 [14] and verify the operational correctness of separate transports for different key pairs (§3).

• We build an experimental testbed to benchmark composite and hybrid key-sharing algorithms over TCP and UDP, evaluating handshake latency, throughput, and energy consumption under varying packet loss and network delay conditions ( §4§4).

• Our evaluation demonstrates that composite key-sharing over TCP consistently outperforms hybrid key-sharing across all evaluated network conditions. Furthermore, the performance benefits increase with deteriorating network conditions. Our findings establish composite key-sharing over TCP to be a more reliable mechanism for PQC in IPSec ( §5§5).

References (32)