<?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-ietf-lsr-isis-srv6-extensions-19"
     ipr="trust200902" updates="7370">
  <front>
    <title abbrev="ISIS Srv6 Extensions">IS-IS Extensions to
    Support Segment Routing over IPv6 Dataplane</title>

    <author fullname="Peter Psenak" initials="P" role="editor"
            surname="Psenak">
      <organization>Cisco Systems</organization>

      <address>
        <postal>
          <street>Pribinova Street 10</street>

          <city>Bratislava 81109</city>

          <region/>

          <code/>

          <country>Slovakia</country>
        </postal>

        <phone/>

        <facsimile/>

        <email>ppsenak@cisco.com</email>

        <uri/>
      </address>
    </author>

    <author fullname="Clarence Filsfils" initials="C" surname="Filsfils">
      <organization>Cisco Systems</organization>

      <address>
        <postal>
          <street/>

          <city>Brussels</city>

          <code/>

          <region/>

          <country>Belgium</country>
        </postal>

        <email>cfilsfil@cisco.com</email>
      </address>
    </author>

    <author fullname="Ahmed Bashandy" initials="A" surname="Bashandy">
      <organization>Cisco Systems</organization>

      <address>
        <postal>
          <street/>
          
          <city>Milpitas</city>
          <country>USA</country>
        </postal>

        <email>bashandy@cisco.com</email>
      </address>
    </author>

    <author fullname="Bruno Decraene" initials="B" surname="Decraene">
      <organization>Orange</organization>

      <address>
        <postal>
          <street/>

          <city>Issy-les-Moulineaux</city>

          <code/>

          <region/>

          <country>France</country>
        </postal>

        <email>bruno.decraene@orange.com</email>
      </address>
    </author>

    <author fullname="Zhibo Hu" initials="Z" surname="Hu">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street/>

          <city/>

          <code/>

          <region/>

          <country/>
        </postal>

        <email>huzhibo@huawei.com</email>
      </address>
    </author>

    <date year=""/>

    <area>Routing Area</area>

    <workgroup>Networking Working Group</workgroup>

    <keyword/>

    <abstract>
      <t>The Segment Routing (SR) architecture allows flexible definition of the end-to-end
      path by encoding it as a sequence of topological elements called
      "segments". It can be implemented over the MPLS or the IPv6 data plane. 
      This document describes the IS-IS extensions required to support Segment Routing 
      over the IPv6 data plane.</t>
      
      <t>This document updates RFC 7370 by modifying an existing registry.</t>
    </abstract>

    <note 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
      [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as
      shown here.</t>
    </note>
  </front>

  <middle>
    <section title="Introduction">
      <t>With Segment Routing (SR) <xref target="RFC8402"/>, a node steers a packet
      through an ordered list of instructions, called segments.</t>

      <t>Segments are identified through Segment Identifiers (SIDs).</t>

      <t>Segment Routing can be directly instantiated on the IPv6 data plane
      through the use of the Segment Routing Header defined in <xref target="RFC8754"/>. 
      SRv6 refers to this SR instantiation on the IPv6 dataplane.</t>

      <t>The network programming paradigm <xref
      target="RFC8986"/> is central to
      SRv6. It describes how any behavior can be bound to a SID and how any
      network program can be expressed as a combination of SIDs.</t>

      <t>This document specifies IS-IS extensions that allow the IS-IS
      protocol to encode some of these SIDs and their behaviors.</t>

      <t>Familiarity with the network programming paradigm <xref
      target="RFC8986"/> is necessary to
      understand the extensions specified in this document.</t>
      
      <t>The new SRv6 Locator top level TLV announces SRv6 locators - a form of
      summary address for the set of topology/algorithm-specific SIDs
      instantiated at the node.</t>

      <t>The SRv6 Capabilities sub-TLV announces the ability to support SRv6.</t>
      
      <t>Several new sub-TLVs are defined to advertise various SRv6 Maximum SID Depths.</t>

      <t>The SRv6 End SID sub-TLV, the SRv6 End.X SID sub-TLV, and the SRv6
      LAN End.X SID sub-TLV are used to advertise which SIDs are instantiated
      at a node and what Endpoint behavior is bound to each instantiated
      SID.</t>
      
      <t>This document updates <xref target="RFC7370"/> by modifying an existing registry
      (<xref target="REVISEDREG"/>).</t>
      
    </section>

    <section anchor="SRV6CAP" title="SRv6 Capabilities sub-TLV">
      <t>A node indicates that it supports the SR Segment Endpoint Node functionality
       as specified in <xref target="RFC8754"/> by advertising a new SRv6 Capabilities 
       sub-TLV of the router capabilities TLV [RFC7981].</t>

      <t>The SRv6 Capabilities sub-TLV may contain optional sub-sub-TLVs. No
      sub-sub-TLVs are currently defined.</t>

      <t>The SRv6 Capabilities sub-TLV has the following format:</t>

      <t><figure>
          <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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type        |     Length    |            Flags              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   optional sub-sub-TLVs...
 
     Type: 25. Single octet as defined in section 9 of [ISO10589].

     Length: Single octet as defined in section 9 of [ISO10589]. The length value is 
     2 + length of sub-sub-TLVs.

     Flags: 2 octets  The following flags are defined:

      0                   1
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      | |O|       Reserved            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      where:
 
        O-flag: If set, the router supports use of the O-bit 
        in the Segment Routing Header (SRH) as defined in 
        [I-D.ietf-6man-spring-srv6-oam].
        
        The remaining bits, including bit 0, are reserved for future use. They MUST be
        set to zero on transmission and MUST be ignored on receipt.

]]></artwork>
        </figure></t>
    </section>
    
    <section title="Advertising Supported Algorithms">
    
    <t>An SRv6 capable router indicates supported algorithm(s) by advertising the
       Segment Routing Algorithm sub-TLV as defined in <xref target="RFC8667"/>.</t>
    
    </section>

    <section title="Advertising Maximum SRv6 SID Depths">
      <t><xref target="RFC8491"/> defines the means
      to advertise node/link specific values for Maximum SID Depths (MSD) of
      various types. Node MSDs are advertised in a sub-TLV of the Router
      Capabilities TLV <xref target="RFC7981"/>. Link MSDs are advertised in a
      sub-TLV of TLVs 22, 23, 25, 141, 222, and 223.</t>

      <t>This document defines the relevant SRv6 MSDs and requests MSD type
      assignments in the MSD Types registry created by <xref target="RFC8491"/>.</t>

      <section anchor="MAXSEGLEFT" title="Maximum Segments Left MSD Type">
        <t>The Maximum Segments Left MSD Type signals the maximum value of
        the "Segments Left" field <xref target="RFC8754"/>
        in the SRH of a received packet before applying the Endpoint behavior
        associated with a SID.</t>
	
        <t><figure>
            <artwork><![CDATA[   SRH Max Segments Left Type: 41

   If no value is advertised, the supported value is 0.
   ]]></artwork>
          </figure></t>
      </section>

      <section anchor="MAXSENDPOP" title="Maximum End Pop MSD Type">
        <t>The Maximum End Pop MSD Type signals the maximum number of SIDs
        in the SRH to which the router can apply "Penultimate Segment Pop of the SRH" or
        "Ultimate Segment Pop of the SRH" behavior, as defined in <xref target="RFC8986"/> 
        flavors.</t>
        
        <t><figure>
            <artwork><![CDATA[   SRH Max End Pop Type: 42

   If the advertised value is zero or no value is advertised, 
   then the router cannot apply PSP or USP flavors.
   ]]></artwork>
          </figure></t>
      </section>

      <section anchor="MAXHENCAP" title="Maximum H.Encaps MSD Type">
               
        
        <t>The Maximum H.Encaps MSD Type signals the maximum number of SIDs that
        can be added to the Segment List of an SRH as part of the "H.Encaps" 
        behavior as defined in <xref target="RFC8986"/>.</t>

        <t><figure>
            <artwork><![CDATA[   SRH Max H.encaps Type: 44
   
   If the advertised value is zero or no value is advertised, then the
   headend can apply an SR Policy that only contains one segment, without 
   inserting any SRH header.
   
   A non-zero SRH Max H.encaps MSD indicates that the headend can insert
   an SRH up to the advertised number of SIDs.   
   
   ]]></artwork>
          </figure></t>
      </section>

      <section anchor="MAXENDD" title="Maximum End D MSD Type">
        
        <t>The Maximum End D MSD Type specifies the maximum number of SIDs present 
        in an SRH when performing decapsulation. As specified in <xref target="RFC8986"/>
        the permitted SID types include, but are not limited to End.DX6, End.DT4, 
        End.DT46, End with USD, End.X with USD.</t>

        <t><figure>
            <artwork><![CDATA[   SRH Max End D Type: 45
     
   If the advertised value is zero or no value is advertised 
   then the router cannot apply any behavior that results in 
   decapsulation and forwarding of the inner packet if the 
   outer IPv6 header contains an SRH.
   ]]></artwork>
          </figure></t>
      </section>
    </section>

    <section title="SRv6 SIDs and Reachability">
      <t>As discussed in <xref
      target="RFC8986"/>, an SRv6 Segment
      Identifier (SID) is 128 bits and consists of Locator,	Function and Argument parts.</t>

      <t>A node is provisioned with topology/algorithm specific locators for
      each of the topology/algorithm pairs supported by that node. Each
      locator is a covering prefix for all SIDs provisioned on that node which
      have the matching topology/algorithm.</t>

      <t>Locators MUST be advertised in the SRv6 Locator TLV (see <xref target="LOCTLV"/>). 
      Forwarding entries for the locators advertised in the SRv6 Locator
      TLV MUST be installed in the forwarding plane of receiving SRv6 capable
      routers when the associated topology/algorithm is supported by the
      receiving node. The processing of the prefix advertised in the SRv6 Locator TLV,
      the calculation of its reachability and the installation in the forwarding plane
      follows the process defined for the Prefix Reachability TLV 236 
      <xref target="RFC5308"/>, or TLV 237 <xref target="RFC5120"/>.</t>
      
      <t>Locators associated with algorithm 0 and 1 (for all supported topologies)
      SHOULD be advertised in a Prefix Reachability TLV (236 or 237) so that
      legacy routers (i.e., routers which do not support SRv6) will install a
      forwarding entry for algorithm 0 and 1 SRv6 traffic.</t>

      <t>In cases where the same prefix, with the same prefix-length, Multi Topology ID 
      (MT ID),  and algorithm is received in both a Prefix Reachability TLV and an SRv6
      Locator TLV, the Prefix Reachability advertisement MUST be preferred when installing 
      entries in the forwarding plane. This is to prevent inconsistent forwarding entries 
      between SRv6 capable and SRv6 incapable routers. Such preference of Prefix Reachability 
      advertisement does not have any impact on the rest of the data advertised in the 
      SRv6 Locator TLV.</t>

      <t>Locators associated with Flexible Algorithms (see Section 4 of 
      <xref target="I-D.ietf-lsr-flex-algo"/>) SHOULD NOT be advertised 
      in Prefix Reachability TLVs (236 or 237). Advertising the Flexible 
      Algorithm locator in regular Prefix Reachability TLV (236 or 237) would make 
      the forwarding for it to follow algo 0 path.</t>

      <t>SRv6 SIDs are advertised as sub-TLVs in the SRv6 Locator TLV except
      for SRv6 SIDs which are associated with a specific
      Neighbor/Link and are therefore advertised as sub-TLVs in TLVs 22, 23,
      25, 141, 222, and 223.</t>

      <t>SRv6 SIDs received from other nodes are not directly routable and MUST NOT 
      be installed in the forwarding plane. Reachability to SRv6 SIDs depends upon the existence
      of a covering locator.</t>

      <t>Adherence to the rules defined in this section will assure that SRv6
      SIDs associated with a supported topology/algorithm pair will be
      forwarded correctly, while SRv6 SIDs associated with an unsupported
      topology/algorithm pair will be dropped. NOTE: The drop behavior depends
      on the absence of a default/summary route covering a given locator.</t>

      <t>In order for forwarding to work correctly, the locator associated
      with SRv6 SID advertisements must be the longest match prefix installed
      in the forwarding plane for those SIDs. In order to ensure correct forwarding, 
      network operators should take steps to make sure that this requirement is not 
      compromised. For example, the following situations should be avoided:</t>

      <t><list style="symbols">
          <t>Another locator associated with a different topology/algorithm is
          the longest match</t>

          <t>Another prefix advertisement (i.e., from TLV 236 or 237) is the longest
          match</t>
        </list></t>
    </section>
    
    
    <section anchor="ANYCASTFLAG" title="Advertising Anycast Property">
      
      <t>Both prefixes and SRv6 Locators may be configured as anycast and as such the 
      same value can be advertised by multiple routers.  It is useful for other routers 
      to know that the	advertisement is for an anycast identifier.</t>
      
      <t>A new flag in Prefix Attribute Flags Sub-TLV <xref target="RFC7794"/> is defined to
      advertise the anycast property:</t>
       
       <t><figure>
		<artwork>
       Bit #: 4 
       Name: Anycast Flag (A-flag)
      
       When the prefix/SRv6 locator is configured as anycast, the A-flag
       SHOULD be set. Otherwise, this flag MUST be clear.	

       </artwork>
	  </figure></t>
	  
	  <t>The A-flag MUST be preserved when the advertisement is leaked between levels.</t>

      <t>The A-flag and the N-flag MUST NOT both be set. If both N-flag and A-flag are 
      set in the prefix/SRv6 Locator advertisement, the receiving routers MUST ignore 
      the N-flag.</t>
       
      <t>The same prefix/SRv6 Locator can be advertised by multiple routers. If at least 
      one of them sets the A-Flag in its advertisement, the prefix/SRv6 Locator SHOULD be 
      considered as anycast.</t>
            
      <t>A prefix/SRv6 Locator that is advertised by a single node and without
      an A-Flag is considered node specific.</t>
      
      <t>All the nodes advertising the same anycast locator MUST instantiate the 
      exact same set of SIDs under that anycast locator. Failure to do so may result in 
      traffic being black-holed or mis-routed.</t>
      
      <t>The Prefix Attribute Flags Sub-TLV can be carried in the SRv6 
      Locator TLV as well as the Prefix Reachability TLVs. When a router originates
      both the Prefix Reachability TLV and the SRv6 Locator TLV for a given
      prefix, and the router is originating the Prefix Attribute Flags Sub-TLV
      in one of the TLVs, the router SHOULD advertise the same flags in the
      Prefix Attribute Flags Sub-TLV in both TLVs. However, unlike TLVs 236 
      <xref target="RFC5308"/> and 237 <xref target="RFC5120"/> the 
      X-flag in the Prefix Attributes Flags sub-TLV is valid when sent in the SRv6 
      Locator TLV. The state of the X-flag in the Prefix Attributes Flags sub-TLV when 
      included in the Locator TLV MUST match the setting of the embedded "X-bit" in any 
      advertisement for the same prefix in TLVs 236 <xref target="RFC5308"/> and 237 
      <xref target="RFC5120"/>. In case of any inconsistency between the Prefix Attribute 
      Flags advertised in the Locator TLV and in the Prefix Reachability TLV, the ones 
      advertised in Prefix Reachability TLV MUST be preferred.</t>
      
      </section>    

    <section title="Advertising Locators and End SIDs">
      <t>The SRv6 Locator TLV is introduced to advertise SRv6 Locators and End
      SIDs associated with each locator.</t>

      <t>This new TLV shares the sub-TLV space defined for TLVs 135, 235, 236
      and 237.</t>

      <section anchor="LOCTLV" title="SRv6 Locator TLV Format">
        <t>The SRv6 Locator TLV has the following format:

           <figure>
            <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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type        |     Length    |R|R|R|R|    MT ID              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                   Locator Entries . . .                       |
   ]]></artwork>
          </figure>
     
     <list style="hanging">     
     
     <t>Type: 27. Single octet as defined in section 9 of [ISO10589].</t>

     <t>Length: Single octet as defined in section 9 of [ISO10589]. The length value is 
     variable.</t>
     
     <t>R bits: reserved for future use. They MUST be
     set to zero on transmission and MUST be ignored on receipt.</t>

     <t>MT ID: Multitopology Identifier as defined in [RFC5120].
     Note that the value 0 is legal.</t>
     
     </list></t>

    <t>Followed by one or more locator entries of the form:

        <figure>
            <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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                          Metric                               | 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Flags       |  Algorithm    |  Loc Size     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   //              Locator (continued, variable)                  //
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Sub-TLV-len  |         Sub-TLVs (variable) . . .             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    ]]></artwork>
          </figure>
       
    <list style="hanging">
       
     <t>Metric: 4 octets. As described in Section 4 of [RFC5305].</t>

     <t>Flags: 1 octet. The following flags are defined:

       <figure>
        <artwork><![CDATA[       0
       0 1 2 3 4 5 6 7
      +-+-+-+-+-+-+-+-+
      |D|    Reserved |
      +-+-+-+-+-+-+-+-+
      ]]></artwork>
          </figure>
           <list style="hanging">
             <t>D-flag: Same as described in section 4.1. of [RFC5305].</t>
        
             <t>The remaining bits are reserved for future use. They MUST be
             set to zero on transmission and MUST be ignored on receipt.</t>
           </list></t>

     <t>Algorithm: 1 octet. As defined in IGP Algorithm Types registry <xref target="RFC8665"/>.</t>

     <t>Loc-Size: 1 octet. Number of bits in the SRv6 Locator field. 
     MUST be from the range (1 - 128). The TLV MUST be ignored if 
     the Loc-Size is outside this range.</t>

     <t>Locator: 1-16 octets. This field encodes the advertised SRv6
     Locator. The Locator is encoded in the minimal number of
     octets for the given number of bits. Trailing bits MUST be set
     to zero and ignored when received.</t>

     <t>Sub-TLV-length: 1 octet. Number of octets used by sub-TLVs.</t>

     <t>Optional sub-TLVs: Supported sub-TLVs are specified in <xref target="REVISEDREG"/>. 
     Any Sub-TLV that is not allowed in the SRv6 Locator TLV MUST be ignored.</t>
     
     </list></t>
     
     <t>Prefix Attribute Flags Sub-TLV <xref target="RFC7794"/> SHOULD be included in 
     the Locator TLV.</t>
     
     <t>Prefix Attribute Flags Sub-TLV MUST be included in the the Locator TLV when it 
     is leaked upwards in the hierarchy or originated as a result of the redistribution 
     from another protocol or another ISIS instance. If the Prefix Attribute Flags Sub-TLV 
     is not included in these cases, receivers will be unable to determine the correct source
     of the advertisement. The receivers will be unable to detect the violation.</t>
          
    </section>      

      <section anchor="ENDTLV" title="SRv6 End SID sub-TLV">
        <t>The SRv6 End SID sub-TLV is introduced to advertise SRv6 Segment
        Identifiers (SID) with Endpoint behaviors which do not require a
        particular neighbor in order to be correctly applied. 
        SRv6 SIDs associated with a neighbor are advertised using the sub-TLVs defined
        in <xref target="ADJSID"/>.</t>
        
        <t>Supported behavior values, together with parent TLVs in which they are 
        advertised,	 are specified in <xref target="ENDBEH"/> of this
        document. Please note that not all behaviors defined in <xref target="RFC8986"/> 
        are defined in this document, e.g. END.T is not.</t>

        <t>This new sub-TLV is advertised in the SRv6 Locator TLV defined in
        the previous section. SRv6 End SIDs inherit the topology/algorithm
        from the parent locator.</t>

        <t>The SRv6 End SID sub-TLV has the following format:

        <figure>
            <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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    Type       |     Length    |    Flags      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       Endpoint Behavior       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | SID (128 bits) . . .                                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | SID (cont . . .)                                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | SID (cont . . .)                                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | SID (cont . . .)                                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Sub-sub-TLV-len|         Sub-sub-TLVs (variable) . . .         |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       ]]></artwork>
    </figure>
   
   <list style="hanging">
   
      <t>Type: 5. Single octet as defined in section 9 of [ISO10589].</t>

      <t>Length: Single octet as defined in section 9 of [ISO10589]. The length value is
      variable.</t>

      <t>Flags: 1 octet. No flags are currently defined. All bits are reserved for future 
      use. They MUST be  set to zero on transmission and MUST be ignored on receipt.</t>

      <t>Endpoint Behavior: 2 octets, as defined in <xref target="RFC8986"/>.      
         Supported behavior values for this sub-TLV are defined in <xref target="ENDBEH"/> 
         of this document. Unsupported or unrecognized behavior values are ignored 
         by the receiver.</t>

      <t>SID: 16 octets. This field encodes the advertised SRv6 SID.</t>

      <t>Sub-sub-TLV-length: 1 octet. Number of octets used by sub-sub-TLVs.</t>
 
      <t>Optional Sub-sub-TLVs: Supported Sub-sub-TLVs are specified in 
      <xref target="SUBTLVREGISTRY"/>. Any Sub-sub-TLV that is not allowed in SRv6 End SID 
      sub-TLV MUST be ignored.</t>
      </list></t>

        <t>The SRv6 End SID MUST be allocated from its associated locator. 
        SRv6 End SIDs that are not allocated from the associated 
        locator MUST be ignored.</t>

        <t>Multiple SRv6 End SIDs MAY be associated with the same locator. In
        cases where the number of SRv6 End SID sub-TLVs exceeds the capacity
        of a single TLV, multiple Locator TLVs for the same locator MAY be
        advertised. For a given MTID/Locator the algorithm MUST be the same in
        all TLVs. If this restriction is not met all TLVs for that
        MTID/Locator MUST be ignored.</t>
           
      </section>
    </section>

    <section anchor="ADJSID" title="Advertising SRv6 Adjacency SIDs">
      <t>Certain SRv6 Endpoint behaviors <xref
      target="RFC8986"/> are
      associated with a particular adjacency.</t>

      <t>This document defines two new sub-TLVs of TLV 22, 23, 25, 141, 222, and 223
       - namely "SRv6 End.X SID sub-TLVs" and "SRv6 LAN End.X SID sub-TLVs".</t>

      <t>IS-IS Neighbor advertisements are topology specific - but not
      algorithm specific. SIDs advertised in SRv6 End.X SID and SRv6 LAN End.X SID sub-TLVs 
      therefore inherit the topology from the associated neighbor advertisement, but 
      the algorithm is specified in the individual SID.</t>

      <t>All SIDs advertised in SRv6 End.X SID and SRv6 LAN End.X SID sub-TLVs MUST 
      be a subnet of a Locator with  matching topology  and algorithm which is advertised 
      by the same node in an SRv6 Locator TLV. SIDs that do not meet this 
      requirement MUST be ignored. This ensures that the node advertising
      these SIDs is also advertising its corresponding Locator with the algorithm 
      that will be used for computing paths destined to the SID.</t>

      <section anchor="ENDXTLV" title="SRv6 End.X SID sub-TLV">
        <t>This sub-TLV is used to advertise an SRv6 SID associated with a
        point to point adjacency. Multiple SRv6 End.X SID sub-TLVs MAY be
        associated with the same adjacency.</t>

        <t>The SRv6 End.X SID sub-TLV has the following format:

        <figure>
            <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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |   Type        |     Length    |   Flags       |   Algorithm   |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |   Weight      |        Endpoint Behavior      |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | SID (128 bits) . . .                                          |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | SID (cont . . .)                                              |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | SID (cont . . .)                                              |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | SID (cont . . .)                                              |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |Sub-sub-tlv-len|         Sub-sub-TLVs (variable) . . .         |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      ]]></artwork>
          </figure>
         
      <list style="hanging">    
    
      <t>Type: 43. Single octet as defined in section 9 of [ISO10589].</t>

      <t>Length: Single octet as defined in section 9 of [ISO10589]. The length value is 
      variable.</t>
      

      <t>Flags: 1 octet.
        <figure align="center">
       <artwork>

        0 1 2 3 4 5 6 7
       +-+-+-+-+-+-+-+-+
       |B|S|P|Reserved |
       +-+-+-+-+-+-+-+-+
       
      where: </artwork>
          </figure>
          <list style="hanging">

    

         <t>B-Flag: Backup flag.  If set, the SID is eligible
         for protection, e.g., using IP Fast Re-route (IPFRR) <xref target="RFC5286"/>, 
         as described in <xref target="RFC8355"/>.</t>

         <t>S-Flag.  Set flag.  When set, the S-Flag indicates that the
         SID refers to a set of adjacencies (and therefore 
         MAY be assigned to other adjacencies as well).</t>

         <t>P-Flag.  Persistent flag.  When set, the P-Flag indicates that
         the SID is persistently allocated, i.e., the 
         SID value remains consistent across router restart 
         and/or interface flap.</t>

         <t>Reserved bits: MUST be zero when originated and MUST be ignored when
         received.</t>
         </list></t>

      <t>Algorithm: 1 octet. As defined in IGP Algorithm Types registry <xref target="RFC8665"/>.</t>

      <t>Weight: 1 octet.  The value represents the weight of the
      SID for the purpose of load balancing.  The use 
      of the weight is defined in [RFC8402].</t>

      <t>Endpoint Behavior: 2 octets. As defined in  <xref target="RFC8986"/>.
      Supported behavior values for this sub-TLV are defined in <xref target="ENDBEH"/> 
         of this document. Unsupported or unrecognized behavior values are ignored 
         by the receiver.</t>

      <t>SID: 16 octets. This field encodes the advertised SRv6 SID.</t>

      <t>Sub-sub-TLV-length: 1 octet. Number of octets used by sub-sub-
      TLVs.</t>
      
      <t>Optional Sub-sub-TLVs: Supported Sub-sub-TLVs are specified in 
      <xref target="SUBTLVREGISTRY"/>. Any Sub-sub-TLV that is not allowed in SRv6 End.X SID 
      sub-TLV MUST be ignored.</t>
      </list></t>

    <t>Note that multiple TLVs for the same neighbor may be
    required in order to advertise all the SRv6 SIDs associated
     with that neighbor.</t>
  </section>

      <section anchor="LANENDXTLV" title="SRv6 LAN End.X SID sub-TLV">
        <t>This sub-TLV is used to advertise an SRv6 SID associated with a LAN
        adjacency. Since the parent TLV is advertising an adjacency to the
        Designated Intermediate System (DIS) for the LAN, it is necessary to
        include the System ID of the physical neighbor on the LAN with which
        the SRv6 SID is associated. Given that many neighbors may
        exist on a given LAN, multiple SRv6 LAN END.X SID sub-TLVs may
        be associated with the same LAN. Note that multiple TLVs for the same
        DIS neighbor may be required in order to advertise all the SRv6
        SIDs associated with that neighbor.</t>

        <t>The SRv6 LAN End.X SID sub-TLV has the following format:

        <figure>
            <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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Type        |     Length    |                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               |
   |             Neighbor System-ID (ID length octets)             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Flags       |   Algorithm   |   Weight      |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |       Endpoint Behavior       |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | SID (128 bits) . . .                                          |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | SID (cont . . .)                                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | SID (cont . . .)                                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | SID (cont . . .)                                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Sub-sub-TLV-len|      sub-sub-TLVs (variable) . . .            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      ]]></artwork>
          </figure>
      <list style="hanging">
    
      <t>Type: 44. Single octet as defined in section 9 of [ISO10589].</t>
    
      <t>Length: Single octet as defined in section 9 of [ISO10589]. The length value is 
      variable.</t>

      <t>Neighbor System-ID:  IS-IS System-ID of length "ID Length" as
       defined in [ISO10589].</t>

      <t>Flags: 1 octet.
       <figure align="center">
        <artwork>

        0 1 2 3 4 5 6 7
       +-+-+-+-+-+-+-+-+
       |B|S|P|Reserved |
       +-+-+-+-+-+-+-+-+
       
        </artwork>
       </figure>
    <list style="hanging">

         <t>where B,S, and P flags are as described in <xref target="ENDXTLV"/>.
         Reserved bits MUST be zero when originated and MUST be ignored when
         received.</t>
      </list></t>

    <t>Algorithm: 1 octet. As defined in IGP Algorithm Types registry <xref target="RFC8665"/>.</t>

    <t>Weight: 1 octet.  The value represents the weight of the
     SID for the purpose of load balancing.  The use 
    of the weight is defined in [RFC8402].</t>

    <t>Endpoint Behavior: 2 octets. As defined in <xref target="RFC8986"/>.
    Supported behavior values for this sub-TLV are defined in <xref target="ENDBEH"/> 
         of this document. Unsupported or unrecognized behavior values are ignored 
         by the receiver.</t>

    <t>SID: 16 octets. This field encodes the advertised SRv6 SID.</t>

    <t>Sub-sub-TLV-length: 1 octet. Number of octets used by sub-sub-
     TLVs.</t>
     
     <t>Optional Sub-sub-TLVs: Supported Sub-sub-TLVs are specified in 
      <xref target="SUBTLVREGISTRY"/>. Any Sub-sub-TLV that is not allowed in SRv6 
      LAN End.X SID sub-TLV MUST be ignored.</t>
      
     </list></t>
     
     <t>Note that multiple TLVs for the same neighbor, on the same LAN, may be
    required in order to advertise all the SRv6 SIDs associated
     with that neighbor.</t>

      </section>
    </section>
    
    <section anchor="STRUCTTLV" title="SRv6 SID Structure Sub-Sub-TLV">
    
    <t>SRv6 SID Structure Sub-Sub-TLV is an optional Sub-Sub-TLV of:
    <list style="hanging">
         <t>SRv6 End SID Sub-TLV (<xref target="ENDTLV"/>)</t>
         
         <t>SRv6 End.X SID Sub-TLV (<xref target="ENDXTLV"/>)</t>
         
         <t>SRv6 LAN End.X SID Sub-TLV (<xref target="LANENDXTLV"/>)</t>
    </list></t>
    
    <t>SRv6 SID Structure Sub-Sub-TLV is used to advertise the structure of the SRv6 SID	
    as defined in <xref target="RFC8986"/>. It has the following format:
    
    <figure>
    <artwork> 
 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      Type     |    Length     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    LB Length  |  LN Length    | Fun. Length   |  Arg. Length  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

