<?xml version="1.0" encoding="us-ascii"?>
  <?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
  <!-- generated by https://github.com/cabo/kramdown-rfc2629 version 1.3.37 -->

<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY RFC8402 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8402.xml">
<!ENTITY RFC8754 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8754.xml">
<!ENTITY RFC8986 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8986.xml">
<!ENTITY RFC2119 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC8174 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
<!ENTITY I-D.cl-spring-generalized-srv6-for-cmpr SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.cl-spring-generalized-srv6-for-cmpr.xml">
<!ENTITY I-D.filsfils-spring-net-pgm-extension-srv6-usid SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.filsfils-spring-net-pgm-extension-srv6-usid.xml">
<!ENTITY I-D.srcompdt-spring-compression-requirement SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.srcompdt-spring-compression-requirement.xml">
]>

<?rfc toc="yes"?>
<?rfc sortrefs="yes"?>
<?rfc symrefs="yes"?>

<rfc ipr="trust200902" docName="draft-filsfilscheng-spring-srv6-srh-compression-01" category="std">

  <front>
    <title abbrev="SRv6 Segment List Compression in SRH">Compressed SRv6 Segment List Encoding in SRH</title>

    <author initials="W." surname="Cheng" fullname="Weiqiang Cheng" role="editor">
      <organization>China Mobile</organization>
      <address>
        <postal>
          <street></street>
          <country>China</country>
        </postal>
        <email>chengweiqiang@chinamobile.com</email>
      </address>
    </author>
    <author initials="C." surname="Filsfils" fullname="Clarence Filsfils">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street></street>
          <country>Belgium</country>
        </postal>
        <email>cf@cisco.com</email>
      </address>
    </author>
    <author initials="Z." surname="Li" fullname="Zhenbin Li">
      <organization>Huawei Technologies</organization>
      <address>
        <postal>
          <street></street>
          <country>China</country>
        </postal>
        <email>lizhenbin@huawei.com</email>
      </address>
    </author>
    <author initials="B." surname="Decraene" fullname="Bruno Decraene">
      <organization>Orange</organization>
      <address>
        <postal>
          <street></street>
          <country>France</country>
        </postal>
        <email>bruno.decraene@orange.com</email>
      </address>
    </author>
    <author initials="D." surname="Cai" fullname="Dennis Cai">
      <organization>Alibaba</organization>
      <address>
        <postal>
          <street></street>
          <country>USA</country>
        </postal>
        <email>d.cai@alibaba-inc.com</email>
      </address>
    </author>
    <author initials="D." surname="Voyer" fullname="Daniel Voyer">
      <organization>Bell Canada</organization>
      <address>
        <postal>
          <street></street>
          <country>Canada</country>
        </postal>
        <email>daniel.voyer@bell.ca</email>
      </address>
    </author>
    <author initials="F." surname="Clad" fullname="Francois Clad" role="editor">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street></street>
          <country>France</country>
        </postal>
        <email>fclad@cisco.com</email>
      </address>
    </author>
    <author initials="S." surname="Zadok" fullname="Shay Zadok">
      <organization>Broadcom</organization>
      <address>
        <postal>
          <street></street>
          <country>Israel</country>
        </postal>
        <email>shay.zadok@broadcom.com</email>
      </address>
    </author>
    <author initials="J." surname="Guichard" fullname="James N Guichard">
      <organization>Futurewei Technologies Ltd.</organization>
      <address>
        <postal>
          <street></street>
          <country>USA</country>
        </postal>
        <email>james.n.guichard@futurewei.com</email>
      </address>
    </author>
    <author initials="L." surname="Aihua" fullname="Liu Aihua">
      <organization>ZTE Corporation</organization>
      <address>
        <postal>
          <street></street>
          <country>China</country>
        </postal>
        <email>liu.aihua@zte.com.cn</email>
      </address>
    </author>
    <author initials="R." surname="Raszuk" fullname="Robert Raszuk">
      <organization>NTT Network Innovations</organization>
      <address>
        <postal>
          <street></street>
          <country>USA</country>
        </postal>
        <email>robert@raszuk.net</email>
      </address>
    </author>
    <author initials="C." surname="Li" fullname="Cheng Li">
      <organization>Huawei Technologies</organization>
      <address>
        <postal>
          <street></street>
          <country>China</country>
        </postal>
        <email>chengli13@huawei.com</email>
      </address>
    </author>

    <date year="2021" month="July" day="08"/>

    <area>General</area>
    <workgroup>SPRING</workgroup>
    <keyword>Internet-Draft</keyword>

    <abstract>


