<?xml version="1.0" encoding="US-ASCII"?>
<!-- This template is for creating an Internet Draft using xml2rfc,
 which is available here: http://xml.resource.org. -->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!-- One method to get references from the online citation libraries.
There has to be one entity for each item to be referenced.
An alternate method (rfc include) is described in the references. -->
<!ENTITY RFC768 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.0768.xml">
<!ENTITY RFC1191 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.1191.xml">
<!ENTITY RFC2119 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC4821 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4821.xml">
<!ENTITY RFC8085 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8085.xml">
<!ENTITY RFC8174 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
<!ENTITY RFC8201 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8201.xml">
<!ENTITY RFC8304 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8304.xml">
<!ENTITY RFC8899 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8899.xml">
<!ENTITY I-D.ietf-tsvwg-udp-options SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.draft-ietf-tsvwg-udp-options-32.xml">
]>
<!-- ?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?-->
<!-- For a complete list and description of processing instructions (PIs),
 please see http://xml.resource.org/authoring/README.html. -->
<!-- Below are generally applicable Processing Instructions (PIs) that most I-Ds might want to use.
 (Here they are set differently than their defaults in xml2rfc v1.32) -->
<?rfc strict="yes" ?>
<!-- give errors regarding ID-nits and DTD validation -->
<!-- control the table of contents (ToC) -->
<?rfc toc="yes"?>
<!-- generate a ToC -->
<?rfc tocdepth="4"?>
<!-- the number of levels of subsections in ToC. default: 3 -->
<!-- control references -->
<?rfc symrefs="yes"?>
<!-- use symbolic references tags, i.e, [RFC2119] instead of [1] -->
<?rfc sortrefs="yes" ?>
<!-- sort the reference entries alphabetically -->
<!-- control vertical white space
 (using these PIs as follows is recommended by the RFC Editor) -->
