IKEv2 message sizes with post-quantum key exchange

IKEv2 key exchange payloads with ML-KEM run from 776 to 1576 bytes, and the larger parameter sets cannot be fragmented inside IKE_SA_INIT. This page gives the sizes, their sources and where the limits apply.

On this page

IKEv2 ML-KEM key exchange payloads are 776 to 1576 bytes

If you are configuring IKEv2 tunnels that add an ML-KEM key exchange, the Key Exchange payload is 808 bytes from the initiator and 776 bytes from the responder for ML-KEM-512, 1192 and 1096 bytes for ML-KEM-768, and 1576 bytes in both directions for ML-KEM-1024, according to Table 1 of draft-ietf-ipsecme-ikev2-mlkem-09. These are the figures to check against your path limits. The draft's transform IDs are 35, 36 and 37 for ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and the draft was in the RFC Editor queue as of 4 December 2026, so confirm its status before you cite it as final.

VPN and gateway engineers are the main readers of this table. Compare each payload against the path MTU between your peers, and note that the draft says ML-KEM-768 and ML-KEM-1024 may need more than one IP packet from each side. Those are the cases where you need to plan for fragmentation or for the exchange to move off IKE_SA_INIT.

The draft says IKE_SA_INIT messages using IDs 36 or 37 could exceed typical path MTUs and cannot be IKEv2 fragmented, so on UDP paths with an unknown or restricted MTU you should not put them in that message. ID 35 may appear in IKE_SA_INIT because its message is unlikely to exceed typical path MTUs. Confirm the path MTU in your own network before deciding, because the draft does not set a value for your links.

For larger exchanges, the draft places the key exchange in IKE_INTERMEDIATE, CREATE_CHILD_SA or IKE_FOLLOWUP_KE messages, which can be fragmented under RFC 7383. Check that your gateway and any intervening devices support that fragmentation before you rely on it, and confirm the transform IDs your implementation supports with its vendor.

ML-KEM Key Exchange payload lengths in bytes by parameter set

This table compares the Key Exchange payload lengths that draft-ietf-ipsecme-ikev2-mlkem-09 gives for each ML-KEM parameter set, alongside the raw encapsulation key, ciphertext and decapsulation key sizes from RFC 9935. Read the initiator and responder columns as the payload each side sends in its IKE_SA_INIT or additional key exchange message, and the raw columns as the underlying algorithm sizes, which exclude IKEv2 framing. The main takeaway is that ML-KEM-768 and ML-KEM-1024 payloads are large enough that they may need more than one IP packet per side, so the transform ID you choose determines where fragmentation applies.

Parameter setTransform ID and NIST levelInitiator and responder payload (bytes)Raw sizes: encapsulation key, ciphertext, decapsulation key (bytes)
ML-KEM-512ID 35, NIST level 1808 initiator, 776 responder800 encapsulation key, 768 ciphertext, 1632 decapsulation key
ML-KEM-768ID 36, NIST level 31192 initiator, 1096 responder1184 encapsulation key, 1088 ciphertext, 2400 decapsulation key
ML-KEM-1024ID 37, NIST level 51576 initiator, 1576 responder1568 encapsulation key, 1568 ciphertext, 3168 decapsulation key

How to read the payload lengths and NIST levels

Each row in the table identifies one ML-KEM parameter set by its IKEv2 Key Exchange transform ID: 35 for ML-KEM-512, 36 for ML-KEM-768 and 37 for ML-KEM-1024, as assigned in draft-ietf-ipsecme-ikev2-mlkem-09. The two payload length columns give the size of the Key Exchange payload sent by the initiator and by the responder, in bytes, as listed in Table 1 of that draft. The NIST level column gives the security level that RFC 9935 assigns to the same parameter set: level 1 for ML-KEM-512, level 3 for ML-KEM-768 and level 5 for ML-KEM-1024. Read the level as a category label from the standard, not as a measure of how the algorithm performs in your deployment.

