<?xml version="1.0" encoding="UTF-8"?>

<!-- [rfced] updated by Chris 01/27/21 -->

<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent">

<rfc xmlns:xi="http://www.w3.org/2001/XInclude" 
     docName="draft-ietf-roll-useofrplinfo-44" 
     number="0000" 
     ipr="trust200902" 
     updates="6553, 6550, 8138" 
     obsoletes="" 
     submissionType="IETF" 
     category="std" 
     consensus="true" 
     xml:lang="en" 
     tocInclude="true" 
     tocDepth="4" 
     symRefs="true" 
     sortRefs="true" 
     version="3">

  <!-- xml2rfc v2v3 conversion 3.5.0 -->
  <!-- category values: std, bcp, info, exp, and historic
    ipr values: trust200902, noModificationTrust200902, noDerivativesTrust200902,
       or pre5378Trust200902
    you can add the attributes updates="NNNN" and obsoletes="NNNN"
    they will automatically be output with "(if approved)" -->

 <!-- ***** FRONT MATTER ***** -->

 <front>
    <!-- The abbreviated title is used in the page header - it is only necessary if the
        full title is longer than 39 characters -->

   <title abbrev="RPL-data-plane">Using RPI Option Type, Routing Header for Source Routes and IPv6-in-IPv6 encapsulation in the RPL Data Plane</title>
   <seriesInfo name="RFC" value="0000"/>
    <author initials="M.I." surname="Robles" fullname="Maria Ines Robles">
      <organization abbrev="UTN-FRM/Aalto">
Universidad Tecno. Nac.(UTN)-FRM, Argentina /Aalto University Finland
      </organization>
      <address>
        <postal>
          <street>Coronel Rodríguez 273</street>
          <city>Mendoza</city>
          <region>Provincia de Mendoza</region>
          <code>M5500</code>
          <country>Argentina</country>
        </postal>
        <email>mariainesrobles@gmail.com</email>
      </address>
    </author>
    <author initials="M." surname="Richardson" fullname="Michael C. Richardson">
      <organization abbrev="SSW">Sandelman Software Works</organization>
      <address>
        <postal>
          <street>470 Dawson Avenue</street>
          <city>Ottawa</city>
          <region>ON</region>
          <code>K1Z 5V7</code>
          <country>Canada</country>
        </postal>
        <email>mcr+ietf@sandelman.ca</email>
        <uri>http://www.sandelman.ca/mcr/</uri>
      </address>
    </author>
    <author initials="P" surname="Thubert" fullname="Pascal Thubert">
      <organization abbrev="Cisco">Cisco Systems, Inc</organization>
      <address>
        <postal>
          <extaddr>Building D</extaddr>
          <street>45 Allee des Ormes - BP1200 </street>
          <city>MOUGINS - Sophia Antipolis</city>
          <code>06254</code>
          <country>France</country>
        </postal>
        <phone>+33 497 23 26 34</phone>
        <email>pthubert@cisco.com</email>
      </address>
    </author>
    <date year="2021" month="January" />
    <area>Internet</area>
    <workgroup>ROLL Working Group</workgroup>
    <keyword>RPL Option</keyword>
    <keyword>6LoWPAN</keyword>
    <keyword>RFC 6553</keyword>
    <abstract>
      <t>
        This document looks at different data flows through LLN (Low-Power and Lossy Networks) where RPL
        (IPv6 Routing Protocol for Low-Power and Lossy Networks) is used to establish routing.
        The document enumerates the cases where RFC 6553 (RPI Option Type), RFC 6554 (Routing Header for Source Routes)
        and IPv6-in-IPv6 encapsulation is required in data plane.
        This analysis provides the basis on which to design efficient compression of these headers.
        This document updates RFC6553 adding a change to the RPI Option Type. Additionally, this document updates
        RFC 6550 defining a flag in the DIO Configuration option to indicate about this change and
        updates RFC 8138 as well to consider the new Option Type when the RPL Option is decompressed.
      </t>
    </abstract>
  </front>
  <middle>
    <section numbered="true" toc="default">
      <name>Introduction</name>
      <t>
               RPL (IPv6 Routing Protocol for Low-Power and Lossy Networks)
               <xref target="RFC6550" format="default"/> is a routing protocol for
                constrained networks. <xref target="RFC6553" format="default"/>
                defines the RPL Option carried within the IPv6 Hop-by-Hop
                Header to carry the RPLInstanceID and quickly identify inconsistencies (loops) in the routing topology.
                The RPL Option is commonly referred to as the RPL Packet Information
                (RPI) though the RPI is the routing information that is defined
                in <xref target="RFC6550" format="default"/> and transported in the RPL Option.
                RFC 6554 <xref target="RFC6554" format="default"/> defines the "RPL Source Route Header" (RH3), an
                IPv6 Extension Header to deliver datagrams within a RPL
                routing domain, particularly in non-storing mode.
      </t>
      <t>
                These various items are referred to as RPL artifacts, and
                they are seen on all of the data-plane traffic that occurs in
                RPL routed networks; they do not in general appear on the RPL
                control plane traffic at all which is mostly Hop-by-Hop
                traffic (one exception being DAO messages in non-storing mode).
      </t>
      <t>
               It has become clear from attempts to do multi-vendor
               interoperability, and from a desire to compress as many of
               the above artifacts as possible that not all implementers
               agree when artifacts are necessary, or when they can be safely
               omitted, or removed.
      </t>
      <t>
               The ROLL WG analyzed how <xref target="RFC2460" format="default"/> rules apply to storing and
               non-storing use of RPL.  The result was 24 data plane use
               cases.  They are exhaustively outlined here in order to be
               completely unambiguous.  During the processing of this
               document, new rules were published as
               <xref target="RFC8200" format="default"/>, and this document was updated
               to reflect the normative changes in that document.
      </t>
      <t>
               This document updates <xref target="RFC6553" format="default"/>, changing the value of the Option Type of the RPL Option
               to make <xref target="RFC8200" format="default"/> routers ignore this option when not recognized.
      </t>
      <t>
               A Routing Header Dispatch for 6LoWPAN (6LoRH) <xref target="RFC8138" format="default"/>
                defines a mechanism for compressing RPL Option information and Routing Header type 3 (RH3)
                <xref target="RFC6554" format="default"/>, as well as an efficient IPv6-in-IPv6 technique.
      </t>
      <t>
                Most of the use cases described herein require the use of IPv6-in-IPv6 packet encapsulation.
                When encapsulating and decapsulating packets, <xref target="RFC6040" format="default"/> <bcp14>MUST</bcp14> be applied to map the
                setting of the explicit congestion notification (ECN) field between inner and outer headers.
                Additionally, <xref target="I-D.ietf-intarea-tunnels" format="default"/> is recommended reading to explain
                the relationship of IP tunnels to existing protocol layers and the challenges
                in supporting IP tunneling.
      </t>
      <t>
                Non-constrained uses of RPL are not in scope of this document, and
                applicability statements for those uses may provide different
                advice, E.g. <xref target="I-D.ietf-anima-autonomic-control-plane" format="default"/>.
      </t>
      <section numbered="true" toc="default">
        <name>Overview</name>
        <t>
               The rest of the document is organized as follows: <xref target="sec_terms" format="default"/> describes the used terminology.
               <xref target="sec_rpl_overview" format="default"/> provides a RPL Overview.
	       <xref target="updateRFCs_section" format="default"/> describes the updates to RFC 6553, RFC 6550, and RFC 8138.
               <xref target="sec_ref_topo" format="default"/> provides the reference topology used for the uses cases.
               <xref target="sec_use_cases" format="default"/> describes the use cases included.
               <xref target="sec_sm" format="default"/> describes the storing mode cases and <xref target="sec_non-sm" format="default"/> the non-storing mode cases.
               <xref target="notrplaware" format="default"/> describes the operational considerations of supporting RPL-unaware-leaves.
               <xref target="sec_op_con_0x23" format="default"/> depicts operational considerations for the proposed change on RPI Option Type, <xref target="iana" format="default"/> the
               IANA considerations and then <xref target="Security" format="default"/> describes the security
               aspects.
        </t>
      </section>
    </section>
    <section anchor="sec_terms" numbered="true" toc="default">
      <name>Terminology and Requirements Language</name>
        <t>
    The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL
    NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
    "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
    described in BCP&nbsp;14 <xref target="RFC2119"/> <xref target="RFC8174"/> 
    when, and only when, they appear in all capitals, as shown here.
        </t>
      <t>
        Terminology defined in <xref target="RFC7102" format="default"/> applies to this document: LLN, RPL, RPL domain and ROLL.
      </t>
<dl>
      <dt>
        Consumed:</dt><dd>A Routing Header is consumed when the Segments Left field is zero, which indicates that the
        destination in the IPv6 header is the final destination of the packet and that the hops in the Routing Header
        have been traversed.
      </dd>
      <dt>
        RPL Leaf:</dt><dd>An IPv6 host that is attached to a RPL router and obtains connectivity
        through a RPL Destination Oriented Directed Acyclic Graph (DODAG). As an IPv6 node,
        a RPL Leaf is expected to ignore a consumed Routing Header and as an IPv6 host, it
        is expected to ignore a Hop-by-Hop header. It results that a RPL Leaf can correctly
        receive a packet with RPL artifacts. On the other hand, a RPL Leaf is not expected
        to generate RPL artifacts or to support IP-in-IP encapsulation. For simplification,
        this document uses the standalone term leaf to mean a RPL leaf.
      </dd>
      <dt>
        RPL Packet Information (RPI):</dt><dd>
        The information defined abstractly in <xref target="RFC6550" format="default"/> to be placed in IP packets.
        The term is commonly used, including in this document, to refer to the RPL Option <xref target="RFC6553" format="default"/>
        that transports that abstract information in an IPv6 Hop-by-Hop Header. <xref target="RFC8138" format="default"/> provides
        an alternate (more compressed) formating for the same abstract information.
      </dd>
      <dt>
        RPL-aware-node (RAN):</dt><dd>A device which implements RPL. Please note that the device can be found inside the LLN or outside LLN.
      </dd>
      <dt>
        RPL-Aware-Leaf(RAL):</dt><dd>A RPL-aware-node that is also a RPL Leaf.
      </dd>
      <dt>
        RPL-unaware-node:</dt><dd>A device which does not implement RPL, thus the device is not-RPL-aware.
	      Please note that the device can be found inside the LLN.
      </dd>
      <dt>
        RPL-Unaware-Leaf(RUL):</dt><dd>A RPL-unaware-node that is also a RPL Leaf.
      </dd>
      <dt>
	    6LoWPAN Node (6LN):</dt><dd><t><xref target="RFC6775" format="default"/> defines it as:</t>
      <t>"A 6LoWPAN node is any host or router participating in a LoWPAN.
      This term is used when referring to situations in which either a
      host or router can play the role described."</t> 
      <t>In this document, a 6LN acts as a leaf.</t>
      </dd>
      <dt>
      6LoWPAN Router (6LR):</dt><dd><t><xref target="RFC6775" format="default"/> defines it as:</t> 
      <t>"An intermediate router in the LoWPAN that is able to send and
      receive Router Advertisements (RAs) and Router Solicitations (RSs)
      as well as forward and route IPv6 packets.  6LoWPAN routers are
      present only in route-over topologies."</t>
      </dd>
      <dt>
      6LoWPAN Border Router (6LBR):</dt><dd><t><xref target="RFC6775" format="default"/> defines it as:</t>
      <t>"A border router located at the junction of separate 6LoWPAN
      networks or between a 6LoWPAN network and another IP network.
      There may be one or more 6LBRs at the 6LoWPAN network boundary.  A
      6LBR is the responsible authority for IPv6 prefix propagation for
      the 6LoWPAN network it is serving.  An isolated LoWPAN also
      contains a 6LBR in the network, which provides the prefix(es) for
      the isolated network."</t>
      </dd>
      <dt>
          Flag Day:</dt><dd>A Flag Day is caused when a network is reconfigured in a way that nodes running the older configuration can not communicate with nodes running the new configuration.  For instance, when the ARPANET changed from IP version 3 to IP version 4 on January 1, 1983 <xref target="RFC0801" format="default"/>.
          In the context of this document, a switch from RPI Option Type (0x63) and Option Type (0x23) presents as a disruptive changeover.  In order to reduce the amount of time for such a changeover, <xref target="update6550" format="default"/> provides a mechanism to allow nodes to be incrementally upgraded.
      </dd>
      <dt>
           Non-Storing Mode (Non-SM):</dt><dd>RPL mode of operation in which the RPL-
       aware-nodes send information to the root about their parents.  Thus, the root knows the topology.
       Because the root knows the topology, the intermediate 6LRs do not maintain routing state and
        source routing is needed.

      </dd>
      <dt>
        Storing Mode (SM):</dt><dd>RPL mode of operation in which RPL-aware-nodes (6LRs) maintain routing
        state (of the children) so that source routing is not needed.
      </dd>