<t>This document defines a compressed SRv6 Segment List Encoding in the Segment Routing Header (SRH). This solution does not require any SRH data plane change nor any SRv6 control plane change. This solution leverages the SRv6 Network Programming model.</t>



    </abstract>


  </front>

  <middle>


<section anchor="introduction" title="Introduction">

<t>The Segment Routing architecture is defined in <xref target="RFC8402"/>.</t>

<t>SRv6 Network Programming <xref target="RFC8986"/> defines a framework to build a network program with topological and service segments carried in a Segment Routing header (SRH) <xref target="RFC8754"/>.</t>

<t>This document adds new flavors to the SR endpoint behaviors defined in Section 4 of <xref target="RFC8986"/>. These flavors enable a compressed encoding of the SRv6 Segment-List in the SRH and therefore address the requirements described in <xref target="I-D.srcompdt-spring-compression-requirement"/>.</t>

<t>The flavors defined in this document leverage the SRH data plane without any change and do not require any SRv6 control plane change.</t>

</section>
<section anchor="terminology" title="Terminology">

<t>This document leverages the terms defined in <xref target="RFC8402"/>, <xref target="RFC8754"/> and <xref target="RFC8986"/>. The reader is assumed to be familiar with this terminology.</t>

<t>This document introduces the following new terms:</t>

<t><list style="symbols">
  <t>Compressed-SID (C-SID): A C-SID is a short encoding of a SID in SRv6 packet that does not include the SID block bits (locator block).</t>
  <t>Compressed-SID container (C-SID container): An entry of the SRH Segment-List field (128 bits) that contains a sequence of C-SIDs.</t>
  <t>Compressed-SID sequence (C-SID sequence): A group of one or more C-SID containers in a segment list that share the same SRv6 SID block.</t>
  <t>Uncompressed SID sequence: A group of one or more uncompressed SIDs in a segment list.</t>
  <t>Compressed Segment List encoding: A segment list encoding that reduces the packet header length thanks to one or more C-SID sequences. A compressed Segment List encoding may also contain any number of uncompressed SID sequences.</t>
</list></t>

<section anchor="requirements-language" 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 BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.</t>

</section>
</section>
<section anchor="basic-concepts" title="Basic Concepts">

<t>In an SRv6 domain, the SIDs are allocated from a particular IPv6 prefix: the SRv6 SID block. Therefore, all SRv6 SIDs instantiated from the same SRv6 SID block share the same most significant bits. These common bits are named Locator-Block in <xref target="RFC8986"/>. Furthermore, when the combined length of the SRv6 SID Locator, Function and Argument is smaller than 128 bits, the trailing bits are set to zero.</t>

<t>When a sequence of consecutive SIDs in a Segment List shares a common Locator-Block, a compressed SRv6 Segment-List encoding can optimize the packet header length by avoiding the repetition of the Locator-Block and trailing bits with each individual SID.</t>

<t>The compressed Segment List encoding is fully compliant with the specifications in <xref target="RFC8402"/>, <xref target="RFC8754"/> and <xref target="RFC8986"/>. Efficient encoding is achieved by combining a compressed Segment List encoding logic on the SR policy headend with new flavors of the base SRv6 endpoint behaviors that decode this compressed encoding. No SRv6 SRH data plane change nor control plane extension is required.</t>

<t>A Segment List can be encoded in the packet header using any combination of compressed and uncompressed sequences. The C-SID sequences leverage the flavors defined in this document, while the uncompressed sequences use behaviors and flavors defined in other documents, such as <xref target="RFC8986"/>. An SR Policy headend constructs and compresses the SID-list depending on the capabilities of each SR endpoint node that the packet should traverse, as well as its own compression capabilities.</t>

<t>It is expected that compressed encoding flavors be available on devices with limited packet manipulation capabilities, such as legacy ASICs.</t>

