RFC 9853

Return Routability Check for DTLS 1.2 and 1.3

๐Ÿ“… published March 2026, from ietf

Abstract ๐Ÿฆ‹

okay so bestie, this doc is all about the Return Routability Check (RRC) subprotocol ๐Ÿ’…. It's for the Connection ID (CID) construct in DTLS versions 1.2 and 1.3, so it's basically a new safety feature for DTLS connections ๐Ÿ”ฅ.

Implementations that do CID stuff from RFC 9146 and RFC 9147 are encouraged to also do RRC. That's why this document updates RFC 9146 and RFC 9147 โœจ.


Status of This Memo ๐ŸŒธ

This is an Internet Standards Track document.

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at https://www.rfc-editor.org/info/rfc9853.


Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.


Table of Contents ๐Ÿงš

1.  Introduction
2.  Conventions and Terminology
3.  RRC Extension
  3.1.  RRC and CID Interplay
4.  Return Routability Check Message Types
5.  Path Validation Procedure
  5.1.  Basic
  5.2.  Enhanced
  5.3.  Path Challenge Requirements
  5.4.  Path Response/Drop Requirements
  5.5.  Timer Choice
6.  Example
7.  Operational Considerations
  7.1.  Logging Anomalous Events
  7.2.  Middlebox Interference
8.  Security Considerations
  8.1.  Attacker Model
    8.1.1.  Amplification
    8.1.2.  Off-Path Packet Forwarding
9.  Privacy Considerations
10. IANA Considerations
  10.1.  New TLS ContentType
  10.2.  New TLS ExtensionType
  10.3.  New "TLS RRC Message Type" Registry
    10.3.1.  Designated Expert Instructions
11. References
  11.1.  Normative References
  11.2.  Informative References
Acknowledgments
Authors' Addresses

Title Block ๐Ÿ’–

Here's the paperwork, bestie ๐Ÿ“‹. This is RFC 9853, called Return Routability Check for DTLS 1.2 and 1.3 โœจ. The editor is H. Tschofenig, and the co-authors are A. Kraus and T. Fossati. Tschofenig and Kraus are at UniBw M., and Fossati is at Linaro. It's dated March 2026, it's a Standards Track document, and it's published in the IETF stream with ISSN 2070-1721 ๐ŸŒˆ. It updates RFC 9146 and RFC 9147, which is the big reason you should care ๐Ÿ‘‘.


1. Introduction ๐Ÿ’…

okay so a Connection ID (CID) is an identifier that sits in the record layer header of a DTLS datagram. It gives the receiver extra info so it can pick the right security context ๐Ÿฆ‹. The CID mechanism is specified in [RFC9146] for DTLS 1.2 and in [RFC9147] for DTLS 1.3.

Section 6 of [RFC9146] explains how using CID gives both on-path and off-path attackers a chance to pull off DoS or DDoS attacks ๐Ÿ˜ญ. It also describes what a DTLS principal has to do when it gets a record with a CID coming from a source address that isn't the one currently tied to the DTLS connection. The catch is that the actual mechanism for making sure the new peer address is willing to receive and process DTLS records is left open ๐Ÿ™ˆ. So this document fills that gap by defining a Return Routability Check (RRC) subprotocol for DTLS 1.2 and 1.3. It's inspired by the path validation procedure in Section 8.2 of [RFC9000] โœจ. That's why this document updates [RFC9146] and [RFC9147].

The return routability check happens on the receiving endpoint before the CID-address binding gets updated in that endpoint's session state. This gives the receiver confidence that the sending peer really is reachable at the source address in the datagram ๐Ÿงก. For a picture of the handshake and address validation phases, check out Section 6.

Section 5.1 of this document covers the basic mechanism that tries to shrink the DDoS attack surface ๐ŸŒธ. Section 5.2 goes further with a more advanced address validation mechanism. This one is built to stop off-path attackers who try to get on-path by racing packets that trigger address rebinding at the receiver ๐Ÿƒโ€โ™€๏ธ. If you want the full attacker model, see Section 8.1.

Besides updating CID-address bindings, the path validation capability that RRC offers can be used at any time by either endpoint ๐Ÿ’œ. For example, an endpoint might use RRC to check that a peer is still reachable at its last known address after a period of quiet.