where:
    </artwork>
</figure>
          <list style="hanging">
            <t>Type: 1. Single octet as defined in section 9 of [ISO10589].</t>

            <t>Length: Single octet as defined in section 9 of [ISO10589]. The length 
            value is 4 octets.</t>
            
            <t>LB Length: 1 octet. SRv6 SID Locator Block length in bits.</t>
            
            <t>LN Length: 1 octet. SRv6 SID Locator Node length in bits.</t>
            
            <t>Fun. Length: 1 octet. SRv6 SID Function length in bits.</t>
            
            <t>Arg. Length: 1 octet. SRv6 SID Arguments length in bits.</t>           
         </list></t>  
         
    <t>ISIS SRv6 SID Structure Sub-Sub-TLV MUST NOT appear more than once in its parent Sub-TLV.
    If it appears more than once in its parent Sub-TLV, the parent Sub-TLV MUST be ignored by 
    the receiver.</t> 
    
    <t>The sum of all four sizes advertised in ISIS SRv6 SID Structure Sub-Sub-TLV MUST be
    less than or equal to 128 bits. If the sum of all four sizes advertised in the ISIS SRv6 
    SID Structure Sub-Sub-TLV is larger than 128 bits, the parent Sub-TLV MUST be ignored
    by the receiver.</t>
    
    <t>The SRv6 SID Structure Sub-Sub-TLV is intended for informational use by the control and 
    management planes. It MUST NOT be used at a transit node (as defined in 
    <xref target="RFC8754"/>) for forwarding packets. As an example, this information
    could be used for:
        
    <list style="symbols">
        
      <t>validation of SRv6 SIDs being instantiated in the network and
      advertised via ISIS. These can be learnt by controllers via BGP-LS and then be 
      monitored for conformance to the SRv6 SID allocation scheme chosen by the operator 
      as described in Section 3.2 of <xref target="RFC8986"/>.</t>
        
	  <t>verification and the automation for securing the SRv6 domain by
	  provisioning filtering rules at SR domain boundaries as described
	  in Section 5 of <xref target="RFC8754"/>.</t>
 
    </list></t>
    
    <t>The details of these potential applications are outside the scope of
    this document.</t> 
    
    </section>

    <section anchor="ENDBEH" title="Advertising Endpoint Behaviors">
      <t>Endpoint behaviors are defined in 
      <xref target="RFC8986"/>. The codepoints for the 
      Endpoint behaviors are defined in the "SRv6 Endpoint Behaviors" registry defined in
      <xref target="RFC8986"/>. If a behavior is advertised it MUST only be advertised in the 
      TLV[s] marked with "Y" in the table below, and MUST NOT be advertised in the 
      TLV[s] marked with "N" in the table below.</t>

      <t><figure>
          <artwork><![CDATA[  
   Endpoint             |Endpoint          | End | End.X | Lan End.X |
   Behavior             |Behavior Codepoint| SID | SID   |   SID     |
  ----------------------|------------------|-----|-------|-----------|
   End   (PSP, USP, USD)| 1-4, 28-31       |  Y  |   N   |    N      |
  ----------------------|------------------|-----|-------|-----------|
   End.X (PSP, USP, USD)| 5-8, 32-35       |  N  |   Y   |    Y      |
  ----------------------|------------------|-----|-------|-----------|     
   End.DX6              | 16               |  N  |   Y   |    Y      |
  ----------------------|------------------|-----|-------|-----------|
   End.DX4              | 17               |  N  |   Y   |    Y      |
  ----------------------|------------------|-----|-------|-----------|
   End.DT6              | 18               |  Y  |   N   |    N      |
  ----------------------|------------------|-----|-------|-----------|
   End.DT4              | 19               |  Y  |   N   |    N      |
  ----------------------|------------------|-----|-------|-----------|
   End.DT46             | 20               |  Y  |   N   |    N      |
  

]]></artwork>
        </figure></t>
    </section>
       
          
    <section anchor="IANA" title="IANA Considerations">
      <t>This document requests allocation for the following TLVs, sub-TLVs,
      and sub-sub-TLVs by updating the existing registries and defining
      new registries under the IS-IS TLV Codepoints registry.</t>

      <section title="SRv6 Locator TLV">
        <t>This document makes the following registrations in the "IS-IS Top-Level TLV Codepoints"
        registry:</t>
           
        <t><figure>
            <artwork><![CDATA[ 
 Type  Description             IIH LSP SNP Purge 
 ----  ---------------------   --- --- --- -----
  27   SRv6 Locator TLV         n   y   n    n
]]></artwork>
          </figure></t>   


        <section title="SRv6 End SID sub-TLV ">
        
        <t>The SRv6 Locator TLV shares sub-TLV space with TLVs advertising prefix 
        reachability. This document updates the "IS-IS Sub-TLVs for TLVs Advertising 
        Prefix Reachability" registry initially defined in <xref target="RFC7370"/>.</t>
        
        <t>IANA is asked to add this document as a reference to "IS-IS Sub-TLVs 
        for TLVs Advertising Prefix Reachability" registry and update the description of 
        that registry to include the SRv6 Locator TLV (27).</t>
        
        
          <t>This document makes the following registrations in the "IS-IS Sub-TLVs for TLVs 
          Advertising Prefix Reachability" registry:
          <list style="hanging">
      
           <t>Type: 5</t>
        
           <t>Description: SRv6 End SID.</t>
        
           <t>Reference: This document (<xref target="ENDTLV"/>).</t>
	     </list></t>
        </section>

        <section anchor="REVISEDREG" title="Revised sub-TLV table">
          <t>The revised table of sub-TLVs for the "IS-IS Sub-TLVs for TLVs Advertising Prefix
           Reachability" registry is shown below:</t>

          <t><figure>
              <artwork><![CDATA[   Type  27 135 235 236 237

   1     y   y   y   y   y
   2     y   y   y   y   y
   3     n   y   y   y   y
   4     y   y   y   y   y
   5     y   n   n   n   n
   6     n   y   y   y   y
   11    y   y   y   y   y
   12    y   y   y   y   y
   32    n   y   y   y   y
]]></artwork>
            </figure></t>
        </section>
      </section>

      <section title="SRv6 Capabilities sub-TLV">
        <t>This document makes the following registrations in the "IS-IS Sub-TLVs for IS-IS 
        Router CAPABILITY TLV":
        
        <list style="hanging">
      
           <t>Type: 25</t>
        
           <t>Description: SRv6 Capabilities.</t>
        
           <t>Reference: This document (<xref target="SRV6CAP"/>).</t>
         </list></t>
         
      </section>
        
      <section title="Sub-Sub-TLVs of the SRv6 Capability sub-TLV">
         
        <t>This document requests a new IANA registry be created under the
         IS-IS TLV Codepoints registry to control the assignment of sub-TLV
         types for the SRv6 Capability sub-TLV specified in this document - 
         <xref target="SRV6CAP"/>:
         
         <list style="hanging">
      
           <t>Name: IS-IS Sub-Sub-TLVs for SRv6 Capability Sub-TLV</t>
        
           <t>Description: This registry defines sub-sub-TLVs for the SRv6 Capability 
           Sub-TLV (25) advertised in the IS-IS Router Capabilities TLV (242).</t>
        
        </list></t>
         
         <t>The registration procedure is "Expert Review" as defined in 
         <xref target="RFC8126"/>. Guidance for the Designated Experts is provided in
         the <xref target="RFC7370"/>. No sub-sub-TLVs are defined by this document 
         except for the reserved type 0.</t>

     <t><figure>
            <artwork><![CDATA[ Type   Description                          Encoding
                                             Reference
---------------------------------------------------------
 0      Reserved
 1-255  Unassigned
]]></artwork>
          </figure></t>
             
      </section>

      <section  title="SRv6 End.X SID and SRv6 LAN End.X SID sub-TLVs">
        <t>This document makes the following registrations  in the 
        "IS-IS Sub-TLVs for TLVs Advertising Neighbor Information" registry:
        
        
        <list style="hanging">
      
           <t>Type: 43</t>
        
           <t>Description: SRv6 End.X SID.</t>
        
           <t>Reference: This document (<xref target="ENDXTLV"/>).</t>
           
           <t>Type: 44</t>
        
           <t>Description: SRv6 LAN End.X SID.</t>
        
           <t>Reference: This document (<xref target="LANENDXTLV"/>).</t>
         </list></t>

        <t><figure>
            <artwork><![CDATA[   Type  22 23 25 141 222 223

   43     y  y  y  y   y   y
   44     y  y  y  y   y   y

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

      <section title="MSD Types">
        <t>This document makes the following registrations in the IGP MSD-Types 
        registry:</t>

        <t><figure>
            <artwork><![CDATA[Value    Name                  Reference
------------------
 41      SRH Max SL            [This Document]
 42      SRH Max End Pop       [This Document]
 44      SRH Max H.encaps      [This Document]
 45      SRH Max End D         [This Document]]]></artwork>
          </figure></t>
      </section>
      
      
  <section anchor="SUBTLVREGISTRY" title="Sub-Sub-TLVs for SID Sub-TLVs">

   <t>This document requests a new IANA registry be created under the
      IS-IS TLV Codepoints registry to control the assignment of sub-TLV
      types for the SID Sub-TLVs specified in this document - <xref target="ENDTLV"/>, 
      <xref target="ENDXTLV"/>,  <xref target="LANENDXTLV"/>:
      
      <list style="hanging">
      
           <t>Name: IS-IS Sub-Sub-TLVs for SRv6 SID Sub-TLVs</t>
        
           <t>Description: This registry defines Sub-Sub-TLVs for SRv6 SID Sub-TLVs.
           This includes the following sub-TLVs:
          
           <list style="hanging">
           <t>SRv6 End SID (5) (Advertised in SRv6 Locator TLV (27)</t>
  		   <t>SRv6 End.X SID (43) (Advertised in TLVs advertising neighbor information)</t>
  		   <t>SRv6 LAN End.X SID (44) (Advertised in TLVs advertising neighbor information)</t>
           </list></t>
            
        
        </list></t>
      
      <t>The registration procedure is  "Expert Review" as defined in <xref target="RFC8126"/>. 
      Guidance for the Designated Experts is provided in <xref target="RFC7370"/>. The following
      assignments are made by this document:</t>
        
        
     <t><figure>
            <artwork><![CDATA[ Type   Description                          Encoding
                                             Reference
---------------------------------------------------------
 0      Reserved
 1      SRv6 SID Structure                   [This Document]
 2-255  Unassigned
 
 
Type    5  43 44 

 1      y  y  y  
 
]]></artwork>
          </figure></t>
      
     </section>  
     
   <section anchor="ANYCASTBIT" title="Prefix Attribute Flags Sub-TLV">
   
   <t>This document adds a new bit in the "IS-IS Bit Values for Prefix Attribute Flags Sub-TLV" 
   registry:
   
   <list style="hanging">
     
         <t>Bit #: 4</t>

         <t>Description: Anycast Flag (A-flag)</t>

         <t>Reference: This document (<xref target="ANYCASTFLAG"/>).</t> 
         
      </list></t>
   
   </section>  
   
   
   <section anchor="FLAGREGCAP" title="IS-IS SRv6 Capabilities sub-TLV Flags Registry">
   
   
    <t>This document requests a new IANA registry be created under the IS-IS TLV 
    Codepoints registry to control the assignment of bits 0 to 15 in the Flags field of the 
    ISIS SRv6 Capabilities sub-TLV specified in this document (<xref target="SRV6CAP"/>): 
    
        <list style="hanging">
      
           <t>Name: IS-IS SRv6 Capabilities Sub-TLV Flags</t>
        
           <t>Description: This registry defines bit values advertised in the flags field 
           of the SRv6 Capabilities sub-TLV (25). This sub-TLV is advertised in the 
           IS-IS Router CAPABILITY TLV (242).</t>
        
        </list></t>
    
    <t>The registration procedure is  "Expert Review" as defined in <xref target="RFC8126"/>. 
    Guidance for the Designated Experts is provided in <xref target="RFC7370"/>. The 
    following assignments are made by this document:
    
    <list style="hanging">
     
         <t>Bit #: 1</t>

         <t>Description: O-flag</t>
         
         <t>Reference: This document (<xref target="SRV6CAP"/>).</t> 
         
         <t>Bit #: 0, 2-15</t>

         <t>Description: Unassigned</t>
         
      </list></t>
    
   </section>
   
   <section anchor="FLAGREGLOC" title="IS-IS SRv6 Locator TLV Flags Registry">
   
   <t>This document requests a new IANA registry be created under the IS-IS TLV 
    Codepoints registry to control the assignment of bits 0 to 7 in the Flags field of the 
    SRv6 Locator TLV specified in this document (<xref target="LOCTLV"/>):
    
        <list style="hanging">
      
           <t>Name: IS-IS SRv6 Locator TLV Flags</t>
        
           <t>Description: This registry defines bit values advertised in the flags field 
           of the SRv6 Locator TLV (27).</t>
        
        </list></t>
    
    <t>The registration procedure is "Expert Review" as defined in <xref target="RFC8126"/>. 
    Guidance for the Designated Experts is provided in <xref target="RFC7370"/>. The 
    following assignments are made by this document:
    
    <list style="hanging">
     
         <t>Bit #: 0</t>

         <t>Description: D-flag</t>

         <t>Reference: This document (<xref target="LOCTLV"/>).</t> 
         
         <t>Bit #: 1-7</t>

         <t>Description: Unassigned</t>
         
      </list></t>
      
   </section>
   
   <section anchor="FLAGREGEND" title="IS-IS SRv6 End SID sub-TLV Flags Registry">
   
   <t>This document requests a new IANA registry be created under the IS-IS TLV 
    Codepoints registry to control the assignment of bits 0 to 7 in the Flags field of the 
    ISIS SRv6 End SID sub-TLV specified in this document (<xref target="ENDTLV"/>):
    
        <list style="hanging">
      
           <t>Name: IS-IS SRv6 End SID Sub-TLV Flags</t>
        
           <t>Description: This registry defines bit values advertised in the flags field
           of the SRv6 End SID sub-TLV, which is advertised in the SRv6 Locator TLV (27).</t>
        
        </list></t>
    
    <t>The registration procedure is "Expert Review" as defined in <xref target="RFC8126"/>. 
    Guidance for the Designated Experts is provided in <xref target="RFC7370"/>. No 
    assignments are made by this document.
    
    
    <list style="hanging">
     
         <t>Bit #: 0-7</t>

         <t>Description: Unassigned</t>
         
    </list></t>
      
   </section>
   
   <section anchor="FLAGENDX" title="IS-IS SRv6 Adjacency SID sub-TLVs Flags Registry">
   
   <t>This document requests a new IANA registry be created under the IS-IS TLV 
    Codepoints registry to control the assignment of bits 0 to 7 in the Flags field of the 
    ISIS SRv6 End.X SID and LAN End.X SID sub-TLVs (<xref target="ENDXTLV"/> and 
    <xref target="LANENDXTLV"/>):
    
        <list style="hanging">
      
           <t>Name: IS-IS SRv6 Adjacency SID Sub-TLVs Flags.</t>
        
           <t>Description: This registry defines bit values advertised in the flags field 
           of SRv6 SID sub-TLVs associated with adjacencies. These sub-TLVs are advertised 
           in TLVs advertising neighbor information. The list of sub-TLVs includes:
           
           <list style="hanging">
            <t>SRv6 End.X SID (43)</t>
            <t>SRv6 LAN End.X SID (44)</t>
            </list></t>
           
        </list></t>
    
    
    <t>The registration procedure is "Expert Review" as defined in <xref target="RFC8126"/>. 
    Guidance for the Designated Experts is provided in <xref target="RFC7370"/>. The 
    following assignments are made by this document:
    
    <list style="hanging">
     
         <t>Bit #: 0</t>

         <t>Description: B-flag</t>

         <t>Reference: This document (<xref target="ENDXTLV"/>).</t>
         
         <t>Bit #: 1</t>

         <t>Description: S-flag</t>

         <t>Reference: This document (<xref target="ENDXTLV"/>).</t>
         
         <t>Bit #: 2</t>

         <t>Description: P-flag</t>

         <t>Reference: This document (<xref target="ENDXTLV"/>).</t>
         
         <t>Bit #: 3-7</t>

         <t>Description: Unassigned</t>
         
      </list></t>
      
   </section>
   
         
               
  </section>

    <section anchor="Security" title="Security Considerations">
            
      <t>Security concerns for IS-IS are addressed in <xref target="ISO10589"/>, 
      <xref target="RFC5304"/>, and <xref target="RFC5310"/>. While IS-IS is deployed 
      under a single administrative domain, there can be deployments where potential 
      attackers have access to one or more networks in the IS-IS routing domain.  
      In these deployments, the stronger authentication mechanisms defined in the
      aforementioned documents SHOULD be used.</t>
      
      <t>This document describes the IS-IS extensions required to support Segment
      Routing over an IPv6 data plane.  The security considerations for Segment
      Routing are discussed in <xref target="RFC8402"/>.  <xref target="RFC8986"/>
      defines the SRv6 Network Programming concept and specifies the main 
      Segment Routing behaviors to enable the creation of interoperable overlays; 
      the security considerations from that document apply too.</t>
      
      <t>The advertisement for an incorrect MSD value may have negative
      consequences, see <xref target="RFC8491"/> for additional considerations.</t>
            
      <t>Security concerns associated with the setting of the O-flag are described in  
      <xref target="I-D.ietf-6man-spring-srv6-oam"/>.</t>
      
      <t>Security concerns associated with the usage of Flex-Algorithms are described in
      <xref target="I-D.ietf-lsr-flex-algo"/>).</t>
      
    </section>

    <section anchor="CONTRIB" title="Contributors">
      <t>The following people gave a substantial contribution to the content
      of this document and should be considered as co-authors:</t>

      <t><figure>
          <artwork><![CDATA[  Stefano Previdi
  Huawei Technologies
  Email: stefano@previdi.net

  Paul Wells
  Cisco Systems
  Saint Paul,
  Minnesota
  United States
  Email: pauwells@cisco.com

  Daniel Voyer
  Email:  daniel.voyer@bell.ca

  Satoru Matsushima
  Email: satoru.matsushima@g.softbank.co.jp

  Bart Peirens
  Email: bart.peirens@proximus.com

  Hani Elmalky
  Email: hani.elmalky@ericsson.com

  Prem Jonnalagadda
  Email: prem@barefootnetworks.com

  Milad Sharif
  Email: msharif@barefootnetworks.com>

  Robert Hanzl
  Cisco Systems
  Millenium Plaza Building, V Celnici 10, Prague 1,
  Prague, Czech Republic
  Email rhanzl@cisco.com

  Ketan Talaulikar
  Cisco Systems, Inc.
  Email: ketant@cisco.com

]]></artwork>
        </figure></t>
    </section>
      
  <section title="Acknowledgments">
   
   <t>Thanks to Christian Hopps for his review comments and shepherd work.</t>
   <t>Thanks to Alvaro Retana and John Scudder for AD review and comments.</t> 
    	
  </section>
  
  
  </middle>

  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.7981"?>
      
      <?rfc include='reference.RFC.5305'?>
      
      <?rfc include='reference.RFC.5308'?>

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

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

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

      <?rfc include="reference.RFC.8491"?>
      
      <?rfc include="reference.RFC.8754"?>

      <?rfc include='reference.RFC.7370'?>
      
      <?rfc include='reference.RFC.7794'?>
      
      <?rfc include='reference.RFC.8667'?>
      
      <?rfc include='reference.RFC.8126'?>
      
      <?rfc include='reference.RFC.8665'?>
      
      <?rfc include='reference.RFC.8986'?>
      
      <?rfc include='reference.RFC.8402'?>
      
      <?rfc include="reference.I-D.ietf-lsr-flex-algo.xml"?>
      
      <?rfc include="reference.I-D.ietf-6man-spring-srv6-oam.xml"?>
      
      <reference anchor="ISO10589">
        <front>
          <title>Intermediate system to Intermediate system intra-domain
          routeing information exchange protocol for use in conjunction with
          the protocol for providing the connectionless-mode Network Service
          (ISO 8473)</title>

          <author>
            <organization abbrev="ISO">International Organization for
            Standardization</organization>
          </author>

          <date month="Nov" year="2002"/>
        </front>
       </reference> 
    </references>

    <references title="Informative References">
    
      <?rfc include='reference.RFC.5286'?>
      
      <?rfc include='reference.RFC.5304'?>
      
      <?rfc include='reference.RFC.5310'?>
      
      <?rfc include='reference.RFC.8355'?>
      
    </references>
  </back>
</rfc>