Two scope points matter when you compare these numbers with a packet capture. First, the payload length is the Key Exchange payload only. It does not include the IKE header, the other payloads in the same message, the encryption overhead added in an encrypted message, or any UDP and IP headers. A full IKE_SA_INIT or IKE_INTERMEDIATE message will therefore be larger than the figure shown. Second, the sizes in RFC 9935 (encapsulation keys, decapsulation keys and ciphertexts) are raw sizes that exclude ASN.1 or other encoding overhead. Any value you see on the wire will reflect the encoding used by the implementation, so confirm the byte counts against your own captures rather than assuming they match the raw figures.

When you plan around these lengths, check the transform ID your peer negotiates and the total size of the message that carries it. The draft notes that IKE_SA_INIT messages using IDs 36 or 37 could exceed typical path MTUs and cannot be IKEv2 fragmented, so confirm the path MTU in your environment before enabling those IDs there. Confirm with the implementation and version you run whether it supports these transform IDs and where it places the larger exchanges.

Where the ML-KEM payload sizes meet path MTU limits

The ML-KEM key exchange payloads are large enough that where they travel in an IKEv2 exchange decides whether they fit in one packet. The cards below cover the IKE_SA_INIT constraint, the default datagram sizes used when path MTU is unknown, multi-packet payloads, and the fragmentation options that move larger exchanges out of IKE_SA_INIT.

IKE_SA_INIT on unknown or restricted PMTU

The draft says IKE_SA_INIT messages using ML-KEM-768 (ID 36) or ML-KEM-1024 (ID 37) could exceed typical path MTUs and cannot be IKEv2 fragmented, because fragmentation depends on keys that do not exist until this exchange completes. On UDP networks where the path MTU is unknown or restricted, implementations should not use these IDs in IKE_SA_INIT. Check the path MTU between peers before selecting an ML-KEM transform for the first exchange.

Draft-ietf-ipsecme-ikev2-mlkem

Default datagram size without PMTU data

When no path MTU information exists, RFC 7383 recommends a maximum IP datagram size of 1280 bytes for IPv6 and 576 bytes for IPv4. A Key Exchange payload of 1192 bytes for ML-KEM-768 from the initiator, plus IKE and IP headers, can exceed the IPv4 default. Confirm the datagram budget for each address family your peers use.

RFC 7383 text

Multi-packet ML-KEM payloads

The draft notes that ML-KEM-768 and ML-KEM-1024 may need more than one IP packet from each side. A single-packet assumption therefore fails for these transforms, and the implementation must handle reassembly or move the exchange to a message type that supports fragmentation. Test with the packet sizes your gateways actually forward, not only with the payload lengths in the draft.

Draft Section 1.2

IKE_INTERMEDIATE and RFC 9242 placement

RFC 9370 runs additional key exchanges in IKE_INTERMEDIATE messages after IKE_SA_INIT, and RFC 9242 defines IKE_INTERMEDIATE for transferring large amounts of data during SA establishment. Because these messages are encrypted, IKE fragmentation under RFC 7383 can split a large payload across packets. Confirm that both peers support IKE_INTERMEDIATE before relying on this path.

RFC 9242 text

Constrained gateways that buffer payloads

Gateways that reassemble or buffer IKE fragments need memory for each in-progress exchange, and the ML-KEM payloads add to that load. The draft's Key Exchange payload lengths give the sizes to budget for, but the sources listed here do not state a buffer requirement for any particular gateway. Ask the gateway vendor for its fragment reassembly limits and test a full exchange under load.

RFC 7383 text

ML-KEM-512, ML-KEM-768 and ML-KEM-1024 sizes and placement rules

ML-KEM-512 is transform ID 35 in draft-ietf-ipsecme-ikev2-mlkem-09 and corresponds to NIST level 1. The draft's Table 1 gives Key Exchange payload lengths of 808 bytes from the initiator and 776 bytes from the responder. The underlying encapsulation key is 800 bytes, the decapsulation key is 1632 bytes and the ciphertext is 768 bytes, with a 32-byte shared secret, according to RFC 9935 Appendix B.

  • Payload lengths: 808 bytes initiator, 776 bytes responder, per Table 1 of the draft.
  • Key and ciphertext sizes: 800-byte encapsulation key, 1632-byte decapsulation key, 768-byte ciphertext, 32-byte shared secret.
  • IKE_SA_INIT placement: The draft says this set is unlikely to exceed typical path MTUs, so it may be used in IKE_SA_INIT.
  • Other exchanges: It can also be carried in IKE_INTERMEDIATE, CREATE_CHILD_SA or IKE_FOLLOWUP_KE under the rules of RFC 9370.
  • Fragmentation: IKE_SA_INIT cannot be IKEv2-fragmented, so a path that cannot carry the message in one datagram will fail there.

