<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type='text/xsl' href='http://xml.resource.org/authoring/rfc2629.xslt' ?>
<!-- Alterations to I-D/RFC boilerplate -->
<?rfc private="" ?>
<!-- Default private="" Produce an internal memo 2.5pp shorter than an I-D or RFC -->
<?rfc rfcprocack="yes" ?>
<!-- Default rfcprocack="no" add a short sentence acknowledging xml2rfc -->
<?rfc strict="no" ?>
<!-- Default strict="no" Don't check I-D nits -->
<?rfc rfcedstyle="yes" ?>
<!-- Default rfcedstyle="yes" attempt to closely follow finer details from the latest observable RFC-Editor style -->
<!-- IETF process -->
<?rfc iprnotified="no" ?>
<!-- Default iprnotified="no" I haven't disclosed existence of IPR to IETF -->
<!-- ToC format -->
<?rfc toc="yes" ?>
<!-- Default toc="no" No Table of Contents -->
<!-- Cross referencing, footnotes, comments -->
<?rfc symrefs="yes"?>
<!-- Default symrefs="no" Don't use anchors, but use numbers for refs -->
<?rfc sortrefs="yes"?>
<!-- Default sortrefs="no" Don't sort references into order -->
<?rfc comments="yes" ?>
<!-- Default comments="no" Don't render comments -->
<?rfc inline="no" ?>
<!-- Default inline="no" if comments is "yes", then render comments inline; otherwise render them in an `Editorial Comments' section -->
<!-- Pagination control -->
<?rfc compact="yes"?>
<!-- Default compact="no" Start sections on new pages -->
<?rfc subcompact="no"?>
<!-- Default subcompact="(as compact setting)" yes/no is not quite as compact as yes/yes -->
<!-- HTML formatting control -->
<?rfc emoticonic="yes" ?>
<!-- Default emoticonic="no" Doesn't prettify HTML format -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="bcp" docName="draft-ietf-tsvwg-ecn-encap-guidelines-17" ipr="trust200902" updates="3819" obsoletes="" submissionType="IETF" xml:lang="en" tocInclude="true" symRefs="true" sortRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.12.10 -->
  <front>
    <title abbrev="ECN Encapsulation Guidelines">Guidelines for Adding
    Congestion Notification to Protocols that Encapsulate IP</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-tsvwg-ecn-encap-guidelines-17"/>
    <author fullname="Bob Briscoe" initials="B." surname="Briscoe">
      <organization>Independent</organization>
      <address>
        <postal>
          <street/>
          <country>UK</country>
        </postal>
        <email>ietf@bobbriscoe.net</email>
        <uri>http://bobbriscoe.net/</uri>
      </address>
    </author>
    <author fullname="John Kaippallimalil" initials="J." surname="Kaippallimalil">
      <organization>Futurewei</organization>
      <address>
        <postal>
          <street>5700 Tennyson Parkway, Suite 600</street>
          <city>Plano</city>
          <region>Texas</region>
          <code>75024</code>
          <country>USA</country>
        </postal>
        <email>kjohn@futurewei.com</email>
      </address>
    </author>
    <date year=""/>
    <area>Transport</area>
    <workgroup>Transport Area Working Group</workgroup>
    <keyword>Congestion Control and Management</keyword>
    <keyword>Congestion Notification</keyword>
    <keyword>Information Security</keyword>
    <keyword>Tunnelling</keyword>
    <keyword>Encapsulation &amp; Decapsulation</keyword>
    <keyword>Protocol</keyword>
    <keyword>ECN</keyword>
    <keyword>Layering</keyword>
    <abstract>
      <t>The purpose of this document is to guide the design of congestion
      notification in any lower layer or tunnelling protocol that encapsulates
      IP. The aim is for explicit congestion signals to propagate consistently
      from lower layer protocols into IP. Then the IP internetwork layer can
      act as a portability layer to carry congestion notification from
      non-IP-aware congested nodes up to the transport layer (L4). Following
      these guidelines should assure interworking among IP layer and lower
      layer congestion notification mechanisms, whether specified by the IETF
      or other standards bodies. This document updates the advice to
      subnetwork designers about ECN in RFC 3819.</t>
    </abstract>
  </front>
  <!-- ================================================================ -->

  <middle>
    <!-- ================================================================ -->

    <section anchor="ecnencap_Introduction" numbered="true" toc="default">
      <name>Introduction</name>
      <t>The benefits of Explicit Congestion Notification (ECN) described in
      <xref target="RFC8087" format="default"/> and summarized below can only be fully realized
      if support for ECN is added to the relevant subnetwork technology, as
      well as to IP. When a lower layer buffer drops a packet obviously it
      does not just drop at that layer; the packet disappears from all layers.
      In contrast, when active queue management (AQM) at a lower layer marks a
      packet with ECN, the marking needs to be explicitly propagated up the
      layers. The same is true if AQM marks the outer header of a packet that
      encapsulates inner tunnelled headers. Forwarding ECN is not as
      straightforward as other headers because it has to be assumed ECN may be
      only partially deployed. If a lower layer header that contains ECN
      congestion indications is stripped off by a subnet egress that is not
      ECN-aware, or if the ultimate receiver or sender is not ECN-aware,
      congestion needs to be indicated by dropping a packet, not marking
      it.</t>
      <t>The purpose of this document is to guide the addition of congestion
      notification to any subnet technology or tunnelling protocol, so that
      lower layer AQM algorithms can signal congestion explicitly and it will
      propagate consistently into encapsulated (higher layer) headers,
      otherwise the signals will not reach their ultimate destination.</t>
      <t>ECN is defined in the IP header (v4 and v6) <xref target="RFC3168" format="default"/>
      to allow a resource to notify the onset of queue build-up without having
      to drop packets, by explicitly marking a proportion of packets with the
      congestion experienced (CE) codepoint.<!--In the layered model of communication, each layer accepts requests to forward PDUs and eventually returns 
a status code to the higher layer. Without ECN, each layer returns either a 'delivered' status code or an 
implicit 'not delivered'. Explicit notification of congestion adds a useful 'delivered but congestion 
experienced' status code to each layer interface.-->
      </t>
      <t>Given a suitable marking scheme, ECN removes nearly all congestion
      loss and it cuts delays for two main reasons: </t>
      <ul spacing="normal">
        <li>It avoids the delay when recovering from congestion losses, which
          particularly benefits small flows or real-time flows, making their
          delivery time predictably short <xref target="RFC2884" format="default"/>;</li>
        <li>As ECN is used more widely by end-systems, it will gradually
          remove the need to configure a degree of delay into buffers before
          they start to notify congestion (the cause of bufferbloat). This is
          because drop involves a trade-off between sending a timely signal
          and trying to avoid impairment, whereas ECN is solely a signal not
          an impairment, so there is no harm triggering it earlier.</li>
      </ul>
      <t>Some lower layer technologies (e.g. MPLS, Ethernet) are used to form
      subnetworks with IP-aware nodes only at the edges. These networks are
      often sized so that it is rare for interior queues to overflow. However,
      until recently this was more due to the inability of TCP to saturate the
      links. For many years, fixes such as window scaling <xref target="RFC7323" format="default"/> proved hard to deploy. And the Reno variant of TCP
      has remained in widespread use despite its inability to scale to high
      flow rates. However, now that modern operating systems are finally
      capable of saturating interior links, even the buffers of
      well-provisioned interior switches will need to signal episodes of
      queuing.</t>
      <t>Propagation of ECN is defined for MPLS <xref target="RFC5129" format="default"/>, and
      is being defined for TRILL <xref target="RFC7780" format="default"/>, <xref target="I-D.ietf-trill-ecn-support" format="default"/>, but it remains to be defined for
      a number of other subnetwork technologies.</t>
      <t>Similarly, ECN propagation is yet to be defined for many tunnelling
      protocols. <xref target="RFC6040" format="default"/> defines how ECN should be propagated
      for IP-in-IPv4 <xref target="RFC2003" format="default"/>, IP-in-IPv6 <xref target="RFC2473" format="default"/> and IPsec <xref target="RFC4301" format="default"/> tunnels, but there
      are numerous other tunnelling protocols with a shim and/or a layer 2
      header between two IP headers (v4 or v6). Some address ECN propagation
      between the IP headers, but many do not. This document gives guidance on
      how to address ECN propagation for future tunnelling protocols, and a
      companion standards track specification <xref target="I-D.ietf-tsvwg-rfc6040update-shim" format="default"/> updates those existing
      IP-shim-(L2)-IP protocols that are under IETF change control and still
      widely used.</t>
      <t>Incremental deployment is the most delicate aspect when adding
      support for ECN. The original ECN protocol in IP <xref target="RFC3168" format="default"/> was carefully designed so that a congested buffer
      would not mark a packet (rather than drop it) unless both source and
      destination hosts were ECN-capable. Otherwise its congestion markings
      would never be detected and congestion would just build up further.
      However, to support congestion marking below the IP layer or within
      tunnels, it is not sufficient to only check that the two layer 4
      transport end-points support ECN; correct operation also depends on the
      decapsulator at each subnet or tunnel egress faithfully propagating
      congestion notifications to the higher layer. Otherwise, a legacy
      decapsulator might silently fail to propagate any ECN signals from the
      outer to the forwarded header. Then the lost signals would never be
      detected and again congestion would build up further. The guidelines
      given later require protocol designers to carefully consider incremental
      deployment, and suggest various safe approaches for different
      circumstances.</t>
      <t>Of course, the IETF does not have standards authority over every link
      layer protocol. So this document gives guidelines for designing
      propagation of congestion notification across the interface between IP
      and protocols that may encapsulate IP (i.e. that can be layered beneath
      IP). Each lower layer technology will exhibit different issues and
      compromises, so the IETF or the relevant standards body must be free to
      define the specifics of each lower layer congestion notification scheme.
      Nonetheless, if the guidelines are followed, congestion notification
      should interwork between different technologies, using IP in its role as
      a 'portability layer'.</t>
      <t>Therefore, the capitalized terms 'SHOULD' or 'SHOULD NOT' are often
      used in preference to 'MUST' or 'MUST NOT', because it is difficult to
      know the compromises that will be necessary in each protocol design. If
      a particular protocol design chooses not to follow a 'SHOULD (NOT)'
      given in the advice below, it MUST include a sound justification.</t>
      <t>It has not been possible to give common guidelines for all lower
      layer technologies, because they do not all fit a common pattern.
      Instead they have been divided into a few distinct modes of operation:
      feed-forward-and-upward; feed-upward-and-forward; feed-backward; and
      null mode. These modes are described in <xref target="ecnencap_Modes" format="default"/>,
      then in the subsequent sections separate guidelines are given for each
      mode.</t>
      <section numbered="true" toc="default">
        <name>Update to RFC 3819</name>
        <t>This document updates the brief advice to subnetwork designers
        about ECN in <xref target="RFC3819" format="default"/>, by replacing the last two
        paragraphs of Section 13 with the following sentence:</t>
        <ul empty="true" spacing="normal">
          <li>By following the guidelines in [this document], subnetwork
            designers can enable a layer-2 protocol to participate in
            congestion control without dropping packets via propagation of
            explicit congestion notification (ECN <xref target="RFC3168" format="default"/>) to
            receivers.</li>
        </ul>
        <t>and adding [this document] as an informative reference. {RFC
        Editor: Please replace both instances of [this document] above with
        the number of the present RFC when published.}</t>
      </section>
      <section anchor="ecnencap_Scope" numbered="true" toc="default">
        <name>Scope</name>
        <t>This document only concerns wire protocol processing of explicit
        notification of congestion. It makes no changes or recommendations
        concerning algorithms for congestion marking or for congestion
        response, because algorithm issues should be independent of the layer
        the algorithm operates in.</t>
        <t>The default ECN semantics are described in <xref target="RFC3168" format="default"/>
        and updated by <xref target="RFC8311" format="default"/>. Also the guidelines for AQM
        designers <xref target="RFC7567" format="default"/> clarify the semantics of both drop
        and ECN signals from AQM algorithms. <xref target="RFC4774" format="default"/> is the
        appropriate best current practice specification of how algorithms with
        alternative semantics for the ECN field can be partitioned from
        Internet traffic that uses the default ECN semantics. There are two
        main examples for how alternative ECN semantics have been defined in
        practice:</t>
        <ul spacing="normal">
          <li>RFC 4774 suggests using the ECN field in combination with a
            Diffserv codepoint such as in PCN <xref target="RFC6660" format="default"/>, Voice
            over 3G <xref target="UTRAN" format="default"/> or Voice over LTE (VoLTE) <xref target="LTE-RA" format="default"/>;</li>
          <li>RFC 8311 suggests using the ECT(1) codepoint of the ECN field
            to indicate alternative semantics such as for the experimental Low
            Latency Low Loss Scalable throughput (L4S) service <xref target="I-D.ietf-tsvwg-ecn-l4s-id" format="default"/>).</li>
        </ul>
        <t>The aim is that the default rules for encapsulating and
        decapsulating the ECN field are sufficiently generic that tunnels and
        subnets will encapsulate and decapsulate packets without regard to how
        algorithms elsewhere are setting or interpreting the semantics of the
        ECN field. <xref target="RFC6040" format="default"/> updates RFC 4774 to allow
        alternative encapsulation and decapsulation behaviours to be defined
        for alternative ECN semantics. However it reinforces the same point -
        that it is far preferable to try to fit within the common ECN
        encapsulation and decapsulation behaviours, because expecting all
        lower layer technologies and tunnels to be updated is likely to be
        completely impractical.</t>
        <t>Alternative semantics for the ECN field can be defined to depend on
        the traffic class indicated by the DSCP. Therefore correct propagation
        of congestion signals could depend on correct propagation of the DSCP
        between the layers and along the path. For instance, if the meaning of
        the ECN field depends on the DSCP (as in PCN or VoLTE) and if the
        outer DSCP is stripped on descapsulation, as in the pipe model of
        <xref target="RFC2983" format="default"/>, the special semantics of the ECN field would
        be lost. Similarly, if the DSCP is changed at the boundary between
        Diffserv domains, the special ECN semantics would also be lost. This
        is an important implication of the localized scope of most Diffserv
        arrangements. In this document, correct propagation of traffic class
        information is assumed, while what 'correct' means and how it is
        achieved is covered elsewhere (e.g. RFC 2983) and is outside the scope
        of the present document.</t>
        <t>The guidelines in this document do ensure that common encapsulation
        and decapsulation rules are sufficiently generic to cover cases where
        ECT(1) is used instead of ECT(0) to identify alternative ECN semantics
        (as in L4S <xref target="I-D.ietf-tsvwg-ecn-l4s-id" format="default"/>) and where ECN
        marking algorithms use ECT(1) to encode 3 severity levels into the ECN
        field (e.g. PCN <xref target="RFC6660" format="default"/>) rather than the default of
        2. All these different semantics for the ECN field work because it has
        been possible to define common default decapsulation rules that allow
        for all cases.</t>
        <t>Note that the guidelines in this document do not necessarily
        require the subnet wire protocol to be changed to add support for
        congestion notification. For instance, the Feed-Up-and-Forward Mode
        (<xref target="ecnencap_Up" format="default"/>) and the Null Mode (<xref target="ecnencap_Null" format="default"/>) do not. Another way to add congestion
        notification without consuming header space in the subnet protocol
        might be to use a parallel control plane protocol.</t>
        <t>This document focuses on the congestion notification interface
        between IP and lower layer or tunnel protocols that can encapsulate
        IP, where the term 'IP' includes v4 or v6, unicast, multicast or
        anycast. However, it is likely that the guidelines will also be useful
        when a lower layer protocol or tunnel encapsulates itself, e.g.
        Ethernet MAC in MAC (<xref target="IEEE802.1Q" format="default"/>; previously 802.1ah)
        or when it encapsulates other protocols. In the feed-backward mode,
        propagation of congestion signals for multicast and anycast packets is
        out-of-scope (because the complexity would make it unlikely to be
        attempted).</t>
      </section>
    </section>
    <!-- ================================================================ -->

    <section anchor="ecnencap_Reqs_Language" numbered="true" toc="default">
      <name>Terminology</name>
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
      "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
      document are to be interpreted as described in <xref target="RFC2119" format="default"/>
        <xref target="RFC8174" format="default"/> when, and only when, they appear in all
      capitals, as shown here.</t>
      <t>Further terminology used within this document:</t>
      <dl newline="false" spacing="normal">
        <dt>Protocol data unit (PDU):</dt>
        <dd>Information that is
          delivered as a unit among peer entities of a layered network
          consisting of protocol control information (typically a header) and
          possibly user data (payload) of that layer. The scope of this
          document includes layer 2 and layer 3 networks, where the PDU is
          respectively termed a frame or a packet (or a cell in ATM). PDU is a
          general term for any of these. This definition also includes a
          payload with a shim header lying somewhere between layer 2 and
          3.</dd>
        <dt>Transport:</dt>
        <dd>The end-to-end transmission control
          function, conventionally considered at layer-4 in the OSI reference
          model. Given the audience for this document will often use the word
          transport to mean low level bit carriage, whenever the term is used
          it will be qualified, e.g. 'L4 transport'.</dd>
        <dt>Encapsulator:</dt>
        <dd>The link or tunnel endpoint function
          that adds an outer header to a PDU (also termed the 'link ingress',
          the 'subnet ingress', the 'ingress tunnel endpoint' or just the
          'ingress' where the context is clear).</dd>
        <dt>Decapsulator:</dt>
        <dd>The link or tunnel endpoint function
          that removes an outer header from a PDU (also termed the 'link
          egress', the 'subnet egress', the 'egress tunnel endpoint' or just
          the 'egress' where the context is clear).</dd>
        <dt>Incoming header:</dt>
        <dd>The header of an arriving PDU before
          encapsulation.</dd>
        <dt>Outer header:</dt>
        <dd>The header added to encapsulate a
          PDU.</dd>
        <dt>Inner header:</dt>
        <dd>The header encapsulated by the outer
          header.</dd>
        <dt>Outgoing header:</dt>
        <dd>The header forwarded by the
          decapsulator.</dd>
        <dt>CE:</dt>
        <dd>Congestion Experienced <xref target="RFC3168" format="default"/></dd>
        <dt>ECT:</dt>
        <dd>ECN-Capable (L4) Transport <xref target="RFC3168" format="default"/></dd>
        <dt>Not-ECT:</dt>
        <dd>Not ECN-Capable (L4) Transport <xref target="RFC3168" format="default"/></dd>
        <dt>Load Regulator:</dt>
        <dd>For each flow of PDUs, the transport
          function that is capable of controlling the data rate. Typically
          located at the data source, but in-path nodes can regulate load in
          some congestion control arrangements (e.g. admission control,
          policing nodes or transport circuit-breakers <xref target="RFC8084" format="default"/>). Note the term "a function capable of
          controlling the load" deliberately includes a transport that does
          not actually control the load responsively but ideally it ought to
          (e.g. a sending application without congestion control that uses
          UDP).</dd>
        <dt>ECN-PDU:</dt>
        <dd>A PDU at the IP layer or below with a
          capacity to signal congestion that is part of a congestion control
          feedback loop within which all the nodes necessary to propagate the
          signal back to the Load Regulator are capable of doing that
          propagation. An IP packet with a non-zero ECN field implies that the
          endpoints are ECN-capable, so this would be an ECN-PDU. However,
          ECN-PDU is intended to be a general term for a PDU at lower layers,
          as well as at the IP layer.</dd>
        <dt>Not-ECN-PDU:</dt>
        <dd>A PDU at the IP layer or below that is
          part of a congestion control feedback-loop within which at least one
          node necessary to propagate any explicit congestion notification
          signals back to the Load Regulator is not capable of doing that
          propagation.</dd>
      </dl>
    </section>
    <section anchor="ecnencap_Modes" numbered="true" toc="default">
      <name>Modes of Operation</name>
      <t>This section sets down the different modes by which congestion
      information is passed between the lower layer and the higher one. It
      acts as a reference framework for the following sections, which give
      normative guidelines for designers of explicit congestion notification
      protocols, taking each mode in turn:</t>
      <dl newline="false" spacing="normal">
        <dt>Feed-Forward-and-Up:</dt>
        <dd>
          <t>Nodes feed forward congestion
          notification towards the egress within the lower layer then up and
          along the layers towards the end-to-end destination at the transport
          layer. The following local optimisation is possible:</t>
          <dl newline="false" spacing="normal">
            <dt>Feed-Up-and-Forward:</dt>
            <dd>A lower layer switch feeds-up
              congestion notification directly into the higher layer (e.g.
              into the ECN field in the IP header), irrespective of whether
              the node is at the egress of a subnet.</dd>
          </dl>
        </dd>
        <dt>Feed-Backward:</dt>
        <dd>Nodes feed back congestion signals
          towards the ingress of the lower layer and (optionally) attempt to
          control congestion within their own layer.</dd>
        <dt>Null:</dt>
        <dd>Nodes cannot experience congestion at the lower
          layer except at ingress nodes (which are IP-aware or equivalently
          higher-layer-aware).</dd>
      </dl>
      <section anchor="ecnencap_Forward" numbered="true" toc="default">
        <name>Feed-Forward-and-Up Mode</name>
        <t>Like IP and MPLS, many subnet technologies are based on
        self-contained protocol data units (PDUs) or frames sent unreliably.
        They provide no feedback channel at the subnetwork layer, instead
        relying on higher layers (e.g. TCP) to feed back loss signals.</t>
        <t>In these cases, ECN may best be supported by standardising explicit
        notification of congestion into the lower layer protocol that carries
        the data forwards. Then a specification is needed for how the egress
        of the lower layer subnet propagates this explicit signal into the
        forwarded upper layer (IP) header. This signal continues forwards
        until it finally reaches the destination transport (at L4). Then
        typically the destination will feed this congestion notification back
        to the source transport using an end-to-end protocol (e.g. TCP). This
        is the arrangement that has already been used to add ECN to IP-in-IP
        tunnels <xref target="RFC6040" format="default"/>, IP-in-MPLS and MPLS-in-MPLS <xref target="RFC5129" format="default"/>.</t>
        <t>This mode is illustrated in <xref target="ecnencap_Fig_Feed-Forward-and-Up" format="default"/>. Along the middle of the
        figure, layers 2, 3 and 4 of the protocol stack are shown, and one
        packet is shown along the bottom as it progresses across the network
        from source to destination, crossing two subnets connected by a
        router, and crossing two switches on the path across each subnet.
        Congestion at the output of the first switch (shown as *) leads to a
        congestion marking in the L2 header (shown as C in the illustration of
        the packet). The chevrons show the progress of the resulting
        congestion indication. It is propagated from link to link across the
        subnet in the L2 header, then when the router removes the marked L2
        header, it propagates the marking up into the L3 (IP) header. The
        router forwards the marked L3 header into subnet 2, and when it adds a
        new L2 header it copies the L3 marking into the L2 header as well, as
        shown by the 'C's in both layers (assuming the technology of subnet 2
        also supports explicit congestion marking).</t>
        <t>Note that there is no implication that each 'C' marking is encoded
        the same; a different encoding might be used for the 'C' marking in
        each protocol.</t>
        <t>Finally, for completeness, we show the L3 marking arriving at the
        destination, where the host transport protocol (e.g. TCP) feeds it
        back to the source in the L4 acknowledgement (the 'C' at L4 in the
        packet at the top of the diagram).</t>
        <figure anchor="ecnencap_Fig_Feed-Forward-and-Up">
          <name>Feed-Forward-and-Up Mode</name>
          <artwork name="" type="" align="left" alt=""><![CDATA[                     _ _ _ 
          /_______  | | |C|  ACK Packet (V)
          \         |_|_|_|
 +---+        layer: 2 3 4 header                            +---+
 |  <|<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Packet V <<<<<<<<<<<<<|<< |L4
 |   |                         +---+                         | ^ |
 |   | . . . . . . Packet U. . | >>|>>> Packet U >>>>>>>>>>>>|>^ |L3
 |   |     +---+     +---+     | ^ |     +---+     +---+     |   |
 |   |     |  *|>>>>>|>>>|>>>>>|>^ |     |   |     |   |     |   |L2
 |___|_____|___|_____|___|_____|___|_____|___|_____|___|_____|___|
 source          subnet A      router       subnet B         dest
     __ _ _ _    __ _ _ _    __ _ _        __ _ _ _
    |  | | | |  |  | | |C|  |  | |C|      |  | |C|C|  Data________\
    |__|_|_|_|  |__|_|_|_|  |__|_|_|      |__|_|_|_|  Packet (U)  /
 layer: 4 3 2A      4 3 2A      4 3           4 3 2B
 header]]></artwork>
        </figure>
        <t>Of course, modern networks are rarely as simple as this text-book
        example, often involving multiple nested layers. For example, a 3GPP
        mobile network may have two IP-in-IP (GTP <xref target="GTPv1" format="default"/>)
        tunnels in series and an MPLS backhaul between the base station and
        the first router. Nonetheless, the example illustrates the general
        idea of feeding congestion notification forward then upward whenever a
        header is removed at the egress of a subnet.</t>
        <t>Note that the FECN (forward ECN ) bit in Frame Relay <xref target="Buck00" format="default"/> and the explicit forward congestion indication (EFCI
        <xref target="ITU-T.I.371" format="default"/>) bit in ATM user data cells follow a
        feed-forward pattern. However, in ATM, this arrangement is only part
        of a feed-forward-and-backward pattern at the lower layer, not
        feed-forward-and-up out of the lower layer--the intention was
        never to interface to IP ECN at the subnet egress. To our knowledge,
        Frame Relay FECN is solely used to detect where more capacity should
        be provisioned.</t>
      </section>
      <section anchor="ecnencap_Up" numbered="true" toc="default">
        <name>Feed-Up-and-Forward Mode</name>
        <t>Ethernet is particularly difficult to extend incrementally to
        support explicit congestion notification. One way to support ECN in
        such cases has been to use so called 'layer-3 switches'. These are
        Ethernet switches that dig into the Ethernet payload to find an IP
        header and manipulate or act on certain IP fields (specifically
        Diffserv &amp; ECN). For instance, in Data Center TCP <xref target="RFC8257" format="default"/>, layer-3 switches are configured to mark the ECN
        field of the IP header within the Ethernet payload when their output
        buffer becomes congested. With respect to switching, a layer-3 switch
        acts solely on the addresses in the Ethernet header; it does not use
        IP addresses, and it does not decrement the TTL field in the IP
        header.</t>
        <figure anchor="ecnencap_Fig_Feed-Up">
          <name>Feed-Up-and-Forward Mode</name>
          <artwork name="" type="" align="left" alt=""><![CDATA[                     _ _ _ 
          /_______  | | |C|  ACK packet (V)
          \         |_|_|_|
 +---+        layer: 2 3 4 header                            +---+
 |  <|<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Packet V <<<<<<<<<<<<<|<< |L4
 |   |                         +---+                         | ^ |
 |   | . . .  >>>> Packet U >>>|>>>|>>> Packet U >>>>>>>>>>>>|>^ |L3
 |   |     +--^+     +---+     |   |     +---+     +---+     |   |
 |   |     |  *|     |   |     |   |     |   |     |   |     |   |L2
 |___|_____|___|_____|___|_____|___|_____|___|_____|___|_____|___|
 source          subnet E      router       subnet F         dest
     __ _ _ _    __ _ _ _    __ _ _        __ _ _ _
    |  | | | |  |  | |C| |  |  | |C|      |  | |C|C|  data________\
    |__|_|_|_|  |__|_|_|_|  |__|_|_|      |__|_|_|_|  packet (U)  /
 layer: 4 3 2       4 3 2       4 3           4 3 2
 header]]></artwork>
        </figure>
        <t>By comparing <xref target="ecnencap_Fig_Feed-Up" format="default"/> with <xref target="ecnencap_Fig_Feed-Forward-and-Up" format="default"/>, it can be seen that
        subnet E (perhaps a subnet of layer-3 Ethernet switches) works in
        feed-up-and-forward mode by notifying congestion directly into L3 at
        the point of congestion, even though the congested switch does not
        otherwise act at L3. In this example, the technology in subnet F (e.g.
        MPLS) does support ECN natively, so when the router adds the layer-2
        header it copies the ECN marking from L3 to L2 as well.</t>
      </section>
      <section anchor="ecnencap_Backward" numbered="true" toc="default">
        <name>Feed-Backward Mode</name>
        <t>In some layer 2 technologies, explicit congestion notification has
        been defined for use internally within the subnet with its own
        feedback and load regulation, but typically the interface with IP for
        ECN has not been defined.</t>
        <t>For instance, for the available bit-rate (ABR) service in ATM, the
        relative rate mechanism was one of the more popular mechanisms for
        managing traffic, tending to supersede earlier designs. In this
        approach ATM switches send special resource management (RM) cells in
        both the forward and backward directions to control the ingress rate
        of user data into a virtual circuit. If a switch buffer is approaching
        congestion or is congested it sends an RM cell back towards the
        ingress with respectively the No Increase (NI) or Congestion
        Indication (CI) bit set in its message type field <xref target="ATM-TM-ABR" format="default"/>. The ingress then holds or decreases its sending
        bit-rate accordingly.</t>
        <figure anchor="ecnencap_Fig_Feed-Backward">
          <name>Feed-Backward Mode</name>
          <artwork name="" type="" align="left" alt=""><![CDATA[                     _ _ _ 
          /_______  | | |C|  ACK packet (X)
          \         |_|_|_|
 +---+        layer: 2 3 4 header                            +---+
 |  <|<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Packet X <<<<<<<<<<<<<|<< |L4
 |   |                         +---+                         | ^ |
 |   |                         |  *|>>> Packet W >>>>>>>>>>>>|>^ |L3
 |   |     +---+     +---+     |   |     +---+     +---+     |   |
 |   |     |   |     |   |     |  <|<<<<<|<<<|<(V)<|<<<|     |   |L2
 |   | . . | . |Packet U | . . | . | . . | . | . . | .*| . . |   |L2
 |___|_____|___|_____|___|_____|___|_____|___|_____|___|_____|___|
 source          subnet G      router       subnet H         dest
     __ _ _ _    __ _ _ _    __ _ _        __ _ _ _   later
    |  | | | |  |  | | | |  |  | | |      |  | |C| |  data________\
    |__|_|_|_|  |__|_|_|_|  |__|_|_|      |__|_|_|_|  packet (W)  /
        4 3 2       4 3 2       4 3           4 3 2
                                        _        
                                  /__  |C|  Feedback control
                                  \    |_|  cell/frame (V)
                                        2    
     __ _ _ _    __ _ _ _    __ _ _        __ _ _ _   earlier
    |  | | | |  |  | | | |  |  | | |      |  | | | |  data________\
    |__|_|_|_|  |__|_|_|_|  |__|_|_|      |__|_|_|_|  packet (U)  /
layer:  4 3 2       4 3 2       4 3           4 3 2
header
]]></artwork>
        </figure>
        <t>ATM's feed-backward approach does not fit well when layered beneath
        IP's feed-forward approach--unless the initial data source is the
        same node as the ATM ingress. <!--(which would be the case if ATM had achieved its aspiration of becoming the global internetwork standard, 
rather than just a subnetwork technology)-->
          <xref target="ecnencap_Fig_Feed-Backward" format="default"/> shows the feed-backward approach
        being used in subnet H. If the final switch on the path is congested
        (*), it does not feed-forward any congestion indications on packet
        (U). Instead it sends a control cell (V) back to the router at the ATM
        ingress.</t>
        <t>However, the backward feedback does not reach the original data
        source directly because IP does not support backward feedback (and
        subnet G is independent of subnet H). Instead, the router in the
        middle throttles down its sending rate but the original data sources
        don't reduce their rates. The resulting rate mismatch causes the
        middle router's buffer at layer 3 to back up until it becomes
        congested, which it signals forwards on later data packets at layer 3
        (e.g. packet W). Note that the forward signal from the middle router
        is not triggered directly by the backward signal. Rather, it is
        triggered by congestion resulting from the middle router's mismatched
        rate response to the backward signal.</t>
        <t>In response to this later forward signalling, end-to-end feedback
        at layer-4 finally completes the tortuous path of congestion
        indications back to the origin data source, as before.</t>
        <t>Quantized congestion notification (QCN <xref target="IEEE802.1Q" format="default"/>)
        would suffer from similar problems if extended to multiple subnets.
        However, from the start QCN was clearly characterized as solely
        applicable to a single subnet (see <xref target="ecnencap_Guidelines_Backward" format="default"/>).</t>
        <!--To summarise so far, feeding congestion notification backwards can reach the source faster, but only 
if the congested subnet is directly connected to the original data source. In a more general case, 
feedback takes a tortuous path part-way backwards, which can lead to queuing at the higher layer in 
the middle of the network, which can in turn trigger a much-delayed feed-forward signal, which then 
has to be fed back from destination to source.-->
      </section>
      <section anchor="ecnencap_Null" numbered="true" toc="default">
        <name>Null Mode</name>
        <t>Often link and physical layer resources are 'non-blocking' by
        design. In these cases congestion notification may be implemented but
        it does not need to be deployed at the lower layer; ECN in IP would be
        sufficient.</t>
        <t>A degenerate example is a point-to-point Ethernet link. Excess
        loading of the link merely causes the queue from the higher layer to
        back up, while the lower layer remains immune to congestion. Even a
        whole meshed subnetwork can be made immune to interior congestion by
        limiting ingress capacity and sufficient sizing of interior links,
        e.g. a non-blocking fat-tree network <xref target="Leiserson85" format="default"/>. An
        alternative to fat links near the root is numerous thin links with
        multi-path routing to ensure even worst-case patterns of load cannot
        congest any link, e.g. a Clos network <xref target="Clos53" format="default"/>.</t>
      </section>
    </section>
    <section anchor="ecnencap_Guidelines_Forward" numbered="true" toc="default">
      <name>Feed-Forward-and-Up Mode: Guidelines for Adding Congestion Notification</name>
      <t>Feed-forward-and-up is the mode already used for signalling ECN up
      the layers through MPLS into IP <xref target="RFC5129" format="default"/> and through
      IP-in-IP tunnels <xref target="RFC6040" format="default"/>, whether encapsulating with
      IPv4 <xref target="RFC2003" format="default"/>, IPv6 <xref target="RFC2473" format="default"/> or IPsec
      <xref target="RFC4301" format="default"/>. These RFCs take a consistent approach and the
      following guidelines are designed to ensure this consistency continues
      as ECN support is added to other protocols that encapsulate IP. The
      guidelines are also designed to ensure compliance with the more general
      best current practice for the design of alternate ECN schemes given in
      <xref target="RFC4774" format="default"/> and extended by <xref target="RFC8311" format="default"/>.</t>
      <t>The rest of this section is structured as follows:</t>
      <ul spacing="normal">
        <li>
          <xref target="ecnencap_IP-IP_Coupled_Shim_Tunnels" format="default"/> addresses
          the most straightforward cases, where <xref target="RFC6040" format="default"/> can
          be applied directly to add ECN to tunnels that are effectively
          IP-in-IP tunnels, but with shim header(s) between the IP
          headers.</li>
        <li>
          <t>The subsequent sections give guidelines for adding ECN to a
          subnet technology that uses feed-forward-and-up mode like IP, but it
          is not so similar to IP that <xref target="RFC6040" format="default"/> rules can be
          applied directly. Specifically:</t>
          <ul spacing="normal">
            <li>Sections <xref format="counter" target="ecnencap_WireProtocolECNSupport"/>, <xref format="counter" target="ecnencap_EncapGuidelines"/> and <xref format="counter" target="ecnencap_DecapGuidelines"/>
              respectively address how to add ECN support to the wire protocol
              and to the encapsulators and decapsulators at the ingress and
              egress of the subnet.</li>
            <li>
              <xref target="ecnencap_Sequences" format="default"/> deals with the special,
              but common, case of sequences of tunnels or subnets that all use
              the same technology</li>
            <li>
              <xref target="ecnencap_Reframing" format="default"/> deals with the question
              of reframing when IP packets do not map 1:1 into lower layer
              frames.</li>
          </ul>
        </li>
      </ul>
      <section anchor="ecnencap_IP-IP_Coupled_Shim_Tunnels" numbered="true" toc="default">
        <name>IP-in-IP Tunnels with Shim Headers</name>
        <t>A common pattern for many tunnelling protocols is to encapsulate an
        inner IP header with shim header(s) then an outer IP header. A shim
        header is defined as one that is not sufficient alone to forward the
        packet as an outer header. Another common pattern is for a shim to
        encapsulate a layer 2 (L2) header, which in turn encapsulates (or
        might encapsulate) an IP header. <xref target="I-D.ietf-tsvwg-rfc6040update-shim" format="default"/> clarifies that RFC 6040
        is just as applicable when there are shim(s) and possibly a L2 header
        between two IP headers.</t>
        <t>However, it is not always feasible or necessary to propagate ECN
        between IP headers when separated by a shim. For instance, it might be
        too costly to dig to arbitrary depths to find an inner IP header,
        there may be little or no congestion within the tunnel by design (see
        null mode in <xref target="ecnencap_Null" format="default"/> above), or a legacy
        implementation might not support ECN. In cases where a tunnel does not
        support ECN, it is important that the ingress does not copy the ECN
        field from an inner IP header to an outer. Therefore section 4 of
        <xref target="I-D.ietf-tsvwg-rfc6040update-shim" format="default"/> requires network
        operators to configure the ingress of a tunnel that does not support
        ECN so that it zeros the ECN field in the outer IP header.</t>
        <t>Nonetheless, in many cases it is feasible to propagate the ECN
        field between IP headers separated by shim header(s) and/or a L2
        header. Particularly in the typical case when the outer IP header and
        the shim(s) are added (or removed) as part of the same procedure. Even
        if the shim(s) encapsulate a L2 header, it is often possible to find
        an inner IP header within the L2 PDU and propagate ECN between that
        and the outer IP header. This can be thought of as a special case of
        the feed-up-and-forward mode (<xref target="ecnencap_Up" format="default"/>), so the
        guidelines for this mode apply (<xref target="ecnencap_Guidelines_Up" format="default"/>).</t>
        <t>Numerous shim protocols have been defined for IP tunnelling. More
        recent ones e.g. Geneve <xref target="RFC8926" format="default"/> and Generic UDP
        Encapsulation (GUE) <xref target="I-D.ietf-intarea-gue" format="default"/> cite and
        follow RFC 6040. And some earlier ones, e.g. CAPWAP <xref target="RFC5415" format="default"/> and LISP <xref target="RFC6830" format="default"/>, cite RFC 3168,
        which is compatible with RFC 6040.</t>
        <t>However, as Section 9.3 of RFC 3168 pointed out, ECN support needs
        to be defined for many earlier shim-based tunnelling protocols, e.g.
        L2TPv2 <xref target="RFC2661" format="default"/>, L2TPv3 <xref target="RFC3931" format="default"/>, GRE
        <xref target="RFC2784" format="default"/>, PPTP <xref target="RFC2637" format="default"/>, GTP <xref target="GTPv1" format="default"/>, <xref target="GTPv1-U" format="default"/>, <xref target="GTPv2-C" format="default"/>
        and Teredo <xref target="RFC4380" format="default"/> as well as some recent ones, e.g.
        VXLAN <xref target="RFC7348" format="default"/>, NVGRE <xref target="RFC7637" format="default"/> and NSH
        <xref target="RFC8300" format="default"/>.</t>
        <t>All these IP-based encapsulations can be updated in one shot by
        simple reference to RFC 6040. However, it would not be appropriate to
        update all these protocols from within the present guidance document.
        Instead a companion specification <xref target="I-D.ietf-tsvwg-rfc6040update-shim" format="default"/> has been prepared that
        has the appropriate standards track status to update standards track
        protocols. For those that are not under IETF change control <xref target="I-D.ietf-tsvwg-rfc6040update-shim" format="default"/> can only recommend that
        the relevant body updates them.</t>
      </section>
      <section anchor="ecnencap_WireProtocolECNSupport" numbered="true" toc="default">
        <name>Wire Protocol Design: Indication of ECN Support</name>
        <t>This section is intended to guide the redesign of any lower layer
        protocol that encapsulate IP to add native ECN support at the lower
        layer. It reflects the approaches used in <xref target="RFC6040" format="default"/> and
        in <xref target="RFC5129" format="default"/>. Therefore IP-in-IP tunnels or IP-in-MPLS
        or MPLS-in-MPLS encapsulations that already comply with <xref target="RFC6040" format="default"/> or <xref target="RFC5129" format="default"/> will already satisfy
        this guidance.</t>
        <t>A lower layer (or subnet) congestion notification system:</t>
        <ol spacing="normal" type="1"><li>SHOULD NOT apply explicit congestion notifications to PDUs that
            are destined for legacy layer-4 transport implementations that
            will not understand ECN, and</li>
          <li anchor="ecnencap_Egress_Check">
            <t>SHOULD NOT apply explicit
            congestion notifications to PDUs if the egress of the subnet might
            not propagate congestion notifications onward into the higher
            layer.</t>
            <t>We use the term ECN-PDUs for a PDU
            on a feedback loop that will propagate congestion notification
            properly because it meets both the above criteria. And a
            Not-ECN-PDU is a PDU on a feedback loop that does not meet at
            least one of the criteria, and will therefore not propagate
            congestion notification properly. A corollary of the above is that
            a lower layer congestion notification protocol:</t>
          </li>
          <li>SHOULD be able to distinguish ECN-PDUs from Not-ECN-PDUs.</li>
        </ol>
        <t>Note that there is no need for all interior nodes within a subnet
        to be able to mark congestion explicitly. A mix of ECN and drop
        signals from different nodes is fine. However, if <em>any</em>
        interior nodes might generate ECN markings, guideline <xref format="counter" target="ecnencap_Egress_Check"/> above says that all
        relevant egress node(s) SHOULD be able to propagate those markings up
        to the higher layer.</t>
        <t>In IP, if the ECN field in each PDU is cleared to the Not-ECT (not
        ECN-capable transport) codepoint, it indicates that the L4 transport
        will not understand congestion markings. A congested buffer must not
        mark these Not-ECT PDUs, and therefore drops them instead.</t>
        <t>The mechanism a lower layer uses to distinguish the ECN-capability
        of PDUs need not mimic that of IP. The above guidelines merely say
        that the lower layer system, as a whole, should achieve the same
        outcome. For instance, ECN-capable feedback loops might use PDUs that
        are identified by a particular set of labels or tags. Alternatively,
        logical link protocols that use flow state might determine whether a
        PDU can be congestion marked by checking for ECN-support in the flow
        state. Other protocols might depend on out-of-band control
        signals.</t>
        <t>The per-domain checking of ECN support in MPLS <xref target="RFC5129" format="default"/> is a good example of a way to avoid sending
        congestion markings to L4 transports that will not understand them,
        without using any header space in the subnet protocol.</t>
        <t>In MPLS, header space is extremely limited, therefore RFC5129 does
        not provide a field in the MPLS header to indicate whether the PDU is
        an ECN-PDU or a Not-ECN-PDU. Instead, interior nodes in a domain are
        allowed to set explicit congestion indications without checking
        whether the PDU is destined for a L4 transport that will understand
        them. Nonetheless, this is made safe by requiring that the network
        operator upgrades all decapsulating edges of a whole domain at once,
        as soon as even one switch within the domain is configured to mark
        rather than drop during congestion. Therefore, any edge node that
        might decapsulate a packet will be capable of checking whether the
        higher layer transport is ECN-capable. When decapsulating a CE-marked
        packet, if the decapsulator discovers that the higher layer (inner
        header) indicates the transport is not ECN-capable, it drops the
        packet--effectively on behalf of the earlier congested node (see
        Decapsulation Guideline <xref format="counter" target="ecnencap_dropNot-ECTinnerCEouter"/> in <xref target="ecnencap_DecapGuidelines" format="default"/>).</t>
        <t>It was only appropriate to define such an incremental deployment
        strategy because MPLS is targeted solely at professional operators,
        who can be expected to ensure that a whole subnetwork is consistently
        configured. This strategy might not be appropriate for other link
        technologies targeted at zero-configuration deployment or deployment
        by the general public (e.g. Ethernet). For such 'plug-and-play'
        environments it will be necessary to invent a failsafe approach that
        ensures congestion markings will never fall into black holes, no
        matter how inconsistently a system is put together. Alternatively,
        congestion notification relying on correct system configuration could
        be confined to flavours of Ethernet intended only for professional
        network operators, such as Provider Backbone Bridges (PBB <xref target="IEEE802.1Q" format="default"/>; previously 802.1ah).</t>
        <t>ECN support in TRILL <xref target="I-D.ietf-trill-ecn-support" format="default"/>
        provides a good example of how to add ECN to a lower layer protocol
        without relying on careful and consistent operator configuration.
        TRILL provides an extension header word with space for flags of
        different categories depending on whether logic to understand the
        extension is critical. The congestion experienced marking has been
        defined as a 'critical ingress-to-egress' flag. So if a transit
        RBridge sets this flag and an egress RBridge does not have any logic
        to process it, it will drop it; which is the desired default action
        anyway. Therefore TRILL RBridges can be updated with support for ECN
        in no particular order and, at the egress of the TRILL campus,
        congestion notification will be propagated to IP as ECN whenever ECN
        logic has been implemented, or as drop otherwise.</t>
        <t>QCN <xref target="IEEE802.1Q" format="default"/> is not intended to extend beyond a
        single subnet, or to interoperate with ECN. Nonetheless, the way QCN
        indicates to lower layer devices that the end-points will not
        understand QCN provides another example that a lower layer protocol
        designer might be able to mimic for their scenario. An operator can
        define certain Priority Code Points (PCPs <xref target="IEEE802.1Q" format="default"/>;
        previously 802.1p) to indicate non-QCN frames and an ingress bridge is
        required to map arriving not-QCN-capable IP packets to one of these
        non-QCN PCPs.</t>
      </section>
      <section anchor="ecnencap_EncapGuidelines" numbered="true" toc="default">
        <name>Encapsulation Guidelines</name>
        <t>This section is intended to guide the redesign of any node that
        encapsulates IP with a lower layer header when adding native ECN
        support to the lower layer protocol. It reflects the approaches used
        in <xref target="RFC6040" format="default"/> and in <xref target="RFC5129" format="default"/>. Therefore
        IP-in-IP tunnels or IP-in-MPLS or MPLS-in-MPLS encapsulations that
        already comply with <xref target="RFC6040" format="default"/> or <xref target="RFC5129" format="default"/> will already satisfy this guidance.</t>
        <ol spacing="normal" type="1"><li>
            <t>Egress Capability Check: A subnet ingress needs to be sure that
            the corresponding egress of a subnet will propagate any congestion
            notification added to the outer header across the subnet. This is
            necessary in addition to checking that an incoming PDU indicates
            an ECN-capable (L4) transport. Examples of how this guarantee
            might be provided include:</t>
            <ul spacing="normal">
              <li>by configuration (e.g. if any label switches in a domain
                support ECN marking, <xref target="RFC5129" format="default"/> requires all
                egress nodes to have been configured to propagate ECN)</li>
              <li>by the ingress explicitly checking that the egress
                propagates ECN (e.g. an early attempt to add ECN support to
                TRILL used IS-IS to check path capabilities before adding ECN
                extension flags to each frame <xref target="RFC7780" format="default"/>).</li>
              <li>by inherent design of the protocol (e.g. by encoding ECN
                marking on the outer header in such a way that a legacy egress
                that does not understand ECN will consider the PDU corrupt or
                invalid and discard it, thus at least propagating a form of
                congestion signal).</li>
            </ul>
          </li>
          <li>Egress Fails Capability Check: If the ingress cannot guarantee
            that the egress will propagate congestion notification, the
            ingress SHOULD disable ECN at the lower layer when it forwards the
            PDU. An example of how the ingress might disable ECN at the lower
            layer would be by setting the outer header of the PDU to identify
            it as a Not-ECN-PDU, assuming the subnet technology supports such
            a concept.</li>
          <li anchor="ecnencap_Encap_Copy">
            <t>Standard Congestion Monitoring
            Baseline: Once the ingress to a subnet has established that the
            egress will correctly propagate ECN, on encapsulation it SHOULD
            encode the same level of congestion in outer headers as is
            arriving in incoming headers. For example it might copy any
            incoming congestion notification into the outer header of the
            lower layer protocol.</t>
            <t>This ensures that
            bulk congestion monitoring of outer headers (e.g. by a network
            management node monitoring ECN in passing frames) will measure
            congestion accumulated along the whole upstream path - since the
            Load Regulator not just since the ingress of the subnet. A node
            that is not the Load Regulator SHOULD NOT re-initialize the level
            of CE markings in the outer to zero. </t>
            <t>It
            would still also be possible to measure congestion introduced
            across one subnet (or tunnel) by subtracting the level of CE
            markings on inner headers from that on outer headers (see Appendix
            C of <xref target="RFC6040" format="default"/>). For example:</t>
            <ul spacing="normal">
              <li>If this guideline has been followed and if the level of CE
                markings is 0.4% on the outer and 0.1% on the inner, 0.4%
                congestion has been introduced across all the networks since
                the load regulator, and 0.3% (= 0.4% - 0.1%) has been
                introduced since the ingress to the current subnet (or
                tunnel);</li>
              <li>Without this guideline, if the subnet ingress had
                re-initialized the outer congestion level to zero, the outer
                and inner would measure 0.1% and 0.3%. It would still be
                possible to infer that the congestion introduced since the
                Load Regulator was 0.4% (= 0.1% + 0.3%). But only if the
                monitoring system somehow knows whether the subnet ingress
                re-initialized the congestion level.</li>
            </ul>
            <t>As long as subnet and tunnel technologies use the
            standard congestion monitoring baseline in this guideline,
            monitoring systems will know to use the former approach, rather
            than having to "somehow know" which approach to use.<!--{If required, an example can be given of where it would be appropriate to contradict this SHOULD.
It may be safe to assume a subnetwork technology will not span a trust boundary. 
Especially if copy on encap is not desirable, e.g. if using Floyd's 1-bit MPLS scheme.}

-->
            </t>
          </li>
        </ol>
      </section>
      <section anchor="ecnencap_DecapGuidelines" numbered="true" toc="default">
        <name>Decapsulation Guidelines</name>
        <t>This section is intended to guide the redesign of any node that
        decapsulates IP from within a lower layer header when adding native
        ECN support to the lower layer protocol. It reflects the approaches
        used in <xref target="RFC6040" format="default"/> and in <xref target="RFC5129" format="default"/>.
        Therefore IP-in-IP tunnels or IP-in-MPLS or MPLS-in-MPLS
        encapsulations that already comply with <xref target="RFC6040" format="default"/> or
        <xref target="RFC5129" format="default"/> will already satisfy this guidance.</t>
        <t>A subnet egress SHOULD NOT simply copy congestion notification from
        outer headers to the forwarded header. It SHOULD calculate the
        outgoing congestion notification field from the inner and outer
        headers using the following guidelines. If there is any conflict,
        rules earlier in the list take precedence over rules later in the
        list:</t>
        <ol spacing="normal" type="1"><li anchor="ecnencap_dropNot-ECTinnerCEouter">
            <t>If the arriving inner
            header is a Not-ECN-PDU it implies the L4 transport will not
            understand explicit congestion markings. Then:</t>
            <ul spacing="normal">
              <li>If the outer header carries an explicit congestion marking,
                drop is the only indication of congestion that the L4
                transport will understand. If the congestion marking is the
                most severe possible, the packet MUST be dropped. However, if
                congestion can be marked with multiple levels of severity and
                the packet's marking is not the most severe, this requirement
                can be relaxed to: the packet SHOULD be dropped.</li>
              <li>If the outer is an ECN-PDU that carries no indication of
                congestion or a Not-ECN-PDU the PDU SHOULD be forwarded, but
                still as a Not-ECN-PDU.</li>
            </ul>
          </li>
          <li>If the outer header does not support explicit congestion
            notification (a Not-ECN-PDU), but the inner header does (an
            ECN-PDU), the inner header SHOULD be forwarded unchanged.</li>
          <li>In some lower layer protocols congestion may be signalled as a
            numerical level, such as in the control frames of quantized
            congestion notification (QCN <xref target="IEEE802.1Q" format="default"/>). If such
            a multi-bit encoding encapsulates an ECN-capable IP data packet, a
            function will be needed to convert the quantized congestion level
            into the frequency of congestion markings in outgoing IP
            packets.</li>
          <li>
            <t>Congestion indications might be encoded by a severity level.
            For instance increasing levels of congestion might be encoded by
            numerically increasing indications, e.g. pre-congestion
            notification (PCN) can be encoded in each PDU at three severity
            levels in IP or MPLS <xref target="RFC6660" format="default"/> and the default
            encapsulation and decapsulation rules <xref target="RFC6040" format="default"/> are
            compatible with this interpretation of the ECN field. </t>
            <t>If the arriving inner header is an ECN-PDU, where
            the inner and outer headers carry indications of congestion of
            different severity, the more severe indication SHOULD be forwarded
            in preference to the less severe.</t>
          </li>
          <li>
            <t>The inner and outer headers might carry a combination of
            congestion notification fields that should not be possible given
            any currently used protocol transitions. For instance, if
            Encapsulation Guideline <xref format="counter" target="ecnencap_Encap_Copy"/> in <xref target="ecnencap_EncapGuidelines" format="default"/> had been followed, it should
            not be possible to have a less severe indication of congestion in
            the outer than in the inner. It MAY be appropriate to log
            unexpected combinations of headers and possibly raise an alarm.
            </t>
            <t>If a safe outgoing codepoint can be
            defined for such a PDU, the PDU SHOULD be forwarded rather than
            dropped. Some implementers discard PDUs with currently unused
            combinations of headers just in case they represent an attack.
            However, an approach using alarms and policy-mediated drop is
            preferable to hard-coded drop, so that operators can keep track of
            possible attacks but currently unused combinations are not
            precluded from future use through new standards actions.</t>
          </li>
        </ol>
      </section>
      <section anchor="ecnencap_Sequences" numbered="true" toc="default">
        <name>Sequences of Similar Tunnels or Subnets</name>
        <t>In some deployments, particularly in 3GPP networks, an IP packet
        may traverse two or more IP-in-IP tunnels in sequence that all use
        identical technology (e.g. GTP).</t>
        <t>In such cases, it would be sufficient for every encapsulation and
        decapsulation in the chain to comply with RFC 6040. Alternatively, as
        an optimisation, a node that decapsulates a packet and immediately
        re-encapsulates it for the next tunnel MAY copy the incoming outer ECN
        field directly to the outgoing outer and the incoming inner ECN field
        directly to the outgoing inner. Then the overall behavior across the
        sequence of tunnel segments would still be consistent with RFC
        6040.</t>
        <t>Appendix C of RFC6040 describes how a tunnel egress can monitor how
        much congestion has been introduced within a tunnel. A network
        operator might want to monitor how much congestion had been introduced
        within a whole sequence of tunnels. Using the technique in Appendix C
        of RFC6040 at the final egress, the operator could monitor the whole
        sequence of tunnels, but only if the above optimisation were used
        consistently along the sequence of tunnels, in order to make it appear
        as a single tunnel. Therefore, tunnel endpoint implementations SHOULD
        allow the operator to configure whether this optimisation is
        enabled.</t>
        <t>When ECN support is added to a subnet technology, consideration
        SHOULD be given to a similar optimisation between subnets in sequence
        if they all use the same technology.</t>
      </section>
      <section anchor="ecnencap_Reframing" numbered="true" toc="default">
        <name>Reframing and Congestion Markings</name>
        <t>The guidance in this section is worded in terms of framing
        boundaries, but it applies equally whether the protocol data units are
        frames, cells or packets.</t>
        <t>Where an AQM marks the ECN field of IP packets as they queue into a
        layer-2 link, there will be no problem with framing boundaries,
        because the ECN markings would be applied directly to IP packets. The
        guidance in this section is only applicable where an ECN capability is
        being added to a layer-2 protocol so that layer-2 frames can be
        ECN-marked by an AQM at layer-2. This would only be necessary where
        AQM will be applied at pure layer-2 nodes (without IP-awareness).</t>
        <t>Where ECN marking has had to be applied at non-IP-aware nodes and
        framing boundaries do not necessarily align with packet boundaries,
        the decapsulating IP forwarding node SHOULD propagate ECN markings
        from layer-2 frame headers to IP packets that may have different
        boundaries as a consequence of reframing.</t>
        <t>Two possible design goals for propagating congestion indications,
        described in section 5.3 of <xref target="RFC3168" format="default"/> and section 2.4
        of <xref target="RFC7141" format="default"/>, are:</t>
        <ol spacing="normal" type="1"><li>approximate preservation of the presence of congestion marks on
            the L2 frames used to construct an IP packet;</li>
          <li>approximate preservation of the proportion of congestion marks
            arriving and departing. </li>
        </ol>
        <t>In either case, an implementation SHOULD ensure that any new
        incoming congestion indication is propagated immediately, not held
        awaiting the possibility of further congestion indications to be
        sufficient to indicate congestion on an outgoing PDU <xref target="RFC7141" format="default"/>. Nonetheless, to facilitate pipelined
        implementation, it would be acceptable for congestion marks to
        propagate to a slightly later IP packet.</t>
        <t>Concrete example implementations of goal #1 include (but are not
        limited to):</t>
        <ul spacing="normal">
          <li>Every IP PDU that is constructed, in whole or in part, from an
            L2 frame that is marked with a congestion signal, has that signal
            propagated to it;</li>
          <li>Every L2 frame that is marked with a congestion signal,
            propagates that signal to one IP PDU which is constructed, in
            whole or in part, from it. If multiple IP PDUs meet this
            description, the choice can be made arbitrarily but ought to be
            consistent.</li>
        </ul>
        <t>Concrete example implementations of goal #2 include (but are
        not limited to):</t>
        <ul spacing="normal">
          <li>A counter ('in') tracks octets arriving within the payload of
            marked L2 frames and another ('out') tracks octets departing in
            marked IP packets. While 'in' exceeds 'out', forwarded IP packets
            are ECN-marked. If 'out' exceeds 'in' for longer than a timeout,
            both counters are zeroed, to ensure that the start of the next
            congestion episode propagates immediately;</li>
        </ul>
        <t>Generally, the number of L2 frames may be higher (e.g. ATM),
        similar to, or lower (e.g. 802.11 aggregation at a L2-only station)
        than the number of IP PDUs, and this distinction may influence the
        choice of mechanism.</t>
      </section>
    </section>
    <section anchor="ecnencap_Guidelines_Up" numbered="true" toc="default">
      <name>Feed-Up-and-Forward Mode: Guidelines for Adding Congestion Notification</name>
      <t>The guidance in this section is applicable, for example, when IP
      packets:</t>
      <ul spacing="normal">
        <li>are encapsulated in Ethernet headers, which have no support for
          ECN;</li>
        <li>are forwarded by the eNode-B (base station) of a 3GPP radio
          access network, which is required to apply ECN marking during
          congestion, <xref target="LTE-RA" format="default"/>, <xref target="UTRAN" format="default"/>, but the
          Packet Data Convergence Protocol (PDCP) that encapsulates the IP
          header over the radio access has no support for ECN.</li>
      </ul>
      <t>This guidance also generalizes to encapsulation by other subnet
      technologies with no native support for explicit congestion notification
      at the lower layer, but with support for finding and processing an IP
      header. It is unlikely to be applicable or necessary for IP-in-IP
      encapsulation, where feed-forward-and-up mode based on <xref target="RFC6040" format="default"/> would be more appropriate.</t>
      <t>Marking the IP header while switching at layer-2 (by using a layer-3
      switch) or while forwarding in a radio access network seems to represent
      a layering violation. However, it can be considered as a benign
      optimisation if the guidelines below are followed. Feed-up-and-forward
      is certainly not a general alternative to implementing feed-forward
      congestion notification in the lower layer, because:</t>
      <ul spacing="normal">
        <li>IPv4 and IPv6 are not the only layer-3 protocols that might be
          encapsulated by lower layer protocols</li>
        <li>Link-layer encryption might be in use, making the layer-2 payload
          inaccessible</li>
        <li>Many Ethernet switches do not have 'layer-3 switch' capabilities
          so they cannot read or modify an IP payload</li>
        <li>It might be costly to find an IP header (v4 or v6) when it may be
          encapsulated by more than one lower layer header, e.g. Ethernet MAC
          in MAC (<xref target="IEEE802.1Q" format="default"/>; previously 802.1ah).</li>
      </ul>
      <t>Nonetheless, configuring lower layer equipment to look for an ECN
      field in an encapsulated IP header is a useful optimisation. If the
      implementation follows the guidelines below, this optimisation does not
      have to be confined to a controlled environment such as within a data
      centre; it could usefully be applied on any network--even if the
      operator is not sure whether the above issues will never apply:</t>
      <ol spacing="normal" type="1"><li>If a native lower-layer congestion notification mechanism exists
          for a subnet technology, it is safe to mix feed-up-and-forward with
          feed-forward-and-up on other switches in the same subnet. However,
          it will generally be more efficient to use the native mechanism.</li>
        <li>The depth of the search for an IP header SHOULD be limited. If an
          IP header is not found soon enough, or an unrecognized or unreadable
          header is encountered, the switch SHOULD resort to an alternative
          means of signalling congestion (e.g. drop, or the native lower layer
          mechanism if available).</li>
        <li>It is sufficient to use the first IP header found in the stack;
          the egress of the relevant tunnel can propagate congestion
          notification upwards to any more deeply encapsulated IP headers
          later.</li>
      </ol>
    </section>
    <section anchor="ecnencap_Guidelines_Backward" numbered="true" toc="default">
      <name>Feed-Backward Mode: Guidelines for Adding Congestion Notification</name>
      <t>It can be seen from <xref target="ecnencap_Backward" format="default"/> that
      congestion notification in a subnet using feed-backward mode has
      generally not been designed to be directly coupled with IP layer
      congestion notification. The subnet attempts to minimize congestion
      internally, and if the incoming load at the ingress exceeds the capacity
      somewhere through the subnet, the layer 3 buffer into the ingress backs
      up. Thus, a feed-backward mode subnet is in some sense similar to a null
      mode subnet, in that there is no need for any direct interaction between
      the subnet and higher layer congestion notification. Therefore no
      detailed protocol design guidelines are appropriate. Nonetheless, a more
      general guideline is appropriate: </t>
      <ul empty="true" spacing="normal">
        <li>A subnetwork technology intended to eventually interface to IP
          SHOULD NOT be designed using only the feed-backward mode, which is
          certainly best for a stand-alone subnet, but would need to be
          modified to work efficiently as part of the wider Internet, because
          IP uses feed-forward-and-up mode.</li>
      </ul>
      <t>The feed-backward approach at least works beneath IP, where the term
      'works' is used only in a narrow functional sense because feed-backward
      can result in very inefficient and sluggish congestion
      control--except if it is confined to the subnet directly connected
      to the original data source, when it is faster than feed-forward. It
      would be valid to design a protocol that could work in feed-backward
      mode for paths that only cross one subnet, and in feed-forward-and-up
      mode for paths that cross subnets.</t>
      <t>In the early days of TCP/IP, a similar feed-backward approach was
      tried for explicit congestion signalling, using source-quench (SQ) ICMP
      control packets. However, SQ fell out of favour and is now formally
      deprecated <xref target="RFC6633" format="default"/>. The main problem was that it is
      hard for a data source to tell the difference between a spoofed SQ
      message and a quench request from a genuine buffer on the path. It is
      also hard for a lower layer buffer to address an SQ message to the
      original source port number, which may be buried within many layers of
      headers, and possibly encrypted.</t>
      <t>QCN (also known as backward congestion notification, BCN; see
      Sections 30--33 of <xref target="IEEE802.1Q" format="default"/>; previously known as
      802.1Qau) uses a feed-backward mode structurally similar to ATM's
      relative rate mechanism. However, QCN confines its applicability to
      scenarios such as some data centres where all endpoints are directly
      attached by the same Ethernet technology. If a QCN subnet were later
      connected into a wider IP-based internetwork (e.g. when attempting to
      interconnect multiple data centres) it would suffer the inefficiency
      shown in <xref target="ecnencap_Fig_Feed-Backward" format="default"/>.</t>
      <!--{ToDo - either make this a separate case, move it to modes, or delete it} 
In some circumstances (e.g. pseudowire emulations with link-local flow control), the whole 
path is divided into segments, each with its own congestion notification and feedback loop. 
In these cases, the function that regulates load at the start of each segment will need to 
reset congestion notification (i.e. clear any accumulated congestion notifications) at the 
start of its segment.-->
    </section>
    <!-- ================================================================ -->

    <section anchor="ecnencap_IANA_Considerations" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>This memo includes no request to IANA.</t>
    </section>
    <!-- ================================================================ -->

    <section anchor="ecnencap_Security_Considerations" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>If a lower layer wire protocol is redesigned to include explicit
      congestion signalling in-band in the protocol header, care SHOULD be
      take to ensure that the field used is specified as mutable during
      transit. Otherwise interior nodes signalling congestion would invalidate
      any authentication protocol applied to the lower layer header--by
      altering a header field that had been assumed as immutable.</t>
      <t>The redesign of protocols that encapsulate IP in order to propagate
      congestion signals between layers raises potential signal integrity
      concerns. Experimental or proposed approaches exist for assuring the
      end-to-end integrity of in-band congestion signals, e.g.:</t>
      <ul spacing="normal">
        <li>Congestion exposure (ConEx ) for networks to audit that their
          congestion signals are not being suppressed by other networks or by
          receivers, and for networks to police that senders are responding
          sufficiently to the signals, irrespective of the L4 transport
          protocol used <xref target="RFC7713" format="default"/>.</li>
        <li>A test for a sender to detect whether a network or the receiver
          is suppressing congestion signals (for example see 2nd para of
          Section 20.2 of <xref target="RFC3168" format="default"/>).</li>
      </ul>
      <t>Given these end-to-end approaches are already being specified,
      it would make little sense to attempt to design hop-by-hop congestion
      signal integrity into a new lower layer protocol, because end-to-end
      integrity inherently achieves hop-by-hop integrity.</t>
      <t><xref target="ecnencap_Guidelines_Backward" format="default"/> gives vulnerability to
      spoofing as one of the reasons for deprecating feed-backward mode.</t>
    </section>
    <!-- ================================================================ -->

    <section anchor="ecnencap_Conclusions" numbered="true" toc="default">
      <name>Conclusions</name>
      <t>Following the guidance in this document enables ECN support to be
      extended to numerous protocols that encapsulate IP (v4 &amp; v6) in a
      consistent way, so that IP continues to fulfil its role as an end-to-end
      interoperability layer. This includes:</t>
      <ul spacing="normal">
        <li>A wide range of tunnelling protocols including those with various
          forms of shim header between two IP headers, possibly also separated
          by a L2 header;</li>
        <li>A wide range of subnet technologies, particularly those that work
          in the same 'feed-forward-and-up' mode that is used to support ECN
          in IP and MPLS.</li>
      </ul>
      <t>Guidelines have been defined for supporting propagation of ECN
      between Ethernet and IP on so-called Layer-3 Ethernet switches, using a
      'feed-up-and-forward' mode. This approach could enable other subnet
      technologies to pass ECN signals into the IP layer, even if they do not
      support ECN natively.</t>
      <t>Finally, attempting to add ECN to a subnet technology in
      feed-backward mode is deprecated except in special cases, due to its
      likely sluggish response to congestion.</t>
    </section>
    <!-- ================================================================ -->

    <section anchor="ecnencap_Acknowledgements" numbered="true" toc="default">
      <name>Acknowledgements</name>
      <t>Thanks to Gorry Fairhurst and David Black for extensive reviews.
      Thanks also to the following reviewers: Joe Touch, Andrew McGregor,
      Richard Scheffenegger, Ingemar Johansson, Piers O'Hanlon, Donald
      Eastlake, Jonathan Morton, Markku Kojo and Michael Welzl, who pointed
      out that lower layer congestion notification signals may have different
      semantics to those in IP. Thanks are also due to the tsvwg chairs, TSV
      ADs and IETF liaison people such as Eric Gray, Dan Romascanu and Gonzalo
      Camarillo for helping with the liaisons with the IEEE and 3GPP. And
      thanks to Georg Mayer and particularly to Erik Guttman for the extensive
      search and categorisation of any 3GPP specifications that cite ECN
      specifications.</t>
      <t>Bob Briscoe was part-funded by the European Community under its
      Seventh Framework Programme through the Trilogy project (ICT-216372) for
      initial drafts and through the Reducing Internet Transport Latency
      (RITE) project (ICT-317700) subsequently. The views expressed here are
      solely those of the authors.</t>
    </section>
    <section numbered="true" toc="default">
      <name>Contributors</name>
      <artwork name="" type="" align="left" alt=""><![CDATA[   Pat Thaler
   Broadcom Corporation (retired)
   CA
   USA]]></artwork>
      <t>Pat was a co-author of this draft, but retired before its
      publication.</t>
    </section>
    <!-- ================================================================ -->

    <section anchor="ecnencap_Comments_Solicited" numbered="true" toc="default">
      <name>Comments Solicited</name>
      <t>Comments and questions are encouraged and very welcome. They can be
      addressed to the IETF Transport Area working group mailing list
      &lt;tsvwg@ietf.org&gt;, and/or to the authors.</t>
    </section>
  </middle>
  <back>
    <!-- ================================================================ -->

    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3168.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3819.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4774.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5129.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6040.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7141.xml"/>
      </references>
      <references>
        <name>Informative References</name>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2003.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2473.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2637.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2661.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2784.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2884.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2983.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3931.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4301.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4380.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5415.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6633.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6660.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6830.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7323.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7348.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7780.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7567.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7637.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7713.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8084.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8087.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8257.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8300.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8311.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8926.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-intarea-gue.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-trill-ecn-support.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-tsvwg-ecn-l4s-id.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-tsvwg-rfc6040update-shim.xml"/>
        <reference anchor="IEEE802.1Q" target="https://ieeexplore.ieee.org/document/8403927">
          <front>
            <title>IEEE Standard for Local and Metropolitan Area
          Networks—Virtual Bridged Local Area Networks—Amendment
          6: Provider Backbone Bridges</title>
            <author>
              <organization>IEEE</organization>
            </author>
            <date month="July" year="2018"/>
          </front>
          <seriesInfo name="IEEE Std" value="802.1Q-2018"/>
        </reference>
        <!-- <reference anchor="IEEE802.1ah"
                 target="http://www.ieee802.org/1/pages/802.1ah.html">
        <front>
          <title>IEEE Standard for Local and Metropolitan Area
          Networks&mdash;Virtual Bridged Local Area Networks&mdash;Amendment
          6: Provider Backbone Bridges</title>

          <author>
            <organization>IEEE</organization>
          </author>

          <date month="August" year="2008"/>
        </front>

        <seriesInfo name="IEEE Std" value="802.1ah-2008"/>

        <format target="http://www.ieee802.org/1/pages/802.1ah.html"
                type="HTML"/>

        <annotation>(Access Controlled link within page)</annotation>
      </reference>

      <reference anchor="IEEE802.1Qau"
                 target="http://ieeexplore.ieee.org/xpl/mostRecentIssue.jsp?punumber=5454061">
        <front>
          <title>IEEE Standard for Local and Metropolitan Area
          Networks&mdash;Virtual Bridged Local Area Networks - Amendment 13:
          Congestion Notification</title>

          <author fullname="Norm Finn" initials="N" role="editor"
                  surname="Finn">
            <organization>Cisco</organization>
          </author>

          <date month="March" year="2010"/>
        </front>

        <seriesInfo name="IEEE Std" value="802.1Qau-2010"/>

        <format target="http://ieeexplore.ieee.org/xpl/mostRecentIssue.jsp?punumber=5454061"
                type="PDF"/>

        <annotation>(Access Controlled link within page)</annotation>
      </reference> -->

      <reference anchor="ITU-T.I.371" target="http://ieeexplore.ieee.org/xpl/mostRecentIssue.jsp?punumber=5454061">
          <front>
            <title>Traffic Control and Congestion Control in B-ISDN</title>
            <author fullname="" initials="" surname="">
              <organization>ITU-T</organization>
            </author>
            <date month="March" year="2004"/>
          </front>
          <seriesInfo name="ITU-T Rec." value="I.371 (03/04)"/>
          <format target="http://www.itu.int/rec/recommendation.asp?type=folders&amp;lang=e&amp;parent=T-REC-I.371" type="PDF"/>
        </reference>
        <!--      <reference anchor="DCTCP"
                 target="http://portal.acm.org/citation.cfm?id=1851192">
        <front>
          <title>Data Center TCP (DCTCP)</title>

          <author fullname="Mohammad Alizadeh" initials="M" surname="Alizadeh">
            <organization/>
          </author>

          <author fullname="Albert Greenberg" initials="A" surname="Greenberg">
            <organization/>
          </author>

          <author fullname="David A. Maltz" initials="D.A." surname="Maltz">
            <organization/>
          </author>

          <author fullname="Jitendra Padhye" initials="J" surname="Padhye">
            <organization/>
          </author>

          <author fullname="Parveen Patel" initials="P" surname="Patel">
            <organization/>
          </author>

          <author fullname="Balaji Prabhakar" initials="B" surname="Prabhakar">
            <organization/>
          </author>

          <author fullname="Sudipta Sengupta" initials="S" surname="Sengupta">
            <organization/>
          </author>

          <author fullname="Murari Sridharan" initials="M" surname="Sridharan">
            <organization/>
          </author>

          <date month="October" year="2010"/>
        </front>

        <seriesInfo name="ACM SIGCOMM CCR" value="40(4)63-74"/>

        <format target="http://portal.acm.org/citation.cfm?id=1851192"
                type="PDF"/>
      </reference>
-->

      <reference anchor="Buck00">
          <front>
            <title>Frame Relay: Technology and Practice</title>
            <author fullname="Jeff T. Buckwalter" initials="J.T." surname="Buckwalter">
              <organization/>
            </author>
            <date day="" month="" year="2000"/>
          </front>
          <seriesInfo name="Pub. Addison Wesley" value="ISBN-13: 978-0201485240"/>
        </reference>
        <reference anchor="GTPv1">
          <front>
            <title>GPRS Tunnelling Protocol (GTP) across the Gn and Gp
          interface</title>
            <author>
              <organization>3GPP</organization>
            </author>
            <date/>
          </front>
          <seriesInfo name="Technical Specification" value="TS 29.060"/>
        </reference>
        <reference anchor="GTPv1-U">
          <front>
            <title>General Packet Radio System (GPRS) Tunnelling Protocol User
          Plane (GTPv1-U)</title>
            <author>
              <organization>3GPP</organization>
            </author>
            <date/>
          </front>
          <seriesInfo name="Technical Specification" value="TS 29.281"/>
        </reference>
        <reference anchor="LTE-RA">
          <front>
            <title>Evolved Universal Terrestrial Radio Access (E-UTRA) and
          Evolved Universal Terrestrial Radio Access Network (E-UTRAN);
          Overall description; Stage 2</title>
            <author>
              <organization>3GPP</organization>
            </author>
            <date/>
          </front>
          <seriesInfo name="Technical Specification" value="TS 36.300"/>
        </reference>
        <reference anchor="UTRAN">
          <front>
            <title>UTRAN Overall Description</title>
            <author>
              <organization>3GPP</organization>
            </author>
            <date/>
          </front>
          <seriesInfo name="Technical Specification" value="TS 25.401"/>
        </reference>
        <reference anchor="GTPv2-C">
          <front>
            <title>Evolved General Packet Radio Service (GPRS) Tunnelling
          Protocol for Control plane (GTPv2-C)</title>
            <author>
              <organization>3GPP</organization>
            </author>
            <date year=""/>
          </front>
          <seriesInfo name="Technical Specification" value="TS 29.274"/>
        </reference>
        <reference anchor="ATM-TM-ABR" target="http://www.cisco.com/en/US/tech/tk39/tk51/technologies_tech_note09186a00800fbc76.shtml">
          <front>
            <title>Understanding the Available Bit Rate (ABR) Service Category
          for ATM VCs</title>
            <author>
              <organization>Cisco</organization>
            </author>
            <date day="5" month="June" year="2005"/>
          </front>
          <seriesInfo name="Design Technote" value="10415"/>
        </reference>
        <reference anchor="Leiserson85">
          <front>
            <title>Fat-trees: universal networks for hardware-efficient
          supercomputing</title>
            <author fullname="Charles E. Leiserson" initials="C.E." surname="Leiserson">
              <organization/>
            </author>
            <date day="" month="October" year="1985"/>
          </front>
          <seriesInfo name="IEEE Transactions on Computers" value="34(10):892-901"/>
        </reference>
        <reference anchor="Clos53">
          <front>
            <title>A Study of Non-Blocking Switching Networks</title>
            <author fullname="Charles Clos" initials="C." surname="Clos">
              <organization/>
            </author>
            <date day="" month="March" year="1953"/>
          </front>
          <seriesInfo name="Bell Systems Technical Journal" value="32(2):406--424"/>
        </reference>
      </references>
    </references>
    <section anchor="ecnencap_Doc_Changes" numbered="true" toc="default">
      <name>Changes in This Version (to be removed by RFC Editor)</name>
      <dl newline="false" spacing="normal">
        <dt>From ietf-12 to ietf-13</dt>
        <dd>
          <ul spacing="normal">
            <li>
              <t>Following 3rd tsvwg WGLC:</t>
              <ul spacing="normal">
                <li>Formalized update to RFC 3819 in its own subsection (1.1)
                  and referred to it in the abstract</li>
                <li>Scope: Clarified that the specification of alternative
                  ECN semantics using ECT(1) was not in RFC 4774, but rather
                  in RFC 8311, and that the problem with using a DSCP to
                  indicate alternative semantics has issues at domain
                  boundaries as well as tunnels.</li>
                <li>Terminology: tighted up definitions of ECN-PDU and
                  Not-ECN-PDU, and removed definition of Congestion Baseline,
                  given it was only used once.</li>
                <li>Mentioned QCN where feed-backward is first introduced
                  (S.3), referring forward to where it is discussed more
                  deeply (S.4).</li>
                <li>Clarified that IS-IS solution to adding ECN support to
                  TRILL was not pursued</li>
                <li>Completely rewrote the rationale for the guideline about
                  a Standard Congestion Monitoring Baseline, to focus on
                  standardization of the otherwise unknown scenario used,
                  rather than the relative usefulness of the info in each
                  approach</li>
                <li>Explained the re-framing problem better and added
                  fragmentation as another possible cause of the problem</li>
                <li>Acknowledged new reviewers</li>
                <li>Updated references, replaced citations of 802.1Qau and
                  802.1ah with rolled up 802.1Q, and added citations of Fat
                  trees and Clos Networks</li>
                <li>Numerous other editorial improvements</li>
              </ul>
            </li>
          </ul>
        </dd>
        <dt>From ietf-11 to ietf-12</dt>
        <dd>
          <ul spacing="normal">
            <li>Updated references</li>
          </ul>
        </dd>
        <dt>From ietf-10 to ietf-11</dt>
        <dd>
          <ul spacing="normal">
            <li>Removed short section (was 3) 'Guidelines for All Cases'
              because it was out of scope, being covered by RFC 4774. Expanded
              the Scope section (1.2) to explain all this. Explained that the
              default encap/decap rules already support certain alternative
              semantics, particularly all three of the alternative semantics
              for ECT(1): equivalent to ECT(0) , higher severity than ECT(0),
              and unmarked but implying different marking semantics from
              ECT(0).</li>
            <li>Clarified why the QCN example was being given even though not
              about increment deployment of ECN</li>
            <li>Pointed to the spoofing issue with feed-backward mode from
              the Security Considerations section, to aid security review.</li>
            <li>Removed any ambiguity in the word 'transport' throughout</li>
          </ul>
        </dd>
        <dt>From ietf-09 to ietf-10</dt>
        <dd>
          <ul spacing="normal">
            <li>Updated section 5.1 on "IP-in-IP tunnels with Shim Headers"
              to be consistent with updates to
              draft-ietf-tsvwg-rfc6040update-shim.</li>
            <li>Removed reference to the ECN nonce, which has been made
              historic by RFC 8311</li>
            <li>Removed "Open Issues" Appendix, given all have been
              addressed.</li>
          </ul>
        </dd>
        <dt>From ietf-08 to ietf-09</dt>
        <dd>
          <ul spacing="normal">
            <li>Updated para in Intro that listed all the IP-in-IP tunnelling
              protocols, to instead refer to
              draft-ietf-tsvwg-rfc6040update-shim</li>
            <li>Updated section 5.1 on "IP-in-IP tunnels with Shim Headers"
              to summarize guidance that has evolved as rfc6040update-shim has
              developed.</li>
          </ul>
        </dd>
        <dt>From ietf-07 to ietf-08:</dt>
        <dd>Refreshed to avoid expiry.
          Updated references.</dd>
        <dt>From ietf-06 to ietf-07:</dt>
        <dd>
          <ul spacing="normal">
            <li>Added the people involved in liaisons to the
              acknowledgements.</li>
          </ul>
        </dd>
        <dt>From ietf-05 to ietf-06:</dt>
        <dd>
          <ul spacing="normal">
            <li>Introduction: Added GUE and Geneve as examples of tightly
              coupled shims between IP headers that cite RFC 6040. And added
              VXLAN to list of those that do not.</li>
            <li>Replaced normative text about tightly coupled shims between
              IP headers, with reference to new
              draft-ietf-tsvwg-rfc6040update-shim</li>
            <li>Wire Protocol Design: Indication of ECN Support: Added TRILL
              as an example of a well-design protocol that does not need an
              indication of ECN support in the wire protocol.</li>
            <li>Encapsulation Guidelines: In the case of a Not-ECN-PDU with a
              CE outer, replaced SHOULD be dropped, with explanations of when
              SHOULD or MUST are appropriate.</li>
            <li>Feed-Up-and-Forward Mode: Explained examples more carefully,
              referred to PDCP and cited UTRAN spec as well as E-UTRAN.</li>
            <li>Updated references.</li>
            <li>Marked open issues as resolved, but did not delete Open
              Issues Appendix (yet).</li>
          </ul>
        </dd>
        <dt>From ietf-04 to ietf-05:</dt>
        <dd>
          <ul spacing="normal">
            <li>Explained why tightly coupled shim headers only "SHOULD"
              comply with RFC 6040, not "MUST".</li>
            <li>Updated references</li>
          </ul>
        </dd>
        <dt>From ietf-03 to ietf-04:</dt>
        <dd>
          <ul spacing="normal">
            <li>Addressed Richard Scheffenegger's review comments: primarily
              editorial corrections, and addition of examples for clarity.</li>
          </ul>
        </dd>
        <dt>From ietf-02 to ietf-03:</dt>
        <dd>
          <ul spacing="normal">
            <li>Updated references, ad cited RFC4774.</li>
          </ul>
        </dd>
        <dt>From ietf-01 to ietf-02:</dt>
        <dd>
          <ul spacing="normal">
            <li>Added Section for guidelines that are applicable in all
              cases.</li>
            <li>Updated references.</li>
          </ul>
        </dd>
        <dt>From ietf-00 to ietf-01:</dt>
        <dd>Updated references.</dd>
        <dt>From briscoe-04 to ietf-00:</dt>
        <dd>Changed filename following
          tsvwg adoption.</dd>
        <dt>From briscoe-03 to 04:</dt>
        <dd>
          <ul spacing="normal">
            <li>Re-arranged the introduction to describe the purpose of the
              document first before introducing ECN in more depth. And
              clarified the introduction throughout.</li>
            <li>Added applicability to 3GPP TS 36.300.</li>
          </ul>
        </dd>
        <dt>From briscoe-02 to 03:</dt>
        <dd>
          <ul spacing="normal">
            <li>
              <t>Scope section:</t>
              <ul spacing="normal">
                <li>Added dependence on correct propagation of traffic class
                  information</li>
                <li>For the feed-backward mode, deemed multicast and anycast
                  out of scope</li>
              </ul>
            </li>
            <li>Ensured all guidelines referring to subnet technologies also
              refer to tunnels and vice versa by adding applicability
              sentences at the start of sections 4.1, 4.2, 4.3, 4.4, 4.6 and
              5.</li>
            <li>Added Security Considerations on ensuring congestion signal
              fields are classed as immutable and on using end-to-end
              congestion signal integrity technologies rather than
              hop-by-hop.</li>
          </ul>
        </dd>
        <dt>From briscoe-01 to 02:</dt>
        <dd>
          <ul spacing="normal">
            <li>Added authors: JK &amp; PT</li>
            <li>
              <t>Added </t>
              <ul spacing="normal">
                <li>Section 4.1 "IP-in-IP Tunnels with Tightly Coupled Shim
                  Headers"</li>
                <li>Section 4.5 "Sequences of Similar Tunnels or Subnets"</li>
                <li>roadmap at the start of Section 4, given the subsections
                  have become quite fragmented.</li>
                <li>Section 9 "Conclusions"</li>
              </ul>
            </li>
            <li>Clarified why transports are starting to be able to saturate
              interior links</li>
            <li>Under Section 1.1, addressed the question of alternative
              signal semantics and included multicast &amp; anycast.</li>
            <li>Under Section 3.1, included a 3GPP example.</li>
            <li>
              <t>Section 4.2. "Wire Protocol Design":</t>
              <ul spacing="normal">
                <li>Altered guideline 2. to make it clear that it only
                  applies to the immediate subnet egress, not later ones</li>
                <li>Added a reminder that it is only necessary to check that
                  ECN propagates at the egress, not whether interior nodes
                  mark ECN</li>
                <li>Added example of how QCN uses 802.1p to indicate support
                  for QCN.</li>
              </ul>
            </li>
            <li>Added references to Appendix C of RFC6040, about monitoring
              the amount of congestion signals introduced within a tunnel</li>
            <li>Appendix A: Added more issues to be addressed, including plan
              to produce a standards track update to IP-in-IP tunnel
              protocols.</li>
            <li>Updated acks and references</li>
          </ul>
        </dd>
        <dt>From briscoe-00 to 01:</dt>
        <dd>
          <ul spacing="normal">
            <li>Intended status: BCP (was Informational) &amp; updates 3819
              added.</li>
            <li>Briefer Introduction: Introductory para justifying benefits
              of ECN. Moved all but a brief enumeration of modes of operation
              to their own new section (from both Intro &amp; Scope).
              Introduced incr. deployment as most tricky part.</li>
            <li>Tightened &amp; added to terminology section</li>
            <li>Structured with Modes of Operation, then Guidelines section
              for each mode.</li>
            <li>Tightened up guideline text to remove vagueness / passive
              voice / ambiguity and highlight main guidelines as numbered
              items.</li>
            <li>Added Outstanding Document Issues Appendix</li>
            <li>Updated references</li>
          </ul>
        </dd>
      </dl>
    </section>
  </back>
</rfc>
