DTLS handshake sizes and datagram limits

The handshake and certificate sizes in bytes for each post-quantum parameter set, and the DTLS limits they meet. Figures come from RFC 9935, RFC 9881, RFC 9909 and RFC 9147.

On this page

DTLS handshake size figures in bytes for each post-quantum parameter set

Engineers sizing DTLS handshakes most often need three figures first. The ML-KEM-768 encapsulation key is 1184 bytes and its ciphertext is 1088 bytes (RFC 9935). The ML-DSA-65 raw signature is 3309 bytes, and the raw public key is 1952 bytes (RFC 9881). A UDP datagram is often limited to less than 1500 bytes if IP fragmentation is not desired (RFC 9147, Section 3.3). Together these show that a single post-quantum key share and certificate signature can already take up most of one datagram before the rest of the handshake is counted. This table is for engineers sizing DTLS handshakes, for middlebox and firewall reviewers checking whether fragmented handshake traffic will pass their devices, and for teams checking whether a particular message fits within one datagram.

The sizes above are raw key and signature lengths. They exclude ASN.1 encoding overhead, so a certificate chain or encoded key will be larger than the raw figure (RFC 9881, Appendix B). The SLH-DSA sets are much larger still: at NIST level 1, the 128s signature is 7856 bytes and the 128f signature is 17088 bytes, and at level 5 the 256f signature reaches 49856 bytes (RFC 9909, Appendix B). Confirm in your own environment whether a given message is fragmented, since RFC 9147 requires each handshake fragment to be delivered in a single UDP datagram and notes that handshake messages can grow to many kilobytes.

Check the sizes that your own handshake will actually send, not only the largest single figure. The DTLS handshake header carries a 24-bit length and per-fragment offsets (RFC 9147, Section 5.2), and the server may answer with a HelloRetryRequest and cookie exchange before the real handshake starts (RFC 9147, Sections 3.1 and 5.1). Those extra round trips add to the bytes on the path. Ask your implementation vendor which DTLS version and which algorithm sets they support, and confirm the resulting message sizes against the vendor documentation and RFC 9147 before you rely on them.

Post-quantum key, ciphertext and signature sizes in bytes

This table lists the raw sizes in bytes for each ML-KEM, ML-DSA and SLH-DSA parameter set, as given in RFC 9935, RFC 9881 and RFC 9909. The ML-KEM rows cover key exchange messages, which are carried in the DTLS ClientHello and server flight, while the ML-DSA and SLH-DSA rows cover signatures and public keys that appear in certificates. Sizes exclude ASN.1 encoding overhead, so the figures are a floor for what reaches the wire. The largest entries, the SLH-DSA f-variant signatures, are the ones most likely to push a handshake past typical datagram limits.

Parameter setKey or ciphertext field (bytes)Size (bytes)Source
ML-KEM-512Encapsulation key / ciphertext / shared secret800 / 768 / 32RFC 9935, Appendix B, Table 1
ML-KEM-768Encapsulation key / ciphertext / shared secret1184 / 1088 / 32RFC 9935, Appendix B, Table 1
ML-KEM-1024Encapsulation key / ciphertext / shared secret1568 / 1568 / 32RFC 9935, Appendix B, Table 1
ML-DSA-44Raw public key / raw signature1312 / 2420RFC 9881, Appendix B, Table 2
ML-DSA-65Raw public key / raw signature1952 / 3309RFC 9881, Appendix B, Table 2
ML-DSA-87Raw public key / raw signature2592 / 4627RFC 9881, Appendix B, Table 2
SLH-DSA-128s / 128fPublic key / signature32 / 7856 (s), 17088 (f)RFC 9909, Appendix B, Table 1
SLH-DSA-192s / 192fPublic key / signature48 / 16224 (s), 35664 (f)RFC 9909, Appendix B, Table 1
SLH-DSA-256s / 256fPublic key / signature64 / 29792 (s), 49856 (f)RFC 9909, Appendix B, Table 1

How to read the byte columns and the security categories

Before comparing DTLS handshake sizes, read the byte columns in the source tables correctly. The ML-KEM figures come from RFC 9935, Appendix B, Table 1, which lists the encapsulation key, decapsulation key, ciphertext and shared secret lengths for ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The ML-DSA figures come from RFC 9881, Appendix B, Table 2, which lists raw public key, signature, private seed and expanded private key lengths for ML-DSA-44, ML-DSA-65 and ML-DSA-87. The SLH-DSA figures come from RFC 9909, Appendix B, Table 1, which lists public key, private key and signature lengths for the small (s) and fast (f) variants at each level. Each column is a fixed length in bytes for one parameter set, so the handshake cost of a choice comes from the sum of the fields that actually cross the wire.