</dl>
     <aside><t>
        Note: Due to lack of space in some figures (tables) we refer to IPv6-in-IPv6 as IP6-IP6.
      </t></aside>
    </section>
    <section anchor="sec_rpl_overview"  numbered="true" toc="default">
      <name>RPL Overview</name>
      <t>
        RPL defines the RPL Control messages (control plane), a new
        ICMPv6 <xref target="RFC4443" format="default"/>  message with Type 155.
        DIS (DODAG Information Solicitation), DIO (DODAG Information Object)
        and DAO (Destination Advertisement Object) messages are
        all RPL Control messages but with different Code values.
        A RPL Stack is shown in <xref target="fig_RPLStack" format="default"/>.
      </t>
      <figure anchor="fig_RPLStack">
        <name>RPL Stack.</name>
        <artwork name="" type="" align="left" alt=""><![CDATA[
+--------------+
| Upper Layers |
|              |
+--------------+
|   RPL        |
|              |
+--------------+
|   ICMPv6     |
|              |
+--------------+
|   IPv6       |
|              |
+--------------+
|   6LoWPAN    |
|              |
+--------------+
|   PHY-MAC    |
|              |
+--------------+
]]></artwork>
      </figure>
      <t>
        RPL supports two modes of Downward internal traffic: in storing mode (SM),
        it is fully stateful; in non-storing mode (Non-SM), it is fully source
        routed. A RPL Instance is either fully storing or fully
        non-storing, i.e. a RPL Instance with a combination of a fully
        storing and non-storing nodes is not supported with the
        current specifications at the time of writing this document.
        External routes are advertised with non-storing-mode messaging
        even in a storing mode network, see <xref target="nnstext" format="default"/>
      </t>
    </section>
    <section anchor="updateRFCs_section" numbered="true" toc="default">
      <name>Updates to RFC 6550, RFC 6553, and RFC 8138</name>
      <section anchor="updateRFC_section6550" numbered="true" toc="default">
        <name>Updates to RFC 6550</name>
        <section anchor="nnstext" numbered="true" toc="default">
          <name>Advertising External Routes with Non-Storing Mode Signaling.</name>
          <t>
          <xref target="RFC6550" section="6.7.8" sectionFormat="of" format="default"/> introduces the 'E' flag that
          is set to indicate that the 6LR that generates the DAO redistributes
          external targets into the RPL network.  An external Target is a Target
          that has been learned through an alternate protocol, for instance a
          route to a prefix that is outside the RPL domain but reachable via a
          6LR. Being outside of the RPL domain, a node that is reached via an
          external target cannot be guaranteed to ignore the RPL artifacts and
          cannot be expected to process the <xref target="RFC8138" format="default"/> compression
          correctly. This means that the RPL artifacts should be contained in an
          IP-in-IP encapsulation that is removed by the 6LR, and that any
          remaining compression should be expanded by the 6LR before it forwards
          a packet outside the RPL domain.
          </t>
          <t>
          This specification updates <xref target="RFC6550" format="default"/> to RECOMMEND that
          external targets are advertised using Non-Storing Mode DAO messaging
          even in a Storing-Mode network. This way, external routes are not
          advertised within the DODAG and all packets to an external target
          reach the Root like normal Non-Storing Mode traffic. The Non-Storing
          Mode DAO informs the Root of the address of the 6LR that injects the
          external route, and the root uses IP-in-IP encapsulation to that 6LR,
          which terminates the IP-in-IP tunnel and forwards the original packet
          outside the RPL domain free of RPL artifacts.
          </t>
          <t>
          In the other direction,
          for traffic coming from an external target into the LLN, the parent
          (6LR) that injects the traffic always encapsulates to the root.
          This whole operation is
          transparent to intermediate routers that only see traffic between the
          6LR and the Root, and only the Root and the 6LRs that inject external
          routes in the network need to be upgraded to add this function to the
          network.
          </t>
          <t>
          A RUL is a special case of external target when the target is actually
          a host and it is known to support a consumed Routing Header and to
          ignore a Hop-by-Hop header as prescribed by <xref target="RFC8200" format="default"/>.
          The target may have been learned through an external routing protocol or may have
          been registered to the 6LR using <xref target="RFC8505" format="default"/>.
          </t>
          <t>
          In order to enable IP-in-IP all the way to a 6LN, it is beneficial
          that the 6LN supports decapsulating IP-in-IP, but that is not assumed
          by <xref target="RFC8504" format="default"/>.
          If the 6LN is a RUL, the Root that encapsulates a packet <bcp14>SHOULD</bcp14>
          terminate the tunnel at a parent 6LR unless it is aware that the RUL
          supports IP-in-IP decapsulation.
          </t>
          <t>

          A node that is reachable over an external route is not expected to
          support <xref target="RFC8138" format="default"/>. Whether a decapsulation took place
          or not and even when the 6LR is delivering the packet to a RUL, the
          6LR that injected an external route <bcp14>MUST</bcp14> uncompress the packet before
          forwarding over that external route.

          </t>
        </section>
        <section anchor="mopchanges" numbered="true" toc="default">
          <name>Configuration Options and Mode                                                of Operation</name>
          <t>
              <xref target="RFC6550" section="6.7.6" sectionFormat="of" format="default"/> describes the DODAG Configuration Option as
              containing a series of Flags in the first octet of the payload.
          </t>
          <t>
              Anticipating future work to revise RPL relating to how the LLN and DODAG
              are configured, this document renames the DODAG Configuration Option
              Flags registry so that it applies to Mode of Operation (MOP) values zero
              (0) to six (6) only, leaving the flags unassigned for MOP value seven
              (7).The MOP is described in <xref target="RFC6550" section="6.3.1" sectionFormat="comma" format="default"/>.
          </t>
          <t>
              In addition, this document reserves MOP value 7 for future expansion.
          </t>
          <t>
            See Sections <xref target="sec_op_flags_reg" format="counter"/> and <xref target="sec_mop_val_change" format="counter"/>.
          </t>
        </section>
        <section anchor="update6550" numbered="true" toc="default">
          <name>Indicating the new RPI in the                           DODAG Configuration option Flag.</name>
          <t>
            In order to avoid a Flag Day caused by lack of interoperation
            between new RPI Option Type (0x23) and old RPI Option Type (0x63) nodes, this section
            defines a flag in the DIO Configuration option, to indicate when
            the new RPI Option Type can be safely used. This means, the flag is going
            to indicate the value of Option Type that the network will be using for the RPL Option. Thus, when a
            node joins to a network it will know which value to use.
            With this, RPL-capable nodes know if it is safe to use 0x23 when creating a new RPL Option.
            A node that forwards a packet with an RPI <bcp14>MUST NOT</bcp14> modify the Option Type of the RPL Option.
          </t>
          <t>
              This is done using a DODAG Configuration option flag which will
            signal "RPI 0x23 enable" and propagate through the network.
              <xref target="RFC6550" section="6.3.1" sectionFormat="of" format="default"/> defines a 3-bit Mode of
              Operation (MOP) in the DIO Base Object. The flag is defined only
              for MOP value between 0 to 6.
          </t>
          <t>
              For a MOP value of 7, a node <bcp14>MUST</bcp14> use the RPI 0x23 option.
          </t>
          <t>
              As stated in <xref target="RFC6550" format="default"/> the DODAG Configuration option is present in DIO messages.
              The DODAG Configuration option distributes configuration
              information.  It is generally static, and does not change within
              the DODAG.
              This information is configured at the DODAG root and distributed
              throughout the DODAG with the DODAG Configuration option.
              Nodes other than the DODAG root do not modify this information when
              propagating the DODAG Configuration option.
          </t>
          <t>
              Currently, the DODAG Configuration option in <xref target="RFC6550" format="default"/> states:</t>
<blockquote>
              the unused bits <bcp14>MUST</bcp14> be initialized to zero by the sender
               and <bcp14>MUST</bcp14> be ignored by the receiver.
</blockquote>
              <t>If the flag is received with a
            value zero (which is the default), then new nodes will remain in
              RFC 6553 Compatible Mode; originating traffic with the old-RPI Option Type (0x63) value.
              If the flag is received with a value of 1, then the value for the
              RPL Option <bcp14>MUST</bcp14> be set to 0x23.
          </t>
          <t>
             Bit number three of the flag field in the DODAG Configuration option
             is to be used as shown in <xref target="fig_RPIflagday2" format="default"/> (which is the same as <xref target="fig_RPIflagdayConfOption" format="default"/>
             in <xref target="iana" format="default"/> and is shown here for convenience):
          </t>

<table anchor="fig_RPIflagday2">
   <name>DODAG Configuration option Flag to indicate the RPI-flag-day.</name>
   <thead>
      <tr>
         <th align="center">Bit number</th>
         <th align="center">Description</th>
         <th align="center">Reference</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <td align="center">3</td>
         <td align="center">RPI 0x23 enable</td>
         <td align="center">This document</td>
     </tr>
   </tbody>
</table>
          <t>
              In the case of reboot, the node (6LN or 6LR) does not remember the
              RPI Option Type (i.e., whether or not the flag is set), so the node will not trigger DIO
              messages until a DIO message is received indicating the RPI
              value to be used. The node will use the value 0x23 if the network supports this feature.
          </t>
        </section>
      </section>
      <section numbered="true" toc="default">
        <name>Updates to RFC 6553: Indicating the new RPI Option Type.</name>
        <t>
          This modification is required in order to be able to send, for example,
          IPv6 packets from a RPL-Aware-Leaf to a RPL-unaware node through Internet (see <xref target="sm-Ral2i" format="default"/>),
          without requiring IPv6-in-IPv6 encapsulation.
        </t>
        <t>
          <xref target="RFC6553" section="6" sectionFormat="of" format="default"/> states as shown in <xref target="fig_RPIOption" format="default"/>,
          that in the Option Type field of the RPL Option,
          the two high order bits must be set to '01' and the third bit is equal to '1'.
          The first two bits indicate that the IPv6 node must discard the packet
          if it doesn't recognize the Option Type,
          and the third bit indicates that the Option Data may change in route.
          The remaining bits serve as the Option Type.
        </t>
<table anchor="fig_RPIOption">
   <name>Option Type in RPL Option.</name>
   <thead>
      <tr>
         <th rowspan="2" colspan="1" align="center">Hex Value</th>
         <th rowspan="1" colspan="3" align="center">Binary Value</th>
         <th rowspan="2" colspan="1" align="center">Description</th>
         <th rowspan="2" colspan="1" align="center">Reference</th>
      </tr>
      <tr>
         <th align="center">act</th>
         <th align="center">chg</th>
         <th align="center">rest</th>
     </tr>
   </thead>
   <tbody>
      <tr>
         <td align="center">0x63</td>
         <td align="center">01</td>
         <td align="center">1</td>
         <td align="center">00011</td>
         <td align="center">RPL Option</td>
         <td align="center"><xref target="RFC6553" format="default"/></td>
      </tr>
   </tbody>
</table>
        <t>
          This document illustrates that it is not always possible to know for sure at the source that a packet will only travel within the RPL domain or may leave it.

        </t>
        <t>
          At the time <xref target="RFC6553" format="default"/> was published, leaking a Hop-by-Hop header in the outer IPv6 header
          chain could potentially impact core routers in the internet. So at that time, it was decided to encapsulate
          any packet with a RPL Option using IPv6-in-IPv6 in all cases where it was unclear whether the packet would
          remain within the RPL domain. In the exception case where a packet would still leak, the Option Type would
          ensure that the first router in the Internet that does not recognize the option would drop the packet and
          protect the rest of the network.

        </t>
        <t>
          Even with <xref target="RFC8138" format="default"/>, where the IPv6-in-IPv6 header is compressed, this approach yields extra bytes
          in a packet; this means consuming more energy, more bandwidth, incurring higher chances of loss and possibly
          causing a fragmentation at the 6LoWPAN level. This impacts the daily operation of constrained devices for a case
           that generally does not happen and would not heavily impact the core anyway.
        </t>
        <t>

          While intention was and remains that the Hop-by-Hop header with a RPL Option should be confined within the
          RPL domain, this specification modifies this behavior in order to reduce the dependency on IPv6-in-IPv6 and
          protect the constrained devices. <xref target="RFC8200" section="4" sectionFormat="of" format="default"/> clarifies the behaviour of routers in
          the Internet as follows: </t>
        <blockquote>it is now expected that nodes along a packet's delivery path only examine and process
          the Hop-by-Hop Options header if explicitly configured to do so.
        </blockquote>
        <t>
          When unclear about the travel of a packet, it becomes preferable for a source not to encapsulate, accepting
          the fact that the packet may leave the RPL domain on its way to its destination. In that event, the packet
          should reach its destination and should not be discarded by the first node that does not recognize the RPL Option.
           But with the current value of the Option Type, if a node in the Internet is configured to process the Hop-by-Hop
           header, and if such node encounters an option with the first two bits set to 01 and conforms to <xref target="RFC8200" format="default"/>,
            it will drop the packet. Host systems should do the same, irrespective of the configuration.
        </t>
        <t>
           Thus, this document updates the Option Type of the RPL Option <xref target="RFC6553" format="default"/>,
           naming it RPI Option Type for simplicity,
           to (<xref target="fig_RPIOption_new" format="default"/>):
           the two high order bits <bcp14>MUST</bcp14> be set to '00'
           and the third bit is equal to '1'.
           The first two bits indicate that the IPv6 node <bcp14>MUST</bcp14>
           skip over this option and continue processing the header
           (<xref target="RFC8200" section="4.2" sectionFormat="comma" format="default"/>)
           if it doesn't recognize the Option Type,
           and the third bit continues to be set to indicate that the Option
           Data may change en route. The rightmost five bits remain at 0x3(00011).
           This ensures that a packet that leaves the RPL domain of an LLN (or that
           leaves the LLN entirely) will not be discarded when it contains the RPL Option.
        </t>
        <t>
          With the new Option Type, if an IPv6 (intermediate) node (RPL-not-capable) receives a packet with a
          RPL Option, it should ignore the Hop-by-Hop RPL Option
          (skip over this option and continue processing the header). This is relevant, as it was mentioned previously, in the case that
          there is a flow from RAL to Internet (see <xref target="sm-Ral2i" format="default"/>).
        </t>
        <t>
           This is a significant update to <xref target="RFC6553" format="default"/>.
        </t>
<table anchor="fig_RPIOption_new">
   <name>Revised Option Type in RPL Option.</name>
   <thead>
      <tr>
         <th rowspan="2" colspan="1" align="center">Hex Value</th>
         <th rowspan="1" colspan="3" align="center">Binary Value</th>
         <th rowspan="2" colspan="1" align="center">Description</th>
         <th rowspan="2" colspan="1" align="center">Reference</th>
      </tr>
      <tr>
         <th align="center">act</th>
         <th align="center">chg</th>
         <th align="center">rest</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <td align="center">0x23</td>
         <td align="center">01</td>
         <td align="center">1</td>
         <td align="center">00011</td>
         <td align="center">RPL Option</td>
         <td align="center">This document</td>
      </tr>
   </tbody>
</table>
        <t>
            Without the signaling described below, this change would otherwise create a lack of interoperation (flag day) for existing networks which are
            currently using 0x63 as the RPI Option Type value.  A move to 0x23 will not
            be understood by those networks.  It is suggested that
            RPL implementations accept both 0x63 and 0x23 when
            processing the header.
        </t>
        <t>
            When forwarding packets, implementations <bcp14>SHOULD</bcp14> use the same value of RPI Type
            as was received. This is required because the RPI Option Type does not change en route
            (<xref target="RFC8200" section="4.2" sectionFormat="comma" format="default"/>). It allows the network to be incrementally
            upgraded and allows the DODAG root to know which parts of the
            network have been upgraded.
        </t>
        <t>
            When originating new packets,
            implementations should have an option to determine which value to
            originate with, this option is controlled by the DIO Configuration option (<xref target="update6550" format="default"/>).
        </t>
        <!--
          A network which is switching from straight 6LoWPAN compression
          mechanism to those described in
          <xref target="RFC8138" />
          will experience a flag day in the data compression anyway, and if
          possible this change can be deployed at the same time.
        </t-->
        <t>
          The change of RPI Option Type from 0x63 to 0x23, makes all nodes compliant with
          <xref target="RFC8200" section="4.2" sectionFormat="of" format="default"/> tolerant of the RPL artifacts.  There
          is no longer a need to remove the artifacts when
          sending traffic to the Internet.  This change clarifies when
          to use IPv6-in-IPv6 headers, and how to address them:
          The Hop-by-Hop Options header containing the RPI <bcp14>MUST</bcp14> always
          be added when 6LRs originate packets (without IPv6-in-IPv6
          headers), and IPv6-in-IPv6 headers <bcp14>MUST</bcp14> always be added
          when a 6LR finds that it needs to insert a Hop-by-Hop Options header
          containing the RPL Option. The IPv6-in-IPv6 header is to
          be addressed to the
          RPL root when on the way up, and to the end-host when on the way down.
        </t>
        <t>
          In the non-storing case, dealing with not-RPL aware leaf nodes
          is much easier as the 6LBR (DODAG root) has complete knowledge
          about the connectivity of all DODAG nodes, and all traffic flows
          through the root node.
        </t>
        <t>
          The 6LBR can recognize not-RPL aware leaf nodes because it will
          receive a DAO about that node from the 6LR immediately above that
          not-RPL aware node.
        </t>
        <t>
          The non-storing mode case does not require the type change from
          0x63 to 0x23, as the root can always create the right packet.
          The type change does not adversely affect the non-storing case.(see  <xref target="update6550" format="default"/>)
        </t>
        <!--        <t>
          In general, any packet that leaves the RPL domain
          of an LLN (or leaves the LLN entirely) will NOT be discarded, when it has the <xref target="RFC6553" /> RPL Option
          Header known as the RPI or <xref target="RFC6554" /> RH33 Extension Header (S)RH3.
          Because of <xref target="RFC8200"/> the RPI Hop-by-Hop option
          <bcp14>MAY</bcp14> be left in place even if the end host does not
          understand it.
        </t>