<t>The compressed Segment List encoding supports any SRv6 SID Block allocation. While other options are supported and may provide higher efficiency, each routing domain can be allocated a /48 prefix from a global IPv6 block (see <xref target="sec-c-sid-block"/>).</t>

</section>
<section anchor="sr-endpoint-flavors" title="SR Endpoint Flavors">

<t>This section defines several options to achieve compressed Segment List encoding, in the form of two new flavors for the END, END.X and END.T behaviors of <xref target="RFC8986"/>. These flavors could also be combined with behaviors defined in other documents.</t>

<t>The compressed encoding can be achieved by leveraging any of these SR endpoint flavors. The NEXT-C-SID flavor and the REPLACE-C-SID flavor expose the same high-level behavior in their use of the SID argument to determine the next segment to be processed, but they have different low-level characteristics that can make one more or less efficient that the other for a particular SRv6 deployment. The NEXT-and-REPLACE-C-SID flavor is the combination of the NEXT-C-SID flavor and the REPLACE-C-SID flavor. It provides the best efficiency in terms of encapsulation size at the cost of increased complexity.</t>

<t>It is recommended for ease of operation that a single compressed encoding flavor be used in a given SRv6 domain. However, in a multi-domain deployment, different flavors can be used in different domains.</t>

<t>All three flavors leverage the following variables:</t>

<t><list style="symbols">
  <t>Variable B is the Locator Block length of the SID.</t>
  <t>Variable NF is the sum of the Locator Node and the Function lengths of the SID. It is also referred to as C-SID length.</t>
  <t>Variable A is the Argument length of the SID.</t>
</list></t>

<section anchor="next-c-sid-flavor" title="NEXT-C-SID Flavor">

<t>A SID instantiated with the NEXT-C-SID flavor takes an argument that carries the remaining C-SIDs in the current C-SID container.</t>

<t>The length A of the argument is equal to 128-B-NF and should be a multiple of NF.</t>

<figure><artwork><![CDATA[
+----------------------------------------------------+
| Locator-Block | Locator-Node | Function | Argument |
+----------------------------------------------------+
 <----- B -----> <--------- NF ----------> <-- A --->
]]></artwork></figure>

<t>Pseudo-code:</t>

<figure><artwork><![CDATA[
 1.   If (DA.Argument != 0) {
 2.     Copy DA.Argument into the bits [B..(B+A-1)] of the
          Destination Address of the IPv6 header.
 3.     Set the bits [(B+A)..127] of the Destination Address
          of the IPv6 header to zero.
 4.   } Else {
 5.     Decrement Segments Left by 1.
 6.     Copy Segment List[Segments Left] from the SRH to the
          Destination Address of the IPv6 header.
 7.   }
]]></artwork></figure>

<t>Note: <spanx style="verb">DA.Argument</spanx> identifies the bits <spanx style="verb">[(B+NF)..127]</spanx> in the Destination Address of the IPv6 header.</t>

<t>The NEXT-C-SID flavor has been previously documented in <xref target="I-D.filsfils-spring-net-pgm-extension-srv6-usid"/> under the name "SHIFT" flavor. In that context, a C-SID and a C-SID-sequence are respectively named a Micro-Segment (uSID) and a Micro-Program.</t>

</section>
<section anchor="replace-c-sid-flavor" title="REPLACE-C-SID Flavor">

<t>A SID instantiated with the REPLACE-C-SID flavor takes an argument, which is used to determine the index of the next C-SID in the appropriate container.</t>

<t>All SIDs that are part of a C-SID sequence using the REPLACE-C-SID flavor have the same C-SID length NF.</t>

<t>The length A of the argument should be at least ceil(log_2(128/NF)).</t>

<figure><artwork><![CDATA[
+----------------------------------------------------+
| Locator-Block | Locator-Node | Function | Argument |
+----------------------------------------------------+
 <----- B -----> <--------- NF ----------> <-- A --->
]]></artwork></figure>

<t>Pseudo-code:</t>