Each parameter set is tied to a NIST security category. ML-KEM-512, ML-KEM-768 and ML-KEM-1024 are listed at NIST levels 1, 3 and 5. ML-DSA-44, ML-DSA-65 and ML-DSA-87 are used for NIST security categories 2, 3 and 5, so ML-DSA has no category 1 entry in these tables. SLH-DSA is listed at levels 1, 3 and 5, with the sha2 and shake 128s and 128f sets at level 1, the 192s and 192f sets at level 3, and the 256s and 256f sets at level 5. Match the level or category of the key exchange and the signature in your design, and confirm the category your compliance or procurement requirements name before selecting a set. The HashSLH-DSA sets carry the same values as their pure SLH-DSA equivalents, as RFC 9909 states, but confirm the variant your implementation uses.

Where a 3309-byte signature stops fitting a DTLS datagram

A 3309-byte ML-DSA-65 raw signature is one of the largest pieces a DTLS handshake carries, and it competes with fragmentation rules, record sizing and retransmission behavior for space in each UDP datagram. The cards below cover the parts of RFC 9147 that decide whether a handshake message fits, fragments cleanly or stalls under loss.

Handshake messages reach kilobytes

RFC 9147 says TLS and DTLS handshake messages can be quite large: in theory up to 2^24-1 bytes, and in practice many kilobytes. A certificate chain that carries post-quantum signatures can push a single handshake message well past what one datagram holds. Check the total size of each flight you plan to send, not only the size of the signature itself. The raw signature of 3309 bytes is a single ML-DSA-65 value and excludes ASN.1 encoding overhead, so the encoded size on the wire will be larger.

RFC 9147

Datagrams limited below 1500 bytes

RFC 9147 notes that UDP datagrams are often limited to less than 1500 bytes if IP fragmentation is not desired. This is a common path constraint, not a guaranteed value, so confirm the path MTU for the networks your clients use. A 3309-byte signature alone exceeds this limit, so the message containing it must be split across several datagrams.

RFC 9147

Fragments and records each fit one datagram

Each handshake message fragment placed into a record must be delivered in a single UDP datagram, and each DTLS record must fit within one datagram without spanning two. Implementations must also handle overlapping fragment ranges. When you size a flight, check that the largest fragment and the largest record both fit the path MTU estimate your stack uses, because a record that cannot fit cannot be sent at all.

RFC 9147

Retransmissions shrink records when PMTU unknown

When the path MTU is unknown and retransmissions repeat, RFC 9147 says later retransmissions should back off to a smaller record size and fragment the handshake message as appropriate. This keeps a large flight from failing indefinitely on a constrained path. Test what your stack does after repeated loss, since the fallback to smaller records adds round trips and extends handshake time on lossy links.

RFC 9147

Ten-record transmission limit

RFC 9147 says DTLS stacks should not send more than 10 records in a single transmission. A flight that a post-quantum certificate chain has split into many fragments can run into this ceiling, so it is worth counting the records your handshake produces before you deploy a larger certificate. Confirm the limit and behavior in your DTLS implementation, since the count you need depends on how fragments are packed into records.

RFC 9147

ML-KEM, ML-DSA and SLH-DSA parameter sets and where each is named

ML-KEM is the key encapsulation mechanism family, and RFC 9935 lists three parameter sets at NIST levels 1, 3 and 5. Each set has its own encapsulation key, decapsulation key and ciphertext size, while the shared secret is 32 bytes in every case. Because the encapsulation key and ciphertext are the parts that travel in a handshake, these are the sizes that matter for DTLS flight length.

  • ML-KEM-512: level 1, with a 800-byte encapsulation key, a 1632-byte decapsulation key and a 768-byte ciphertext (RFC 9935, Appendix B, Table 1).
  • ML-KEM-768: level 3, with a 1184-byte encapsulation key, a 2400-byte decapsulation key and a 1088-byte ciphertext (RFC 9935, Appendix B, Table 1).
  • ML-KEM-1024: level 5, with a 1568-byte encapsulation key, a 3168-byte decapsulation key and a 1568-byte ciphertext (RFC 9935, Appendix B, Table 1).
  • Shared secret: 32 bytes for all three sets, so the shared secret does not change the handshake size.
  • Where it is named: RFC 9935 is the document to cite for these values and for the set names used in key share fields.

