<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [

<!ENTITY RFC2119 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC4291 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4291.xml">
<!ENTITY RFC6052 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6052.xml">
<!ENTITY RFC6169 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6169.xml">
<!ENTITY RFC7343 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7343.xml">
<!ENTITY RFC8402 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8402.xml">
<!ENTITY RFC8499 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8499.xml">
<!ENTITY RFC8174 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
<!ENTITY RFC8754 SYSTEM "http://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8754.xml">
<!ENTITY RFC8986 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.8986.xml">
<!ENTITY I-D.ietf-spring-compression-analysis SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.draft-ietf-spring-compression-analysis-03.xml">
<!ENTITY RFC8986 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.8986.xml">
]>

<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<rfc category="info" docName="draft-ietf-6man-sids-06" ipr="trust200902">

  <front>

    <title abbrev="SRv6 SIDs">SRv6 Segment Identifiers in the IPv6 Addressing Architecture</title>

    <author fullname="Suresh Krishnan" initials="S." 
            surname="Krishnan">
      <organization>Cisco</organization>

      <address>
        <postal>
          <street></street>

          <city></city>

          <region></region>

          <code></code>

          <country></country>
        </postal>

        <email>suresh.krishnan@gmail.com</email>

      </address>
    </author>

    <date/>

    <area>Internet</area>

    <workgroup>6man</workgroup>

    <abstract>
      <t>The data plane for Segment Routing over IPv6 (SRv6) is built using IPv6 as the underlying forwarding plane. 
      Due to this underlying use of IPv6, Segment Identifiers (SIDs) used by SRv6 can resemble IPv6 addresses and behave like them 
      while exhibiting slightly different behaviors in some situations. This document explores the characteristics of SRv6 SIDs 
      and focuses on the relationship of SRv6 SIDs to the IPv6 Addressing Architecture. This document allocates and makes a dedicated prefix available for SRv6 SIDs.
      </t>
    </abstract>
  </front>

  <middle>

    <section title="Introduction">

      <t>
      Segment Routing over IPv6 (SRv6) <xref target="RFC8754"/> uses IPv6 as the underlying data plane. In SRv6, SR source nodes initiate packets with a segment identifier in the Destination Address of the IPv6 header, and SR segment endpoint nodes process a local segment present in the Destination Address of an IPv6 header. Thus Segment Identifiers (SIDs) in SRv6 can and do appear in the Destination Address of IPv6 datagrams by design. This document explores the characteristics of SRv6 SIDs and focuses on the relationship of SRv6 SIDs to the IPv6 Addressing Architecture <xref target="RFC4291"/>. This document allocates and makes a dedicated prefix available for SRv6 SIDs.
      </t>
    </section>

    <section title="Terminology">
    <t>The following terms are used as defined in <xref target="RFC8402"/>. 
      <list style="symbols">
        <t>Segment Routing (SR)</t>
        <t>SR Domain</t>
        <t>Segment</t>
        <t>Segment Identifier (SID)</t>
        <t>SRv6</t>
        <t>SRv6 SID</t>
      </list>
    </t>
    <t>The following terms are used as defined in <xref target="RFC8754"/>. 
      <list style="symbols">
        <t>Segment Routing Header (SRH)</t>
        <t>SR Source Node</t>
        <t>Transit Node</t>
        <t>SR Segment Endpoint Node</t>
      </list>
    </t>
    <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 title="SRv6 SIDs and the IPv6 Addressing Architecture">

      <t>
      <xref target="RFC8754"/> defines the Segment List of the SRH as a contiguous array of 128-bit IPv6 addresses, and that each of the elements in this list are SIDs. But all of these elements are not necessarily made equal. Some of these elements may represent a local interface as described in Section 4.3 of <xref target="RFC8754"/> as "A FIB entry that represents a local interface, not locally instantiated as an SRv6 SID". From this it follows that not all the SIDs that appear in the SRH are SRv6 SIDs as defined by <xref target="RFC8402"/>. 
      </t>

      <t>
   As stated above, the non-SRv6-SID elements that appear in
   the SRH SID list are simply IPv6 addresses assigned to local
   interfaces and they need to conform to <xref target="RFC4291"/>. So, the following discussions are applicable solely to SRv6 SIDs that are not assigned to local interfaces.
      </t>

      <t>
      One of the key questions to address is how these SRv6 SIDs appearing as IPv6 Destination Addresses are perceived and treated by "transit nodes" (that are not required to be capable of processing a Segment or the Segment Routing Header). 
      </t>
      <t>
      Section 3.1. of <xref target="RFC8986"/> describes the format of an SRv6 SID as composed of three parts LOC:FUNCT:ARG, where a locator (LOC) is encoded in the L most significant bits of the SID, followed by F bits of function (FUNCT) and A bits of arguments (ARG). If L+F+A &lt; 128,
      the ARG is followed by enough zero bits to fill the 128 bit SID. Such an SRv6 SID is assigned to a node within a prefix defined as a Locator of length L. When an SRv6 SID occurs in the IPv6 Destination Address of an IPv6 header, only the longest match prefix corresponding to the Locator <xref target="BCP198"/> is used by the transit node to forward the packet to the node identified by the Locator.   
      </t>
      <t>
      It is clear that this format for SRv6 SIDs is not compliant with the requirements set forth in <xref target="RFC4291"/> for IPv6 addresses but it is also clear that SRv6 SIDs are not intended for assignment onto interfaces on end hosts. They look and act similarly to other mechanisms that use IPv6 addresses with different formats such as <xref target="RFC6052"/> that defines the IPv6 Addressing of IPv4/IPv6 Translators and <xref target="RFC7343"/> that describes ORCHIDv2 (a cryptographic hash identifier format). 
      </t>

      <t>
        While looking at the transit nodes it becomes apparent that these
        addresses are used purely for forwarding and not
        for packet delivery to end hosts.
        Hence the relevant specification to apply here is <xref target="BCP198"/> that requires implementations to support the use of variable 
        length prefixes in forwarding while explicitly decoupling IPv6 routing and forwarding from the IPv6 address/prefix semantics described in <xref target="RFC4291"/>. Please note that <xref target="BCP198"/> does not override the rules in <xref target="RFC4291"/>, but merely limits where their impact is observed.
      </t>

      <t>
      Furthermore, in the SRv6 specifications, all SIDs assigned within a given Locator prefix are located inside the node identified by Locator.  Therefore there does not appear to be a conflict with section 2.6.1 of <xref target="RFC4291"/> since subnet-router anycast addresses are neither required nor useful within a node.
      </t>

    </section>

    <section title="Special Considerations for Compressed SIDs">

      <t>
      <xref target="CSID"/> introduces an encoding for
  compressed segment lists (C-SIDs), and describes how to use a single entry in the Segment list as a container for multiple SIDs. A node taking part in this mechanism accomplishes this by using the ARG part <xref target="RFC8986"/> of the Destination Address of the IPv6 header to derive a new Destination Address. i.e., the Destination Address field of the packet changes at a segment endpoint in a way similar to how the address changes as the result of processing a segment in the SRH. 
      </t>
      <t>
      One key thing to note here is that the Locator Block at the beginning of the address does not get modified by the operations needed for supporting compressed SIDs. As we have established that the SRv6 SIDs are being treated simply as routing prefixes on transit nodes within the SR domain this does not constitute a modification to the IPv6 data plane on such transit nodes and any changes are restricted to SR aware nodes.
      </t>

    </section>

    <section title="Allocation of a Global Unicast Prefix for SIDs">

      <t>All of the SRv6 related specifications discussed above are intended to be applicable to a contained SR Domain or between collaborating SR Domains. Nodes either inside or outside the SR Domains that are not SR-aware