<figure><artwork><![CDATA[
 1.   If (DA.Argument != 0) {
 2.     Decrement DA.Argument by 1.
 3.   } Else {
 4.     Decrement Segments Left by 1.
 5.     Set DA.Argument to (128/NF - 1).
 6.   }
 7.   Copy Segment List[Segments Left][DA.Argument] into the bits
        [B..B+NF-1] of the Destination Address of the IPv6 header.
]]></artwork></figure>

<t>Notes:</t>

<t><list style="symbols">
  <t><spanx style="verb">DA.Argument</spanx> identifies the bits <spanx style="verb">[(B+NF)..(B+NF+A-1)]</spanx> in the Destination Address of the IPv6 header.</t>
  <t><spanx style="verb">Segment List[Segments Left][DA.Argument]</spanx> identifies the bits <spanx style="verb">[DA.Argument*NF..(DA.Argument+1)*NF-1]</spanx> in the SRH Segment List entry at index Segments Left.</t>
</list></t>

<t>The REPLACE-C-SID flavor has been previously documented in <xref target="I-D.cl-spring-generalized-srv6-for-cmpr"/> under the name "COC(Continue of Compression)" flavor. In that context, a C-SID and a C-SID-sequence are respectively named a G-SID and G-SRv6 compression sub-path.</t>

</section>
<section anchor="combined-next-and-replace-c-sid-flavor" title="Combined NEXT-and-REPLACE-C-SID Flavor">

<t>A SID instantiated with the NEXT-and-REPLACE-C-SID flavor takes a two-parts argument comprising, Arg.Next and Arg.Index, and encoded in the SID in this order.</t>

<t>The length A_I of Arg.Index is equal to ceil(log_2(128/NF)).</t>

<t>The length A_N of Arg.Next is equal to 128-B-NF-A_I and must be a multiple of NF.</t>

<t>The total SID argument length A is the sum of A_I and A_N.</t>

<t>The NEXT-and-REPLACE-C-SID flavor also leverages an additional variable, C_DA, that is equal to (1 + (A_N/NF)) and represents the number of C-SID's that can be encoded in the IPv6 Destination Address.</t>

<t>All SIDs that are part of a C-SID sequence using the NEXT-and-REPLACE-C-SID flavor must have the same C-SID length NF. Furthermore, this NF must be a divisor of 128.</t>

<figure><artwork><![CDATA[
+----------------------------------------------------------------+
| Locator-Block | Locator-Node | Function | Arg.Next | Arg.Index |
+----------------------------------------------------------------+
 <----- B -----> <--------- NF ----------> <- A_N --> <-- A_I -->
]]></artwork></figure>

<t>Pseudo-code:</t>

<figure><artwork><![CDATA[
 1.   If (DA.Arg.Next != 0) {
 2.     Copy DA.Arg.Next into the bits [B..(B+A_N-1)] of the
          Destination Address of the IPv6 header.
 3.     Set the bits [(B+A_N)..(B+NF+A_N-1)] of the Destination Address
          of the IPv6 header to zero.
 4.   } Else If (DA.Arg.Index >= C_DA) {
 5.     Decrement DA.Arg.Index by C_DA.
 6.     Copy C_DA*NF bits from Segment List[Segments Left][DA.Arg.Index]
          into the bits [B..B+C_DA*NF-1] of the Destination Address of
          the IPv6 header.
 7.   } Else If (Segments Left != 0) {
 8.     Decrement Segments Left by 1.
 9.     Set DA.Arg.Index to ((DA.Arg.Index - C_DA) % (128/NF)).
10.     Copy C_DA*NF bits from Segment List[Segments Left][DA.Arg.Index]
          into the bits [B..B+C_DA*NF-1] of the Destination Address of
          the IPv6 header.
11.   } Else {
12.     Copy DA.Arg.Index*NF bits from Segment List[0][0] into the bits
          [B..B+DA.Arg.Index*NF-1] of the Destination Address of the
          IPv6 header.
13.     Set the bits [B+DA.Arg.Index*NF..B+NF+A_N-1] of the Destination
          Address of the IPv6 header to zero.
14.     Set DA.Arg.Index to 0.
15.   }
]]></artwork></figure>

<t>Notes:</t>