Confirm the path MTU in your environment before placing ID 35 in IKE_SA_INIT, especially on UDP paths with an unknown or restricted MTU.

Where ML-KEM key exchange messages travel in IKEv2

The diagram follows an IKEv2 negotiation from the initiator's IKE_SA_INIT request, through the responder's reply, to the IKE_INTERMEDIATE exchanges that carry the additional key exchanges defined by RFC 9370. IKE_SA_INIT is not fragmentable under RFC 7383, so the draft says ML-KEM-768 (ID 36) and ML-KEM-1024 (ID 37) should not be placed there on UDP paths with an unknown or restricted path MTU. Check the transform IDs negotiated in each message, and confirm that the peer supports the ML-KEM draft version you deploy.

Message order for ML-KEM key exchange in IKEv2, with the additional exchange carried in IKE_INTERMEDIATE.

Checking your gateway against ML-KEM payload sizes

This sequence confirms which ML-KEM transform your gateway negotiates, measures whether the resulting Key Exchange payloads fit the path MTU, and verifies that your peers can carry larger exchanges through IKE_INTERMEDIATE and fragmentation. The result is a documented, tested view of where each IKEv2 exchange will be fragmented or dropped on your network.

  1. Confirm the transform ID in use

    Check which Key Exchange transform ID your gateway offers and accepts: 35 for ML-KEM-512, 36 for ML-KEM-768 or 37 for ML-KEM-1024, as assigned in draft-ietf-ipsecme-ikev2-mlkem-09. Review the IKE proposal configuration on each peer, since the ID appears in the SA_INIT proposal and the choice determines the payload size you must plan for. Record the ID for each tunnel. The step is complete when every tunnel has a documented ID that matches what the peer's configuration lists.

  2. Compare payload length to path MTU

    Look up the Key Exchange payload length for the chosen ID in Table 1 of draft-ietf-ipsecme-ikev2-mlkem-09, which gives 808 and 776 bytes for ML-KEM-512, 1192 and 1096 bytes for ML-KEM-768, and 1576 bytes in both directions for ML-KEM-1024. Then determine the path MTU on each link between the peers, including encapsulation overhead from any tunnels or VPN layers already in the path. Mark each link where the payload plus headers approaches or exceeds the MTU. The step is complete when every link has a recorded MTU and a pass or fail against the payload.

  3. Confirm IKE_INTERMEDIATE support

    Verify that both peers support IKE_INTERMEDIATE as defined in RFC 9242 and that additional key exchanges can be carried there under RFC 9370. The draft notes that larger ML-KEM exchanges can go in IKE_INTERMEDIATE, CREATE_CHILD_SA or IKE_FOLLOWUP_KE messages. Check the product documentation or release notes for each side, and confirm the feature is enabled rather than only present in code. The step is complete when both vendors have confirmed support in writing, or when your own lab test shows the exchange succeeding.

  4. Confirm IKE fragmentation support

    Confirm that both peers support IKEv2 fragmentation under RFC 7383 and that it is enabled for the messages that carry large ML-KEM payloads. Note that RFC 7383 says IKE_SA_INIT messages cannot be fragmented, so an ML-KEM-768 or ML-KEM-1024 payload in SA_INIT that exceeds the MTU has no fragmentation path and must be avoided. Check whether any configuration forces SA_INIT to carry these larger IDs. The step is complete when you have a written list of which messages can be fragmented on each peer.

  5. Test with a real path

    Establish a tunnel between the two peers over the actual network path you will use in production, using the transform ID and exchange placement you chose in the earlier steps. Capture the IKE traffic and check whether the exchange completes, whether fragments are produced, and whether any messages are dropped or retransmitted. Test over every link in the path, including any with restricted or unknown MTU. The step is complete when the tunnel establishes reliably across each tested link and the captured message sizes match your calculations.

  6. Ask the vendor for the draft version

    Ask each vendor which version of draft-ietf-ipsecme-ikev2-mlkem the product implements, since the latest version listed is -09, dated 5 July 2026, and was in the RFC Editor queue as of 4 December 2026. Ask whether the implementation has been updated to match the final text and whether it changed the transform IDs or payload lengths between versions. Request this in writing and keep the answer with your configuration record. The step is complete when each vendor has stated the implemented draft version and any known differences in writing.