-->
        </section>
      <section numbered="true" toc="default">
        <name>Updates to RFC 8138: Indicating the way to decompress with the new RPI Option Type.</name>
        <t>
          This modification is required in order to be able to decompress the RPL Option
          with the new Option Type of 0x23.
        </t>
        <t>
            RPI-6LoRH header provides a compressed form for the RPL RPI; see
            <xref target="RFC8138" section="6" sectionFormat="comma" format="default"/>. A node that is decompressing this header
            <bcp14>MUST</bcp14> decompress using the RPI Option Type that is currently active: that
            is, a choice between 0x23 (new) and 0x63 (old). &nbsp;The node will know which to
            use based upon the presence of the flag in the DODAG Configuration option defined in
            <xref target="update6550" format="default"/>. E.g. If the network is in 0x23 mode (by DIO option),
            then it should be decompressed to 0x23.
        </t>
        <t>
          <xref target="RFC8138" section="7" sectionFormat="of" format="default"/> documents how to compress
          the IPv6-in-IPv6 header.
        </t>
        <t>
          There are potential significant advantages to having a single
          code path that always processes IPv6-in-IPv6 headers with no
          conditional branches.
        </t>
        <t>
            In Storing Mode, the scenarios where the flow goes from RAL to RUL and RUL
            to  RUL include compression of the IPv6-in-IPv6 and RPI headers. The use
             of the IPv6-in-IPv6 header is MANDATORY in this case, and
             it <bcp14>SHOULD</bcp14> be compressed with <xref target="RFC8138" section="7" sectionFormat="comma" format="default"/>.
             <xref target="rtghc" format="default"/>
             illustrates the case in Storing mode where the packet is received from the Internet, then the
             root encapsulates the packet to insert the RPI. In that example,
             the leaf is not known to support RFC 8138, and the packet is
             encapsulated to the 6LR that is the parent and last hop to the
             final destination.
        </t>
        <figure anchor="rtghc">
          <name>RPI Inserted by the Root in Storing Mode</name>
          <artwork name="" type="" align="left" alt=""><![CDATA[
+-+ ... -+-+ ... +-+- ... -+-+- +-+-+-+ ... +-+-+ ... -+++ ... +-...
|11110001|SRH-6LoRH| RPI-  |IP-in-IP| NH=1      |11110CPP| UDP | UDP
|Page 1  |Type1 S=0| 6LoRH |6LoRH   |LOWPAN_IPHC| UDP    | hdr |Payld
+-+ ... -+-+ ... +-+- ... -+-+-.+-+-+-+-+ ... +-+-+ ... -+ ... +-...
         <-4bytes->                      <-        RFC 6282      ->
                                               No RPL artifact
]]></artwork>
        </figure>
        <t>
          In <xref target="rtghc" format="default"/>, the source of the IPv6-in-IPv6 encapsulation is
          the Root, so it is elided in the IP-in-IP 6LoRH. The destination is
          the parent 6LR of the destination of the inner packet so it cannot be
          elided. It is placed as the single entry in an SRH-6LoRH as the first
          6LoRH. There is a single entry so the SRH-6LoRH Size is 0. In that
          example, the type is 1 so the 6LR address is compressed to 2 bytes.
          It results that the total length of the SRH-6LoRH is 4 bytes.
          Follows the RPI-6LoRH and then the IP-in-IP 6LoRH. When the
          IP-in-IP 6LoRH is removed, all the router headers that precede it are
          also removed.
          The Paging Dispatch <xref target="RFC8025" format="default"/> may also be removed if
          there was no previous Page change to a Page other than 0 or 1, since
          the LOWPAN_IPHC is encoded in the same fashion in the default Page 0
          and in Page 1. The resulting packet to the destination is the inner
          packet compressed with <xref target="RFC6282" format="default"/>.
        </t>
      </section>
    </section>
    <section anchor="sec_ref_topo" numbered="true" toc="default">
      <name>Sample/reference topology</name>
      <t>
                A RPL network in general is composed of a 6LBR,
                a Backbone Router (6BBR), a 6LR and a 6LN as a leaf logically organized in a DODAG structure.
      </t>
      <t>
               <xref target="fig_CommonTopology" format="default"/> shows the reference RPL Topology for this document. The
               letters above the nodes are there so that
               they may be referenced in subsequent sections. In the figure,
               6LR represents a full router node.
               The 6LN is a RPL aware router, or host (as a leaf).
               Additionally, for simplification purposes,
               it is supposed that the 6LBR has direct access to Internet and is the root of the DODAG, thus the 6BBR
               is not present in the figure.
      </t>
      <t>
            The 6LN leaves (RAL)
            marked as (F, H and I) are RPL nodes with no children hosts.
      </t>
      <t>
	    The leaves marked as RUL (G and J) are
            devices that do not speak RPL at all (not-RPL-aware),
	    but use Router-Advertisements, 6LowPAN DAR/DAC and
            6LoWPAN ND only to participate in the network <xref target="RFC8505" format="default"/>.
	    In the document these leaves (G and J) are also referred to as
            a RUL.
      </t>
      <t>
            The 6LBR ("A") in the figure is the root of the Global DODAG.
      </t>
      <figure anchor="fig_CommonTopology">
        <name>A reference RPL Topology.</name>
        <artwork name="" type="" align="left" alt=""><![CDATA[
                  +------------+
                  |  INTERNET  ----------+
                  |            |         |
                  +------------+         |
                                         |
                                         |
                                         |
                                       A |
                                   +-------+
                                   |6LBR   |
                       +-----------|(root) |-------+
                       |           +-------+       |
                       |                           |
                       |                           |
                       |                           |
                       |                           |
                       | B                         |C
                   +---|---+                   +---|---+
                   |  6LR  |                   |  6LR  |
         +---------|       |--+             +---       ---+
         |         +-------+  |             |  +-------+  |
         |                    |             |             |
         |                    |             |             |
         |                    |             |             |
         |                    |             |             |
         | D                  |  E          |             |
       +-|-----+          +---|---+         |             |
       |  6LR  |          |  6LR  |         |             |
       |       |    +------       |         |             |
       +---|---+    |     +---|---+         |             |
           |        |         |             |             |
           |        |         +--+          |             |
           |        |            |          |             |
           |        |            |          |             |
           |        |            |        I |          J  |
        F  |        | G          | H        |             |
     +-----+-+    +-|-----+  +---|--+   +---|---+     +---|---+
     |  RAL  |    | RUL   |  | RAL  |   |  RAL  |     | RUL   |
     |  6LN  |    |  6LN  |  | 6LN  |   |  6LN  |     |  6LN  |
     +-------+    +-------+  +------+   +-------+     +-------+
]]></artwork>
      </figure>
    </section>
    <section anchor="sec_use_cases" numbered="true" toc="default">
      <name>Use cases</name>
      <t>
           In the data plane a combination of RFC 6553, RFC 6554, and
           IPv6-in-IPv6 encapsulation are going to be analyzed for a number of
           representative traffic flows.
      </t>
      <t>

          The use cases describe the communication in the following cases:
          - Between RPL-aware-nodes with the root (6LBR)
          - Between RPL-aware-nodes with the Internet
          - Between RUL nodes within the LLN (e.g. see <xref target="sm-nRal2root" format="default"/>)
          - Inside of the LLN when the final destination address resides outside
            of the LLN (e.g. see <xref target="sm-nRal2i" format="default"/>).
      </t>
      <t>
             The use cases are as follows:
      </t>
      <t>
             Interaction between Leaf and Root:
      </t>
      <ul empty="true" spacing="normal">
        <li>
               RAL to root
             </li>
        <li>
               root to RAL
             </li>
        <li>
               RUL to root
             </li>
        <li>
               root to RUL
             </li>
      </ul>
      <t>
             Interaction between Leaf and Internet:
      </t>
      <ul empty="true" spacing="normal">
        <li>
               RAL to Internet
             </li>
        <li>
               Internet to RAL
             </li>
        <li>
               RUL to Internet
             </li>
        <li>
               Internet to RUL
             </li>
      </ul>
      <t>
             Interaction between leaves:
      </t>
      <ul empty="true" spacing="normal">
        <li>
               RAL to RAL
             </li>
        <li>
               RAL to RUL
             </li>
        <li>
               RUL to RAL
             </li>
        <li>
               RUL to RUL
             </li>
      </ul>
      <t>
            This document is consistent with the rule that a Header cannot be
            inserted or removed on the fly inside an IPv6 packet that is
            being routed.
            This is a fundamental precept of the IPv6 architecture as
            outlined in <xref target="RFC8200" format="default"/>.
      </t>
      <!--
          <t>
            However, unlike <xref target="RFC6553" />, the Hop-by-Hop Option
            Header used for the RPI artifact has the first two bits set to
            '00'.
            This means that the RPI artifact will be ignored when received by a host
            or router that does not understand that option
            ( Section 4.2 <xref target="RFC8200" />).
          </t>
          <t>
            This means that when the no-drop RPI option code 0x23 is used, a
            packet that leaves the RPL domain of an LLN (or that leaves the LLN
            entirely) will not be discarded when it contains the [RFC6553] RPL
            Hop-by-Hop option known as RPI. Thus, the RPI Hop-by-Hop option is
            left in place even if the end host does not understand it.
          </t>
          <t>
            NOTE: No clear attack has been described when the RPI information is released to the Internet.
            At a minimum, it is clear that the RPI option would waste some network bandwidth when it escapes.
            This is traded off against the savings in the LLN by not having to encapsulate the packet
            in order to remove the artifact. Please check the Security Considerations sections
            <xref target="Security"/> for further details.
          </t>
  -->
          <t>
            As the rank information in the RPI artifact is changed at each
            hop, it will typically be zero when it arrives at the DODAG
            root.  The DODAG root <bcp14>MUST</bcp14> force it to zero when passing the
            packet out to the Internet.  The Internet will therefore not see
            any SenderRank information.
      </t>
      <t>
            Despite being legal to leave the RPI artifact in place,
            an intermediate router that needs to add an extension header
            (e.g. RH3 or RPL Option) <bcp14>MUST</bcp14> still encapsulate the packet in an
            (additional) outer IP header. The new header is placed after
            this new outer IP header.
      </t>
      <t>
           A corollary is that an
            intermediate router can remove an RH3 or RPL Option only
            if it is placed in an encapsulating IPv6
            Header that is addressed TO this intermediate router.
            When doing the above, the whole encapsulating header must be
            removed. (A replacement may be added).  This sometimes can
            result in outer IP headers being addressed to the next hop
            router using link-local address.
      </t>
      <t>
            Both the RPL Option and the RH3 headers may be modified in very specific ways
            by routers on the path of the packet without the need to add and
            remove an encapsulating header.  Both headers were designed with
            this modification in
            mind, and both the RPL RH3 and the RPL Option are marked mutable
            but recoverable: so an IPsec AH security header can be applied
            across these headers, but it can not secure the values which mutate.
      </t>
      <t>
            The RPI <bcp14>MUST</bcp14> be present in every single RPL data packet.
      </t>
      <t>
            Prior to <xref target="RFC8138" format="default"/>, there was significant
            interest in creating an exception to this rule and removing the RPI for downward flows in non-storing
            mode.  This exception covered a very small number of cases, and
            caused significant interoperability challenges while adding
            significant interest in the code and tests.  The ability to compress
            the RPI down to three bytes or less removes much of the pressure
            to optimize this any further <xref target="I-D.ietf-anima-autonomic-control-plane" format="default"/>.
      </t>
      <t>
            Throughout the following subsections, the examples are described in more details in the first subsections,
	    and more concisely in the later ones.
      </t>
      <t>
              The uses cases are delineated based on the following IPV6 and RPL mandates:
      </t>
      <ul empty="true" spacing="normal">
        <li>
                <t>The RPI has to be in every packet that traverses the LLN.</t>
                <ul spacing="normal">
        <li>
                Because of the above requirement, packets from the Internet have to be encapsulated.
              </li>
        <li>
                A Header cannot be inserted or removed on the fly inside an IPv6 packet that is being routed.
              </li>
        <li>
                Extension headers may not be added or removed except by the sender or the receiver.
              </li>
        <li>
                RPI and RH3 headers may be modified by routers on the path of the packet without the need to add and remove an encapsulating header.
              </li>
        <li>
                an RH3 or RPL Option can only be removed by an intermediate router if it is placed in an encapsulating IPv6 Header, which is addressed to the intermediate router.
              </li>
        <li>
                Non-storing mode requires downstream encapsulation by root for RH3.
              </li>
              </ul>
              </li>
      </ul>
      <t>
            The uses cases are delineated based on the following assumptions:
      </t>
      <ul empty="true" spacing="normal">
        <li>
               <t>This document assumes that the LLN is using the no-drop RPI Option Type (0x23).</t>
               <ul spacing="normal">
        <li>
                Each IPv6 node (including Internet routers) obeys <xref target="RFC8200" format="default"/>, so that 0x23 RPI Option Type can be safely inserted.
              </li>
        <li>
                All 6LRs obey <xref target="RFC8200" format="default"/>.
              </li>
        <li>
                The RPI is ignored at the IPv6 dst node (RUL).
              </li>
        <li>
                In the uses cases, we assume that the RAL supports IP-in-IP encapsulation.
              </li>
        <li>
                In the uses cases, we don't assume that the RUL supports IP-in-IP encapsulation.
              </li>
        <li>
                For traffic leaving a RUL, if the RUL adds an opaque RPI then the 6LR as a RPL border router <bcp14>SHOULD</bcp14> rewrite
                 the RPI to indicate the selected Instance and set the flags.
              </li>
        <li>
                The description for RALs applies to RAN in general.
              </li>
        <li>
               Non-constrained uses of RPL are not in scope of this document.
              </li>
        <li>
               Compression is based on <xref target="RFC8138" format="default"/>.
              </li>
        <li>
               The flow label <xref target="RFC6437" format="default"/> is not needed in RPL.
              </li>
              </ul>
        </li>
      </ul>
    </section>
    <section anchor="sec_sm" numbered="true" toc="default">
      <name>Storing mode</name>
      <t>
	         In storing mode (SM) (fully stateful), the sender can determine if
           the destination is inside the LLN by
            looking if the destination address is matched by the DIO's Prefix Information Option (PIO) option.
      </t>
      <t>
            <xref target="fig_EncStoMode" format="default"/> itemizes which headers are needed in each of the following scenarios.
            It indicates whether an IPv6-in-IPv6 header must be added and what destination it must be addressed to:
      </t>
