<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="std" docName="draft-bonica-6man-comp-rtg-hdr-08"
     ipr="trust200902">
  <front>
    <title abbrev="IPv6 Compressed Routing Header">The IPv6 Compressed Routing
    Header (CRH)</title>

    <author fullname="Ron Bonica" initials="R." surname="Bonica">
      <organization>Juniper Networks</organization>

      <address>
        <postal>
          <street>2251 Corporate Park Drive</street>

          <city>Herndon</city>

          <code>20171</code>

          <region>Virginia</region>

          <country>USA</country>
        </postal>

        <email>rbonica@juniper.net</email>
      </address>
    </author>

    <author fullname="Yuji Kamite" initials="Y. " surname="Kamite">
      <organization>NTT Communications Corporation</organization>

      <address>
        <postal>
          <street>3-4-1 Shibaura, Minato-ku</street>

          <city>Tokyo</city>

          <code>108-8118</code>

          <country>Japan</country>
        </postal>

        <email>y.kamite@ntt.com</email>
      </address>
    </author>

    <author fullname="Tomonobu Niwa" initials="T." surname="Niwa">
      <organization>KDDI</organization>

      <address>
        <postal>
          <street>3-22-7, Yoyogi, Shibuya-ku</street>

          <city>Tokyo</city>

          <region/>

          <code>151-0053</code>

          <country>Japan</country>
        </postal>

        <email>to-niwa@kddi.com</email>
      </address>
    </author>

    <author fullname="Andrew Alston" initials="A." surname="Alston">
      <organization>Liquid Telecom</organization>

      <address>
        <postal>
          <street/>

          <city>Nairobi</city>

          <country>Kenya</country>
        </postal>

        <email>Andrew.Alston@liquidtelecom.com</email>
      </address>
    </author>

    <author fullname="Daniam Henriques" initials="D." surname="Henriques">
      <organization>Liquid Telecom</organization>

      <address>
        <postal>
          <street/>

          <city>Johannesburg</city>

          <country>South Africa</country>
        </postal>

        <email>daniam.henriques@liquidtelecom.com</email>
      </address>
    </author>

    <author fullname="Luay Jalil" initials="L. " surname="Jalil">
      <organization>Verizon</organization>

      <address>
        <postal>
          <street/>

          <city>Richardson</city>

          <region>Texas</region>

          <country>USA</country>
        </postal>

        <email>luay.jalil@one.verizon.com</email>
      </address>
    </author>

    <author fullname="Ning So" initials="N." surname="So">
      <organization>Reliance Jio</organization>

      <address>
        <postal>
          <street>3010 Gaylord PKWY, Suite 150</street>

          <city>Frisco</city>

          <region>Texas</region>

          <code>75034</code>

          <country>USA</country>
        </postal>

        <email>Ning.So@ril.com</email>
      </address>
    </author>

    <author fullname="Fengman Xu" initials="F." surname="Xu">
      <organization>Reliance Jio</organization>

      <address>
        <postal>
          <street>3010 Gaylord PKWY, Suite 150</street>

          <city>Frisco</city>

          <region>Texas</region>

          <code>75034</code>

          <country>USA</country>
        </postal>

        <email>Fengman.Xu@ril.com</email>
      </address>
    </author>

    <author fullname="Gang Chen" initials="G." surname="Chen">
      <organization>Baidu</organization>

      <address>
        <postal>
          <street>No.10 Xibeiwang East Road Haidian District</street>

          <city>Beijing</city>

          <code>100193</code>

          <country>P.R. China</country>
        </postal>

        <email>phdgang@gmail.com</email>
      </address>
    </author>

    <author fullname="Yongqing Zhu" initials="Y." surname="Zhu">
      <organization>China Telecom</organization>

      <address>
        <postal>
          <street>109 West Zhongshan Ave, Tianhe District</street>

          <city>Guangzhou</city>

          <country>P.R. China</country>
        </postal>

        <email>zhuyq.gd@chinatelecom.cn</email>
      </address>
    </author>

    <author fullname="Guangming Yang" initials="G." surname="Yang">
      <organization>China Telecom</organization>

      <address>
        <postal>
          <street>109 West Zhongshan Ave, Tianhe District</street>

          <city>Guangzhou</city>

          <country>P.R. China</country>
        </postal>

        <email>yanggm.gd@chinatelecom.cn</email>
      </address>
    </author>

    <author fullname="Yifeng Zhou" initials="Y. " surname="Zhou">
      <organization>ByteDance</organization>

      <address>
        <postal>
          <street>Building 1, AVIC Plaza, 43 N 3rd Ring W Rd Haidian
          District</street>

          <city>Beijing</city>

          <code>100000</code>

          <country>P.R. China</country>
        </postal>

        <email>yifeng.zhou@bytedance.com</email>
      </address>
    </author>

    <date day="15" month="October" year="2019"/>

    <area>INT Area</area>

    <workgroup>6man</workgroup>

    <keyword>IPv6</keyword>

    <keyword>Routing header</keyword>

    <abstract>
      <t>This document defines two new IPv6 Routing header types. Generically,
      they are called the Compressed Routing Header (CRH). More specifically,
      the 16-bit version of the CRH is called the CRH-16, while the 32-bit
      version of the CRH is called the CRH-32. SRm6 nodes use the CRH to steer
      packets from segment to segment along SRm6 paths.</t>
    </abstract>
  </front>

  <middle>
    <section anchor="Intro" title="Introduction">
      <t>This document defines two new <xref target="RFC8200">IPv6 </xref>
      Routing header types. Generically, they are called the Compressed
      Routing Header (CRH). More specifically, the 16-bit version of the CRH
      is called the CRH-16, while the 32-bit version of the CRH is called the
      CRH-32. <xref target="I-D.bonica-spring-srv6-plus">SRm6</xref> nodes use
      the CRH to steer packets from segment to segment along SRm6 paths.</t>

      <t>For details regarding SRm6 paths, segments, Segment Identifiers
      (SIDs) and instructions, see <xref
      target="I-D.bonica-spring-srv6-plus"/>.</t>
    </section>

    <section anchor="ReqLang" title="Requirements Language">
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
      "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
      "OPTIONAL" in this document are to be interpreted as described in <xref
      target="RFC2119">BCP 14</xref> <xref target="RFC8174"/> when, and only
      when, they appear in all capitals, as shown here.</t>
    </section>

    <section title="The Compressed Routing Header (CRH)">
      <t>Both CRH versions (i.e., CRH-16 and CRH-32) contain the following
      fields:</t>

      <t><list style="symbols">
          <t>Next Header - Defined in <xref target="RFC8200"/>. Identifies the
          type of header immediately following the CRH.</t>

          <t>Hdr Ext Len - Defined in <xref target="RFC8200"/>. Length of the
          CRH in 8-octet units, not including the first 8 octets.</t>

          <t>Routing Type - Defined in <xref target="RFC8200"/>. Value TBD by
          IANA. (For CRH-16, the suggested value is 5. For CRH-32, the
          suggested value is 6.)</t>

          <t>Segments Left - Defined in <xref target="RFC8200"/>. Number of
          route segments remaining, i.e., number of explicitly listed
          intermediate nodes still to be visited before reaching the final
          destination.</t>

          <t>SID List - Represents the SRm6 path as an ordered list of SIDs.
          SIDs are listed in reverse order, with SID[0] representing the final
          segment, SID[1] representing the penultimate segment, and so forth.
          SIDs are listed in reverse order so that Segments Left can be used
          as an index to the SID List. The SID indexed by Segments Left is
          called the current SID.</t>
        </list></t>

      <t>In the <xref target="CRHFig16">CRH-16</xref>, each SID list entry is
      encoded in 16-bits. In the <xref target="CRHFig32">CRH-32</xref>, each
      SID list entry is encoded in 32-bits. In networks where the <xref
      target="I-D.bonica-spring-srv6-plus">smallest feasible Maximum SID Value
      (MSV)</xref> is greater than 65,535, CRH-32 is required. Otherwise,
      CRH-16 is preferred.</t>

      <t>In all cases, the CRH MUST end on a 64-bit boundary. Therefore, the
      CRH MAY be padded with zeros.</t>

      <figure align="center" anchor="CRHFig16" title="CRH-16">
        <artwork><![CDATA[     0                   1                   2                   3
     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |  Next Header  |  Hdr Ext Len  | Routing Type  | Segments Left |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |             SID[0]            |          SID[1]               |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
    |                          .........
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-        
   

]]></artwork>
      </figure>

      <figure align="center" anchor="CRHFig32" title="CRH-32">
        <artwork><![CDATA[     0                   1                   2                   3
     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |  Next Header  |  Hdr Ext Len  | Routing Type  | Segments Left |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    +                             SID[0]                            +
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    +                             SID[1]                            +
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    //                                                              //
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    +                             SID[n]                            +
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   

]]></artwork>
      </figure>
    </section>

    <section title="The Segment Forwarding Information Base (SFIB)">
      <t>A segment ingress node maintains one Segment Forwarding Information
      Base (SFIB) entry for each segment that it originates. Each SFIB entry
      contains the following information:</t>

      <t><list style="symbols">
          <t>A SID.</t>

          <t>A segment type.</t>

          <t>Topological instruction parameters.</t>
        </list>The following are valid segment types:</t>

      <t><list style="symbols">
          <t>Adjacency.</t>

          <t>Node.</t>

          <t>Binding.</t>
        </list>The following parameters are associated with topological
      instructions that control adjacency segments:</t>

      <t><list style="symbols">
          <t>An IPv6 address that identifies an interface on the segment
          egress node.</t>

          <t>An interface identifier.</t>
        </list></t>

      <t>Node segments are associated with a single topological instruction
      parameter. This parameter is an IPv6 address that identifies an
      interface on the segment egress node.</t>

      <t>The following parameters are associated with topological instructions
      that control binding segments:<list style="symbols">
          <t>An IPv6 address that identifies an interface on the first segment
          egress node in the binding segment.</t>

          <t>A SID list length.</t>

          <t>A SID list.</t>
        </list></t>

      <t/>
    </section>

    <section title="Processing Rules">
      <t/>

      <section title="General">
        <t><xref target="RFC8200"/> defines rules that apply to IPv6 extension
        headers, in general, and IPv6 Routing headers, in particular. All of
        these rules apply to the CRH.</t>

        <t>For example:</t>

        <t><list style="symbols">
            <t>Extension headers (except for the Hop-by-Hop Options header)
            are not processed, inserted, or deleted by any node along a
            packet's delivery path, until the packet reaches the node (or each
            of the set of nodes, in the case of multicast) identified in the
            Destination Address field of the IPv6 header.</t>

            <t>If, while processing a received packet, a node encounters a
            Routing header with an unrecognized Routing Type value, the
            required behavior of the node depends on the value of the Segments
            Left field. If Segments Left is zero, the node must ignore the
            Routing header and proceed to process the next header in the
            packet, whose type is identified by the Next Header field in the
            Routing header. If Segments Left is non-zero, the node must
            discard the packet and send an <xref target="RFC4443">ICMPv6
            </xref> Parameter Problem, Code 0, message to the packet's Source
            Address, pointing to the unrecognized Routing Type.</t>

            <t>If, after processing a Routing header of a received packet, an
            intermediate node determines that the packet is to be forwarded
            onto a link whose link MTU is less than the size of the packet,
            the node must discard the packet and send an ICMPv6 Packet Too Big
            message to the packet's Source Address.</t>
          </list></t>
      </section>

      <section anchor="CRHSpec" title="CRH Specific">
        <t>When a node recognizes and processes a CRH, it executes the
        following procedure:</t>

        <t><list style="symbols">
            <t>If the IPv6 Source Address is a link-local address, discard the
            packet.</t>

            <t>If the IPv6 Source Address is a multicast address, discard the
            packet.</t>

            <t>If Segments Left equals 0, skip over the CRH and process the
            next header in the packet.</t>

            <t>If Hdr Ext Len indicates that the CRH is larger than the
            implementation can process, discard the packet and send an ICMPv6
            Parameter Problem, Code 0, message to the Source Address, pointing
            to the Hdr Ext Len field.</t>

            <t>Compute L, the minimum CRH length (See <xref target="SLLeng">
            </xref>).</t>

            <t>If L is greater than Hdr Ext Len, discard the packet and send
            an ICMPv6 Parameter Problem, Code 0, message to the Source
            Address, pointing to the Segments Left field.</t>

            <t>Decrement the packet's Hop Count.</t>

            <t>If the Hop Count has expired, discard the packet and send an
            ICMPv6 Time Expired message to the packet's source node.</t>

            <t>Decrement Segments Left</t>

            <t>Search for the current SID in the SFIB.</t>

            <t>If the above-mentioned search does not return an SFIB entry,
            discard the packet and send an ICMPv6 Parameter Problem, Code 0,
            message to the Source Address, pointing to the current SID.</t>

            <t>If the above-mentioned search returns an SFIB entry that
            represents an adjacency segment, execute the topological
            instruction described in <xref target="SectSRTI"/>.</t>

            <t>If the above-mentioned search returns an SFIB entry that
            represents a node segment, execute the topological instruction
            described in <xref target="sectLRTI"/>.</t>

            <t>If the above-mentioned search returns an SFIB entry that
            represents a binding segment, execute the topological instruction
            described in <xref target="sectBind"/>.</t>
          </list>The above stated rules are demonstrated in <xref
        target="Examples"/>.</t>

        <section anchor="SLLeng" title="Computing Minimum CRH Length">
          <t>The algorithm described in this section accepts the following CRH
          fields as its input parameters:</t>

          <t><list style="symbols">
              <t>Routing Type (i.e., CRH-16 or CRH-32).</t>

              <t>Segments Left.</t>
            </list></t>

          <t>It yields L, the minimum CRH length. The minimum CRH length is
          measured in 8-octet units, not including the first 8 octets.</t>

          <figure>
            <artwork align="center"><![CDATA[<CODE BEGINS>

switch(Routing Type) {
    case CRH-16:
        if (Segments Left <= 2)
            return(0)
        sidsBeyondFirstWord = Segments Left - 2;
        sidPerWord = 4;
    case CRH-32:
        if (Segments Left <= 1)
            return(0)
        sidsBeyondFirstWord = Segments Left - 1;
        sdsPerWord = 2;
    case default:
        return(0xFF);
    }

words = sidsBeyondFirstWord div sidsPerWord;
if (sidsBeyondFirstWord mod sidsPerWord)
    words++;

return(words)


<CODE ENDS>

]]></artwork>
          </figure>
        </section>

        <section anchor="SectSRTI"
                 title="Topological Instructions That Control Adjacency Segments">
          <t>A topological instruction that controls an adjacency segment
          accepts the following parameters:</t>

          <t><list style="symbols">
              <t>An IPv6 address that identifies an interface on the segment
              egress node.</t>

              <t>An interface identifier.</t>
            </list></t>

          <t>The instruction behaves as follows:<list style="symbols">
              <t>If the interface that was received as a parameter is not
              operational, discard the packet and send an ICMPv6 Destination
              Unreachable message (Code: 5, Source Route Failed) to the
              packet's source node.</t>

              <t>Overwrite the packet's Destination Address with the IPv6
              address that was received as a parameter.</t>

              <t>Forward the packet through the above-mentioned interface.</t>
            </list></t>
        </section>

        <section anchor="sectLRTI"
                 title="Topological Instructions That Control Node Segments">
          <t>A topological instruction that controls a node segment accepts a
          single parameter. This parameter is an IPv6 address that identifies
          an interface on the segment egress node.</t>

          <t>The instruction behaves as follows:</t>

          <t><list style="symbols">
              <t>If the segment ingress node does not have a viable route to
              the IPv6 address included as a parameter, discard the packet and
              send an ICMPv6 Destination Unreachable message (Code:1 Net
              Unreachable) to the packet's source node.</t>

              <t>Overwrite the packet's Destination Address with the
              destination address that was included as a parameter.</t>

              <t>Forward the packet to the next hop along the least cost path
              to the segment egress node. If there are multiple least cost
              paths to the segment egress node (i.e., Equal Cost Multipath),
              execute procedures so that all packets belonging to a flow are
              forwarded through the same next hop.</t>
            </list></t>
        </section>

        <section anchor="sectBind"
                 title="Topological Instructions That Control Binding Segments">
          <t>A topological instruction that controls an binding segment
          accepts the following parameters:</t>

          <t><list style="symbols">
              <t>An IPv6 address that identifies an interface on the first
              segment egress node in the binding segment.</t>

              <t>A SID list length.</t>

              <t>A SID list.</t>
            </list></t>

          <t>The instruction behaves as follows:</t>

          <t><list style="symbols">
              <t>If the segment ingress node does not have a viable route to
              the IPv6 address received as a parameter, discard the packet and
              send an ICMPv6 Destination Unreachable message (Code:1 Net
              Unreachable) to the packet's source node.</t>

              <t>Prepend a CRH to the packet. Copy the SID list length,
              received as a parameter, to the CRH Segments Left field. Also
              copy the SID list, received as a parameter, to the CRH SID
              list.</t>

              <t>Prepend an IPv6 header to the packet. Copy the IPv6 address,
              received as a parameter, to the IPv6 Destination Address.</t>

              <t>Forward the packet to the next hop along the least cost path
              to the IPv6 address received as a parameter. If there are
              multiple least cost paths to the IPv6 address received as a
              parameter (i.e., Equal Cost Multipath), execute procedures so
              that all packets belonging to a flow are forwarded through the
              same next hop.</t>
            </list></t>
        </section>
      </section>
    </section>

    <section title="Mutability">
      <t>In the CRH, the Segments Left field is mutable. All remaining fields
      are immutable.</t>
    </section>

    <section title="Compliance">
      <t>In order to be compliant with this specification, an SRm6
      implementation MUST:</t>

      <t><list style="symbols">
          <t>Be able to process IPv6 options as described in Section 4.2 of
          <xref target="RFC8200"/>.</t>

          <t>Be able to process the Routing header as described in Section 4.4
          of <xref target="RFC8200"/>.</t>

          <t>Support the CRH-16 and the CRH-32.</t>
        </list></t>
    </section>

    <section title="Management Considerations">
      <t><xref target="RFC2151">PING and TRACEROUTE </xref> both operate
      correctly in the presence of the CRH.</t>
    </section>

    <section anchor="Security" title="Security Considerations">
      <t/>

      <t>SRm6 domains MUST NOT span security domains. In order to enforce this
      requirement, security domain edge routers MUST do one of the
      following:</t>

      <t><list style="symbols">
          <t>Discard all inbound SRm6 packets whose IPv6 destination address
          represents domain infrastructure.</t>

          <t><xref target="RFC4302">Authenticate </xref> <xref
          target="RFC4303"/> all inbound SRm6 packets whose IPv6 destination
          address represents domain infrastructure.</t>
        </list></t>
    </section>

    <section title="IANA Considerations">
      <t>IANA is requested to make the following entries in the Internet
      Protocol Version 6 (IPv6) Parameters "Routing Type" registry:</t>

      <figure>
        <artwork><![CDATA[     Suggested    
     Value            Description                           Reference
   -----------------------------------------------------------------------
       5      Compressed Routing Header (16-bit) (CRH-16)   This document
       6      Compressed Routing Header (32-bit) (CRH-32)   This document
]]></artwork>
      </figure>
    </section>

    <section anchor="Acknowledgements" title="Acknowledgements">
      <t>Thanks to Naveen Kottapalli, Joel Halpern, Tony Li, Gerald Schmidt,
      Nancy Shaw, and Chandra Venkatraman for their comments.</t>
    </section>
  </middle>

  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.2119"?>

      <?rfc include='reference.RFC.8174'?>

      <?rfc include='reference.RFC.8200'?>

      <?rfc ?>

      <?rfc include='reference.RFC.4443'?>

      <?rfc ?>

      <?rfc include='reference.RFC.4303'?>

      <?rfc include='reference.RFC.4302'?>

      <?rfc ?>

      <?rfc include='reference.I-D.bonica-spring-srv6-plus'?>
    </references>

    <references title="Informative References">
      <?rfc ?>

      <?rfc ?>

      <?rfc ?>

      <?rfc ?>

      <?rfc include='reference.RFC.2151'?>

      <?rfc ?>

      <?rfc ?>
    </references>

    <section anchor="Examples" title="CRH Processing Examples">
      <t>This appendix demonstrates CRH processing in the following
      scenarios:</t>

      <t><list style="symbols">
          <t><xref target="LSR">SR path contains node segments only
          </xref>.</t>

          <t><xref target="LSRP">SR path contains node segments only and
          preserves the first SID </xref>.</t>

          <t><xref target="SSR">SR path contains adjacency segments only
          </xref>.</t>
        </list></t>

      <figure align="center" anchor="RefTopo" title="Reference Topology">
        <artwork><![CDATA[                             -----------
         2001:db8:0:2/64    |Node: I2   |   2001:db8:0:4/64
      ----------------------|Loopback:  |--------------------         
     |                  ::2 |2001:db8::2| ::1                |
     |                       -----------                     |
     | ::1                                               :: 2|
 -----------                 -----------                 -----------                    
|Node: S    |2001:db8:0:1/64|Node: I1   |2001:db8:0:3/64|Node: I3   |      
|Loopback   |---------------|Loopback:  |---------------|Loopback:  |                          
|2001:db8::a| ::1       ::2 |2001:db8::1| ::1       ::2 |2001:db8::3|               
 -----------                 -----------                 -----------                     
                                                              | ::1
                             -----------                      |
                            |Node: D    |   2001:db8:0:b/64   |
                            |Loopback:  |---------------------
                            |2001:db8::b| ::2
                             -----------
]]></artwork>
      </figure>

      <t/>

      <t><xref target="RefTopo"/> provides a reference topology that is used
      in all examples.</t>

      <texttable anchor="lsid" title="Node SIDs">
        <ttcol align="center">Instantiating Node</ttcol>

        <ttcol>SID</ttcol>

        <ttcol>Segment Type</ttcol>

        <ttcol>IPv6 Address</ttcol>

        <c>All</c>

        <c>1</c>

        <c>Node</c>

        <c>2001:db8::1</c>

        <c>All</c>

        <c>2</c>

        <c>Node</c>

        <c>2001:db8::2</c>

        <c>All</c>

        <c>3</c>

        <c>Node</c>

        <c>2001:db8::3</c>

        <c>All</c>

        <c>10</c>

        <c>Node</c>

        <c>2001:db8::a</c>

        <c>All</c>

        <c>11</c>

        <c>Node</c>

        <c>2001:db8::b</c>
      </texttable>

      <t><xref target="lsid"/> describes SFIB entries that are instantiated on
      all nodes. All of these SFIB entries represent node segments.</t>

      <texttable anchor="ssid" title="Adjacency SIDs">
        <ttcol align="center">Instantiating Node</ttcol>

        <ttcol align="center">SID</ttcol>

        <ttcol align="center">IPv6 Address</ttcol>

        <ttcol align="center">Interface</ttcol>

        <c>S</c>

        <c>129</c>

        <c>2001:db8:0:1::2</c>

        <c>S -&gt; I1</c>

        <c>S</c>

        <c>130</c>

        <c>2001:db8:0:2::2</c>

        <c>S -&gt; I2</c>

        <c>I1</c>

        <c>129</c>

        <c>2001:db8:0:3::2</c>

        <c>I1 -&gt; I3</c>

        <c>I2</c>

        <c>129</c>

        <c>2001:db8:0:4::2</c>

        <c>I2 -&gt; I3</c>

        <c>I3</c>

        <c>129</c>

        <c>2001:db8:0:b::2</c>

        <c>I3 -&gt; D</c>
      </texttable>

      <t><xref target="ssid"/> describes SFIB entries that are instantiated on
      specific nodes. All of these SFIB entries represent adjacency
      segments.</t>

      <section anchor="LSR" title="SR Path Contains Node Segments Only">
        <t>In this example, Node S sends a packet to Node D, though a node
        segment that terminates on I3. In this example, I3 does not appear in
        the CRH segment list. Therefore, the destination node may not be able
        to send return traffic through the same path.</t>

        <texttable>
          <ttcol>As the packet travels from S to I3:</ttcol>

          <ttcol/>

          <c>Source Address = 2001:db8::a</c>

          <c>Segments Left = 1</c>

          <c>Destination Address = 2001:db8::3</c>

          <c>SID[0] = 11</c>
        </texttable>

        <t/>

        <texttable>
          <ttcol>As the packet travels from I3 to D:</ttcol>

          <ttcol/>

          <c>Source Address = 2001:db8::a</c>

          <c>Segments Left = 0</c>

          <c>Destination Address = 2001:db8::b</c>

          <c>SID[0] = 11</c>
        </texttable>

        <t/>
      </section>

      <section anchor="LSRP"
               title="SR Path Contains Node Segments Only And Preserves The First SID">
        <t>In this example, Node S sends a packet to Node D, through a node
        segment that terminates on I3. In this example, I3 appears in the CRH
        segment list. Therefore, the destination node can send return traffic
        through the same path.</t>

        <texttable>
          <ttcol>As the packet travels from S to I3:</ttcol>

          <ttcol/>

          <c>Source Address = 2001:db8::a</c>

          <c>Segments Left = 1</c>

          <c>Destination Address = 2001:db8::3</c>

          <c>SID[0] = 11</c>

          <c/>

          <c>SID[1] = 3</c>
        </texttable>

        <texttable>
          <ttcol>As the packet travels from I3 to D:</ttcol>

          <ttcol/>

          <c>Source Address = 2001:db8::a</c>

          <c>Segments Left = 0</c>

          <c>Destination Address = 2001:db8::b</c>

          <c>SID[0] = 11</c>

          <c/>

          <c>SID[1] = 3</c>
        </texttable>
      </section>

      <section anchor="SSR" title="SR Path Contains Adjacency Segments Only">
        <t>In this example, Node S sends a packet to Node D, via two adjacency
        segments..</t>

        <t/>

        <texttable>
          <ttcol>As the packet travels from S to I1:</ttcol>

          <ttcol/>

          <c>Source Address = 2001:db8::a</c>

          <c>Segments Left = 2</c>

          <c>Destination Address = 2001:db8:0:1::2</c>

          <c>SID[0] = 129</c>

          <c/>

          <c>SID[1] = 129</c>
        </texttable>

        <t/>

        <texttable>
          <ttcol>As the packet travels from I1 to I3:</ttcol>

          <ttcol/>

          <c>Source Address = 2001:db8::a</c>

          <c>Segments Left = 1</c>

          <c>Destination Address = 2001:db8:0:3::2</c>

          <c>SID[0] = 129</c>

          <c/>

          <c>SID[1] = 129</c>
        </texttable>

        <texttable>
          <ttcol>As the packet travels from I3 to D:</ttcol>

          <ttcol/>

          <c>Source Address = 2001:db8::a</c>

          <c>Segments Left = 0</c>

          <c>Destination Address = 2001:db8:0:b::2</c>

          <c>SID[0] = 129</c>

          <c/>

          <c>SID[1] = 129</c>
        </texttable>
      </section>
    </section>
  </back>
</rfc>