What these figures do not tell you

The IKEv2 ML-KEM mechanism is described in draft-ietf-ipsecme-ikev2-mlkem, which is an Internet-Draft with intended status Proposed Standard. The figures on this page come from version -09, dated 5 July 2026, which was in the RFC Editor queue as of 4 December 2026. It is not yet an RFC, so the transform IDs, payload lengths and fragmentation guidance may still change before publication. Check the Datatracker page for the latest version before relying on any value, and treat the transform IDs 35, 36 and 37 as draft assignments until the document is published.

The payload lengths in the draft's Table 1 are Key Exchange payload lengths. They do not include the IKE header, the Payload headers around the exchange, or the encryption overhead added once keys exist. A full IKE message on the wire will be larger, and the difference depends on which other payloads are present in that message and on the cipher suite in use. Per-packet sizes also depend on the path: the draft notes that ML-KEM-768 and ML-KEM-1024 may need more than one IP packet from each side, and the MTU actually available between the two peers, including any encapsulation and NAT traversal, decides where fragmentation starts. The sources listed here do not give measured handshake totals, so do not treat these tables as a prediction of end-to-end handshake size. Measure your own exchanges on the network path you run, and confirm which draft or RFC version and which implementation each peer uses, since compatibility between versions must be checked against those specific releases.

Questions about IKEv2 ML-KEM message sizes

How big is the ML-KEM-768 key exchange payload in bytes?

The key exchange payload for ML-KEM-768 is 1192 bytes when sent by the initiator and 1096 bytes when sent by the responder, according to Table 1 of draft-ietf-ipsecme-ikev2-mlkem-09. Those figures are payload lengths, so the full IKE message carrying them is larger once the IKE header, the payload headers and any other payloads are added. The size matters because the draft says ML-KEM-768 may need more than one IP packet from each side, which means a single-packet IKE_SA_INIT is not a safe assumption. The initiator's larger message is the one most likely to hit a path limit first, so check the initiator side of any path you control. Confirm the exact framing against the draft and against the implementation you run, because the figures above cover the key exchange payload only and not the total datagram.

Can ML-KEM-512 be sent in IKE_SA_INIT?

Yes. The draft assigns ML-KEM-512 the Key Exchange transform ID 35 and says it may be used in IKE_SA_INIT because its message is unlikely to exceed typical path MTUs. Its key exchange payloads are 808 bytes from the initiator and 776 bytes from the responder, which is smaller than the ML-KEM-768 and ML-KEM-1024 figures. The draft also says any ML-KEM identifier may be used in IKE_SA_INIT when the transport is reliable or the path MTU is known to be sufficient. ML-KEM-512 sits at NIST level 1 in the sources, so choosing it for IKE_SA_INIT trades a lower security level for a smaller first message. Whether that trade is acceptable is a policy decision for the organization, and it should be made against the security requirements the organization already has written down.

Why can IKE_SA_INIT not be fragmented?

IKE_SA_INIT cannot be fragmented because fragmentation requires encryption keys, and those keys do not exist until that exchange completes. RFC 7383, Section 2.2, states this directly. The consequence for ML-KEM is that an IKE_SA_INIT message using ID 36 or 37 can exceed typical path MTUs and has no IKEv2-level fallback to split it. The draft therefore advises that on UDP networks with an unknown or restricted path MTU, implementations should not use those identifiers in IKE_SA_INIT. Engineers should check for path MTU problems before the first packet, not after a tunnel fails to come up. Packet filters, NAT devices and VPN concentrators on the route should be reviewed for UDP fragment handling, since a dropped large datagram looks like a silent handshake timeout.