Confirm the parameter set and the TLS or DTLS key share codepoint your stack negotiates, since the set in use determines which of these lengths appears on the wire.

Post-quantum sizes against X25519 and Ed25519 in bytes

This table sets the classical X25519 and Ed25519 sizes against the ML-KEM and ML-DSA sizes from the reference table, so you can see how much larger each DTLS handshake message becomes when its key share or signature changes. Read each row as one field of a handshake message, and compare the post-quantum figure to the classical figure in the same row. The main takeaway is that post-quantum key shares and signatures are several times larger than their classical counterparts, which pushes handshake messages past the datagram limits discussed in RFC 9147.

FieldClassical (X25519 or Ed25519)Post-quantum (ML-KEM or ML-DSA)Source of the figure
Public key or encapsulation key32 bytes (X25519 public key)800 bytes (ML-KEM-512), 1184 bytes (ML-KEM-768), 1568 bytes (ML-KEM-1024)RFC 7748 Section 5; RFC 9935 Appendix B Table 1
Shared secret32 bytes (X25519)32 bytes (all ML-KEM levels)RFC 7748 Section 5; RFC 9935 Appendix B Table 1
Ciphertext sent in key shareNot applicable (X25519 sends its public key)768 bytes (ML-KEM-512), 1088 bytes (ML-KEM-768), 1568 bytes (ML-KEM-1024)RFC 9935 Appendix B Table 1
Public key for signatures32 bytes (Ed25519 public key)1312 bytes (ML-DSA-44), 1952 bytes (ML-DSA-65), 2592 bytes (ML-DSA-87)RFC 8032 Section 1; RFC 9881 Appendix B Table 2
Signature64 bytes (Ed25519 signature)2420 bytes (ML-DSA-44), 3309 bytes (ML-DSA-65), 4627 bytes (ML-DSA-87)RFC 8032 Section 1; RFC 9881 Section 3
Signature size noteFixed at 64 bytesRaw sizes exclude ASN.1 encoding overheadRFC 9881 Appendix B

Checking a DTLS handshake against these byte limits

This sequence checks whether a DTLS handshake fits your datagram limits, using the sizes in each parameter set and the fragmentation and retransmission rules in RFC 9147. It ends with a tested configuration and a written confirmation from the vendor of the DTLS version and parameter set it implements.

  1. Confirm the parameter set and its figures

    Start by recording which key exchange and signature algorithms the DTLS stack will offer and accept, including the exact parameter set for each (for example, the ML-KEM security level or the ML-DSA category). Look up the public key, ciphertext, signature and certificate sizes for each one in the reference tables on this page, and note whether the figures are raw sizes or include ASN.1 encoding. Do not assume the sizes of one parameter set apply to another. This step is complete when you have a written list of every algorithm in the handshake with its sizes and source.

  2. Estimate whether the first flight fits one datagram

    Add up the handshake message sizes for the ClientHello and the server's flight, including the handshake headers and any certificate chain, and compare the total against the 1500-byte limit that RFC 9147 gives for datagrams when IP fragmentation is not wanted. Then check the path MTU your network actually allows, which may be smaller than 1500 bytes. Each record must fit within a single datagram, so flag any message that exceeds the limit or the PMTU estimate. The output is a per-message fit table that marks each flight as fitting or not fitting.

  3. Confirm fragmentation and retransmission behavior

    Ask the DTLS stack's maintainers or read its documentation to confirm how it fragments handshake messages and how it backs off when the path MTU is unknown, as described in RFC 9147 Sections 4.4 and 5.5. Each fragment must be delivered in a single UDP datagram, and the stack should reduce record size on repeated retransmissions. Check that the stack handles overlapping fragment ranges and does not send more than the record limit RFC 9147 sets per transmission. Record the observed behavior in your test notes so you can compare it against the sizes from the earlier steps.

  4. Check the HelloRetryRequest and cookie path

    Verify how the server responds when it sends a HelloRetryRequest, and confirm that the client resends a new ClientHello with the cookie added as an extension, as set out in RFC 9147 Sections 3.1 and 5.1. Check whether the server performs a cookie exchange on each new handshake and whether its response volume toward an unverified address stays within the three-times limit that section describes. Because the cookie round trip adds a flight, add its size to the estimate from the second step and confirm that the combined exchange still fits your limits.

  5. Test the configuration on the target path

    Run handshakes between a client and server built with your chosen configuration, across the network path you intend to use, including any tunnels or middleboxes that might lower the effective MTU. Capture the packets and compare the actual datagram sizes, fragment counts and retransmission events with the estimates from earlier steps. Repeat the test with the largest certificate chain you plan to deploy. The output is a capture log for each test case, and any mismatch between estimate and observation should be investigated before you accept the configuration.

  6. Ask the vendor which DTLS version and parameter set

    Send the vendor a written question asking which DTLS version the product implements and which post-quantum parameter sets it supports for key exchange and signatures. Ask for the exact release or build number that carries this support and for the documentation that describes its fragmentation and cookie behavior. Compare the answer against the parameter sets you tested. The sources listed on this page do not say which products implement which versions, so treat the vendor's written answer as the authority for your deployment and confirm it before you rely on it.