2. Conventions and Terminology ๐ŸŽ€

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

This document assumes you already know the CID format and protocol from DTLS 1.2 [RFC9146] and DTLS 1.3 [RFC9147] ๐Ÿง . The presentation language used here is described in Section 4 of [RFC8446].

Here, "anti-amplification limit" means three times the amount of data received from an unvalidated address ๐Ÿšซ. That includes all DTLS records coming from that source address, except the ones that got discarded. It follows the pattern of [RFC9000] and applies a similar idea to DTLS โœจ.

The term "address" is defined in Section 1.2 of [RFC9000] ๐Ÿ“.

The terms "client", "server", "peer", and "endpoint" are defined in Section 1.1 of [RFC8446] ๐Ÿ’–.


3. RRC Extension ๐Ÿฆ‹

RRC is negotiated with the rrc extension, and that extension is only defined for DTLS 1.2 and 1.3 ๐ŸŒˆ. When connecting, a client that wants RRC puts the rrc extension in its ClientHello. If the server can handle it, the server answers with an rrc extension in its ServerHello. The extension_type value for this extension is 61, and its extension_data field is empty ๐Ÿ“.

A client that offers the rrc extension MUST also offer the connection_id extension [RFC9146]. If the client puts the rrc extension in its ClientHello but leaves out the connection_id extension, the server MUST NOT include the rrc extension in its ServerHello ๐Ÿ™…โ€โ™€๏ธ. A client that offers the connection_id extension SHOULD also offer the rrc extension, unless the application using DTLS has its own address validation mechanism ๐Ÿ’…. The client and server MUST NOT use RRC unless both sides have successfully exchanged rrc extensions ๐Ÿซถ.

3.1. RRC and CID Interplay โœจ

RRC gives you an in-protocol way to do peer address validation, and it complements the "peer address update" procedure from Section 6 of [RFC9146] ๐Ÿ”ฅ. Specifically, when both CID [RFC9146] and RRC have been successfully negotiated for the session, and a record with CID arrives whose enclosing UDP datagram has a source address different from what's currently associated with that CID value, the receiver SHOULD perform a return routability check as described in Section 5. The exception is when an application-specific address validation mechanism can be triggered instead, for example Constrained Application Protocol (CoAP) Echo [RFC9175] ๐ŸŒธ.


4. Return Routability Check Message Types ๐Ÿ‘‘

This document defines the return_routability_check content type (Figure 1) to carry Return Routability Check messages ๐Ÿ’Œ.

The RRC subprotocol has three message types: path_challenge, path_response, and path_drop. They're used for path validation and selection, as described in Section 5 ๐Ÿฆ‹.

Each message carries a Cookie. It's an 8-byte field with 64 bits of entropy, for example from the cryptographically secure pseudorandom number generator (CSPRNG) that the TLS implementation uses. See Appendix C.1 of [RFC8446] ๐ŸŽฒ.

The return_routability_check message MUST be authenticated and encrypted using the currently active security context ๐Ÿ”.

enum {
    invalid(0),
    change_cipher_spec(20),
    alert(21),
    handshake(22),
    application_data(23),
    heartbeat(24),  /* RFC 6520 */
    tls12_cid(25),  /* RFC 9146, DTLS 1.2 only */
    return_routability_check(27), /* NEW */
    (255)
} ContentType;

uint64 Cookie;

enum {
    path_challenge(0),
    path_response(1),
    path_drop(2),
    (255)
} rrc_msg_type;

struct {
    rrc_msg_type msg_type;
    select (return_routability_check.msg_type) {
        case path_challenge: Cookie;
        case path_response:  Cookie;
        case path_drop:      Cookie;
    };
} return_routability_check;

Figure 1: Return Routability Check Message and Content Type

Future extensions to the RRC subprotocol might define new message types ๐Ÿ”ฎ. Implementations MUST be able to parse and understand the three RRC message types defined in this document. On top of that, implementations MUST be able to parse and gracefully ignore messages with an unknown msg_type ๐Ÿ™.


5. Path Validation Procedure ๐Ÿงœโ€โ™€๏ธ

A receiver that sees the peer's address change MUST stop sending any buffered application data, or limit the data sent to the unvalidated address to the anti-amplification limit. Then it starts the return routability check ๐Ÿ›‘.