<ol>
	    <li> the final destination (the RAL node that is the target (tgt)),</li>
            <li> the "root", or </li> 
            <li>the 6LR parent of a RUL.</li>
</ol>
      <t>
            In cases where no IPv6-in-IPv6 header is needed, the column states "No", and the destination is N/A (Not Applicable).
            If the IPv6-in-IPv6 header is needed, the column shows "must".
      </t>
      <t>
            In all cases, the RPI is needed, since it identifies
            inconsistencies (loops) in the routing topology.
            In general, the RH3 is not needed because it is not used in storing mode. However, there is one scenario (from the root to the RUL in SM)
            where the RH3 can be used to point at the RUL (<xref target="Storing-root2notrplnoIPIP" format="default"/>).
      </t>
      <t>
            The leaf can be a router 6LR or a host, both indicated as 6LN. The root refers to the 6LBR
            (see <xref target="fig_CommonTopology" format="default"/>).
      </t>
<table anchor="fig_EncStoMode">
   <name>Table of IPv6-in-IPv6 encapsulation in Storing mode.</name>
   <thead>
      <tr>
         <th align="center">Interaction between</th>
         <th align="center">Use Case</th>
         <th align="center">IPv6-in-IPv6</th>
         <th align="center">IPv6-in-IPv6 dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center" rowspan="4">Leaf - Root</th>
         <td align="center">RAL to root</td>
         <td align="center">No</td>
         <td align="center">N/A</td>
      </tr>
      <tr>
         <td align="center">root to RAL</td>
         <td align="center">No</td>
         <td align="center">N/A</td>
      </tr>
      <tr>
         <td align="center">root to RUL</td>
         <td align="center">must</td>
         <td align="center">6LR</td>
      </tr>
      <tr>
         <td align="center">RUL to root</td>
         <td align="center">must</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <th align="center" rowspan="4">Leaf - Internet</th>
         <td align="center">RAL to Internet</td>
         <td align="center">may</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <td align="center">Internet to RAL</td>
	 <td align="center">must</td>
         <td align="center">RAL (tgt)</td>
      </tr>
      <tr>
         <td align="center">RUL to Internet</td>
         <td align="center">must</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <td align="center">Internet to RUL</td>
         <td align="center">must</td>
         <td align="center">6LR</td>
      </tr>
      <tr>
         <th align="center" rowspan="7">Leaf - Leaf</th>
         <td align="center">RAL to RAL</td>
         <td align="center">No</td>
         <td align="center">N/A</td>
      </tr>
      <tr>
         <td align="center" rowspan="2">RAL to RUL</td>
         <td align="center">No (up)</td>
         <td align="center">N/A</td>
      </tr>
      <tr>
         <td align="center">must (down)</td>
         <td align="center">6LR</td>
      </tr>
      <tr>
         <td align="center" rowspan="2">RUL to RAL</td>
         <td align="center">must (up)</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <td align="center">must (down)</td>
         <td align="center">RAL</td>
      </tr>
      <tr>
         <td align="center" rowspan="2">RUL to RUL</td>
         <td align="center">must (up)</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <td align="center">must (down)</td>
         <td align="center">6LR</td>
      </tr>
   </tbody>
</table>
      <section numbered="true" toc="default">
        <name>Storing Mode: Interaction between Leaf and Root</name>
        <t>
             In this section is described the communication flow
             in storing mode (SM) between,
        </t>
        <ul empty="true" spacing="normal">
          <li>
                 RAL to root
               </li>
          <li>
                 root to RAL
               </li>
          <li>
                 RUL to root
               </li>
          <li>
                 root to RUL
               </li>
        </ul>
        <!-- 5.1.  Example of Flow from RAL to root !-->
               <section numbered="true" toc="default">
          <name>SM: Example of Flow from RAL to Root</name>
          <t>
                        In storing mode, RFC 6553 (RPI) is used
                        to send RPL Information instanceID and rank
                        information.
          </t>
          <t>
                           In this case the flow comprises:
          </t>
          <t>
                        RAL (6LN) --&gt; 6LR_i --&gt; root(6LBR)
          </t>
          <t>
                        For example, a communication flow could be: Node F (6LN) --&gt; Node D (6LR_i) --&gt; Node B (6LR_i)--&gt; Node A root(6LBR)
          </t>
          <t>
                           The RAL (Node F) inserts the RPI, and sends the
                           packet to 6LR (Node D) which decrements the rank in the RPI and
                           sends the packet up. When the packet arrives at
                           6LBR (Node A), the RPI is removed and the packet is
                           processed.
          </t>
          <t>
                          No IPv6-in-IPv6 header is required.
          </t>
          <t> The RPI can be removed by the 6LBR
                         because the packet is addressed to the 6LBR.  The
                         RAL must know that it is communicating with the 6LBR
                         to make use of this scenario.
                         The RAL can know the address of the 6LBR because it
                         knows the address of the root via the DODAGID in the
                         DIO messages.
          </t>
          <t>
                         <xref target="Storing-summary-headers" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="Storing-summary-headers">
   <name>SM: Summary of the use of headers from RAL to root</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src</th>
         <th align="center">6LR_i</th>
         <th align="center">6LBR dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <!-- section 7.2.  !-->

               <section anchor="Storing-root2ral" numbered="true" toc="default">
          <name>SM: Example of Flow from Root to RAL</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>

                                root (6LBR) --&gt; 6LR_i --&gt; RAL (6LN)
          </t>
          <t>
                        For example, a communication flow could be: Node A root(6LBR) --&gt; Node B (6LR_i) --&gt; Node D (6LR_i) --&gt; Node F (6LN)
          </t>
          <t>
                                In this case the 6LBR inserts RPI and
                                sends the packet down, the 6LR is going to
                                increment the rank in RPI (it examines the
                                RPLInstanceID to identify the right forwarding
                                table),
                                the packet
                                is processed in the RAL and the RPI removed.
          </t>
          <t>
                          No IPv6-in-IPv6 header is required.
          </t>
          <t>
                        <xref target="Storing-root2leaf" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="Storing-root2leaf">
   <name>SM: Summary of the use of headers from root to RAL</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src</th>
         <th align="center">6LR_i</th>
         <th align="center">6LBR dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
     </tr>
     <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
    </tr>
    <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
   </tr>
   <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
   </tr>
  </tbody>
</table>
        </section>
        <!-- section 7.3. !-->

               <section numbered="true" toc="default">
          <name>SM: Example of Flow from Root to RUL</name>
          <t>
                        In this case the flow comprises:
          </t>
          <t>
                                root (6LBR) --&gt; 6LR_i --&gt; RUL (IPv6 dst node)
          </t>
          <t>
                        For example, a communication flow could be: Node A (6LBR) --&gt; Node B (6LR_i) --&gt; Node E (6LR_n) --&gt; Node G (RUL)
          </t>
          <t>
                          6LR_i (Node B) represents the intermediate routers from the source (6LBR) to the destination (RUL),
                          1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                          that the packet goes through from the 6LBR (Node A) to the RUL (Node G).
          </t>
          <t>
                        The 6LBR will encapsulate the packet in an IPv6-in-IPv6 header, and prepend an RPI. The IPv6-in-IPv6
                        header is addressed to the 6LR parent of the RUL (6LR_n).
                        The 6LR parent of the RUL removes the header and sends the packet to the RUL.
          </t>
          <t>
                        <xref target="Storing-root2notrpl" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="Storing-root2notrpl">
   <name>SM: Summary of the use of headers from root to RUL</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">6LBR src</th>
         <th align="center">6LR_i</th>
         <th align="center">6LR_n</th>
         <th align="center">RUL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">IP6-IP6 RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>

          <t>
                       IP-in-IP encapsulation may be avoided for Root to RUL communication.
                       In SM, it can be replaced by a loose RH3 header that indicates the RUL,
                       in which case the packet is routed to the 6LR as a normal SM operation,
                       then the 6LR forwards to the RUL based on the RH3, and the RUL ignores
                       both the consumed RH3 and the RPI, as in Non-Storing Mode.
          </t>
          <t>
                       <xref target="Storing-root2notrplnoIPIP" format="default"/> summarizes what headers are needed for this scenario.
          </t>
<table anchor="Storing-root2notrplnoIPIP">
   <name>SM: Summary of the use of headers from root to RUL without encapsulation</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">6LBR src</th>
         <th align="center">6LR_i i=(1,..,n-1)</th>
         <th align="center">6LR_n</th>
         <th align="center">RUL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">RPI, RH3</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">RPI, RH3 (consumed)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">RH3</td>
         <td align="center">--</td>
         <td align="center">RPI, RH3 (both ignored)</td>
      </tr>
   </tbody>
</table>

        </section>
        <section anchor="sm-nRal2root" numbered="true" toc="default">
          <name>SM: Example of Flow from RUL to Root</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>

                                RUL (IPv6 src node) --&gt; 6LR_1 --&gt; 6LR_i --&gt; root (6LBR)
          </t>
          <t>
                        For example, a communication flow could be: Node G (RUL) --&gt; Node E (6LR_1)--&gt; Node B (6LR_i)--&gt; Node A root(6LBR)
          </t>
          <t>
                          6LR_i represents the intermediate routers from the source (RUL) to the destination (6LBR),
                          1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                          that the packet goes through from the RUL to the 6LBR.
          </t>
          <t>
                        When the packet arrives from the RUL (Node G) to
                        6LR_1 (Node E), the 6LR_1 will encapsulate the packet
                        in an IPv6-in-IPv6 header with an RPI. The IPv6-in-IPv6
                        header is addressed to the root (Node A).  The root removes the header and processes
                        the packet.
          </t>
          <t>
                        <xref target="Storing-notrpl2root" format="default"/> that summarizes what headers are needed for this use case
                        where the IPv6-in-IPv6 header is addressed to the root (Node A).
          </t>
<table anchor="Storing-notrpl2root">
   <name>SM: Summary of the use of headers from RUL to root.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RUL src node</th>
         <th align="center">6LR_1</th>
         <th align="center">6LR_i</th>
         <th align="center">6LBR dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 RPI</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
      </section>
      <section numbered="true" toc="default">
        <name>SM: Interaction between Leaf and Internet.</name>
        <t>
                   In this section is described the communication flow
                   in storing mode (SM) between,
        </t>
        <ul empty="true" spacing="normal">
          <li>
                       RAL to Internet
                     </li>
          <li>
                       Internet to RAL
                     </li>
          <li>
                       RUL to Internet
                     </li>
          <li>
                       Internet to RUL
                     </li>
        </ul>
        <section anchor="sm-Ral2i" numbered="true" toc="default">
          <name>SM: Example of Flow from RAL to Internet</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>

                                RAL (6LN) --&gt; 6LR_i --&gt; root (6LBR) --&gt; Internet
          </t>
          <t>
                        For example, the communication flow could be: Node F (RAL) --&gt; Node D (6LR_i)--&gt; Node B (6LR_i)--&gt; Node A root(6LBR) --&gt; Internet
          </t>
          <t>
                          6LR_i represents the intermediate routers from the source (RAL) to the root (6LBR),
                          1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                          that the packet goes through from the RAL to the 6LBR.
          </t>
          <t>
                       RPL information from RFC 6553 may go out to
                       Internet as it will be ignored by nodes which have
                       not been configured to be RPI aware. No IPv6-in-IPv6 header is required.
		       <!--  Beginning of Section 6 says
                             "The DODAG root <bcp14>MUST</bcp14> force it to zero when passing the packet out to the Internet."
                       -->
          </t>
          <t>
                       On the other hand, the RAL may insert the RPI encapsulated in a IPv6-in-IPv6 header to the root.
                       Thus, the root removes the RPI and send the packet to the Internet.
          </t>
          <aside><t>
                          Note: In this use case, it is used a node as a leaf, but this use case can be also
                          applicable to any RPL-aware-node type (e.g. 6LR)
         </t> </aside>
          <t>
                        <xref target="Storing-rpl2int" format="default"/> summarizes what headers are needed for this use case when there is no encapsulation.
                        Note that the RPI is modified by 6LBR to set the SenderRank to zero in case that it is not already zero.
                        <xref target="Storing-rpl2intIPIP" format="default"/> summarizes what headers are needed when encapsulation to the root takes place.
          </t>
<table anchor="Storing-rpl2int">
   <name>SM: Summary of the use of headers from RAL to Internet with no encapsulation</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src</th>
         <th align="center">6LR_i</th>
         <th align="center">6LBR</th>
         <th align="center">Internet dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI (Ignored)</td>
      </tr>
   </tbody>
</table>

          <t>
<!-- RPI touched by 6LBR? set DagRank to 0? -->
          </t>
<table anchor="Storing-rpl2intIPIP">
   <name>SM: Summary of the use of headers from RAL to Internet with encapsulation to the root (6LBR).</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src</th>
         <th align="center">6LR_i</th>
         <th align="center">6LBR</th>
         <th align="center">Internet dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">IP6-IP6 RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <!-- section 7.6 -->
               <section numbered="true" toc="default">
          <name>SM: Example of Flow from Internet to RAL</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>

                                Internet --&gt; root (6LBR) --&gt; 6LR_i --&gt; RAL (6LN)
          </t>
          <t>
                        For example, a communication flow could be: Internet --&gt; Node A root(6LBR) --&gt; Node B (6LR_1) --&gt; Node D (6LR_n) --&gt; Node F (RAL)
          </t>
          <t>

                                When the packet arrives from Internet to 6LBR
                                the RPI is added in a outer
                                IPv6-in-IPv6 header (with the IPv6-in-IPv6 destination address set to the RAL) and sent to 6LR, which
                                modifies the rank in the RPI. When the packet
                                arrives at the RAL, the packet is decapsulated, which removes the RPI before the
                                packet is processed.
          </t>
          <t>
                        <xref target="Storing-int2rpl" format="default"/> summarizes what headers are needed for this use case.

          </t>
