<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"> 
  <!ENTITY RFC4271 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4271.xml">
  <!ENTITY RFC8174 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.8174.xml">
  <!ENTITY RFC9256 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.9256.xml">
  <!ENTITY RFC9552 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.9552.xml">
  <!ENTITY RFC9543 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.9543.xml">

 <!ENTITY I-D.ietf-teas-nrp-scalability SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-teas-nrp-scalability.xml">
 <!ENTITY I-D.ietf-idr-bgp-ls-sr-policy SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-idr-bgp-ls-sr-policy.xml">
 <!ENTITY I-D.ietf-idr-sr-policy-nrp SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-idr-sr-policy-nrp.xml">
  <!ENTITY I-D.ietf-6man-enhanced-vpn-vtn-id SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-6man-enhanced-vpn-vtn-id.xml">
   <!ENTITY I-D.ietf-mpls-mna-nrp-selector SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-mpls-mna-nrp-selector.xml">
]>

<?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 xmlns:xi="http://www.w3.org/2001/XInclude"  category="std" consensus="true" docName="draft-ietf-idr-bgp-ls-sr-policy-nrp-02" indexInclude="true" ipr="trust200902" prepTime="" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">

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

   <title abbrev="BGP-LS SR policy for NRP">SR Policies Extensions for Network Resource Partition in BGP-LS</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-idr-bgp-ls-sr-policy-nrp-02"/>
    <!-- add 'role="editor"' below for the editors if appropriate -->

   <!-- Another author who claims to be an editor -->

	
	   <author fullname="Ran Chen" initials="R." surname="Chen">
      <organization>ZTE Corporation</organization>
      <address>
        <postal>
          <street/>
          <!-- Reorder these if your country does things differently -->

         <city>Nanjing</city>
          <region/>
          <code/>
          <country>China</country>
        </postal>
        <email>chen.ran@zte.com.cn</email>
        <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
	  <author fullname="Jie Dong" initials="J." surname="Dong">
      <organization>Huawei</organization>
      <address>
        <postal>
          <street/>
          <!-- Reorder these if your country does things differently -->

         <city>Beijing</city>
          <region/>
          <code/>
          <country>China</country>
        </postal>
        <email>jie.dong@huawei.com</email>
        <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
	   <author fullname="Detao Zhao" initials="D." surname="Zhao">
      <organization>ZTE Corporation</organization>
      <address>
        <postal>
          <street/>
          <!-- Reorder these if your country does things differently -->

         <city>Nanjing</city>
          <region/>
          <code/>
          <country>China</country>
        </postal>
        <email>zhao.detao@zte.com.cn</email>
        <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
	 <author fullname="Liyan Gong" initials="L." surname="Gong">
      <organization>China mobile</organization>
      <address>
        <postal>
          <street/>
          <!-- Reorder these if your country does things differently -->

         <city>Beijing</city>
          <region/>
          <code/>
          <country>China</country>
        </postal>
        <email>gongliyan@chinamobile.com</email>
        <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
		
     <author fullname="Yongqing Zhu" initials="Y." surname="Zhu">
      <organization>China Telecom</organization>
      <address>
        <postal>
          <street/>
          <!-- Reorder these if your country does things differently -->

         <city>Guangzhou</city>
          <region/>
          <code/>
          <country>China</country>
        </postal>
        <email>zhuyq8@chinatelecom.cn</email>
        <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
	  <author fullname="Ran Pang" initials="R." surname="Pang">
      <organization>China Unicom</organization>
      <address>
        <postal>
          <street/>
          <!-- Reorder these if your country does things differently -->

         <city>Beijing</city>
          <region/>
          <code/>
          <country>China</country>
        </postal>
        <email>pangran@chinaunicom.cn</email>
        <!-- uri and facsimile elements may also be added -->
     </address>
    </author>
	
    <date year="2025"/>
    <!-- If the month and year are both specified and are the current ones, xml2rfc will fill 
        in the current day for you. If only the current year is specified, xml2rfc will fill 
	 in the current day and month for you. If the year is not the current one, it is 
	 necessary to specify at least a month (xml2rfc assumes day="1" if not specified for the 
	 purpose of calculating the expiry date).  With drafts it is normally sufficient to 
	 specify just the year. -->

   <!-- Meta-data Declarations -->

   <area>Routing</area>
    <workgroup>IDR</workgroup>
    <!-- WG name at the upperleft corner of the doc,
        IETF is fine for individual submissions.  
	 If this element is not present, the default is "Network Working Group",
        which is used by the RFC Editor as a nod to the history of the IETF. -->

   <keyword>Internet Draft</keyword>
    <!-- Keywords will be incorporated into HTML output
        files in a meta tag but they have no effect on text or nroff
        output. If you submit your draft to the RFC Editor, the
        keywords will be used for the search engine. -->

  
   <abstract>
      <t>A Network Resource Partition (NRP) is a subset of the network resources and associated policies on each of a connected set of links in the underlay network. An NRP ID is an important network resource attribute associated with the Segment Routing (SR) policy and needs to be reported to the external components. This document defines a new TLV which enables the headend to report the NRP which the SR Policy Candidate Path (CP) is associated with using Border Gateway Protocol Link-State (BGP-LS).</t>
    </abstract>
  </front>
  <middle>
  
    <section numbered="true" toc="default">
      <name>Introduction</name>
	<t>Segment Routing (SR) Policy <xref target="RFC9256" format="default"></xref> is an ordered list of segments (i.e. instructions) that represent a source-routed policy. Packet flows are steered into a SR Policy on a node where it is instantiated called a headend node. The packets steered into an SR Policy carry an ordered list of segments associated with that SR Policy.</t>
	 <t><xref target="RFC9543" format="default"></xref>  provides the definition of IETF network slice for use within the IETF and discusses the general framework for requesting and operating IETF Network Slices, their characteristics, and the necessary system components and interfaces.It also introduces the concept Network Resource Partition (NRP), which is a subset of the resources and associated policies in the underlay network.</t>
	 <t><xref target="I-D.ietf-teas-nrp-scalability"></xref> introduces a scalable data plane approach to support Network Slice is to carry a dedicated NRP ID in the data packet to identify the NRP the packet belongs to, so that the packet can be processed and forwarded using the subset of network resources allocated to the NRP. For SR Policy with IPv6 data plane, the approach to encapsulate the NRP ID in IPv6 Hop-by-Hop Options header is defined in <xref target="I-D.ietf-6man-enhanced-vpn-vtn-id"></xref>. For SR Policy with MPLS data plane, one approach to encapsulate the NRP ID to the packet is defined in <xref target="I-D.ietf-mpls-mna-nrp-selector"></xref>.</t>
	 <t><xref target="I-D.ietf-idr-sr-policy-nrp"></xref> defines the extensions to BGP SR policy to specify the NRP which the SR Policy candidate path is associated with.</t>
	 <t><xref target="I-D.ietf-idr-bgp-ls-sr-policy"></xref> describes a mechanism to distribute SR policy information to external components using BGP-LS. SR policy information can be used by external components for path computation, re-optimization, service placement, network visualization, etc. </t>
	 <t> A Network Resource Partition (NRP) is a subset of the network resources and associated policies on each of a connected set of links in the underlay network. The SR policy indicates the forwarding path of the data packet, and the NRP ID indicates the reserved resources along the path specified by the SR policy. By associating the SR policy with a specific NRP, the forwarding path and resource reservation along the path are ensured. BGP-LS reports the association between SR Policy Candidate Path (CP) and NRP-ID, which is used to synchronize the association information between the SR Policy CP and the NRP-ID.</t>
	 <t>This document defines a new TLV which enables the headend to report the NRP which the SR Policy CP is associated with by using BGP-LS.</t>
      	 <section numbered="true" toc="default">
        <name>Requirements Language</name>
        <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" format="default"/> <xref target="RFC8174" format="default"/> when, and only when, they appear in all capitals, as shown here.</t>
      </section>
    </section>
		<section numbered="true" toc="default">
        <name>Carrying NRP TLV in BGP-LS</name>
	  <t>A SR Policy CP MAY be instantiated with a specific NRP on the headend node via a local configuration, PCEP, or BGP SR Policy signaling. Then the state and attributes of the NRP associated with the candidate path of SR policy can be distributed to the controller.</t>
	  <t>In order to collect configuration and states of the NRP SR policy, this document defines a new SR Policy state TLV called the NRP TLV which enables the headend to report the state at the SR Policy CP level. </t>
	  <t>This TLV is carried in the optional non-transitive BGP Attribute "LINK_STATE Attribute" defined in <xref target="RFC9552" format="default"></xref> associated with the SR Policy CP NLRI type.</t>
	  <t>This TLV is optional and only one these TLVs is advertised for a given SR Policy CP. If multiple TLVs are present, then the first one is considered valid and the rest are ignored as describe in <xref target="I-D.ietf-idr-bgp-ls-sr-policy"></xref>.</t>
	  <t>The TLV has the following format:</t>
	  
	     <artwork align="left" name=""><![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          |             Reserved            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         NRP ID (4 octets)                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

		    ]]></artwork>
		<t>where:</t>
        <t>Type: TBD.</t>
        <t>Length: 8. The total length of the value field not including Type and Length fields.</t>
        <t>Flag: 2-octet flag field. None is defined at this stage. The flags SHOULD be set to zero on transmission and MUST be ignored on receipt.</t>	
        <t>RESERVED: 2-octet reserved bits. It SHOULD be set to zero on transmission and MUST be ignored on receipt.</t> 
        <t>NRP ID: 4-octet domain significant identifier of Network Resource Partition. Value 0 and 0xFFFFFFFF are reserved. NRP ID is planned by network operator.</t>		
		</section>
	<section numbered="true" toc="default">
        <name>Scalability Considerations</name>
    <t>The mechanism specified in this document defines a mechanism for the headend of the SR policy to report configuration and states of an SR policy carrying the NRP information by using BGP-LS. Although the proposed mechanism allows an NRP MAY support many SR policies, in normal case the association between the SR Policy and the NRP is considered to be 1:1. As the number of NRP increases, the number of SR Policies would also increase accordingly, and the status reported by the headend increases accordingly. However, the relationship between the SR Policy and the NRP is relatively stable and does not change status frequently. On the other hand this will only cause an increase in the status reporting information of the head node, the impacts to the BGP control plane are considered acceptable.</t>
	</section>

    <section anchor="Acknowledgements" numbered="true" toc="default">
      <name>Acknowledgements</name>
      <t>The authors would like to thank Susan Hares, Joel Halpern, Ketan Talaulikar, Vishnu Pavan Beeram, Adrian Farrel, and Changwang Lin for their review and discussion of this document.</t>
    </section>
    <!-- Possibly a 'Contributors' section ... -->

   <section anchor="IANA" numbered="true" toc="default">
      <name>IANA Considerations</name>
	 <t>IANA maintains a registry group called "Border Gateway Protocol - Link State (BGP-LS) Parameters" with a registry called "BGP-LS NLRI and Attribute TLVs". The following TLV codepoints are suggested (for early allocation by IANA): </t>
   <artwork align="left" name=""><![CDATA[
   Codepoint   Description                  Reference
 ----------------------------------------------------------
    TBD           NRP                       This document
			    ]]></artwork>
	</section>  
	
    <section anchor="Security" numbered="true" toc="default">
      <name>Security Considerations</name>
     <t>Procedures and protocol extensions defined in this document do not affect the BGP security model. See the "Security Considerations"section of <xref target="RFC4271"/> for a discussion of BGP security. Security considerations for acquiring and distributing BGP-LS information are discussed in <xref target="RFC9552"/>. Security considerations for acquiring and distributing BGP-LS SR Policy information are discussed in <xref target="I-D.ietf-idr-sr-policy-nrp"></xref>.</t>
	 <t>Additionally, it MAY be considered that reporting the NRP ID in association with the SR policy constitutes a risk to confidentiality of mission-critical or commercially sensitive information about the network. It is the responsibility of the network operator to ensure that only trusted nodes (that include both routers and controller applications) within the SR domain are configured to receive such information.</t>
    </section>
  </middle>
  <!--  *****BACK MATTER ***** -->

 <back>
    <!-- References split into informative and normative -->

   <!-- There are 2 ways to insert reference entries from the citation libraries:
    1. define an ENTITY at the top, and use "ampersand character"RFC2629; here (as shown)
    2. simply use a PI "less than character"?rfc include="reference.RFC.2119.xml"?> here
       (for I-Ds: include="reference.I-D.narten-iana-considerations-rfc2434bis.xml")

    Both are cited textually in the same manner: by using xref elements.
    If you use the PI option, xml2rfc will, by default, try to find included files in the same
    directory as the including file. You can also define the XML_LIBRARY environment variable
    with a value containing a set of directories to search.  These can be either in the local
    filing system or remote ones accessed by http (http://domain/dir/... ).-->
<references>
      <name>References</name>
   <references>
      <name>Normative References</name>
      &RFC2119;
	  &RFC4271;
	  &RFC9552;
      &RFC8174;
      &RFC9256;
      &I-D.ietf-idr-bgp-ls-sr-policy;
	  
    </references>
	<references>
      <name>Informative References</name>
	  &RFC9543;
	  &I-D.ietf-teas-nrp-scalability;
	  &I-D.ietf-idr-sr-policy-nrp;
	  &I-D.ietf-6man-enhanced-vpn-vtn-id;
	  &I-D.ietf-mpls-mna-nrp-selector;
	</references>
	</references>
 </back>
</rfc>