<?rfc compact="yes" ?>
<!-- do not start each main section on a new page -->
<?rfc subcompact="no" ?>
<!-- keep one blank line between list items -->
<!-- end of list of popular I-D processing instructions -->
<rfc category="std" docName="draft-ietf-tsvwg-udp-options-dplpmtud-12"
    ipr="trust200902">
    <!-- category values: std, bcp, info, exp, and historic
     ipr values: trust200902, noModificationTrust200902, noDerivativesTrust200902,
     or pre5378Trust200902
     you can add the attributes updates="NNNN" and obsoletes="NNNN"
     they will automatically be output with "(if approved)" -->
    
    <!-- ***** FRONT MATTER ***** -->
    
    <front>
        <!-- The abbreviated title is used in the page header - it is only necessary if the
         full title is longer than 39 characters -->
        
        <title abbrev="UDPO DPLPMTUD">Datagram PLPMTUD for UDP Options</title>
        
        <!-- add 'role="editor"' below for the editors if appropriate -->
        
        <!-- Another author who claims to be an editor -->
        
        <author fullname="Godred Fairhurst" initials="G" surname="Fairhurst">
            <organization>University of Aberdeen</organization>
            
            <address>
                <postal>
                    <street>School of Engineering</street>
                    <street>Fraser Noble Building</street>
                    <city>Aberdeen</city>
                    <region></region>
                    <code>AB24 3UE</code>
                    <country>UK</country>
                </postal>
                
                <email>gorry@erg.abdn.ac.uk</email>
            </address>
        </author>
        
        <author fullname="Tom Jones" initials="T" surname="Jones">
            <organization>University of Aberdeen</organization>
            
            <address>
                <postal>
                    <street>School of Engineering</street>
                    <street>Fraser Noble Building</street>
                    <city>Aberdeen</city>
                    <region></region>
                    <code>AB24 3UE</code>
                    <country>UK</country>
                    <country>UK</country>
                </postal>
                
                <email>tom@erg.abdn.ac.uk</email>
            </address>
        </author>
        
        <date day="7" month="May" year="2024" />
        
        <!-- Meta-data Declarations -->
        
        <area>Transport</area>
        
        <workgroup>Internet Engineering Task Force</workgroup>
        
        <!-- WG name at the upperleft corner of the doc,
         IETF is fine for individual submissions. If this element is not
         present, the default is "Network Working Group", which is used by the
         RFC Editor as a nod to the history of the IETF. -->
        
        <keyword>UDP UDP-Options PMTUD PLPMTUD DPLPMTUD Datagram</keyword>
        
        <abstract>
            <t>This document specifies how a UDP Options sender implements Datagram
                Packetization Layer Path Maximum Transmission Unit Discovery (DPLPMTUD)
                as a robust method for Path Maximum Transmission Unit discovery. This
                method uses the UDP Options
                packetization layer. It allows an application to discover the
                largest size of datagram that can be sent
                across a network path. It also provides a way to allow
                the application to periodically verify the current maximum
                packet size supported by a path and to update this when required.</t>
        </abstract>
    </front>
    
    <middle>
        <section title="Introduction">
            <t>The User Datagram Protocol <xref target="RFC0768"></xref> offers a
                minimal transport service on top of IP and is frequently used as a
                substrate for other protocols. Section 3.2 of UDP Guidelines <xref
                    target="RFC8085"></xref> recommends that applications implement some
                form of Path MTU discovery to avoid the generation of IP fragments:</t>
            
            <t>"Consequently, an application SHOULD either use the path MTU
                information provided by the IP layer or implement Path MTU Discovery
                (PMTUD)".</t>
            
            <t>The UDP API <xref target="RFC8304"></xref> offers calls for
                applications to receive ICMP Packet Too Big (PTB) messages and to
                control the maximum size of datagrams that are sent, but it does not offer
                any automated mechanisms for an application to discover the maximum
                packet size supported by a path. Upper Layer protocols, which
                includes applications, can
                implement mechanisms for Path MTU discovery above the UDP API.</t>
            
            <t>Packetization Layer Path MTU Discovery (PLPMTUD) <xref target="RFC4821"></xref>
                describes a method for a Packetization Layer (PL)
                to search for the largest Packetization Layer PMTU (PLPMTU) supported on
                a path. Datagram PLPMTUD (DPLPMTUD) <xref target="RFC8899"></xref>
                specifies this support for datagram transports. PLPMTUD and DPLPMTUD
                gain robustness by using a probing mechanism that does not solely rely on
                ICMP PTB messages and works on paths that drop ICMP PTB messages.</t>
            
            <t>UDP Options <xref target="I-D.ietf-tsvwg-udp-options"></xref> supplies
                functionality that can be used to implement DPLPMTUD within the
                transport service or in an Upper Layer protocol (including an application)
                that uses UDP Options.
                This document specifies how DPLPMTUD using UDP Options
                is implemented (Section 6.1 of <xref target="RFC8899"></xref>).
        </t>
        
            <t>Implementing DPLPMTUD within the
                transport service above UDP Options avoids the need for
                each Upper Layer protocol to implement the DPLPMTUD
                method. It provides a standard method for applications to discover the
                current maximum packet size for a path and to detect when this
                changes.</t>
        </section><!-- End of Intro -->
        
        <section title="Terminology">
            <t>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
                <xref target="RFC2119"></xref>
                <xref target="RFC8174"></xref>
                when, and only when, they appear in all
                capitals, as shown here.</t>
            <t>
                This document uses the terms defined for DPLPMTUD (Sections 2 and 5 of <xref target="RFC8899"></xref>).
            </t>
            
        </section> <!-- End of terms -->
        
        <section title="DPLPMTUD for UDP Options">
           
            <t>A UDP Options sender implementing DPLPMTUD uses the method specified
        in <xref target="RFC8899"></xref>. In this specification, this is
        realised using a pair of
        UDP Options:
        the Request (REQ) Option and the Response (RES) Option
         (Section 9.7 of <xref target="I-D.ietf-tsvwg-udp-options"></xref>).
         The method also uses the End of Options List (EOL) Option
             (Section 9.1 of  <xref target="I-D.ietf-tsvwg-udp-options"></xref>) to 
         introduce padding to set the size of a probe packet.</t>
        
        <t>Use of DPLPMTUD MUST be explicitly enabled by the application, for instance
                once an application has established connectivity and is ready
                to exchange data with the remote Upper Layer protocol.
                Similarly, a DPLPMTUD receiver SHOULD NOT respond to a REQ
                Option until DPLPMTUD has been enabled.</t>
                
        <t>Probe packets consume network capacity and incur endpoint
                processing (Section 4.1 of <xref target="RFC8899"></xref>).
                Implementations ought to send a probe packet with a REQ
                Option only when required by their local DPLPMTUD state machine,
                i.e., when confirming the base PMTU for the path,
                probing to increase the PLPMTU, or to confirm the current
                PLPMTU.</t>
        
        <t>There are two designs for using DPLPMTUD
                over UDP Options:</t>
         <list style="symbols">
             <t>Implementation within the UDP transport service;</t>
             <t>Implementation an Upper Layer protocol (or application) that uses UDP Options.</t>
        </list>
        
        <t>When DPLPMTUD implemented within the UDP
                transport service, the DPLPMTUD state machine
                is responsible for sending probe packets to determine a PLPMTU, as described
        in this document. The Upper Layer protocol is responsible for deciding
        when a session enables DPLPMTUD.</t>

        <t>The discovered PLPMTU can be used to either:</t>
        
                <list style="symbols">
                    
                    <t> set the maximum datagram size for the current path;</t>
                    <t> set the maximum fragment size when a sender uses the
                        UDP Fragmentation Option to divide a datagram into
                        multiple UDP fragments for transmission. The size of each UDP fragment
                        is then less than the size of the discovered largest IP packet that can
                        be received across the current path.
                    </t>
        </list>
            
            <t>The figure below shows an implementation of DPLPMTUD within the UDP
                transport service.
                It illustrates key interactions between the layers.
                This design REQUIRES an API primitive to allow the application to
                control whether the DPLPMTUD state machine is enabled for a specific
        UDP port. By default, this API MUST disable DPLPMTUD processing.</t>

            
            <figure>
                <artwork align="left">
                    <![CDATA[
+--------------------------------+
|      Upper Layer Protocol      |
|         or Application         |
+---------------------------+----+
    ^                       | Messages (with UDP Options)
    | receive         send  | Primitives for MPS, Min_PMTU etc.
+---+----------------------------+
| DPLPMTUD State Machine         |
|   Maximum Packet Size (MPS)    |
|   PLPMTU, Probed-Size,Min_PMTU |
|   Token Values & Probes, etc   |
+---------------------------+----+
    ^                       | Messages (with UDP Options)
    |                       |   Send/Receive: Probes with Options
    | receive         send  |   Events: ICMP, Interface MTU, etc
+--------------------------------+
| UDP Options Transport          |
+---------------------------+----+
    ^                       | Datagrams (with UDP Options)
    |                       | Fragmented Datagrams with UDP Options
    | receive         send  | Events: ICMP, Interface MTU, etc

]]></artwork>
</figure>
                <t>Note: UDP allows an Upper Layer Protocol
                to send datagrams with or without payload data (with or without
                UDP Options). These
                are delivered across the network to the remote Upper Layer.
        When DPLPMTUD is implemented within the UDP
                transport service,
        DPLPMTUD can be permitted to generate probe packets
                with no UDP payload that include a REQ or RES UDP Option.
                In this case, these probe packets were not generated by the sending
        application and therefore the corresponding datagrams are
                not delivered to the remote application.</t>
        
        <t>When DPLPMTUD is instead implemented by an Upper Layer protocol, the format and content
                of probe packets are determined by the Upper Layer protocol.
        This design is also permitted to use the REQ and RES Options provided by UDP Options.
        </t>
    
            <t>If DPLPMTUD is active at more than one layer,
                then the values of the tokens used in REQ Options need to be coordinated
                with any values used for other DPLPMTUD probe packets to ensure
                that each probe packet can be identified by a unique token.
                When configurable, a design ought to avoid
                performing such discovery within UDP Options
                and also by upper protocol layers
                (that send and receive probe packets via UDP Options).</t>
            <t>
                Section 6.1 of <xref target="RFC8899"></xref> recommends that
                "An application SHOULD avoid using DPLPMTUD when the
                underlying transport system provides this capability".</t>
            
            <section title="Packet Formats">
                        
                <t>The UDP Options used in this document are described in 
                 <xref target="I-D.ietf-tsvwg-udp-options"></xref> and are used
        in the following way:</t>
                
                <list style="symbols">
                    <t>The REQ Option is set by a sending PL to solicit a response from a
                        remote receiver. A four-byte token identifies each request.</t>

                     <t>A sending PL can use the EOL option together with a minimum 
                       datagram length to pad probe packets.</t>
                    <t>The RES Option is sent by a UDP Options receiver in response to a
                        previously received REQ Option. Each RES Option echoes the last received
                four-byte token.</t>
                 <t>
            Reception of a RES Option by the sender confirms that a specific
                        probe packet has been received by the remote UDP Options receiver.</t>
                </list>
                    
                    <t>The token allows a UDP Options sender to distinguish
                        between acknowledgements for initial probe packets and
                        acknowledgements confirming receipt of subsequent probe packets
                        (e.g., travelling along alternate paths with a larger round-trip
                        time). Each probe packet MUST be uniquely
                        identifiable by the UDP Options sender within the Maximum Segment
                        Lifetime (MSL) <xref target="RFC8085"></xref>.
                        The UDP Options sender MUST NOT reuse
                        a token value within the MSL. A
                        four byte value for the token field provides sufficient space for
                        multiple unique probe packets to be made within the MSL. Since UDP Options
                        operates over UDP, the token values only need to be unique for
                        the specific 5-tuple over which it is operating.
                    </t>
                    
                    <t>The value of the four-byte token field SHOULD be initialised
                        to a randomised value to enhance protection from off-path attacks,
                        as described in Section 5.1 of <xref target="RFC8085"></xref>.</t>
            
        </section> <!-- End of DPLPMTUD for UDP Options:Formats -->
            
                <section title="Sending Probe Packets with the Request Option">
                    
           <t>DPLPMTUD relies upon sending a probe packet
                    with a specific size.
                     Each probe packet includes the UDP Options area containing
                      a REQ Option
                      and any other required options concluded with an EOL Option
                       (Section 9.1 of <xref target="I-D.ietf-tsvwg-udp-options"></xref>)
               followed by any padding needed to inflate to the required probe size.</t>
    
                    <t>A probe packet can therefore be of size up to the maximum size
            supported by the local interface.
            <xref target="RFC8899"></xref> (Section 3, item 2) requires the network interface
                        below DPLPMTUD to provide a way to transmit a probe packet
                        that is larger than the current PLPMTU.
            The size of this probe packet MUST NOT be constrained by the maximum PMTU
                    set by network layer mechanisms (such as discovered by PMTUD <xref
                        target="RFC1191"></xref><xref target="RFC8201"></xref> or the PMTU size
                    held in the IP-layer cache),
                    as noted in bullet 2 of Section 3 in <xref target="RFC8899"></xref>).</t>
                
             <t>UDP datagrams used as DPLPMTUD probe packets, as described in this
                        document, MUST NOT be fragmented at the UDP layer.
                    </t>
                 
             </section>    <!-- End of DPLPMTUD for UDP Options:sending -->
            
            <section title="Receiving UDP-Options Probe Packets and sending the RES Option">
            
               <t>When DPLPMTUD is enabled, a UDP Options receiver responds
            by sending a UDP datagram with the RES Option when
            it receives a UDP Options datagram with
                        the REQ Option.</t>
                   
            <t>The operation of DPLPMTUD can depend on the support at
                the remote UDP Options endpoint, the way in which DPLPMTUD
                is implemented and in some cases the application data that is
                exchanged over the UDP transport service.
                When UDP Options is not supported by the remote receiver,
                        DPLPMTUD will be unable to confirm the path or to discover the PLPMTU.
                        This will result in the minimum configured PLPMTU (MIN_PLPMTU).
               More explanation of usage is provided in <xref target="examples"></xref>.
            </t>
            
            <t>Note: A receiver that only responds when there is a datagram
                        queued for transmission by the Upper Layer could potentially
                        receive multiple datagrams with a REQ Option before it can
                        respond. When sent, the RES Option will only acknowledge the
                        latest received token value. A sender would then conclude
                        that any earlier REQ Options were not successfully received.
                        However, DPLPMTUD does not normally send more than one
                        probe packet per timeout interval, and a delay in responding
                        will already have been treated as a failed probe attempt.
                        Therefore, this does not significantly impact performance,
                        although a more prompt response would have resulted in
                        DPLPMTUD recording reception of all probe packets.</t>
    
        </section> <!-- End of DPLPMTUD for UDP Options:Receiving -->
        </section> <!-- End of DPLPMTUD for UDP Options -->
        
        <section anchor="UDPOPT-PLPMTUD" title="DPLPMTUD Sender Procedures for UDP Options">
            <t> DPLPMTUD utilises three types of probe. These are described in the following sections:</t>
            <list style="symbols">
                <t>Probes to confirm the path can support the BASE_PLPMTU (Section 5.1.4 of <xref
                    target="RFC8899"></xref>).</t>
                <t>Probes to detect whether the path can support a larger PLPMTU.</t>
                <t>Probes to validate the path supports the current PLPMTU.</t>
            </list>
            
            <section title="Confirmation of Connectivity across a Path">
                <t>The DPLPMTUD method requires a PL to confirm
                    connectivity over the path (Section 5.1.4 of <xref
                        target="RFC8899"></xref>), but UDP itself does not offer a mechanism for
                    this.</t>
                
                <t>UDP Options can provide this required functionality. A UDP Options
                    sender implementing this specification MUST elicit a positive
                    confirmation of connectivity for the path, by sending a probe packet,
                    padded to size BASE_PLPMTU. This confirmation probe MUST
                    include the REQ UDP option to elicit a response from the remote DPLPMTUD.
                    Reception of a datagram with the corresponding RES Option confirms
                    the reception of a packet of the probed size that has successfully
                    traversed the path to the receiver.
                    This also confirms that the
                    remote endpoint supports the RES Option.</t>
            </section> <!-- End of Procedures for UDP Options:End of confirm -->
            
            <section title="Sending Probe Packets to Increase the PLPMTU">
                
                <t>From time to time, DPLPMTUD enters the SEARCHING state, described in
                    Section 5.2 of <xref target="RFC8899"></xref>, (e.g., after expiry of the PMTU_RAISE_TIMER)
                    to detect whether the current
                    path can support a larger PLPMTU.
                    When the remote endpoint advertises a UDP Maximum Datagram Size
                    (MDS) option, this value MAY be used as a hint to
                    initialise this search to increase the PLPMTU.</t>
                
                <t> Probe packets seeking to increase the PLPMTU SHOULD NOT carry application data
                    ("Probing using padding data" in Section 4.1 of <xref target="RFC8899"></xref>),
                    since they will be lost whenever their size exceeds the actual PMTU. A probe packet
                    needs to elicit a positive acknowledgment that the path has
                    delivered a datagram of the specific probed size and, therefore, MUST include the
                    REQ Option.</t>
                
                <t>At the receiver, a received probe packet that does not carry application data
                    does not form a part of the end-to-end
                    transport data and is not delivered to the Upper Layer protocol
                    (i.e., application or protocol layered above UDP).</t>
            </section> <!-- End of Procedures for UDP Options: Increase -->
            
            <section title="Validating the Path with UDP Options">
                <t>A PL using DPLPMTUD needs to validate that a path continues to support the
                    PLPMTU discovered in a previous search for a suitable PLPMTU value
                    (Section 6.1.4 of <xref target="RFC8899"></xref>).
                    This validation sends probe packets in the
                    DPLPMTUD SEARCH_COMPLETE state to detect black-holing of data
                    (Section 5.2 of <xref target="RFC8899"></xref>, Section 4.3 of <xref target="RFC8899"></xref>
                    defines a DPLPMTUD black-hole).</t>
                
                <t>Path validation can be implemented within UDP Options by generating
                    a probe packet of size PLPMTU, which MUST include a REQ Option to elicit a
                    positive confirmation that the path has delivered this probe packet.
                    A probe packet used to validate the path MAY use either "Probing using padding data" 
                    to construct a probe packet that does not carry any
                    application data (Section 4.1 of <xref target="RFC8899"></xref>) or "Probing using
                    application data and padding data", see Section 4.1 of <xref target="RFC8899"></xref>. 
                    When using "Probing using padding data", the UDP Options API does not indicate receipt of the
                    zero-length probe packet, see Section 4.4.
                 </t>
            </section> <!-- End of Procedures for UDP Options: Validate -->
            
            <section anchor="no-app-data" title="Probe Packets that do not include Application Data">
                <t>
                    A simple implementation of the method might be designed
                    to only use probe packets in a UDP datagram that includes no
                    application data. The size of each probe packet is padded to the required
                    probe size including the REQ Option. This implements
                    "Probing using padding data" (Section 4.1 of <xref target="RFC8899"></xref>)
                    and avoids having to retransmit
                    application data when a probe fails.
                    This could be achieved by setting
                    a minimum datagram length, such that the options list
                    ends in EOL and additional space is zero-filled as needed (Section 13 of <xref target="I-D.ietf-tsvwg-udp-options"></xref>).
                    In this use, the probe packets do not form a part of the end-to-end
                    transport data and a receiver does not deliver them to the Upper Layer protocol.
                </t>
            </section> <!-- End of Procedures for UDP Options: Probe Without Data -=-->
            
            <section title="Probe Packets that include Application Data">
                <t>
            An implementation always uses the format in <xref target="no-app-data"></xref>
                    when DPLPMTUD searches to increase the PLPMTU.</t>
                <t>
                    An alternative format is permitted for a probe packet used to confirm
                    connectivity or that validates the path.
                    These probe packets are permitted to carry application data.
                    (A UDP payload data is permitted because these probe packets perform black-hole detection
                    and will, therefore, usually have a higher probability of successful
                    transmission, similar to other packets sent by the Upper Layer protocol.)
                    Section 4.1 of <xref target="RFC8899"></xref> provides a discussion of
                    the merits and demerits of including application data. For example, this
                    reduces the need to send additional datagrams.
                </t>
                <t>This type of probe MAY utilise
                    a control message format defined by the Upper Layer protocol,
             provided that the message does not need to
                    be delivered reliably. The REQ Option MUST be
                    included when a sending Upper Layer protocol performs DPLPMTUD. The DPLPMTUD method tracks the transmission
                    of probe packets (using the token) and reception of the corresponding RES Options to the Upper Layer protocol.</t>
                
                <t>A receiver that responds to DPLPMTUD needs to process the REQ Option and
                    include the corresponding RES Option in an Upper Layer protocol message that it returns to the requester.
                    DPLPMTUD can be used to manage the PLPMTU in just one direction or can be used for both directions.
                    Probe packets that use this format form a part of the end-to-end
                    transport data.</t>
            </section> <!-- End of Procedures for UDP Options: With App Data -->
        </section> <!-- End of Procedures for UDP Options -->
        
    <section title="Receiving Events from the Network">
        
        <t>This specification does not rely upon reception of events from the network,
        but an implementation can utilise these events when provided.</t>
        
            <section title="Changes in the Path">
                <t>A change in the path or the loss of a probe packet can result in DPLPMTUD updating
                the PLPMTU. DPLPMTUD
                <xref target="RFC8899"></xref> recommends that methods are robust to path changes
                that could have occurred since the path characteristics were last
                confirmed and to the possibility of inconsistent path information being
                received. For example, a notification that a path has changed could
                trigger path validation to provide black-hole protection
                (Section 4.3 of <xref target="RFC8899"></xref>).</t>
            
                <t>An Upper Layer protocol could trigger DPLPMTUD to validate the path
                when it observes a
                high packet loss rate (or a repeated protocol timeout) <xref target="RFC8899"></xref>.</t>
            
                <t>Section 3 of <xref target="RFC8899"></xref> requires any methods
                designed to share the PLPMTU
                between PLs (such as updating the IP cache PMTU for an
                interface/destination) to be robust to the wide variety of underlying
                network forwarding behaviors. For example, an implementation could avoid
                sharing PMTU information that could potentially relate to packets sent
                with the same address over a different interface.</t>
           </section> <!-- End of Path Changes -->
        
           <section title="PTB Message Handling">
                <t> Support for receiving ICMP PTB messages is
                OPTIONAL for use with DPLPMTUD. A UDP Options sender
                can therefore ignore received ICMP PTB messages.</t>
            
                <t>When DPLPMTUD utilises ICMP PTB messages received
                in response to a
                probe packet it MUST use the ICMP quoted packet to validate the UDP port
                information in combination with the token
                contained in the UDP Option, before processing the packet using the
                DPLPMTUD method. Section 4.6.1 of <xref target="RFC8899"></xref> specifies
                this validation procedure. An
                implementation unable to support this validation needs to ignore
                received ICMP PTB messages.</t>
            </section> <!-- End of PTB -->
        
    </section> <!-- End of Network Events -->
        
        <section anchor="examples" title="Examples with Different Receiver Behaviors">
            
            <t> When enabled, a DPLPMTUD endpoint that implements UDP Options normally responds with a
                UDP datagram with a RES Option when requested by a sender.</t>
            
            <t>The following examples describe various possible receiver behaviors:</t>
         <list style="symbols">
         <t>(No DPLPMTUD receiver support) One case is when a sender supports this specification,
                but the remote endpoint that does not return a RES Option.
            In this example, the method
                is unable to discover the PLPMTU. This will result in using the
                minimum configured PLPMTU (MIN_PLPMTU).
                Such a remote endpoint might not process UDP Options, or
                might not return a datagram with a RES Option for some other reason
                (due to persistent packet loss, insufficient space
                to include the option, etc.)</t>
            
            <t>(DPLPMTUD receiver uses application datagrams)  In a second case, both the sender and receiver
            support DPLPMTUD using the specification,
                and the receiver design only returns a RES Option with the next UDP datagram that is sent to the requester.
                In this design, the reception of a REQ Option does not systematically trigger a response.
                The design allows DPLPMTUD to operate when there is a flow of datagrams in both directions,
                providing there is periodic feedback (e.g., one acknowledgment packet per RTT).
                This also requires the PLPMTU at the receiver
                to be sufficiently large that the RES option can be added to the feedback packets
                that are sent in the return direction.
                This simple method also avoids opportunities to misuse the method as a DoS attack.
        However, when there is a low
                rate of transmission (or no datagrams are sent) in the return direction,
               this will prevent prompt delivery of the RES Option.
                At the DPLPMTUD sender this results in probe packets failing to be acknowledged in time,
                and will result in a smaller PLPMTU than is actually supported by
                the path, or in using the minimum configured PLPMTU (MIN_PLPMTU).</t>
            
        <t>(Uni-directional transfer) Another case is where an application only transfers data
            in one direction (or predominantly in one direction).
                        In this case the wait at the receiver for a datagram to be queued before
                        returning a RES Option could easily result in a probe timeout
            at the DPLPMTUD sender.
                        In this case, DPLPMTUD could allow exchanging datagrams without
            a payload (as discussed in earlier sections) to return the RES Option.</t>
                    
            <t>(DPLPMTUD Receiver permitted to send responses in UDP datagrams with no payload)
        A DPLPMTUD receiver can generate a datagram (e.g., with zero payload data)
                solely to return a RES Option (e.g., when no other datagrams are queued for transmission).
                This design allows a UDP Options endpoint to probe the set of open UDP ports using DPLPMTUD probe packets.
                It results in some additional traffic overhead but has the advantage that it
                can ensure timely progress of DPLPMTUD.
                If a UDP Options  endpoint creates and sends a datagram with a RES option solely as response to a received REQ Option,
                the responder MUST limit the rate of these responses (e.g., limiting each pair of ports to send 1 per RTT or
                1 per second).
                This rate limit is to mitigate the DoS vector, without significantly impacting the operation of DPLPMTUD.</t>
        </list>
        </section> <!-- End of examples -->
        
        <section anchor="Acknowledgements" title="Acknowledgements">
            <t>Gorry Fairhurst and Tom Jones are supported by funding provided by
                the University of Aberdeen. The editors would like to thank Magnus Westerlund
                and Mohamed Boucadair for their detailed comments and also other people who contributed to completing this document.</t>
        </section> <!-- End of Acknowledgments -->
        
        <section anchor="IANA" title="IANA Considerations">
            <t>This memo includes no requests to IANA.</t>
        </section> <!-- End of IANA -->
        
        <section anchor="Security" title="Security Considerations">
            <t>The security considerations for using UDP Options are described in
                <xref target="I-D.ietf-tsvwg-udp-options"></xref>. The
                method does not change the integrity protection offered by the UDP
                options method.</t>
            
            <t>The security considerations for using DPLPMTUD are described in <xref
                target="RFC8899"></xref>. On path attackers could maliciously drop
            or modify probe packets to seek to decrease the PMTU, or
                to maliciously modify probe packets in an attempt to black-hole traffic.</t>
            
            <t>The specification recommends that the token value in the REQ Option is
                initialised to a randomised value. This is to enhance protection from off-path
                attacks.
                If a subsequent probe packet uses a token value that is easily derived from the initial value,
                (e.g., incrementing the value) a misbehaving on-path observer could then
                determine the token values used for subsequent probe packets from
                that sender, even if these probe packets are not transiting via the observer.
                This would allow probe packets to be forged, with an impact similar to other on-path
                attacks against probe packets.
                This attack could be mitigated by using an unpredictable
                token value for each probe packet.</t>
            
            <t>The method does not change the
                ICMP PTB message validation method described by DPLPMTUD: A UDP Options
                sender that utilises ICMP PTB messages received to a probe packet MUST
                use the quoted packet to validate the UDP port information in
                combination with the token contained in the UDP
                Option, before processing the packet using the DPLPMTUD method.</t>
            
            <t>Upper Layer protocols or applications that employ encryption ought to perform DPLPMTUD
                at a layer above UDP Options, and not enable UDP Options support for DPLPMTUD.
                This allows the application to control when DPLPMTUD is used to control the additional
                traffic that this generates. This also ensures that DPLPMTUD probe packets are encrypted.</t>
        </section> <!-- End of Sec Considerations -->
    </middle>
    
    <back>
        <!-- References split into informative and normative -->
        
        <references title="Normative References">
            <!--?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"?-->
            
            &RFC768;
            
            &RFC2119;
            
            &RFC8174;
            
            &RFC8899;
            
            &I-D.ietf-tsvwg-udp-options;
        </references>
        
        <references title="Informative References">
            &RFC1191;
            
            &RFC4821;
            
            &RFC8085;
            
            &RFC8201;
            
            &RFC8304;
            
        </references>
        
        <section title="Revision Notes">
            <t>XXX Note to RFC-Editor: please remove this entire section prior to
                publication. XXX</t>
            
            <t>Individual draft-00.</t>
            
            <t><list style="symbols">
                <t>This version contains a description for consideration and comment
                    by the TSVWG.</t>
            </list></t>
            
            <t>Individual draft-01.</t>
            
            <list style="symbols">
                <t>Address Nits</t>
                
                <t>Change Probe Request and Probe Reponse options to Echo to align
                    names with draft-ietf-tsvwg-udp-options</t>
                
                <t>Remove Appendix B, Informative Description of new UDP Options</t>
                
                <t>Add additional sections around Probe Packet generation</t>
            </list>
            
            <t>Individual draft-02.</t>
            
            <t><list style="symbols">
                <t>Address Nits</t>
            </list>Individual draft-03.</t>
            
            <t><list style="symbols">
                <t>Referenced DPLPMTUD RFC.</t>
                
                <t>Tidied language to clarify the method.</t>
            </list>Individual draft-04</t>
            <t><list style="symbols">
                <t>Reworded text on probing with data a little</t>
                <t>Removed paragraph on suspending ICMP PTB suspension.</t>
            </list>Working group draft-00</t>
            <t><list style="symbols">
                
                <t>-00 First Working Group Version</t>
                
                <t>RFC8899 call search_done SEARCH_COMPLETE, fixed.</t>
            </list></t>
            <t>Working group draft -01</t>
            <t><list style="symbols">
                
                <t>Update to reflect new fragmentation design in UDP Options.</t>
                <t>Add a description of uses of DPLPMTUD with UDP Options.</t>
                <t>Add a description on how to form probe packets with padding.</t>
                <t>Say that MSS options can be used to initialise the search algorithm.</t>
                <t>Say that the recommended approach is to not use user data for probes.</t>
                <t>Attempts to clarify and improve wording throughout.</t>
                <t>Remove text saying you can respond to multiple probes in a single packet.</t>
                <t>Simplified text by removing options that don't yield benefit.</t>
                
            </list></t>
            <t>Working group draft -02</t>
            <t><list style="symbols">
                <t>Update to reflect comments from MED.</t>
                <t>More consistent description of DPLPMTUD with UDP Options.</t>
                <t>Clarify the nonce value (token) is intended per 5-tuple, not interface.</t>
                <t>BASE_PLPMTU related to RFC8899.</t>
                <t>Probes with user data can carry application control data.</t>
                <t>Added that application data uses RES and REQ nonce (token) values from the app.</t>
                <t>QUIC was intended as an informational reference to an example of RFC8899.</t>
            </list></t>
            <t>Working group draft -03</t>
            <t><list style="symbols">
                <t>Update to reflect more comments from MED.</t>
                <t>Again more consistent description of DPLPMTUD with UDP Options.</t>
                <t>Clarify token/nonce to use token. </t>
                <t>Clarify any use of application data for black-hole detection.</t>
                <t>Minor changes to reflect update to UDP Options base spec.</t>
            </list></t>
            <t>Working group draft-04.</t>
            <t><list>
                <t>Update for WG Last Call</t>
            </list></t>
            <t>Working group draft-05.</t>
            <t><list>
                <t>Update following WG Last Call</t>
            </list></t>
            <t>Working group draft-06.</t>
            <t><list>
                <t>Tidy text after WG Last Call, based on review by Med.</t>
                <t>Added text after WG Last Call, based on review by Magnus.</t>
                <t>Added text after WG Last Call, based on comments by Joe and Mike.</t>
            <t>Restructured to integrate the WGLC new text.</t>
            </list></t>
       <t>Working group draft-07.</t>
            <t><list>
                <t>Mention of UDP-Options in Intro, from a review by Med.</t>
                <t>Resolve typo, from review by Magnus.</t>
            </list></t>
        <t>Working group draft-08.</t>
            <t><list>
                <t>Corrections following a review by Mike Heard.</t>
            </list></t>
         <t>Working group draft-09.</t>
            <t><list>
                <t>Corrections following a review by Erik Auerswald and others.</t>
            </list></t>
          <t>Working group draft-10.</t>
            <t><list>
                <t>Corrections following a review by Erik Auerswald.</t>
            </list></t>
          <t>Working group draft-11.</t>
            <t><list>
                <t>Revised data - waiting for UDP Options to complete.</t>
            </list></t>
          <t>Working group draft-11.</t>
            <t>Editorial corrections to align section numbers in referenced RFCs/I-Ds and minor editorial improvements.</t>
        </section>
    </back>
</rfc>