<t><list style="symbols">
  <t><spanx style="verb">DA.Arg.Next</spanx> identifies the bits <spanx style="verb">[(B+NF)..(B+NF+A_N-1)]</spanx> in the Destination Address of the IPv6 header.</t>
  <t><spanx style="verb">DA.Arg.Index</spanx> identifies the bits <spanx style="verb">[(B+NF+A_N)..(B+NF+A_N+A_I-1)]</spanx> in the Destination Address of the IPv6 header.</t>
  <t><spanx style="verb">Segment List[Segments Left][DA.Arg.Index]</spanx> identifies the bits <spanx style="verb">[DA.Arg.Index*NF..(DA.Arg.Index+1)*NF-1]</spanx> in the SRH Segment List entry at index Segments Left.</t>
</list></t>

</section>
</section>
<section anchor="gib-lib-global-c-sid-and-local-c-sid" title="GIB, LIB, global C-SID and local C-SID">

<t>GIB: The set of IDs available for global C-SID allocation.</t>

<t>LIB: The set of IDs available for local C-SID allocation.</t>

<section anchor="global-c-sid" title="Global C-SID">

<t>A C-SID from the GIB.</t>

<t>A Global C-SID typically identifies a shortest-path to a node in the SRv6 domain. An IP route is advertised by the parent node to each of its global C-SID's, under the associated C-SID block. The parent node executes a variant of the END behavior.</t>

<t>A node can have multiple global C-SID's under the same C-SID blocks (e.g. one per IGP flexible algorithm). Multiple nodes may share the same global C-SID (anycast).</t>

</section>
<section anchor="local-c-sid" title="Local C-SID">

<t>A C-SID from the LIB.</t>

<t>A local C-SID may identify a cross-connect to a direct neighbor over a specific interface or a VPN context.</t>

<t>No IP route is advertised by a parent node for its local C-SID's.</t>

<t>If N1 and N2 are two different physical nodes of the SRv6 domain and I is a local C-SID value, then N1 and N2 may bind two different behaviors to I.</t>

<t>The concept of LIB is applicable to SRv6 and specifically to its NEXT-C-SID and REPLACE-C-SID flavors. The shorter the SID/C-SID, the more benefit the LIB brings.</t>

<t>The allocation of C-SID's from the GIB and LIB depends on the C-SID length (see <xref target="sec-c-sid-lib-recommendation"/>).</t>

</section>
</section>
<section anchor="c-sid-and-block-length" title="C-SID and Block Length">

<section anchor="sec-c-sid-length" title="C-SID Length">

<t>The NEXT-C-SID flavor supports both 16- and 32-bit C-SID lengths. A C-SID length of 16-bit is recommended.</t>

<t>The REPLACE-C-SID flavor supports both 16- and 32-bit C-SID lengths. A C-SID length of 32-bit is recommended.</t>

</section>
<section anchor="sec-c-sid-block" title="Block Length">

<t>The compressed Segment List encoding supports any SRv6 SID Block allocation either from GUA or LUA space.</t>

<t>The recommended SRv6 SID block sizes for the NEXT-C-SID flavor are  16, 32 or 48 bits. The smaller the block, the higher the compression efficiency.</t>

<t>The recommended SRv6 SID block size for the REPLACE-C-SID flavor can be 48, 56, 64, 72 or 80 bits, depending on the needs of the operator.</t>

</section>
<section anchor="sec-c-sid-lib-recommendation" title="GIB/LIB Usage">

<t>The previous block and C-SID length recommendations, call for the following GIB/LIB usage:</t>

<t><list style="symbols">
  <t>NEXT-C-SID:
  <list style="symbols">
      <t>GIB: END.NEXT-C-SID</t>
      <t>LIB: END.X.NEXT-C-SID, END.DX.NEXT-C-SID, END.DT.NEXT-C-SID</t>
      <t>LIB: END.DX.NEXT-C-SID for large-scale PW support</t>
    </list></t>
  <t>REPLACE-C-SID:
  <list style="symbols">
      <t>GIB: END.REPLACE-C-SID, END.X.REPLACE-C-SID, END.DX.REPLACE-C-SID, END.DT.REPLACE-C-SID</t>
      <t>LIB: END.DX.REPLACE-C-SID for large-scale PW support</t>
    </list></t>
</list></t>