<table anchor="Storing-int2rpl">
   <name>SM: Summary of the use of headers from Internet to RAL.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">Internet Src</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_i</th>
         <th align="center"> RAL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI)</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <!-- section 7.6 -->
               <section anchor="sm-nRal2i" numbered="true" toc="default">
          <name>SM: Example of Flow from RUL to Internet</name>
          <t>
                   In this case the flow comprises:
          </t>
          <t>
                   RUL (IPv6 src node) --&gt; 6LR_1 --&gt; 6LR_i --&gt;root (6LBR) --&gt; Internet
          </t>
          <t>
                 For example, a communication flow could be: Node G (RUL)--&gt; Node E (6LR_1)--&gt; Node B (6lR_i) --&gt; Node A root(6LBR) --&gt; Internet
          </t>
          <t>
                   The node 6LR_1 (i=1) will add an IPv6-in-IPv6(RPI) header addressed to the root such that the root can remove
                   the RPI before passing upwards.
                   In the intermediate 6LR, the rank in the RPI is modified.
          </t>
          <t>
                   The originating node will ideally leave the IPv6 flow
                   label as zero so that the packet can be better compressed through
                   the LLN. The 6LBR will set the flow label of the packet to a
                   non-zero value when sending to the Internet, for details check <xref target="RFC6437" format="default"/>.
          </t>
          <t>
                 <xref target="Storing-notrpl2int" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="Storing-notrpl2int">
   <name>SM: Summary of the use of headers from RUL to Internet.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">IPv6 src node (RUL)</th>
         <th align="center">6LR_1</th>
         <th align="center">6LR_i [i=2,...,n]</th>
         <th align="center">6LBR</th>
         <th align="center">Internet dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>SM: Example of Flow from Internet to RUL.</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>
                                Internet --&gt; root (6LBR) --&gt; 6LR_i --&gt; RUL (IPv6 dst node)
          </t>
          <t>
                        For example, a communication flow could be: Internet --&gt; Node A root(6LBR) --&gt; Node B (6LR_i)--&gt; Node E (6LR_n) --&gt; Node G (RUL)
          </t>
          <t>
                          The 6LBR will have to add an RPI within an
                          IPv6-in-IPv6 header. The IPv6-in-IPv6 is addressed
                          to the 6LR parent of the RUL.
          </t>
          <t>
                          Further details about this are mentioned in <xref target="RFCYYY1" format="default"/>,
                          which specifies RPL routing for a 6LN acting as a plain host and not being aware of RPL.
          </t>
          <t>
                          The 6LBR may set the flow label on the inner IPv6-in-IPv6
                          header to zero in order to aid in compression <xref target="RFC8138" format="default"/><xref target="RFC6437" format="default"/>.
          </t>
          <t>
                       <xref target="Storing-int2notrpl" format="default"/> summarizes what headers are needed for this use case.

          </t>
<table anchor="Storing-int2notrpl">
   <name>SM: Summary of the use of headers from Internet to RUL.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">Internet src</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_i [i=1,..,n-1]</th>
         <th align="center">6LR_n</th>
         <th align="center">RUL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Inserted headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
      </section>
      <section numbered="true" toc="default">
        <name>SM: Interaction between Leaf and Leaf</name>
        <t>
         In this section is described the communication flow
         in storing mode (SM) between,
        </t>
        <ul empty="true" spacing="normal">
          <li>
             RAL to RAL
           </li>
          <li>
             RAL to RUL
           </li>
          <li>
             RUL to  RAL
           </li>
          <li>
             RUL to RUL
           </li>
        </ul>
        <!-- section 7.9 -->
               <section anchor="storingRALtoRAL" numbered="true" toc="default">
          <name>SM: Example of Flow from RAL to RAL</name>
          <t>
                   In <xref target="RFC6550" format="default"/> RPL allows a simple one-hop
                   optimization for both storing and non-storing
                   networks.
                   A node may send a packet destined to a one-hop
                   neighbor directly to that node. See <xref target="RFC6550" section="9" sectionFormat="of" format="default"/>.
          </t>
          <t>
                   When the nodes are not directly connected, then in storing
                   mode, the flow comprises:
          </t>
          <t>
                   RAL src (6LN) --&gt; 6LR_ia --&gt; common parent (6LR_x) --&gt; 6LR_id --&gt;  RAL dst (6LN)
          </t>
          <t>
                 For example, a communication flow could be: Node F (RAL src)--&gt; Node D (6LR_ia)--&gt; Node B (6LR_x) --&gt; Node E (6LR_id) --&gt; Node H (RAL dst)
          </t>
          <t>
                   6LR_ia (Node D) represents the intermediate routers from source to the common parent (6LR_x) (Node B),
                   1 &lt;= ia &lt;= n, where n is the total number of routers (6LR)
                   that the packet goes through from RAL (Node F) to the common parent 6LR_x (Node B).
          </t>
          <t>
                   6LR_id (Node E) represents the intermediate routers from the common parent (6LR_x) (Node B) to destination RAL (Node H),
                    1 &lt;= id &lt;= m, where m is the total number of routers (6LR)
                   that the packet goes through from the common parent (6LR_x) to destination RAL (Node H).
          </t>
          <t>
                   It is assumed that the two nodes are in the same RPL domain
                   (that they share the same DODAG root). At the
                   common parent (Node B), the direction flag ('O' flag) of the RPI is changed (from decreasing ranks to increasing ranks).
          </t>
          <t>
                   While the 6LR nodes will update the RPI, no node needs to
                   add or remove the RPI, so no IPv6-in-IPv6 headers are
                   necessary.
          </t>
          <t>
                <xref target="Storing-rpl2rpl" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="Storing-rpl2rpl">
   <name>SM: Summary of the Use of Headers from RAL to RAL</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LR_x (common parent)</th>
         <th align="center">6LR_id</th>
         <th align="center">RAL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">RPI</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <!-- section 7.10 -->
               <section anchor="storingRALtononRAL" numbered="true" toc="default">
          <name>SM: Example of Flow from RAL to RUL</name>
          <t>
                        In this case the flow comprises:
          </t>
          <t>
                         RAL src (6LN) --&gt; 6LR_ia --&gt; common parent (6LBR - The root-) --&gt; 6LR_id --&gt;  RUL (IPv6 dst node)
          </t>
          <t>
                        For example, a communication flow could be: Node F (RAL)--&gt; Node D --&gt; Node B--&gt; Node A --&gt;Node B --&gt; Node E --&gt; Node G (RUL)
          </t>
          <t>
                          6LR_ia represents the intermediate routers from source (RAL) to the
                          common parent (the Root), 1 &lt;= ia &lt;= n, where n is the total number of
                          routers (6LR) that the packet goes through from RAL to the Root.
          </t>
          <t>
                          6LR_id (Node E) represents the intermediate routers from the Root
                          (Node B) to destination RUL (Node G).  In this case, 1 &lt;= id &lt;= m,
                          where m is the total number of routers (6LR) that the packet goes
                          through from the Root down to the destination RUL.
          </t>
          <t>
                          In this case, the packet from the RAL goes to 6LBR because the route to the RUL is not injected into the RPL-SM.
                          Thus, the RAL inserts an RPI (RPI1) addressed to the root(6LBR). The root does not remove the RPI1
                          (the root cannot remove an RPI if there is no encapsulation). The root inserts an IPv6-IPv6 encapsulation with an RPI2
                          and sends it to the 6LR parent of the RUL, which removes the encapsulation and RPI2 before passing the packet to the RUL.
          </t>
          <!-- section 7.10
                          This situation is identical to the previous situation
                          <xref target="storingRALtoRAL" />
                        </t> -->
                        <t>
                        <xref target="Storing-rpl2nrpl" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="Storing-rpl2nrpl">
   <name>SM: Summary of the Use of Headers from RAL to RUL</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src node</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_id</th>
         <th align="center">6LR_m</th>
         <th align="center">RUL dst node</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">RPI2</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
         <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI2)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">RPI1</td>
         <td align="center">RPI1</td>
         <td align="center">RPI1 (ignored)</td>
      </tr>
   </tbody>
</table>
        </section>
        <section anchor="storingnotRALtoRAL" numbered="true" toc="default">
          <name>SM: Example of Flow from RUL to RAL</name>
          <t>
                   In this case the flow comprises:
          </t>
          <t>
                   RUL (IPv6 src node) --&gt; 6LR_ia --&gt; 6LBR --&gt; 6LR_id --&gt;  RAL dst (6LN)
          </t>
          <t>
                 For example, a communication flow could be: Node G (RUL)--&gt; Node E --&gt; Node B --&gt; Node A --&gt; Node B --&gt; Node D --&gt; Node F (RAL)
          </t>
          <t>
                   6LR_ia (Node E) represents the intermediate routers from source (RUL) (Node G) to the root (Node A).
                   In this case, 1 &lt;= ia &lt;= n, where n is the total number of routers (6LR)
                   that the packet goes through from source to the root.
          </t>
          <t>
                   6LR_id represents the intermediate routers from the root (Node A) to destination RAL (Node F).
                   In this case, 1 &lt;= id &lt;= m, where m is the total number of routers (6LR)
                   that the packet goes through from the root to the destination RAL.
          </t>
          <t>
                   The 6LR_1 (Node E) receives the packet from the RUL (Node G) and
                   inserts the RPI (RPI1) encapsulated in a IPv6-in-IPv6 header to the root.
                   The root removes the outer header including the RPI (RPI1) and
                   inserts a new RPI (RPI2) addressed to the destination RAL (Node F).
          </t>
          <t>
                 <xref target="Storing-notrpl2rpl" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="Storing-notrpl2rpl">
   <name>SM: Summary of the use of headers from RUL to RAL.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RUL src node</th>
         <th align="center">6LR_1</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_id</th>
         <th align="center">RAL dst node</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">RPI2</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI2)</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>SM: Example of Flow from RUL to RUL</name>
          <t>
                   In this case the flow comprises:
          </t>
          <t>
                   RUL (IPv6 src node)--&gt; 6LR_1--&gt; 6LR_ia --&gt; 6LBR --&gt; 6LR_id --&gt; RUL (IPv6 dst node)
          </t>
          <t>
                 For example, a communication flow could be: Node G (RUL src)--&gt; Node E --&gt; Node B --&gt; Node A (root) --&gt; Node C --&gt; Node J (RUL dst)
          </t>
          <t>
                   Internal nodes 6LR_ia (e.g: Node E or Node B) is the
                   intermediate router from the RUL source (Node G)
                   to the root (6LBR) (Node A).
                   In this case, 1 &lt;= ia &lt;= n, where n is the total number of routers (6LR)
                   that the packet goes through from the RUL to the root. 6LR_1 refers when ia=1.
          </t>
          <t>
                   6LR_id (Node C) represents the intermediate routers from the root
                   (Node A) to the destination RUL dst node (Node J).
                   In this case, 1 &lt;= id &lt;= m, where m is the total number of routers (6LR)
                   that the packet goes through from the root  to destination RUL.

          </t>
          <t>
                   The 6LR_1 (Node E) receives the packet from the
                   RUL (Node G) and inserts  the RPI (RPI),
                   encapsulated in an IPv6-in-IPv6 header directed to the root.
                   The root removes the outer header including the RPI (RPI1) and
                   inserts a new RPI (RPI2) addressed to the 6LR father of the RUL.
          </t>
          <t>
                 <xref target="Storing-notrpl2notrpl" format="default"/> summarizes what headers are needed for this use case.

          </t>
<table anchor="Storing-notrpl2notrpl">
   <name>SM: Summary of the use of headers from RUL to RUL</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RUL src</th>
         <th align="center">6LR_1</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_id</th>
         <th align="center">6LR_n</th>
         <th align="center">RUL dst node</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">RPI2</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI2)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
      </section>
    </section>
    <section anchor="sec_non-sm" numbered="true" toc="default">
      <name>Non Storing mode</name>
      <t>
          In Non Storing Mode (Non-SM) (fully source routed),
          the 6LBR (DODAG root) has complete knowledge about the
          connectivity of all DODAG nodes, and all traffic flows
          through the root node. Thus, there is no need for all nodes to
          know about the existence of RPL-unaware nodes.
          Only the 6LBR needs to act if compensation is necessary for not-RPL
          aware receivers.
      </t>
      <t>
           <xref target="fig_table_non-storing" format="default"/> summarizes what headers are needed in the following
           scenarios, and indicates when the RPI, RH3 and IPv6-in-IPv6 header
           are to be inserted.  The last column depicts the
           target destination of the IPv6-in-IPv6 header: 6LN (indicated by "RAL"), 6LR (parent of a RUL) or the root.
           In cases where no IPv6-in-IPv6 header is needed, the column indicates "No".
           There is no expectation on RPL that RPI can be omitted, because it is needed for routing, quality of service and compression.
           This specification expects that an RPI is always present.
           The term "may(up)" means that the IPv6-in-IPv6 header may be necessary in the upwards direction.
           The term "must(up)" means that the IPv6-in-IPv6 header must be present in the upwards direction.
           The term "must(down)" means that the IPv6-in-IPv6 header must be present in the downward direction.
      </t>
      <t>
           The leaf can be a router 6LR or a host, both indicated as 6LN (<xref target="fig_CommonTopology" format="default"/>). In <xref target="fig_table_non-storing" format="default"/> the
           (1) indicates a 6tisch case <xref target="RFC8180" format="default"/>, where the RPI may still be needed
          for the RPLInstanceID to be available for priority/channel selection at each hop.
      </t>
<table anchor="fig_table_non-storing">
   <name>Table that shows headers needed in Non-Storing mode: RPI, RH3, IPv6-in-IPv6 encapsulation.</name>
   <thead>
      <tr>
         <th align="center">Interaction between</th>
         <th align="center">Use Case</th>
         <th align="center">RPI</th>
         <th align="center">RH3</th>
         <th align="center">IPv6-in-IPv6</th>
         <th align="center">IP-in-IP dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center" rowspan="4">Leaf - Root</th>
         <td align="center">RAL to root</td>
         <td align="center">Yes</td>
         <td align="center">No</td>
         <td align="center">No</td>
         <td align="center">No</td>
     </tr>
     <tr>
         <td align="center">root to RAL</td>
         <td align="center">Yes</td>
         <td align="center">Yes</td>
         <td align="center">No</td>
         <td align="center">No</td>
      </tr>
      <tr>
         <td align="center">root to RUL</td>
         <td align="center">Yes (1)</td>
         <td align="center">Yes</td>
         <td align="center">No</td>
         <td align="center">6LR</td>
      </tr>
      <tr>
         <td align="center">RUL to root</td>
         <td align="center">Yes</td>
         <td align="center">No</td>
         <td align="center">must</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <th align="center" rowspan="4">Leaf - Internet</th>
         <td align="center">RAL to Internet</td>
         <td align="center">Yes</td>
         <td align="center">No</td>
         <td align="center">may (up)</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <td align="center">Internet to RAL</td>
         <td align="center">Yes</td>
         <td align="center">Yes</td>
         <td align="center">must</td>
         <td align="center">RAL</td>
      </tr>
      <tr>
         <td align="center">RUL to Internet</td>
         <td align="center">Yes</td>
         <td align="center">No</td>
         <td align="center">must</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <td align="center">Internet to RUL</td>
         <td align="center">Yes</td>
         <td align="center">Yes</td>
         <td align="center">must</td>
         <td align="center">6LR</td>
      </tr>
      <tr>
         <th align="center" rowspan="8">Leaf - Leaf</th>
         <td align="center" rowspan="2">RAL to RAL</td>
         <td align="center" rowspan="2">Yes</td>
         <td align="center" rowspan="2">Yes</td>
         <td align="center">may (up)</td>
         <td align="center">root</td> 
      </tr>
      <tr>
         <td align="center">must (down)</td>
         <td align="center">RAL</td>
      </tr>
      <tr>
         <td align="center" rowspan="2">RAL to RUL</td>
         <td align="center" rowspan="2">Yes</td>
         <td align="center" rowspan="2">Yes</td> 
         <td align="center">may (up)</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <td align="center">must (down)</td>
         <td align="center">6LR</td>
      </tr>
      <tr>
         <td align="center" rowspan="2">RUL to RAL</td>
         <td align="center" rowspan="2">Yes</td>
         <td align="center" rowspan="2">Yes</td>
         <td align="center">must (up)</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <td align="center">must (down)</td>
         <td align="center">RAL</td>
      </tr>
      <tr>
         <td align="center" rowspan="2">RUL to RUL</td>
         <td align="center" rowspan="2">Yes</td>
         <td align="center" rowspan="2">Yes</td>
         <td align="center">must (up)</td>
         <td align="center">root</td>
      </tr>
      <tr>
         <td align="center">must (down)</td>
         <td align="center">6LR</td>
      </tr>
   </tbody>