What these byte figures do not tell you about a live handshake

The byte figures on this page are raw sizes. The RFC 9881 and RFC 9909 values for signatures, public keys and private keys exclude ASN.1 encoding overhead, so a certificate or key stored in DER or PEM form will be larger than the raw value shown. The sources listed on this page do not give the ASN.1 wrapping for each algorithm, so do not add an encoding allowance to these figures from memory. Measure the encoded object your stack actually emits, using the encoding your certificate tooling produces. The same caveat applies to the message bodies in a handshake: a figure for a key share or signature is not the length of the record that carries it.

The figures also leave out the DTLS handshake header. Each handshake message carries a 24-bit length, a 16-bit message_seq, and 24-bit fragment_offset and fragment_length fields, as defined in RFC 9147, Section 5.2. Those fields, together with the record header and any cookie exchange or HelloRetryRequest, add bytes to every flight. Each fragment must be delivered in a single UDP datagram and each record must fit within one datagram (RFC 9147, Sections 4.3 and 5.5). Whether a handshake fragments therefore depends on the full sum, not on any single component. RFC 9147 Section 3.3 notes that handshake messages can be very large in theory and many kilobytes in practice, which is a reason to measure rather than estimate.

The sources do not give a total handshake size for any pairing of key exchange and authentication algorithm. A table of component sizes cannot be added up into a flight length without knowing the message structure, the number of certificates in the chain and the datagram limit on your path. Confirm the total by running a handshake in your own environment and capturing the flights with a packet capture tool, including retransmissions. For the authoritative message layout and fragmentation rules, read RFC 9147, and check each algorithm's own RFC for the sizes that apply to the versions you deploy.

How big is an ML-DSA-65 signature and does it fit a DTLS datagram?

How big is an ML-DSA-65 signature in bytes?

An ML-DSA-65 signature is 3309 bytes when measured as a raw signature. ML-DSA-65 is the parameter set used for NIST security category 3. RFC 9881 lists the raw public key as 1952 bytes and the expanded private key as 4032 bytes, with a 32-byte private seed. These are raw sizes. They exclude ASN.1 encoding, so a certificate or a structure that carries the signature will be larger than 3309 bytes once wrapped. When you size buffers, use the raw figure as the floor and measure the encoded form in your own build, because the wrapping depends on the encoding your library and certificate profile use.

How big are SLH-DSA signatures compared with ML-DSA-65?

SLH-DSA signatures are much larger than ML-DSA-65. At NIST level 1 they are 7856 bytes for the small (s) sets and 17088 bytes for the fast (f) sets. At level 3 they are 16224 bytes (s) or 35664 bytes (f), and at level 5 they are 29792 bytes (s) or 49856 bytes (f). RFC 9909 gives these as raw sizes from its Appendix B, Table 1. The HashSLH-DSA parameter sets match the pure SLH-DSA equivalents on these values. For a comparison at a similar security category, the level 3 SLH-DSA signatures are roughly five to ten times the 3309-byte ML-DSA-65 signature. The gap is the main reason SLH-DSA is harder to fit into size-limited protocols.

Does an ML-DSA-65 signature fit inside a 1500-byte DTLS datagram?