</section>
</section>
<section anchor="efficient-sid-list-encoding" title="Efficient SID-list Encoding">

<t>The compressed SID-list encoding logic is a local behavior of the SR Policy headend node and hence out of the scope of this document.</t>

</section>
<section anchor="inter-routing-domains-with-the-endxps-behavior" title="Inter Routing Domains with the End.XPS behavior">

<t>The End.XPS behavior described in this section is OPTIONAL.</t>

<t>Some SRv6 traffic may need to cross multiple routing domains, such as different Autonomous Systems (ASes) or different routing areas. Different routing domains may use different addressing schema and SRv6 SID blocks.</t>

<t>This section defines an optional solution and SID behavior allowing for the use of different SRv6 SID blocks between routing domains.</t>

<t>The solution requires a new SID behavior, called "Endpoint with cross-connect to an array of layer-3 adjacencies and SRv6 Prefix Swap" (End.XPS for short) allowing for this transition of SRv6 SID block between two routing domains.</t>

<t>End.XPS is a variant of End.X, performing both "End.X Layer-3 Cross-Connect" and the translation of the SRv6 SID block between the two routing domains.</t>

<t>The processing takes as an additional parameter the prefix B2/m corresponding the SRv6 SID block in the second domain. This parameter is a property of the (received) SID and is given as a result of the lookup on the IPv6 destination address which identifies the SRv6 SID and its properties.</t>

<t>The End.XPS behavior is compatible with the NEXT-C-SID, REPLACE-C-SID, and NEXT-and-REPLACE-C-SID flavors described in this document.</t>

<t>When a router R receives a packet whose IPv6 DA matches a local End.XPS SID with the NEXT-C-SID flavor, that is associated with a set J of one or more Layer-3 adjacencies and the SRv6 SID block B2/m of the neighbor routing domain, R processes the packet as follows.</t>

<figure><artwork><![CDATA[
 1.   If (DA.Argument != 0) {
 2.     Write B2 into the most significant bits of the Destination
          Address of the IPv6 header.
 3.     Write DA.Argument into the bits [m..(m+A-1)] of the
          Destination Address of the IPv6 header.
 4.     Set the bits [(m+A)..127] of the Destination Address
          of the IPv6 header to zero.
 5.   } Else {
 6.     Decrement Segments Left by 1.
 7.     Copy Segment List[Segments Left] from the SRH to the
          Destination Address of the IPv6 header.
 8.   }
 9.   Submit the packet to the IPv6 module for transmission to the
        new destination via a member of J.
]]></artwork></figure>

<t>When a router R receives a packet whose IPv6 DA matches a local End.XPS SID with the REPLACE-C-SID flavor, that is associated with a set J of one or more Layer-3 adjacencies and the SRv6 SID block B2/m of the neighbor routing domain, R processes the packet as follows.</t>

<figure><artwork><![CDATA[
 1.   If (DA.Argument != 0) {
 2.     Decrement DA.Argument by 1.
 3.   } Else {
 4.     Decrement Segments Left by 1.
 5.     Set DA.Argument to (128/NF - 1).
 6.   }
 7.   Write B2 into the most significant bits of the Destination
        Address of the IPv6 header.
 8.   Write Segment List[Segments Left][DA.Argument] into the bits
        [m..m+NF-1] of the Destination Address of the IPv6 header.
 9.   Write DA.Argument into the bits [m+NF..m+NF+A-1] of the
        Destination Address of the IPv6 header.
10.   Set the bits [(m+NF+A)..127] of the Destination Address
        of the IPv6 header to zero.
11.   Submit the packet to the IPv6 module for transmission to the
        new destination via a member of J.
]]></artwork></figure>

<t>Note: the way the SRv6 SID Block B2 of the next routing domain is known is out of scope of this document. As examples, it could be learnt via configuration, or using a signaling protocol either with the peer domain or with a central controller (e.g. PCE).</t>

<t>When End.XPS SID behavior is used, the restriction on the C-SID length for the REPLACE-C-SID and the NEXT-and-REPLACE-C-SID flavors is relaxed and becomes: all SID the are part of a C-SID sequence <spanx style="strong">within a domain</spanx> MUST have the same SID length NF.</t>