</table>
      <section numbered="true" toc="default">
        <name>Non-Storing Mode: Interaction between Leaf and Root</name>
        <t>
              In this section is described the communication flow
              in Non Storing Mode (Non-SM) between,
        </t>
        <ul empty="true" spacing="normal">
          <li>
                  RAL  to root
                </li>
          <li>
                  root to RAL
                </li>
          <li>
                  RUL  to root
                </li>
          <li>
                  root to RUL
                </li>
        </ul>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from RAL to root</name>
          <t>
                   In non-storing mode the leaf node uses default
                   routing to send traffic to the root. The RPI must be included
                   since it contains the rank information, which is used to
                   avoid/detect loops.
          </t>
          <t>
                   RAL (6LN) --&gt; 6LR_i --&gt; root(6LBR)
          </t>
          <t>
                   For example, a communication flow could be: Node F --&gt; Node D --&gt; Node B --&gt; Node A (root)
          </t>
          <t>
                   6LR_i represents the intermediate routers from source to destination.
                   In this case, 1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                   that the packet goes through from source (RAL) to destination (6LBR).
          </t>
          <t>
                   This situation is the same case as storing mode.
          </t>
          <t>
                 <xref target="NonStoring-summary-headers" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="NonStoring-summary-headers">
   <name>Non-SM: Summary of the use of headers from RAL to root</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src</th>
         <th align="center">6LR_i</th>
         <th align="center">6LBR dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <section anchor="nsroottoRAL" numbered="true" toc="default">
          <name>Non-SM: Example of Flow from root to RAL</name>
          <t>
                   In this case the flow comprises:
          </t>
          <t>

                         root (6LBR) --&gt; 6LR_i --&gt; RAL (6LN)
          </t>
          <t>
                 For example, a communication flow could be: Node A (root) --&gt; Node B --&gt; Node D --&gt; Node F
          </t>
          <t>
                   6LR_i represents the intermediate routers from source to destination.
                   In this case, 1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                   that the packet goes through from source (6LBR) to destination (RAL).
          </t>
          <t>
                   The 6LBR inserts an RH3, and an RPI.
                   No IPv6-in-IPv6 header is necessary as the traffic
                   originates with a RPL aware node, the 6LBR.
                   The destination is known to be RPL-aware because the root
                   knows the whole topology in non-storing mode.
          </t>
          <t>
                 <xref target="NonStoring-root2rpl" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="NonStoring-root2rpl">
   <name>Non-SM: Summary of the use of headers from root to RAL</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">6LBR src</th>
         <th align="center">6LR_i</th>
         <th align="center">RAL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">RPI, RH3</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">RPI, RH3</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI, RH3</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from root to RUL</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>
                                root (6LBR) --&gt; 6LR_i --&gt; RUL (IPv6 dst node)
          </t>
          <t>
                        For example, a communication flow could be: Node A (root) --&gt; Node B --&gt; Node E --&gt; Node G (RUL)
          </t>
          <t>
                          6LR_i represents the intermediate routers from source to destination.
                          In this case, 1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                          that the packet goes through from source (6LBR) to destination (RUL).
          </t>
          <t>
                          In the 6LBR, the RH3 is added; it is then modified at each
                          intermediate 6LR (6LR_1 and so on), and it is fully consumed in the
                          last 6LR (6LR_n) but is left in place.  When the RPI is added, the
                          RUL, which does not understand the RPI, will ignore it (per
                          <xref target="RFC8200" format="default"/>); thus, encapsulation is not necessary.
          </t>
          <t>
                        <xref target="NonStoring-root2notrpl" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="NonStoring-root2notrpl">
   <name>Non-SM: Summary of the use of headers from root to RUL</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">6LBR src</th>
         <th align="center">6LR_i i=(1,..,n-1)</th>
         <th align="center">6LR_n</th>
         <th align="center">RUL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">RPI, RH3</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">RPI, RH3</td>
         <td align="center">RPI, RH3 (consumed)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI, RH3 (both ignored)</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from RUL to root</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>

                                RUL (IPv6 src node) --&gt; 6LR_1 --&gt; 6LR_i --&gt; root (6LBR) dst
          </t>
          <t>
                        For example, a communication flow could be: Node G --&gt; Node E --&gt; Node B --&gt; Node A (root)
          </t>
          <t>
                          6LR_i represents the intermediate routers from source to destination.
                          In this case, 1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                          that the packet goes through from source (RUL) to destination (6LBR).
                          For example, 6LR_1 (i=1) is the router that receives the packets from the
                          RUL.
          </t>
          <t>
                          In this case, the RPI is added by the first 6LR (6LR_1) (Node E),
                          encapsulated in an IPv6-in-IPv6 header, and modified in the
                          subsequent 6LRs in the flow. The RPI and the
                          entire packet are consumed by the root.
          </t>
          <t>
                        <xref target="NonStoring-notrpl2root" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="NonStoring-notrpl2root">
   <name>Non-SM: Summary of the use of headers from RUL to root</name>
   <thead>  
      <tr>  
         <th align="center">Header</th>
         <th align="center">RUL src node</th>
         <th align="center">6LR_1</th>
         <th align="center">6LR_i</th>
         <th align="center">6LBR dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">--</td>
         <td align="center">IPv6-in-IPv6 (RPI)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IPv6-in-IPv6 (RPI)</td>
      </tr>                     
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td> 
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
      </section>
      <section numbered="true" toc="default">
        <name>Non-Storing Mode: Interaction between Leaf and Internet</name>
        <t>
                   This section will describe the communication flow in Non Storing Mode (Non-SM) between:
        </t>
        <ul empty="true" spacing="normal">
          <li>
                       RAL to Internet
                     </li>
          <li>
                       Internet to RAL
                     </li>
          <li>
                       RUL to Internet
                     </li>
          <li>
                       Internet to RUL
                     </li>
        </ul>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from RAL to Internet</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>
                                RAL (6LN) src --&gt; 6LR_i --&gt; root (6LBR) --&gt; Internet dst
          </t>
          <t>
                        For example, a communication flow could be: Node F (RAL) --&gt; Node D --&gt; Node B --&gt; Node A --&gt; Internet.
                        Having the RAL information about the RPL domain, the packet may be encapsulated to the root when the destination is not in the RPL domain of the RAL.
          </t>
          <t>
                          6LR_i represents the intermediate routers from source to destination,
                          1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                          that the packet goes through from source (RAL) to 6LBR.
          </t>
          <t>
                              In this case, the encapsulation from the RAL to the root is optional.
                              The simplest case is when the RPI gets to the Internet (as the <xref target="NonStoring-rpl2int" format="default"/> shows it), knowing that the Internet is
                              going to ignore it.
          </t>
          <t>
                          The IPv6 flow label should be set to zero to aid
                          in compression <xref target="RFC8138" format="default"/>, and the 6LBR will set it to a
                          non-zero value when sending towards the Internet  <xref target="RFC6437" format="default"/>.
          </t>
          <t>
                        <xref target="NonStoring-rpl2int" format="default"/> summarizes what headers are needed for this use case
                        when no encapsulation is used.
                        <xref target="NonStoring-rpl2intwithIPIP" format="default"/> summarizes what headers are needed
                        for this use case when encapsulation to the root is used.
          </t>
<table anchor="NonStoring-rpl2int">
   <name>Non-SM: Summary of the use of headers from RAL to Internet with no encapsulation</name>
   <thead>  
      <tr>  
         <th align="center">Header</th>
         <th align="center">RAL src</th>
         <th align="center">6LR_i</th>
         <th align="center">6LBR</th>
         <th align="center">Internet dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>                     
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td> 
         <td align="center">--</td>
         <td align="center">RPI (Ignored)</td>
      </tr>
   </tbody>
</table>

<table anchor="NonStoring-rpl2intwithIPIP">
   <name>Non-SM: Summary of the use of headers from RAL to Internet with encapsulation to the root</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src</th>
         <th align="center">6LR_i</th>
         <th align="center">6LBR</th>
         <th align="center">Internet dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">IPv6-in-IPv6 (RPI)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IPv6-in-IPv6 (RPI)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from Internet to RAL</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>

                                Internet --&gt; root (6LBR) --&gt; 6LR_i --&gt; RAL dst (6LN)
          </t>
          <t>
                        For example, a communication flow could be: Internet --&gt; Node A (root) --&gt; Node B --&gt; Node D --&gt; Node F (RAL)
          </t>
          <t>
                          6LR_i represents the intermediate routers from source to destination,
                          1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                          that the packet goes through from 6LBR to destination (RAL).
          </t>
          <t>
                          The 6LBR must add an RH3 header.  As the 6LBR will
                          know the path and address of the target node, it can
                          address the IPv6-in-IPv6 header to that node.
                          The 6LBR will zero the flow label upon entry in
                          order to aid compression <xref target="RFC8138" format="default"/>.
          </t>
          <t>
                        <xref target="NonStoring-int2rpl" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="NonStoring-int2rpl">
   <name>Non-SM: Summary of the use of headers from Internet to RAL</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">Internet src</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_i</th>
         <th align="center">RAL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">--</td>
         <td align="center">IPv6-in-IPv6 (RH3, RPI)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IPv6-in-IPv6 (RH3, RPI)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IPv6-in-IPv6 (RH3, RPI)</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from RUL to Internet</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>
                          RUL (IPv6 src node) --&gt; 6LR_1 --&gt; 6LR_i --&gt;root (6LBR) --&gt; Internet dst
          </t>
          <t>
                        For example, a communication flow could be: Node G --&gt; Node E --&gt; Node B --&gt; Node A --&gt; Internet
          </t>
          <t>
                          6LR_i represents the intermediate routers from source to destination,
                          1 &lt;= i &lt;= n, where n is the total number of routers (6LRs) that the
                          packet goes through from the source (RUL) to the 6LBR, e.g., 6LR_1 (i=1).
          </t>
          <t>
                                In this case the flow label is recommended to
                                be zero in the RUL.  As the RUL parent adds  RPL headers in the RUL packet,
                                the first 6LR (6LR_1) will add an RPI inside a new IPv6-in-IPv6 header.
                                The IPv6-in-IPv6 header will be addressed to the
                                root.  This case is identical to the
                                storing-mode case (see <xref target="sm-nRal2i" format="default"/>).
          </t>
          <t>
                        <xref target="NonStoring-notrpl2int" format="default"/> summarizes what headers are needed for this use case.

          </t>
<table anchor="NonStoring-notrpl2int">
   <name>Non-SM: Summary of the use of headers from RUL to Internet</name>
   <thead>  
      <tr>  
         <th align="center">Header</th>
         <th align="center">RUL src node</th>
         <th align="center">6LR_1</th>
         <th align="center">6LR_i [i=2,..,n]</th>
         <th align="center">6LBR</th>
         <th align="center">Internet dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI)</td>
         <td align="center">--</td>
      </tr>                     
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td> 
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from Internet to RUL</name>
          <t>
                                In this case the flow comprises:
          </t>
          <t>

                                Internet src --&gt; root (6LBR) --&gt; 6LR_i --&gt; RUL (IPv6 dst node)
          </t>
          <t>
                        For example, a communication flow could be: Internet --&gt; Node A (root) --&gt; Node B --&gt; Node E --&gt; Node G
          </t>
          <t>
                          6LR_i represents the intermediate routers from source to destination,
                          1 &lt;= i &lt;= n, where n is the total number of routers (6LR)
                          that the packet goes through from 6LBR to RUL.
          </t>
          <t>
                          The 6LBR must add an RH3 header inside an IPv6-in-IPv6
                          header.
                          The 6LBR will know the path, and will recognize
                          that the final node is not a RPL capable node as
                          it will have received the connectivity DAO from the
                          nearest 6LR.  The 6LBR can therefore make the IPv6-in-IPv6
                          header destination be the last 6LR.
                          The 6LBR will set to zero the flow label upon entry in
                          order to aid compression <xref target="RFC8138" format="default"/>.
          </t>
          <t>
                        <xref target="NonStoring-int2notrpl" format="default"/> summarizes what headers are needed for this use case.
          </t>
<table anchor="NonStoring-int2notrpl">
   <name>Non-SM: Summary of the use of headers from Internet to RUL.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">Internet src</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_i</th>
         <th align="center">6LR_n</th>
         <th align="center">RUL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
      </section>
      <section numbered="true" toc="default">
        <name>Non-SM: Interaction between leaves</name>
        <t>
                    In this section is described the communication flow
                    in Non Storing Mode (Non-SM) between,
        </t>
        <ul empty="true" spacing="normal">
          <li>
                        RAL to RAL
                      </li>
          <li>
                        RAL to RUL
                      </li>
          <li>
                        RUL to RAL
                      </li>
          <li>
                        RUL to RUL
                      </li>
        </ul>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from RAL to RAL</name>
          <t>
                        In this case the flow comprises:
          </t>
          <t>
                         RAL src --&gt; 6LR_ia --&gt; root (6LBR) --&gt; 6LR_id --&gt;  RAL dst
          </t>
          <t>
                        For example, a communication flow could be: Node F (RAL src)--&gt; Node D --&gt; Node B --&gt; Node A (root) --&gt; Node B --&gt; Node E --&gt; Node H (RAL dst)
          </t>
          <t>
                          6LR_ia represents the intermediate routers from source to the root,
                          1 &lt;= ia &lt;= n, where n is the total number of routers (6LR)
                          that the packet goes through from RAL to the root.
          </t>
          <t>
                          6LR_id represents the intermediate routers from the root to the destination,
                          1 &lt;= id &lt;= m, where m is the total number of the
                          intermediate routers (6LR).
          </t>
          <t>
                          This case involves only nodes in same RPL domain.
                          The originating node will add an RPI to the
                          original packet, and send the packet upwards.
          </t>
          <t>
                          The originating node may put the RPI (RPI1) into an IPv6-in-IPv6
                          header addressed to the root, so that the 6LBR can remove that
                          header.  If it does not, then the RPI1 is forwarded down from the
                          root in the inner header to no avail.
          </t>
          <t>
                          The 6LBR will need to insert an RH3 header, which
                          requires that it add an IPv6-in-IPv6 header.
                          It removes the RPI(RPI1), as it was contained in an
                          IPv6-in-IPv6 header addressed to it.  Otherwise, there may
                          be an RPI buried inside the inner IP header,
                          which should get ignored. The root inserts an RPI (RPI2) alongside the RH3.
          </t>
          <t>
                   Networks that use the RPL P2P extension <xref target="RFC6997" format="default"/>
                   are essentially non-storing DODAGs and fall into this
                   scenario or scenario <xref target="nsroottoRAL" format="default"/>, with
                   the originating node acting as 6LBR.
          </t>
          <t>
                 <xref target="NonStoring-rpl2rpl" format="default"/> summarizes what headers
                 are needed for this use case when encapsulation to the root takes place.
          </t>
          <t>
                 <xref target="NonStoring-rpl2rplnoIPIP" format="default"/> summarizes what headers
                 are needed for this use case when there is no encapsulation to the root.
                 Note that in the Modified headers row, going up in each 6LR_ia only the RPI1 is changed.
                 Going down, in each 6LR_id the IPv6 header is swapped with the RH3 so both are changed alongside with the RPI2.&nbsp;
          </t>