This document describes two kinds of checks: basic (Section 5.1) and enhanced (Section 5.2). Which one you pick depends on whether the off-path attacker scenario from Section 8.1.2 needs to be considered. The strategy choice mainly comes down to the threat model, but other stuff can influence it too, like keeping implementation complexity down, privacy concerns, and how fast you need to switch paths โšก. The choice may be offered to the user of the TLS implementation as a configuration option ๐ŸŽ›๏ธ.

After the path validation procedure is done, any pending send operation resumes to the bound peer address โœ….

Sections 5.3 and 5.4 list the requirements for the initiator and responder roles, broken down per protocol phase ๐Ÿ“.

Heads up: these algorithms are not designed to handle nested rebindings. Those are rebindings that happen while a path is being validated after an earlier rebinding โš ๏ธ. This should rarely happen, but if it does, the path_response message gets dropped, the address validation times out, and the address will not be updated. A new path validation starts when new data is received ๐Ÿ”„.

Also, watch out for NAT rebinds. In that case the initiator and responder have different views of the path. The initiator sees a new path, while the responder still sees the old one ๐Ÿ‘€.

5.1. Basic ๐ŸŒธ

Okay so the basic return routability check goes like this, bestie. ๐Ÿ’…

  1. The receiver (i.e., the initiator) creates a return_routability_check message of type path_challenge and places the unpredictable cookie into the message.
  2. The message is sent to the observed new address and a timer T (see Section 5.5) is started.
  3. The peer (i.e., the responder) cryptographically verifies the received return_routability_check message of type path_challenge and responds by echoing the cookie value in a return_routability_check message of type path_response.
  4. When the initiator receives the return_routability_check message of type path_response and verifies that it contains the sent cookie, it updates the peer address binding. โœจ
  5. If T expires, the peer address binding is not updated. ๐Ÿ™ˆ

5.2. Enhanced ๐Ÿฆ‹