</section>
<section anchor="control-plane" title="Control Plane">

<t>This document does not require any control plane modification.</t>

</section>
<section anchor="illustrations" title="Illustrations">

<t>Illustrations will be provided in a separate document.</t>

</section>
<section anchor="interoperability-status" title="Interoperability Status">

<t>In November 2020, China Mobile successfully validated multiple interoperable implementations of the NEXT-C-SID and REPLACE-C-SID flavors defined in this document.</t>

<t>This testing covered two different implementations of the SRv6 endpoint flavors defined in this document:</t>

<t><list style="symbols">
  <t>Hardware implementation in Cisco ASR 9000 running IOS XR</t>
  <t>Software implementation in Cisco IOS XRv9000 virtual appliance</t>
  <t>Hardware implementation in Huawei NE40E and NE5000E running VRP</t>
</list></t>

<t>The interoperability was validated for the following scenario:</t>

<t><list style="symbols">
  <t>Packet forwarding through a traffic engineering segment list combining, in the same SRH (<xref target="RFC8754"/>), SRv6 SIDs bound to an endpoint behavior with the NEXT-C-SID flavor and SRv6 SIDs bound to an endpoint behavior with the REPLACE-C-SID flavor.</t>
</list></t>

<t>Further interoperability testing is ongoing and will be reported in this document as the work progresses.</t>

</section>
<section anchor="security-considerations" title="Security Considerations">

<t>TBD</t>

</section>
<section anchor="acknowledgements" title="Acknowledgements">

<t>The authors would like to thank Kamran Raza, Xing Jiang, YuanChao Su, Han Li and Yisong Liu.</t>

</section>


  </middle>

  <back>

    <references title='Normative References'>

&RFC8402;
&RFC8754;
&RFC8986;
&RFC2119;
&RFC8174;


    </references>

    <references title='Informative References'>

&I-D.cl-spring-generalized-srv6-for-cmpr;
&I-D.filsfils-spring-net-pgm-extension-srv6-usid;
&I-D.srcompdt-spring-compression-requirement;


    </references>



  </back>

<!-- ##markdown-source:
H4sIABYG52AAA+1ce3MbN5L/n58C69RVJJszERX5EdXtlqmXrawsayU5dpJy
JeAMSGI1HHCBGcly4nz27W4AM8CQ1MNJtu6uLrVrkTMAutHo/nU30GCSJL1K
VoXYZrtqNtfCGJGzs9PLJ+xMTGairNiRNBXbLzOVy3LCZAlvX/b4aKTF5faS
ln4YqUrfOFdZyWdAItd8XCVjWRj8fzYV5SQxcy3xj758Av9Mk6ztn2wMejmv
xHYvg38nSl9vM1PlvZ6c621W6dpUmxsb32xs9rgWfJu9EKXQvOhdKX0x0aqe
A38np4fHL3oX4hoe5tvssKyELkWV7CErvZ6d1TarTcJNJmVvLrfZj5XK+swo
XWkxNvDpeoYf3vd6vK6mSm/3WNJjMDuzzd6mbBfnAd/tHN8K+S/JQVL+sdIT
XsqPvIIZgZSnsuTslRrJQsBLrVD0IpeV0vBVzLgsthlJ5soN9DzDLjPqkYJ0
oFmm6rJCadBoATe7KTtw0m0Y2i1AOmUmwjcdnqTJFDu7NpWYwXQPyywNeBk/
z/B9l/SOKCayngXEf0hBAxqyP8AcRqAA9Cim97LmMDl2LrJpqQo1kcK09Ar5
0fZ8PqVmt015J2V7ItMc1r6hvaPrUoWPY/qvNYhVtCRH2DzNXfPnil536R7A
00wEhPdg5Xk73z1RltK4RzG9YSFHfMRbgnmacfmc28eJBHl3iL05G8aUvlPX
Qre0YHBRNA9jarAwBbBR8jykSD3SS+zxfAQtgINIqq59Q/MgRcXJG5I0fYUT
tE/vokHLlXucwQjLdWpBxmcp+4Hn6qJh42zKr5tHnXlrxXM7oKNkoHH6ERs/
H7mXXYqHBta8CCh+m7IXtcymXLdz/xb+New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