<table anchor="NonStoring-rpl2rpl">
   <name>Non-SM: Summary of the Use of Headers from RAL to RAL with encapsulation to the root.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_id</th>
         <th align="center">RAL dst</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3 -&gt; RAL, RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
<table anchor="NonStoring-rpl2rplnoIPIP">
   <name>Non-SM: Summary of the Use of Headers from RAL to RAL without encapsulation to the root.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_id</th>
         <th align="center">RAL</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Inserted Headers</th>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">RPI1</td>
         <td align="center">RPI1 (Ignored)</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from RAL to RUL</name>
          <t>
                        In this case the flow comprises:
          </t>
          <t>
                         RAL --&gt; 6LR_ia --&gt; root (6LBR) --&gt; 6LR_id --&gt;  RUL (IPv6 dst node)
          </t>
          <t>
                        For example, a communication flow could be: Node F (RAL) --&gt; Node D --&gt; Node B --&gt; Node A (root) --&gt; Node B --&gt; Node E --&gt; Node G (RUL)
          </t>
          <t>
                          6LR_ia represents the intermediate routers from source to the root,
                          1 &lt;= ia &lt;= n, where n is the total number of intermediate routers (6LR)
          </t>
          <t>
                          6LR_id represents the intermediate routers from the root to the destination,
                           1 &lt;= id &lt;= m, where m is the total number of the
                          intermediate routers (6LRs).
          </t>
          <t>
                          As in the previous case, the RAL (6LN) may insert an RPI (RPI1)
                          header which must be in an IPv6-in-IPv6 header addressed to
                          the root so that the 6LBR can remove this RPI.
                          The 6LBR will then insert an RH3 inside a new IPv6-in-IPv6
                          header addressed to the last 6LR_id (6LR_id = m) alongside the insertion of RPI2.
          </t>
          <t>
                          If the originating node does not put the RPI (RPI1) into an IPv6-in-IPv6
                          header addressed to the root. Then, the RPI1 is forwarded down from the
                          root in the inner header to no avail.
          </t>
          <t>
                        <xref target="NonStoring-rpl2notrpl" format="default"/> summarizes what headers
                        are needed for this use case when encapsulation to the root takes place.
                        <xref target="NonStoring-rpl2notrplnoIPIP" format="default"/> summarizes what headers
                        are needed for this use case when no encapsulation to the root takes place.
          </t>
<table anchor="NonStoring-rpl2notrpl">
   <name>Non-SM: Summary of the use of headers from RAL to RUL with encapsulation to the root.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src node</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_id</th>
         <th align="center">6LR_m</th>
         <th align="center">RUL dst node</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
<table anchor="NonStoring-rpl2notrplnoIPIP">
   <name>Non-SM: Summary of the use of headers from RAL to RUL without encapsulation to the root.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RAL src node</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_id</th>
         <th align="center">6LR_n</th>
         <th align="center">RUL dst node</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Inserted Headers</th>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">RPI1</td>
         <td align="center">RPI1</td>
         <td align="center">RPI1 (ignored)</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from RUL to RAL</name>
          <t>
                        In this case the flow comprises:
          </t>
          <t>
                         RUL (IPv6 src node) --&gt; 6LR_1 --&gt; 6LR_ia --&gt; root (6LBR) --&gt; 6LR_id --&gt; RAL dst (6LN)
          </t>
          <t>
                        For example, a communication flow could be: Node G (RUL)--&gt; Node E --&gt; Node B --&gt; Node A (root) --&gt; Node B --&gt; Node E --&gt; Node H (RAL)
          </t>
          <t>
                          6LR_ia represents the intermediate routers from source to the root,
                          1 &lt;= ia &lt;= n, where n is the total number of intermediate routers (6LR)
          </t>
          <t>
                          6LR_id represents the intermediate routers from the root to the destination,
                          1 &lt;= id &lt;= m, where m is the total number of the
                          intermediate routers (6LR).
          </t>
          <t>
                          In this scenario the RPI (RPI1) is added by the first 6LR (6LR_1) inside an
                          IPv6-in-IPv6 header addressed to the root.  The 6LBR will
                          remove this RPI, and add its own IPv6-in-IPv6 header
                          containing an RH3 header and an RPI (RPI2).
          </t>
          <t>
                        <xref target="NonStoring-notrpl2rpl" format="default"/> summarizes what headers are needed for this use case.

          </t>
<table anchor="NonStoring-notrpl2rpl">
   <name>Non-SM: Summary of the use of headers from RUL to RAL.</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RUL src node</th>
         <th align="center">6LR_1</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_id</th>
         <th align="center">RAL dst node</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
        <section numbered="true" toc="default">
          <name>Non-SM: Example of Flow from RUL to RUL</name>
          <t>
                        In this case the flow comprises:
          </t>
          <t>
                         RUL (IPv6 src node) --&gt; 6LR_1 --&gt; 6LR_ia --&gt; root (6LBR) --&gt; 6LR_id --&gt; RUL (IPv6 dst node)
          </t>
          <t>
                        For example, a communication flow could be: Node G --&gt; Node E --&gt; Node B --&gt; Node A (root) --&gt; Node C --&gt; Node J
          </t>
          <t>
                          6LR_ia represents the intermediate routers from source to the root,
                          1 &lt;= ia &lt;= n, where n is the total number of intermediate routers (6LR)
          </t>
          <t>
                          6LR_id represents the intermediate routers from the root to the destination,
                          1 &lt;= id &lt;= m, where m is the total number of the
                          intermediate routers (6LR).
          </t>
          <t>
                          This scenario is the combination of the previous two cases.
          </t>
          <t>
                        <xref target="NonStoring-notrpl2notrpl" format="default"/> summarizes what headers are needed for this use case.

          </t>
<table anchor="NonStoring-notrpl2notrpl">
   <name>Non-SM: Summary of the use of headers from RUL to RUL</name>
   <thead>
      <tr>
         <th align="center">Header</th>
         <th align="center">RUL src node</th>
         <th align="center">6LR_1</th>
         <th align="center">6LR_ia</th>
         <th align="center">6LBR</th>
         <th align="center">6LR_id</th>
         <th align="center">6LR_m</th>
         <th align="center">RUL dst node</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <th align="center">Added Headers</th>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Modified Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">RPI1</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Removed Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RPI1)</td>
         <td align="center">--</td>
         <td align="center">IP6-IP6 (RH3, RPI2)</td>
         <td align="center">--</td>
      </tr>
      <tr>
         <th align="center">Untouched Headers</th>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
         <td align="center">--</td>
      </tr>
   </tbody>
</table>
        </section>
      </section>
    </section>
    <section anchor="notrplaware" numbered="true" toc="default">
      <name>Operational Considerations of supporting                           RUL-leaves</name>
      <t>
              Roughly half of the situations described in this document
              involve leaf ("host") nodes that do not speak RPL.  These nodes
              fall into two further categories: ones that drop a packet
              that have RPI or RH3 headers, and ones that continue to
              process a packet that has RPI and/or RH3 headers.
      </t>
      <t>
              <xref target="RFC8200" format="default"/> provides for new rules that suggest
              that nodes that have not been configured (explicitly) to
              examine Hop-by-Hop headers, should ignore those headers, and
              continue processing the packet.  Despite this, and despite the
              switch from 0x63 to 0x23, there may be nodes that are pre-RFC8200,
              or simply intolerant.  Those nodes will drop packets that
              continue to have RPL artifacts in them.  In general, such
              nodes can not be easily supported in RPL LLNs.
      </t>
      <t>
              There are some specific cases where it is possible to remove
              the RPL artifacts prior to forwarding the packet to the leaf
              host.  The critical thing is that the artifacts have been
              inserted by the RPL root inside an IPv6-in-IPv6 header, and
              that the header has been addressed to the 6LR immediately prior
              to the leaf node. In that case, in the process of removing the
              IPv6-in-IPv6 header, the artifacts can also be removed.
      </t>
      <t>
              The above case occurs whenever traffic originates from the
              outside the LLN (the "Internet" cases above), and non-storing
              mode is used.  In non-storing mode, the RPL root knows the exact topology
              (as it must create the RH3 header) and therefore knows which 6LR is prior to the
              leaf.  For example, in <xref target="fig_CommonTopology" format="default"/>, Node E is the 6LR prior to leaf
              Node G, or Node C is the 6LR prior to leaf Node J.
      </t>
      <t>
              Traffic originating from the RPL root (such as when the data
              collection system is co-located on the RPL root), does not
              require an IPv6-in-IPv6 header (in storing or non-storing mode), as the packet
              is originating at the root, and the root can insert the RPI
              and RH3 headers directly into the packet, as it is formed.
              Such a packet is slightly smaller, but only can be sent to
              nodes (whether RPL aware or not), that will tolerate the
              RPL artifacts.
      </t>
      <t>
              An operator that finds itself with a high amount of traffic from the
              RPL root to RPL-not-aware-leaves, will have to do IPv6-in-IPv6
              encapsulation if the leaf is not tolerant of the RPL artifacts.
              Such an operator could otherwise omit this unnecessary header
              if it was certain of the properties of the leaf.
      </t>
      <t>
              As storing mode can not know the final path of the traffic,
              intolerant (that drop packets with RPL artifacts) leaf nodes
              can not be supported.
      </t>
    </section>
    <section anchor="sec_op_con_0x23" numbered="true" toc="default">
      <name>Operational considerations of introducing 0x23</name>
      <t>
           This section describes the operational considerations of introducing the new RPI Option Type of 0x23.
      </t>
      <t>
             During bootstrapping the node gets the DIO with the information of RPI Option Type, indicating
             the new RPI in the DODAG Configuration option Flag.
             The DODAG root is in charge to configure the current network to the new value, through DIO
             messages and when all the nodes are set with the new value. The DODAG should change to a new DODAG version.
             In case of rebooting, the node does not remember the RPI Option Type.
             Thus, the DIO is sent with a flag indicating the new RPI Option Type.
      </t>
      <t>
           The DODAG Configuration option is contained in a RPL DIO message, which contains a unique DTSN counter.
           The leaf nodes respond to this message with DAO messages containing the same DTSN.
           This is a normal part of RPL routing; the RPL root therefore knows when the updated
           DODAG Configuration option has been seen by all nodes.
      </t>
      <t>
             Before the migration happens, all the RPL-aware nodes should support both values .
             The migration procedure is triggered when the DIO is sent with the flag
             indicating the new RPI Option Type.
             Namely, it remains at 0x63 until it is sure that the network is capable of 0x23, then it abruptly changes to 0x23.
             The 0x23 RPI Option allows to send packets to not-RPL nodes. The not-RPL nodes should ignore the option and continue processing the packets.
      </t>
      <t>
             As mentioned previously, indicating the new RPI in the DODAG Configuration option flag is a way to avoid the flag day
             (abrupt changeover) in a network using 0x63 as the RPI Option Type value. It is suggested that RPL implementations
             accept both 0x63 and 0x23 RPI Option type values when processing the header  to enable interoperability.
      </t>
    </section>
    <section anchor="iana" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <section numbered="true" toc="default">
        <name>Option Type in RPL Option</name>
        <t>
            This document updates the registration made in <xref target="RFC6553" format="default"/>
            Destination Options and Hop-by-Hop Options registry from 0x63 to 0x23
            as shown in <xref target="fig_IanaRPIOption" format="default"/>.
        </t>
<table anchor="fig_IanaRPIOption">
   <name>Option Type in RPL Option.</name>
   <thead>
      <tr>
         <th rowspan="2" colspan="1" align="center">Hex Value</th>
         <th rowspan="1" colspan="3" align="center">Binary Value</th>
         <th rowspan="2" colspan="1" align="center">Description</th>
         <th rowspan="2" colspan="1" align="center">Reference</th>
      </tr>
      <tr>
         <th align="center">act</th>
         <th align="center">chg</th>
         <th align="center">rest</th>
     </tr>
   </thead>
   <tbody>
      <tr>
         <td align="center">0x23</td>
         <td align="center">00</td>
         <td align="center">1</td>
         <td align="center">00011</td>
         <td align="center">RPL Option</td>
         <td align="center">This document</td>
      </tr>
      <tr>
         <td align="center">0x63</td>
         <td align="center">01</td>
         <td align="center">1</td>
         <td align="center">00011</td>
         <td align="center">RPL Option (DEPRECATED)</td>
         <td align="center"><xref target="RFC6553" format="default"/>, this document</td>
      </tr>
   </tbody>
</table>
        <t> DODAG Configuration
          option is updated as follows (<xref target="fig_RPIflagdayConfOption" format="default"/>):
        </t>

<table anchor="fig_RPIflagdayConfOption">
   <name>DODAG Configuration option Flag to indicate the RPI-flag-day.</name>
   <thead>
      <tr>
         <th align="center">Bit number</th>
         <th align="center">Description</th>
         <th align="center">Reference</th>
      </tr>
   </thead>
   <tbody>
      <tr>
         <td align="center">3</td>
         <td align="center">RPI 0x23 enable</td>
         <td align="center">This document</td>
      </tr>
   </tbody>