What do the 1280 and 576 byte defaults mean?

RFC 7383, Section 2.5.1, recommends a maximum IP datagram size of 1280 bytes for IPv6 and 576 bytes for IPv4 when no path MTU information is available. These are the sizes a sender should assume is safe to transmit without knowing the path. They are conservative defaults, not measured limits of any particular network, so the real path may allow more or less. For ML-KEM, the relevant comparison is between the message size the draft describes and these defaults: an IKE_SA_INIT carrying ML-KEM-768 or ML-KEM-1024 can exceed the 576 byte IPv4 default, and the 1280 byte IPv6 default may also be exceeded by the larger identifiers. Check the path MTU the tunnel will actually cross, and do not assume the defaults describe it. Where the path is known to be reliable and sufficient, the defaults stop mattering for that path.

How do ML-KEM sizes compare with X25519?

X25519 uses a 32-byte public key and a 32-byte shared secret, according to RFC 7748, Section 5. The ML-KEM sources in this topic report encapsulation keys of 800, 1184 and 1568 bytes for ML-KEM-512, ML-KEM-768 and ML-KEM-1024, with a 32-byte shared secret in every case. The shared secret length matches X25519, but the public material is far larger, which is why the IKE_SA_INIT concern does not arise with X25519. The sources give the key and ciphertext sizes as properties of the algorithm; the IKE key exchange payloads are different numbers, so do not substitute one for the other when budgeting a message. Compare the key exchange payload lengths from the draft with the X25519 exchange in your own deployment before deciding where ML-KEM can sit in the handshake.

Which RFC defines IKE_INTERMEDIATE?

RFC 9242 defines IKE_INTERMEDIATE, published in May 2022 as a Standards Track document, for transferring large amounts of data during IKEv2 SA establishment. RFC 9370 uses it for additional key exchanges, which run in IKE_INTERMEDIATE messages after IKE_SA_INIT and are encrypted, so IKE fragmentation under RFC 7383 can be applied to them. The draft says larger ML-KEM exchanges can be placed in IKE_INTERMEDIATE, CREATE_CHILD_SA or IKE_FOLLOWUP_KE messages, which can be fragmented. For the decision-maker, this means the large key exchange can be moved out of the first message, which removes the fragmentation problem but adds at least one more round trip before the SA is complete. Ask the implementation vendor to confirm which message types it uses and how it handles fragmentation.

How DeployOpen works on this

DeployOpen scopes each IKEv2 migration against the exchanges your gateways actually run, including which ML-KEM parameter set, IKE_INTERMEDIATE step and path MTU assumptions apply. We then build, test and document the configuration in your own infrastructure so your network and security teams can review the message sizes and fragmentation behavior before production.

How we scope

  • Inventory which IKEv2 gateways, clients and tunnel peers would carry additional key exchanges and their current IKE_SA_INIT behavior.
  • Record the path MTU assumptions across each tunnel route, including any UDP segments where the path MTU is unknown or restricted.
  • Agree a fixed written scope that states which ML-KEM parameter sets and exchange placements are covered, and what is excluded.

How we build

  • Configure additional key exchanges in IKE_INTERMEDIATE or CREATE_CHILD_SA messages in the gateway platforms your organization runs.
  • Enable IKE fragmentation where larger exchange messages are expected, and confirm the fragmentation settings on each peer.
  • Test handshake message lengths against the path MTU of each tunnel route, and record any exchange that exceeds it.

How we hand over

  • Deliver a document listing each exchange, its transform ID, measured message lengths and the placement used in each handshake.
  • Provide the configuration, test results and fragmentation settings so your network team can reproduce and review each tunnel.
  • Walk your network and security teams through the findings and open items before the migration moves to production traffic.

How we support

  • Support ongoing upgrades and retesting as the IKEv2 ML-KEM draft and the gateway software versions change.
  • Continue monitoring fragmentation and handshake failures after go-live if you choose a retainer for continuous support.
  • Confirm with your gateway vendor which versions support the exchanges in scope before any production change is approved.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.