The sources listed here do not state whether a 3309-byte signature fits in one datagram, because that depends on everything else in the message and on the path MTU. RFC 9147 says that UDP datagrams are often limited to less than 1500 bytes when IP fragmentation is not desired, and that each DTLS record must fit within a single datagram. A certificate verify message that carries a 3309-byte signature plus headers and a certificate chain will exceed 1500 bytes by a wide margin, so the handshake message will need fragmentation across datagrams. RFC 9147 also says each handshake fragment must be delivered in one UDP datagram. Confirm the actual message sizes and the path MTU in your environment before you commit to a design.

How do ML-DSA-65 and SLH-DSA compare with Ed25519 and X25519 sizes?

Ed25519 uses 32-byte public keys and 64-byte signatures (RFC 8032). X25519 uses 32-byte public keys and 32-byte shared secrets (RFC 7748). ML-KEM-768 is a key encapsulation mechanism, and its encapsulation key is 1184 bytes with a 1088-byte ciphertext and a 32-byte shared secret (RFC 9935, Appendix B). Compared with Ed25519, ML-DSA-65 has a 3309-byte signature rather than a 64-byte one, and a 1952-byte public key rather than 32 bytes. A signature and a key exchange are different roles, so these figures should not be added together as one handshake total. Map each element of your handshake to its own algorithm before comparing sizes.

Which parameter set does a size figure refer to?

Each size figure belongs to one parameter set, so check the set name before you use a number. ML-DSA comes in three sets: ML-DSA-44, ML-DSA-65 and ML-DSA-87, used for NIST security categories 2, 3 and 5. Their raw signatures are 2420, 3309 and 4627 bytes. SLH-DSA sets are named by hash family, security level and small (s) or fast (f) variant, such as 128s or 256f, and each has its own signature size. A rule, profile or product configuration that names only a family, such as 'ML-DSA' or 'SLH-DSA', does not tell you which set is in use. Ask the vendor or check the specification that the configuration references, and confirm the set name before sizing anything.

Do the published signature sizes include encoding overhead?

The published ML-DSA and SLH-DSA sizes are raw sizes that exclude ASN.1 encoding overhead. RFC 9881 states this for the ML-DSA figures in its Appendix B. A signature inside an X.509 certificate or a TLS CertificateVerify message is wrapped in additional structure, and that wrapping adds bytes. The sources listed here do not give the exact encoded lengths for each format. To find them, encode a test certificate or message with the library you plan to deploy and measure the output. Use the measured length, not the raw figure, when you check against a datagram or packet limit.

How a DTLS handshake fragment travels from client to server

The flow starts with the client sending a ClientHello in a single record. If the server answers with a HelloRetryRequest, the client must resend a new ClientHello with the cookie added as an extension, since servers should run a cookie exchange whenever a new handshake starts (RFC 9147, Sections 3.1 and 5.1). The server's flight is then split into handshake message fragments, and each fragment placed into a record must be delivered in one UDP datagram (RFC 9147, Section 5.5). Each record must fit within a single datagram, so when a retransmission happens with an unknown path MTU, the sender should back off to a smaller record size and fragment the message again (RFC 9147, Sections 4.3 and 4.4). Check that each datagram stays under the limit you expect on the path, which RFC 9147 notes is often under 1500 bytes.

Message order and fragmentation across UDP datagrams in a DTLS handshake.

How DeployOpen helps with DTLS post-quantum migration

DeployOpen works on DTLS handshake sizes and datagram limits by measuring how each algorithm choice changes handshake messages and fragmentation before any configuration changes are made. The work covers the self-hosted platforms and devices you run, inside your own infrastructure, with written scope and deliverables agreed up front.

How we scope

  • Written scope lists which DTLS endpoints, handshake flows and key and certificate choices are covered.
  • We confirm the datagram limits and path MTU your network actually enforces, rather than assuming a single figure.
  • Scope states which DTLS version and implementation you run, since handshake behavior depends on that choice.

How we build

  • We set up test handshakes that record message lengths, fragment counts and retransmission behavior for each algorithm pairing.
  • Configuration changes are made in your environment, including record sizing and fragmentation settings where your stack exposes them.
  • We test HelloRetryRequest and cookie exchange paths so that handshakes still complete when messages grow past a single datagram.

How we hand over

  • Deliverables include the measured handshake sizes, the configuration applied and the datagram limits each result was checked against.
  • Documentation records which versions and settings were tested, so your team can confirm compatibility for the versions it runs.
  • A retest is included in the written scope so you can confirm handshakes complete after the changes are applied.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer when your DTLS stack or algorithm choices change.
  • Questions about how a specific handshake or datagram limit applies to your deployment can be raised against the written scope.

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.