</table>
      </section>
      <section anchor="sec_op_flags_reg" numbered="true" toc="default">
        <name>Change to the DODAG Configuration Options Flags registry</name>
        <t>
            This document requests IANA to change the name of the "DODAG
            Configuration Option Flags" registry to "DODAG Configuration Option Flags
            for MOP 0..6".
        </t>
        <t>This document requests to be mentioned as a reference for this change.</t>
      </section>
      <section anchor="sec_mop_val_change" numbered="true" toc="default">
        <name>Change MOP value 7 to Reserved</name>
        <t>
            This document requests the changing the registration status of value 7 in
            the Mode of Operation registry from Unassigned to Reserved.  This change
            is in support of future work.
        </t>
        <t>
            This document requests to be mentioned as a reference for this entry in
	    the registry.
        </t>
      </section>
    </section>
    <section anchor="Security" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>
             The security considerations covered in <xref target="RFC6553" format="default"/> and
             <xref target="RFC6554" format="default"/> apply when the packets are in the RPL
             Domain.
      </t>
      <t>
            The IPv6-in-IPv6 mechanism described in this document is much more
            limited than the general mechanism described in <xref target="RFC2473" format="default"/>.  The willingness of each node in the LLN to
            decapsulate packets and forward them could be exploited by nodes to
            disguise the origin of an attack.
      </t>
      <t>
            While a typical LLN may be a very poor origin for attack traffic
            (as the networks tend to be very slow,
            and the nodes often have very low duty cycles), given enough
            nodes, LLNs could still have a
            significant impact, particularly if the attack is targeting another LLN.
            Additionally, some uses of RPL involve large backbone ISP scale
            equipment <xref target="I-D.ietf-anima-autonomic-control-plane" format="default"/>,
            which may be equipped with multiple 100Gb/s interfaces.
      </t>
      <t>
            Blocking or careful filtering of IPv6-in-IPv6 traffic entering the LLN as
            described above will make sure that any attack that is mounted
            must originate from compromised nodes within the LLN.
            The use of BCP38 <xref target="RFC2827" format="default"/> filtering at the RPL root on egress traffic will
            both alert the operator to the existence of the attack, as well
            as drop the attack traffic.  As the RPL network is typically
            numbered from a single prefix, which is itself assigned by RPL,
            BCP38 filtering involves a single prefix comparison and should be
            trivial to automatically configure.
      </t>
      <t>
            There are some scenarios where IPv6-in-IPv6 traffic should be allowed to
            pass through the RPL root, such as the IPv6-in-IPv6 mediated
            communications between a new Pledge and the Join
            Registrar/Coordinator (JRC) when
            using <xref target="I-D.ietf-anima-bootstrapping-keyinfra" format="default"/> and
            <xref target="I-D.ietf-6tisch-dtsecurity-zerotouch-join" format="default"/>. This is
            the case for the RPL root to do careful filtering: it occurs only
            when the Join Coordinator is not co-located inside the RPL root.
      </t>
      <t>
            With the above precautions, an attack using IPv6-in-IPv6 tunnels can only be
            by a node within the LLN on another node within the LLN.  Such an
            attack could, of course, be done directly.  An attack of this
            kind is meaningful only if the source addresses are either fake
            or if the point is to amplify return traffic.
            Such an attack, could also be done without the use of IPv6-in-IPv6
            headers using forged source addresses.
            If the attack requires bi-directional communication, then IPv6-in-IPv6
            provides no advantages.
      </t>
      <t>
            Whenever IPv6-in-IPv6 headers are being proposed, there is a concern
            about creating security issues. In the Security Considerations
            section of <xref target="RFC2473" format="default"/>, it was suggested that tunnel entry and exit
            points can be secured by securing the IPv6 path between them.   This
            recommendation is not practical for RPL networks.  <xref target="RFC5406" format="default"/> goes
            into some detail on what additional details would be needed in order
            to "Use IPsec". Use of ESP would
            prevent <xref target="RFC8138" format="default"/> compression (compression must occur before
            encryption), and <xref target="RFC8138" format="default"/> compression is lossy in a way that prevents
            use of AH.  These are minor issues.  The major issue is how to
            establish trust enough such that IKEv2 could be used.  This would
            require a system of certificates to be present in every single node,
            including any Internet nodes that might need to communicate with the
            LLN. Thus, using IPsec requires a global PKI in the general case.
      </t>
      <t>
            More significantly, the use of IPsec tunnels to protect the IPv6-in-IPv6
            headers would in the general case scale with the square of the
            number of nodes.  This is a lot of resource for a constrained
            nodes on a constrained network. In the end, the IPsec tunnels
            would be providing only BCP38-like origin authentication!
            That is, IPsec provides a transitive guarantee to the tunnel exit point
            that the tunnel entry point did BCP38 on traffic going in.
            Just doing origin filtering per BCP 38 at the entry and
            exit of the LLN provides a similar level of security without all the
            scaling and trust problems related to IPv6 tunnels as discussed in
            <xref target="RFC2473" format="default"/>. IPsec is not recommended.
      </t>
      <t>
            An LLN with hostile nodes within it would not be protected against
            impersonation with the LLN by entry/exit filtering.
      </t>
      <t>
            The RH3 header usage described here can be abused in equivalent
            ways. An external attacker may form a packet with an RH3 that is
            not fully consumed and encapsulate it to hide the RH3 from
            intermediate nodes and disguise the origin of
            traffic. As such, the attacker's RH3 header will not be seen by
            the network until it reaches the destination, which will decapsulate
            it. As indicated in <xref target="RFC6554" section="4.2" sectionFormat="of" format="default"/>, RPL
            routers are responsible for ensuring that an SRH is only used
            between RPL routers. As such, if there is an RH3 that is not fully
            consumed in the encapsulated packet, the node that decapsulates it
            <bcp14>MUST</bcp14> ensure that the outer packet was originated in the RPL domain
            and drop the packet otherwise.
      </t>
      <t>
            Also, as indicated by 
            <xref target="RFC6554" section="2" sectionFormat="of" format="default"/>, RPL Border Routers</t> 
<blockquote>
            do not allow datagrams
            carrying an SRH header to enter or exit a RPL routing domain.
</blockquote>
      <t> 
            This
            sentence must be understood as concerning non-fully-consumed packets.
            A consumed (inert)
            RH3 header could be present in a packet that flows from one LLN,
            crosses the Internet, and enters another LLN.  As per the
            discussion in this document, such headers do not need to be
            removed.  However, there is no case described in this document
            where an RH3 is inserted in a non-storing network on traffic that
            is leaving the LLN, but this document should not preclude such a
            future innovation.
      </t>
      <t>
            In short, a packet that crosses the border of the RPL domain <bcp14>MAY</bcp14>
            carry and RH3, and if so, that RH3 <bcp14>MUST</bcp14> be fully consumed.
      </t>
      <t>
            The RPI, if permitted to enter the LLN, could be used by
            an attacker to change the priority of a packet by selecting a
            different RPLInstanceID, perhaps one with a higher energy cost,
            for instance.  It could also be that not all nodes are reachable
            in an LLN using the default RPLInstanceID, but a change of
            RPLInstanceID would permit an attacker to bypass such filtering.
            Like the RH3, an RPI is to be inserted by the RPL root on
            traffic entering the LLN by first inserting an IPv6-in-IPv6 header. The
            attacker's RPI therefore will not be seen by the network.
            Upon reaching the destination node the RPI has no further
            meaning and is just skipped; the presence of a second RPI
            will have no meaning to the end node as the packet has already
            been identified as being at it's final destination.
      </t>
      <t>
            For traffic leaving a RUL, if the RUL adds an opaque RPI then the 6LR as a RPL border
            router <bcp14>SHOULD</bcp14> rewrite the RPI to indicate the selected Instance and set the flags.
            This is done in order to avoid: 1) The leaf is an external router that
            passes a packet that it did not generate and that carries an unrelated RPI
            and 2) The leaf is an attacker or presents misconfiguration and
            tries to inject traffic in a protected instance.
            Also, this applies in the case where the leaf is aware of the RPL instance and passes a correct RPI;
            the 6LR needs a configuration that allows that leaf to inject in that instance.
      </t>
      <t>
            The RH3 and RPIs could be abused by an attacker inside of
            the network to route packets on non-obvious ways, perhaps eluding
            observation.   This usage appears consistent with a normal operation of
            <xref target="RFC6997" format="default"/> and can not be restricted at all. This
            is a feature, not a bug.
      </t>
      <t>
            <xref target="RFC7416" format="default"/> deals with many other threats to LLNs
            not directly related to the use of IPv6-in-IPv6 headers, and this
            document does not change that analysis.
      </t>
      <t>
            Nodes within the LLN can use the IPv6-in-IPv6 mechanism to mount an
            attack on another part of the LLN, while disguising the origin of
            the attack.  The mechanism can even be abused to make it appear
            that the attack is coming from outside the LLN, and unless
            countered, this could be used to mount a Distributed Denial Of
            Service attack upon nodes elsewhere in the Internet. See <xref target="DDOS-KREBS" format="default"/> for an example of such attacks already
            seen in the real world.
      </t>
      <t>
            If an attack comes from inside of LLN, it can be alleviated with SAVI
            (Source Address Validation Improvement) using <xref target="RFC8505" format="default"/> with
            <xref target="RFC8928" format="default"/>. The attacker will not
            be able to source traffic with an address that is not registered, and the registration process
            checks for topological correctness. Notice that there is an L2 authentication
            in most of the cases.  If an attack comes from outside LLN IPv6-in-
            IPv6 can be used to hide inner routing headers, but by construction, the RH3 can typically only address nodes within the
            LLN.  That is, an RH3 with a CmprI less than 8 , should be considered an attack (see <xref target="RFC6554" section="3" sectionFormat="of" format="default"/>).
      </t>
      <t>
            Nodes outside of the LLN will need to pass IPv6-in-IPv6 traffic
            through the RPL root to perform this attack. To counter, the RPL
            root <bcp14>SHOULD</bcp14> either restrict ingress of IPv6-in-IPv6 packets (the
            simpler solution), or it <bcp14>SHOULD</bcp14> walk the IP header extension chain until it can inspect the
            upper-layer-payload as described in <xref target="RFC7045" format="default"/>.
            In particular, the RPL root <bcp14>SHOULD</bcp14> do <xref target="RFC2827" format="default"/> processing on the source addresses of all IP
            headers that it examines in both directions.
      </t>
      <t>
            Note: there are some situations where a prefix will spread
            across multiple LLNs via mechanisms such as the one described in
            <xref target="RFC8929" format="default"/>.
            In this case the BCP38 filtering needs to take this into account,
            either by exchanging detailed routing information on each LLN,
            or by moving the BCP38 filtering further towards the Internet,
            so that the details of the multiple LLNs do not matter.
      </t>
    </section>
    <section anchor="Acknowledgments" numbered="true" toc="default">
      <name>Acknowledgments</name>
      <t>
           This work is done thanks to the grant given by the StandICT.eu project.
      </t>
      <t>
            A special BIG thanks to <contact fullname="C. M. Heard"/> for the help with the <xref target="updateRFCs_section" format="default"/>.
            Much of the redaction in that section is based on his comments.
      </t>
      <t>
           Additionally, the authors would like to acknowledge the review, feedback, and
           comments of (alphabetical order): <contact fullname="Dominique Barthel"/>, <contact fullname="Robert Cragie"/>, <contact fullname="Simon Duquennoy"/>, <contact fullname="Ralph Droms"/>,
           <contact fullname="Cenk Guendogan"/>, <contact fullname="Rahul Jadhav"/>, <contact fullname="Benjamin Kaduk"/>, <contact fullname="Matthias Kovatsch"/>, <contact fullname="Gustavo Mercado"/>, <contact fullname="Subramanian Moonesamy"/>,
           <contact fullname="Marcela Orbiscay"/>, <contact fullname="Charlie Perkins"/>, <contact fullname="Cristian Perez"/>, <contact fullname="Alvaro Retana"/>, <contact fullname="Peter van der Stok"/>,
           <contact fullname="Xavier Vilajosana"/>, <contact fullname="Éric Vyncke"/>, and <contact fullname="Thomas Watteyne"/>.
      </t>
    </section>
  </middle>
  <back>

<displayreference target="RFC2827" to="BCP38"/>
<displayreference target="I-D.ietf-intarea-tunnels" to="TUNNELS"/>
<displayreference target="I-D.ietf-6tisch-dtsecurity-zerotouch-join" to="ZEROTOUCH-JOIN"/>
<displayreference target="I-D.ietf-anima-bootstrapping-keyinfra" to="BRSKI"/>
<displayreference target="I-D.ietf-anima-autonomic-control-plane" to="ACP"/>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6553.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6554.xml"/>
        <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.6040.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.8200.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8025.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8138.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6282.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6550.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2827.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7045.xml"/>
      </references>
      <references>
        <name>Informative References</name>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.0801.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8504.xml"/>

<!-- [I-D.ietf-6lo-ap-nd] Published as RFC 8928 -->
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8928.xml"/>

<!-- [I-D.ietf-intarea-tunnels] IESG state Expired -->
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-intarea-tunnels.xml"/>

<!-- [I-D.ietf-roll-unaware-leaves] in EDIT state as of 01/27/21; companion document RFC YYY1 -->
<reference anchor='RFCYYY1'>
<front>
<title>Routing for RPL Leaves</title>

<author initials='P' surname='Thubert' fullname='Pascal Thubert' role='editor'>
    <organization />
</author>

<author initials='M' surname='Richardson' fullname='Michael Richardson'>
    <organization />
</author>

<date month='January' day='22' year='2021' />

</front>
<seriesInfo name="RFC" value="YYY1"/>
<seriesInfo name="DOI" value="10.17487/RFCYYY1"/>
</reference>

        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6775.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6437.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7416.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4443.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7102.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8180.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.8505.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2460.xml"/>

<!-- [I-D.ietf-anima-autonomic-control-plane] in REF state as of 02 Feb 21 -->
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-anima-autonomic-control-plane.xml"/>

        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5406.xml"/>

<!-- [I-D.ietf-anima-bootstrapping-keyinfra] in EDIT state as of 02 Feb 21 -->
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-anima-bootstrapping-keyinfra.xml"/>

<!-- [I-D.ietf-6tisch-dtsecurity-zerotouch-join] IESG state Expired  -->
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-6tisch-dtsecurity-zerotouch-join.xml"/>

<!-- [I-D.ietf-6lo-backbone-router] Published as RFC 8929 -->
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8929.xml"/>

        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.6997.xml"/>

<!-- [DDOS-KREBS] http://arstechnica.com/security/2016/09/botnet-of-145k- cameras-reportedly-deliver-internets-biggest-ddos-ever/  
     redirects to https://arstechnica.com/information-technology/2016/09/botnet-of-145k-cameras-reportedly-deliver-internets-biggest-ddos-ever/-->
        <reference anchor="DDOS-KREBS" target="https://arstechnica.com/information-technology/2016/09/botnet-of-145k-cameras-reportedly-deliver-internets-biggest-ddos-ever/">
          <front>
            <title>Record-breaking DDoS reportedly delivered by &gt;145k hacked cameras</title>
            <author initials="D." surname="Goodin">
              <organization/>
            </author>
            <date year="2016" month="September"/>
          </front>
        </reference>
      </references>
    </references>
  </back>
</rfc>