The enhanced version is giving extra layers, and I'm obsessed. Here's how it works:

  1. The receiver (i.e., the initiator) creates a return_routability_check message of type path_challenge and places the unpredictable cookie into the message.
  2. The message is sent to the previously valid address, which corresponds to the old path. Additionally, a timer T is started (see Section 5.5).
  3. If the path is still functional, the peer (i.e., the responder) cryptographically verifies the received return_routability_check message of type path_challenge. The action to be taken depends on whether the path through which the message was received remains the preferred one. ๐Ÿ‘‘
    • If the path through which the message was received is preferred, a return_routability_check message of type path_response MUST be returned. (Note that, from the responder's perspective, the preferred path and the old path coincide in the event of a NAT rebind.)
    • If the path through which the message was received is no longer preferred, a return_routability_check message of type path_drop MUST be returned. (Note that the responder must have initiated a voluntary path migration in order to know that this path is no longer the preferred one.)

In either case, the peer echoes the cookie value in the response.

  1. The initiator receives and verifies that the return_routability_check message contains the previously sent cookie. The actions taken by the initiator differ based on the received message: ๐Ÿ“
    • When a return_routability_check message of type path_response is received, the initiator MUST continue using the previously valid address, i.e., no switch to the new path takes place and the peer address binding is not updated.
    • When a return_routability_check message of type path_drop is received, the initiator MUST perform a basic return routability check on the observed new address, as described in Section 5.1.
  2. If T expires, the peer address binding is not updated. In this case, the initiator MUST perform a basic return routability check on the observed new address, as described in Section 5.1. ๐Ÿ˜ญ

5.3. Path Challenge Requirements ๐ŸŽ€

These are the rules for sending path_challenge messages, and they're lowkey important:

  • The initiator MAY send multiple return_routability_check messages of type path_challenge to account for packet loss on the probed path.
    • Each path_challenge SHOULD go into different transport packets. (Note that the DTLS implementation may not have control over the packetization done by the transport layer.)
    • The transmission of subsequent path_challenge messages SHOULD be paced to decrease the chance of loss.
    • Each path_challenge message MUST contain random data.
    • In general, the number of "backup" path_challenge messages depends on the application, since some are more sensitive than others to latency caused by changes in the path. In the absence of application-specific requirements, the initiator can send a path_challenge message once per round-trip time (RTT), up to the anti-amplification limit.
  • The initiator MAY use the record padding mechanism available in DTLS 1.3 (and in DTLS 1.2, when CID is enabled on the sending direction) to add padding up to the anti-amplification limit to probe if the Path MTU (PMTU) for the new path is still acceptable. ๐Ÿงš

5.4. Path Response/Drop Requirements ๐Ÿ’œ

Now the responder's side of things, and it's giving strict:

  • The responder MUST NOT delay sending an elicited path_response or path_drop message.
  • The responder MUST send exactly one path_response or path_drop message for each valid path_challenge it received.
  • The responder MUST send the path_response or the path_drop to the address from which the corresponding path_challenge was received. This ensures that the path is functional in both directions.
  • The initiator MUST silently discard any invalid path_response or path_drop it receives.

Note that RRC does not account for PMTU discovery on the reverse path. If the responder wants to do PMTU discovery using RRC, it should initiate a new path validation procedure. ๐Ÿค“

5.5. Timer Choice โฐ

When setting T, implementations are cautioned that the new path could have a longer RTT than the original. Be careful, babe. ๐Ÿซถ

In settings where there is external information about the RTT of the active path (i.e., the old path), implementations SHOULD use T = 3xRTT.

If an implementation has no way to obtain information regarding the RTT of the active path, T SHOULD be set to 1 second.

Profiles for specific deployment environments -- for example, constrained networks [IOT-PROFILE] -- MAY specify a different, more suitable value for T.

6. Example ๐Ÿงšโ€โ™€๏ธ

Figure 2 shows an example of a DTLS 1.3 handshake in which a client and a server successfully negotiate support for both the CID and RRC extensions. The vibes here are immaculate. โœจ

       Client                                           Server

Key  ^ ClientHello
Exch | + key_share
     | + signature_algorithms
     | + rrc
     v + connection_id=empty
                               -------->
                                                  ServerHello  ^ Key
                                                 +  key_share  | Exch
                                          + connection_id=100  |
                                                        + rrc  v
                                        {EncryptedExtensions}  ^  Server
                                         {CertificateRequest}  v  Params
                                                {Certificate}  ^
                                          {CertificateVerify}  | Auth
                               <--------           {Finished}  v

     ^ {Certificate}
Auth | {CertificateVerify}
     v {Finished}              -------->
       [Application Data]      <------->  [Application Data]


              +  Indicates noteworthy extensions sent in the
                 previously noted message.

              {} Indicates messages protected using keys
                 derived from a [sender]_handshake_traffic_secret.

              [] Indicates messages protected using keys
                 derived from [sender]_application_traffic_secret_N.

            Figure 2: Message Flow for Full DTLS Handshake

Once a connection has been established, the client and the server exchange application payloads protected by DTLS with a unilaterally used CID. In this case, the client is requested to use CID 100 for records sent to the server. ๐ŸŒˆ

At some point in the communication interaction, the address used by the client changes, and thanks to the CID usage, the security context to interpret the record is successfully located by the server. However, the server wants to test the reachability of the client at its new address. Main character energy from the server, ngl. ๐Ÿ’…

Figure 3 shows the server initiating a basic RRC exchange (see Section 5.1) that establishes reachability of the client at the new address.

      Client                                             Server
      ------                                             ------

      Application Data            ========>
      <CID=100>
      Src-IP=A
      Dst-IP=Z
                                  <========        Application Data
                                                       Src-IP=Z
                                                       Dst-IP=A

                              <<------------->>
                              <<   Some      >>
                              <<   Time      >>
                              <<   Later     >>
                              <<------------->>


      Application Data            ========>
      <CID=100>
      Src-IP=B
      Dst-IP=Z

                                             <<< Unverified IP
                                                 Address B >>

                                  <--------  Return Routability Check
                                             path_challenge(cookie)
                                                    Src-IP=Z
                                                    Dst-IP=B

      Return Routability Check    -------->
      path_response(cookie)
      Src-IP=B
      Dst-IP=Z

                                             <<< IP Address B
                                                 Verified >>


                                  <========        Application Data
                                                       Src-IP=Z
                                                       Dst-IP=B

              Figure 3: Basic Return Routability Example

7. Operational Considerations ๐Ÿ’

7.1. Logging Anomalous Events ๐Ÿ”

Logging of RRC operations at both ends of the protocol can be generally useful for the users of an implementation. In particular, for Security Information and Event Management (SIEM) and troubleshooting purposes, it is strongly advised that implementations collect statistics about any unsuccessful RRC operations, as they could represent security-relevant events when they coincide with attempts by an attacker to interfere with the end-to-end path. It is also advisable to log instances where multiple responses to a single path_challenge are received, as this could suggest an off-path attack attempt. ๐Ÿšจ

In some cases, the presence of frequent path probes could indicate a problem with the stability of the path. This information can be used to identify any issues with the underlying connectivity service. ๐ŸŒธ

7.2. Middlebox Interference ๐Ÿ›ก๏ธ

Since the DTLS 1.3 encrypted packet's record type is opaque to on-path observers, RRC messages are immune to middlebox interference when using DTLS 1.3. In contrast, DTLS 1.2 RRC messages that are not wrapped in the tls12_cid record (e.g., in the server-to-client direction if the server negotiated a zero-length CID) have the return_routability_check content type in plain text, making them susceptible to interference (e.g., dropping of path_challenge messages), which would hinder the RRC functionality altogether. Therefore, when RRC is used in DTLS 1.2 and middlebox interference is a concern, it is recommended to enable CID in both directions. ๐Ÿฆ‹

8. Security Considerations โœจ

Okay bestie, this is the big security section ๐Ÿ”๐Ÿ’… First, return routability checks (RRC) do not protect third parties from flooding if the attacker is on-path ๐Ÿ˜ฌ The attacker can just redirect the RRC datagrams to the real peer, even when those datagrams are cryptographically authenticated. On-path adversaries can, in general, pose a harm to connectivity ๐Ÿ’€

Next, cookie reuse. If the RRC challenger reuses a cookie that was already used in the same connection and doesn't implement anti-replay protection (see Section 4.5.1 of [RFC9147] and Section 4.1.2.6 of [RFC6347]), an attacker could replay an old path_response message containing that reused cookie and trick the challenger into switching to a path the attacker picked ๐Ÿ˜ฑ To prevent this, RRC cookies must be freshly generated using a reliable source of entropy [RFC4086]. See Appendix C.1 of [RFC8446] for guidance ๐ŸŽ€


8.1. Attacker Model

Two classes of attackers are considered, off-path and on-path, with increasing capabilities (see Figure 4). These descriptions are based on the ones introduced in QUIC (Section 21.1 of [RFC9000]):

  • An off-path attacker is not on the original path between the DTLS peers, but it can observe packets on the original path and has a faster forwarding path compared to the DTLS peers. That lets it make copies of the observed packets, race its copies to either peer, and consistently win the race ๐ŸŽ๏ธ
  • An on-path attacker is on the original path between the DTLS peers. Compared to the off-path attacker, it can also drop and delay records at will ๐Ÿšง

Note that, in general, attackers cannot craft DTLS records in a way that would successfully pass verification, thanks to the cryptographic protections applied by the DTLS record layer ๐Ÿ”’

              .--> .------------------------------------. <--.
              |    | Inspect unencrypted portions       |    |
              |    +------------------------------------+    |
              |    | Inject                             |    |
          off-path +------------------------------------+    |
              |    | Reorder                            |    |
              |    +------------------------------------+    |
              |    | Modify unauthenticated portions    | on-path
              '--> +------------------------------------+    |
                   | Delay                              |    |
                   +------------------------------------+    |
                   | Drop                               |    |
                   +------------------------------------+    |
                   | Manipulate the packetization layer |    |
                   '------------------------------------' <--'

Figure 4: Attacker Capabilities

RRC is designed to defend against the following attacks:

  • On-path and off-path attackers that try to create an amplification attack by spoofing the source address of the victim (Section 8.1.1).
  • Off-path attackers that try to put themselves on-path (Section 8.1.2), provided that the enhanced path validation algorithm is used (Section 5.2). ๐Ÿ›ก๏ธ

8.1.1. Amplification

Both on-path and off-path attackers can send a packet with the source address changed to that of a victim host. An on-path attacker does this by modifying the packet on the fly, and an off-path attacker does it by copying, injecting, and racing the packet. If the traffic the server generates in response is larger than the received packet (for example, a CoAP server returning an MTU's worth of data from a 20-byte GET request [AMP-ATTACKS]), the attacker can use the server as a traffic amplifier aimed at the victim ๐Ÿ“ข

8.1.1.1. Mitigation Strategy

When an RRC-capable endpoint receives a packet with a known CID whose source address differs from the one currently associated with the DTLS connection, it will not send a (potentially large) response. Instead, it sends a small path_challenge message to the victim host. Because the host cannot decrypt it and generate a valid path_response, address validation fails, and the original address binding stays unaltered ๐Ÿ™…โ€โ™€๏ธ

Note that in the case of an off-path attacker, the original packet still reaches the intended destination. That means an implementation could use a different strategy to mitigate the attack.

8.1.2. Off-Path Packet Forwarding

An off-path attacker that can observe packets might forward copies of genuine packets to endpoints over a different path. If the copied packet arrives before the genuine packet, it looks like a path change, just like a genuine NAT rebinding. Any genuine packet will then be discarded as a duplicate ๐Ÿ‘€ If the attacker keeps forwarding packets, it might be able to cause migration to a path that goes through the attacker. That places the attacker on-path, which gives it the ability to observe or drop all subsequent packets ๐Ÿ˜ฑ

This style of attack relies on the attacker using a path with the same or better characteristics (for example, due to a more favourable service level agreement) as the direct path between the endpoints. The attack is more effective if relatively few packets are sent, or if packet loss coincides with the attempted attack ๐Ÿ“‰

A data packet received on the original path that increases the maximum received packet number will cause the endpoint to move back to that path. So eliciting packets on this path makes the attack more likely to fail โœจ However, note that, unlike QUIC, DTLS has no "non-probing" packets, so this would require application-specific mechanisms ๐Ÿงฉ

8.1.2.1. Mitigation Strategy โœจ

Okay so picture this ๐Ÿฆ‹ Figure 5 shows a receiver getting a packet from a brand new source address. Before it trusts that path change, the receiver has to make sure an off-path attacker didn't trigger it, so it sends an RRC message of type path_challenge (1) on the old path.

                             new                  old
                             path  .----------.  path
                                   |          |
                             .-----+ Receiver +-----.
                             |     |          |     |
                             |     '----------'     |
                             |                      1
                             |                      |
                             |                      |
                        .----+------.               v
                       / Attacker? /                |
                      '------+----'                 |
                             |                      |
                             |                      |
                             |                      |
                             |     .----------.     |
                             |     |          |     |
                             '-----+  Sender  +-----'
                                   |          |
                                   '----------'

               Figure 5: Off-Path Packet Forwarding Scenario

Three cases need to be considered ๐Ÿ‘€

Case 1: The old path is dead (e.g., due to a NAT rebinding), which leads to a timeout of (1). ๐Ÿ’€ Rip old path.

As shown in Figure 6, a path_challenge (2) needs to be sent on the new path. If the sender replies with a path_response on the new path (3), the switch to the new path is considered legitimate โœ…

                       new                      old
                       path    .----------.    path
                       .------>|          +-------.
                       | .-----+ Receiver +...... |
                       | | .---+          |     . |
                       | | |   '----------'     . |
              path-    3 | |                    . 1 path-
              response | | |                    . | challenge
                       | | |                    . |
                    .--|-+-|----------------------v--.
                   /   |   |       NAT            X / timeout
                  '----|-+-|-----------------------'
                       | | |                    .
                       | | 2 path-              .
                       | | | challenge          .
                       | | |   .----------.     .
                       | | '-->|          |     .
                       | '-----+  Sender  +.....'
                       '-------+          |
                               '----------'

                         Figure 6: Old Path Is Dead

Case 2: The old path is alive but not preferred. ๐ŸŒธ

In this one (Figure 7), the sender replies with a path_drop message (2) on the old path. That makes the receiver send a path_challenge (3) on the new path, and the sender answers with a path_response (4) on the new path. Together, that's the confirmation for the path migration ๐Ÿซถ

                       new                      old
                       path    .----------.    path
                       .------>|          |<------.
                       | .-----+ Receiver +-----. |
                       | | .---+          +---. | |
                       | | |   '----------'   | | |
              path-    4 | |        path-     1 | |
              response | | |        challenge | | |
                       | | |                  | | |
             .---------|-+-|----.          .--|-+-|-----------.
            /    NAT A |   |   /          /   |   | NAT B    /
           '-----------|---|--'          '----|-+-|---------'
                       | | |                  | | |
                       | | 3 path-            | | 2 path-
                       | | | challenge        | | | drop
                       | | |   .----------.   | | |
                       | | '-->|          |<--' | |
                       | '-----+  Sender  +-----' |
                       '-------+          +-------'
                               '----------'

                    Figure 7: Old Path Is Not Preferred

Case 3: The old path is alive and preferred. ๐Ÿ˜ˆ

This is most likely the result of an off-path attacker trying to place itself on-path. As Figure 8 shows, the receiver sends a path_challenge (1) on the old path, and the sender replies with a path_response (2) on the old path. The connection doesn't migrate to the new path, so the attack gets thwarted ๐Ÿ›ก๏ธ

                       new                    old
                       path  .----------.    path
                             |          +-------.
                       .-----+ Receiver +-----. |
                       |     |          |<--. | |
                       |     '----------'   | | |
                       |                    | | 1 path-
                       |                    | | | challenge
                       |                    | | |
                   .---+------.          .--|-+-|-----.
                  / off-path /          /   |NAT|    /
                 / attacker /          '----|-+-|---'
                '------+---'                | | |
                       |                    | | |
                       |           path-    2 | |
                       |           response | | |
                       |     .----------.   | | |
                       |     |          +---' | |
                       '-----+  Sender  +-----' |
                             |          |<------'
                             '----------'

                      Figure 8: Old Path Is Preferred

Note that this defense is imperfect, but this is not considered a serious problem ๐Ÿ™ˆ If the path via the attacker is reliably faster than the old path despite multiple attempts to use that old path, it is not possible to distinguish between an attack and an improvement in routing.

An endpoint could also use heuristics to improve detection of this style of attack โœจ For instance, NAT rebinding is improbable if packets were recently received on the old path. Endpoints can also look for duplicated packets. Conversely, a change in CID is more likely to indicate an intentional migration rather than an attack. Note that changes in CIDs are supported in DTLS 1.3 but not in DTLS 1.2.


9. Privacy Considerations ๐Ÿ”

Okay, privacy is a big deal bestie ๐Ÿซถ When using DTLS 1.3, peers SHOULD avoid using the same CID on multiple network paths, especially when initiating connection migration or probing a new network path (see Section 5). Why? Because an adversary can otherwise correlate the communication across those different paths ๐Ÿ‘€ DTLS 1.3 provides mechanisms to make sure a new CID can always be used. In general, an endpoint should proactively send a RequestConnectionId message to ask for new CIDs as soon as the pool of spare CIDs is depleted (or goes below a threshold). Also, in case a peer might have exhausted its available CIDs, a migrating endpoint could include NewConnectionId in packets sent on the new path, so the subsequent path validation can use fresh CIDs ๐Ÿ’–

Note that DTLS 1.2 does not offer the ability to request new CIDs during the session lifetime, since CIDs have the same lifespan as the connection ๐Ÿ˜ญ So deployments that use DTLS in multihoming environments SHOULD refuse to use CIDs with DTLS 1.2 and switch to DTLS 1.3 if the correlation privacy threat is a concern ๐Ÿฆ‹


10. IANA Considerations ๐Ÿ“‹

10.1. New TLS ContentType

IANA has allocated an entry in the "TLS ContentType" registry within the "Transport Layer Security (TLS) Parameters" registry group [IANA.tls-parameters] for the return_routability_check (27) message defined in this document. IANA set the DTLS_OK column to "Y" and added the following note to the registry:

Note: The return_routability_check content type is only applicable to DTLS 1.2 and 1.3.

10.2. New TLS ExtensionType

IANA has allocated the extension code point (61) for rrc in the "TLS ExtensionType Values" registry, as described in Table 1 ๐ŸŽ€

+=====+=========+===+===========+=============+===========+=======+
|Value|Extension|TLS| DTLS-Only | Recommended | Reference |Comment|
|     |Name     |1.3|           |             |           |       |
+=====+=========+===+===========+=============+===========+=======+
|61   |rrc      |CH,| Y         | N           | RFC 9853  |       |
|     |         |SH |           |             |           |       |
+-----+---------+---+-----------+-------------+-----------+-------+

    Table 1: New Entry in the TLS ExtensionType Values Registry

10.3. New "TLS RRC Message Type" Registry

IANA has created the "TLS RRC Message Types" registry within the "Transport Layer Security (TLS) Parameters" registry group [IANA.tls-parameters]. This registration procedure is "Expert Review" (Section 4.5 of [RFC8126]).

To submit registration requests, follow the procedures in Section 16 of [RFC9847].

Each entry in the registry must include the following fields ๐Ÿงพ

  • Value: A (decimal) number in the range 0 to 253.
  • Description: A brief description of the RRC message.
  • DTLS-Only: Indication of whether the message only applies to DTLS. Since RRC is only available in DTLS, this column is set to "Y" for all the initial entries in this registry. Future work may define new RRC message types that also apply to TLS.
  • Recommended: Indication of whether the message is recommended for implementations to support. The semantics for this field is defined in Section 5 of [RFC8447] and updated in Section 3 of [RFC9847].
  • Reference: A reference to a publicly available specification for the value.
  • Comment: Any relevant notes or comments that relate to this entry.

Table 2 shows the initial contents of this registry ๐Ÿ’…

+=======+================+=========+=============+=========+=======+
|Value  | Description    |DTLS-Only| Recommended |Reference|Comment|
+=======+================+=========+=============+=========+=======+
|0      | path_challenge |Y        | Y           |RFC 9853 |       |
+-------+----------------+---------+-------------+---------+-------+
|1      | path_response  |Y        | Y           |RFC 9853 |       |
+-------+----------------+---------+-------------+---------+-------+
|2      | path_drop      |Y        | Y           |RFC 9853 |       |
+-------+----------------+---------+-------------+---------+-------+
|3-253  | Unassigned     |         |             |         |       |
+-------+----------------+---------+-------------+---------+-------+
|254-255| Reserved for   |Y        |             |RFC 9853 |       |
|       | Private Use    |         |             |         |       |
+-------+----------------+---------+-------------+---------+-------+

     Table 2: Initial Entries in TLS RRC Message Type Registry

IANA added the following note to provide additional information regarding the use of RRC message codepoints in experiments:

Note: As specified in [RFC8126], assignments made in the Private Use space are not generally useful for broad interoperability. Those making use of the Private Use range are responsible for ensuring that no conflicts occur within the intended scope of use. For widespread experiments, provisional registrations (Section 4.13 of [RFC8126]) are available.

10.3.1. Designated Expert Instructions ๐ŸŽ€

okay so the whole point here is that registration decisions get a broadly informed review, not just one person's vibe ๐Ÿ’… it is recommended that multiple designated experts be appointed to represent the perspectives of both the transport and security areas ๐Ÿงš

and if a registration decision could look like a conflict of interest for one particular expert, that expert SHOULD defer to the judgment of the other experts ๐Ÿซถ fairness is everything, periodt.

11. References ๐Ÿ“š

11.1. Normative References

11.2. Informative References

Acknowledgments ๐Ÿซถ

huge thank you to Colin Perkins, Deb Cooley, Eric Rescorla, ร‰ric Vyncke, Erik Kline, Hanno Becker, Hanno Bรถck, Joe Clarke, Manuel Pรฉgouriรฉ-Gonnard, Marco Tiloca, Martin Thomson, Mike Bishop, Mike Ounsworth, Mohamed Boucadair, Mohit Sahni, Rich Salz, Russ Housley, Sean Turner, and Yaron Sheffer for their input to this document ๐Ÿ’–

Authors' Addresses ๐Ÿ’Œ

Hannes Tschofenig (editor)
University of the Bundeswehr Munich
Institute of Distributed Intelligent Systems
Werner-Heisenberg-Weg 39
85577 Neubiberg
Germany
Email: Hannes.Tschofenig@gmx.net

Achim Kraus
Email: achimkraus@gmx.net

Thomas Fossati
Linaro
Email: thomas.fossati@linaro.org
๐Ÿ“ฆ where this page comes from