will not perform any special behavior for SRv6 SIDs and will treat
them solely as IPv6 routing prefixes.  
      </t>

      <t>
      As an added factor of security, it is desirable to allocate some address space that explicitly signals that the addresses within that space cannot be expected to comply with <xref target="RFC4291"/>. As described in Section 3 above, there is precedent for mechanisms that use IPv6 addresses in a manner different from that specified in <xref target="RFC4291"/>. This would be useful in identifying and potentially filtering packets at the edges of the SR Domains to make it simpler for the SR domain to fail closed.
      </t>

      <t>
      At the present time, global DNS <xref target="RFC8499"/> SHOULD NOT reference addresses assigned from this block. Further specifications are needed to describe the conventions and guidelines for the use of this newly allocated address block. The SRv6 operational community, which is the first intended user of this block, is requested to come up with such conventions and guidelines in line with their requirements. 
      </t>
      
    </section>

    <section title="IANA Considerations">
      <t>IANA is requested to assign the following /16 address block from the IPv6 Unicast Address Registry <xref target="UNICAST"/> for the purposes described in Section 5 and record the allocation in the IPv6 Special-Purpose Address Registry <xref target="SPECIAL"/>.
 
    </t>
    <t>
    Address Block:  5f00::/16
    <br/>Name: Segment Routing (SRv6) SIDs
    <br/>RFC: This document
    <br/>Allocation Date: Allocation Date
    <br/>Termination Date: N/A
    <br/>Source: True
    <br/>Destination: True
    <br/>Forwardable: True
    <br/>Globally Reachable: False
    <br/>Reserved-by-Protocol: False
    </t>
    </section>

    <section title="Security Considerations">
      <t>The security considerations for the use of Segment Routing <xref target="RFC8402"/>, SRv6 <xref target="RFC8754"/>, and SRv6 network programming <xref target="RFC8986"/> 
      apply to the use of these addresses. The use of IPv6 tunneling mechanisms (including SRv6) also 
      brings up additional concerns such as those described in <xref target="RFC6169"/>. The usage of the prefix allocated by this document improves security by making it simpler to filter traffic at the edge of the SR domains.
      </t>
      <t>
      In case the deployments do not use this allocated prefix, additional care needs to be exercised at network ingress and egress points so that SRv6 packets do not leak out of SR domains and they do not accidentally enter SR unaware domains. Similarly, as stated in Section 5.1 of <xref target="RFC8754"/>, the SR domain needs to be configured to filter out  packets entering that use the selected prefix.
      </t>

    </section>

    <section title="Acknowledgments">

      <t>The author would like to extend a special note of thanks to Brian Carpenter and Erik Kline for their precisely summarized thoughts 
      on this topic that provided the seed of this draft. The author would also like to thank Andrew Alston, Fred Baker, Ron Bonica, Nick Buraglio, Bruno Decraene, Dhruv Dhody, Darren Dukes, Linda Dunbar, Reese Enghardt, Adrian Farrel, Clarence Filsfils, Jim Guichard, Joel Halpern, Ted Hardie, Bob Hinden, Murray Kucherawy, Cheng Li, Acee Lindem, Jen Linkova, Gyan Mishra, Yingzhen Qu, Robert Raszuk, Alvaro Retana, Michael Richardson, John Scudder, Petr Spacek, Mark Smith, Dirk Steinberg, Ole Troan, Eduard Vasilenko, Eric Vyncke, Rob Wilton, Jingrong Xie, Chongfeng Xie and Juan Carlos Zuniga for their ideas and comments to improve this document. 
      </t>

    </section>


  </middle>

  <back>

    <references title="Normative References">
      &RFC2119;
      &RFC4291;
      <reference anchor="BCP198" target="https://www.rfc-editor.org/info/rfc7608">
        <front>
        <title>IPv6 Prefix Length Recommendation for Forwarding</title>
        <author fullname="M. Boucadair" initials="M." surname="Boucadair"/>
        <author fullname="A. Petrescu" initials="A." surname="Petrescu"/>
        <author fullname="F. Baker" initials="F." surname="Baker"/>
        <date month="July" year="2015"/>
        <abstract>
        <t>
        IPv6 prefix length, as in IPv4, is a parameter conveyed and used in IPv6 routing and forwarding processes in accordance with the Classless Inter-domain Routing (CIDR) architecture. The length of an IPv6 prefix may be any number from zero to 128, although subnets using stateless address autoconfiguration (SLAAC) for address allocation conventionally use a /64 prefix. Hardware and software implementations of routing and forwarding should therefore impose no rules on prefix length, but implement longest-match-first on prefixes of any valid length.
        </t>
        </abstract>
        </front>
        <seriesInfo name="BCP" value="198"/>
        <seriesInfo name="RFC" value="7608"/>
        <seriesInfo name="DOI" value="10.17487/RFC7608"/>
      </reference>
      &RFC8402;
      &RFC8174;
      &RFC8754;
      &RFC8986;
    </references>

    <references title="Informative References">
      &RFC6052;
      &RFC6169;
      &RFC7343;
      <reference anchor="CSID" target="https://www.ietf.org/archive/id/draft-ietf-spring-srv6-srh-compression-09.txt">
        <front>
            <title>Compressed SRv6 Segment List Encoding in SRH</title>
            <author fullname="Weiqiang Cheng" initials="W." surname="Cheng">
            <organization>China Mobile</organization>
            </author>
            <author fullname="Clarence Filsfils" initials="C." surname="Filsfils">
            <organization>Cisco Systems</organization>
            </author>
            <author fullname="Zhenbin Li" initials="Z." surname="Li">
            <organization>Huawei Technologies</organization>
            </author>
            <author fullname="Bruno Decraene" initials="B." surname="Decraene">
            <organization>Orange</organization>
            </author>
            <author fullname="Francois Clad" initials="F." surname="Clad">
            <organization>Cisco Systems</organization>
            </author>
            <date day="23" month="October" year="2023"/>
            <abstract>
            <t>
            This document specifies new flavors for the Segment Routing (SR) segment endpoint behaviors defined in RFC 8986, which enable the compression of an SRv6 segment list. Such compression significantly reduces the size of the SRv6 encapsulation needed to steer packets over long segment lists.
            </t>
            </abstract>
        </front>
        <seriesInfo name="Internet-Draft" value="draft-ietf-spring-srv6-srh-compression-09"/>
        </reference>
      &I-D.ietf-spring-compression-analysis;
      <reference anchor="UNICAST" target="https://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.xhtml">
      <front>
        <title>IPv6 Global Unicast Address Assignments</title>
        <author fullname="IANA"/>
      </front>
      </reference>
      <reference anchor="SPECIAL" target="https://www.iana.org/assignments/iana-ipv6-special-registry/">
      <front>
        <title>IANA IPv6 Special-Purpose Address Registry</title>
        <author fullname="IANA"/>
      </front>
      </reference>
      &RFC8499;
   </references>

    
  </back>
</rfc>
