<?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.2.6 -->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc sortrefs="yes"?>
<?rfc symrefs="yes"?>
<?rfc comments="yes"?>
<rfc category="std" docName="draft-ietf-idr-sr-policy-nrp-09"
     ipr="trust200902">
  <front>
    <title abbrev="BGP SR Policy for NRP">BGP SR Policy Extensions for Network
    Resource Partition</title>

    <author fullname="Jie Dong" initials="J." surname="Dong">
      <organization>Huawei Technologies</organization>

      <address>
        <email>jie.dong@huawei.com</email>
      </address>
    </author>

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

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

    <author fullname="Ran Pang" initials="R." surname="Pang">
      <organization>China Unicom</organization>

      <address>
        <email>pangran@chinaunicom.cn</email>
      </address>
    </author>

    <date day="19" month="May" year="2026"/>

    <workgroup>IDR Working Group</workgroup>

    <abstract>
      <t>Segment Routing (SR) Policy is a set of candidate paths, each
      consisting of one or more segment lists and the associated information.
      The header of a packet steered in an SR Policy is augmented with an
      ordered list of segments associated with that SR Policy. A Network
      Resource Partition (NRP) is a subset of network resources allocated in
      the underlay network which can be used to support one or a group of RFC
      9543 network slice services.</t>

      <t>In networks where there are multiple NRPs, an SR Policy may be
      associated with a particular NRP. The association between SR Policy and
      NRP needs to be specified, so that for service traffic which is steered
      into the SR Policy, the header of the packets can be augmented with the
      information associated with the NRP. An SR Policy candidate path can be
      distributed using BGP SR Policy. This document defines the extensions to
      BGP SR policy to specify the NRP which the SR Policy candidate path is
      associated with.</t>
    </abstract>
  </front>

  <middle>
    <section anchor="introduction" title="Introduction">
      <t>The concept of Segment Routing (SR) policy is defined in <xref
      target="RFC9256"/>. An SR Policy is a set of candidate paths, each
      consisting of one or more segment lists. The headend of an SR Policy may
      learn multiple candidate paths for an SR Policy. The header of a packet
      steered in an SR Policy is augmented with an ordered list of segments
      associated with that SR Policy. The BGP extensions to distribute SR
      Policy candidate paths are defined in <xref target="RFC9830"/>.</t>

      <t><xref target="RFC9543"/> discusses the general framework, components,
      and interfaces for requesting and operating network slices using IETF
      technologies. It also introduces the concept of Network Resource
      Partition (NRP), which is a subset of the resources and associated
      policies in the underlay network. The network slices defined in <xref
      target="RFC9543"/> can be realized by mapping one or more connectivity
      constructs to an NRP. <xref target="RFC9732"/> describes the framework
      and the candidate component technologies for providing NRP-based
      enhanced VPN services based on VPN and Traffic Engineering (TE)
      technologies. Enhanced VPN can be used for the realization of network
      slice services defined in <xref target="RFC9543"/>.</t>

      <t>As described in <xref target="I-D.ietf-teas-nrp-scalability"/>, one
      scalable data plane approach to support network slicing is to carry a
      dedicated NRP selector 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.</t>

      <t>In networks where there are multiple NRPs, an SR Policy may be
      associated with a particular NRP. <xref
      target="I-D.ietf-spring-sr-policy-nrp"/> describes the association of
      candidate paths with NRPs under the SR Policy architecture. This
      document defines the extensions to BGP to specify the control plane NRP
      ID <xref target="I-D.ietf-teas-ns-ip-mpls"/> that is associated with an
      SR Policy candidate path. The control plane NRP ID is linked to the NRP
      identifier used in data plane (denoted as NRP Selector ID).</t>

      <section 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 title="NRP Identifier of SR Policy">
      <t>In order to specify the NRP the candidate path of SR policy is
      associated with, a new sub-TLV called "NRP ID" sub-TLV is defined in the
      BGP Tunnel Encapsulation Attribute <xref target="RFC9012"/>. The NRP ID
      sub-TLV can be carried in the BGP Tunnel Encapsulation Attribute with
      the tunnel type set to SR Policy. The use of the NRP ID sub-TLV in other
      tunnel types is outside the scope of this document.</t>

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

      <t><figure>
          <artwork align="center"><![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)                     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                      Figure 1. NRP ID Sub-TLV]]></artwork>
        </figure></t>

      <t>where:</t>

      <t><list style="symbols">
          <t>Type: 123 (assigned by IANA)</t>

          <t>Length: 6 octets.</t>

          <t>Flags: 1-octet flag field. None is defined at this stage. The
          flags MUST be set to zero on transmission and MUST be ignored on
          receipt.</t>

          <t>Reserved: 1 octet of reserved bits. It MUST be set to zero on
          transmission and MUST be ignored on receipt.</t>

          <t>NRP ID: A 32-bit domain significant identifier which is used to
          identify an NRP in the control plane <xref
          target="I-D.ietf-teas-ns-ip-mpls"/>. The values of 0 and 0xFFFFFFFF
          are reserved.</t>
        </list></t>

      <t>The encoding structure of BGP SR Policy with the NRP ID sub-TLV is
      expressed as below:</t>

      <figure>
        <artwork><![CDATA[         SR Policy SAFI NLRI: <Distinguisher, Policy-Color, Endpoint>
         Attributes:
            Tunnel Encaps Attribute (23)
               Tunnel Type: SR Policy (15)
                   Binding SID
                   SRv6 Binding SID
                   Preference
                   Priority
                   Policy Name
                   Policy Candidate Path Name
                   Explicit NULL Label Policy (ENLP)
                   NRP ID
                   Segment List
                       Weight
                       Segment
                       Segment
                       ...
                   ...
             Figure 2. SR Policy Encoding with NRP ID sub-TLV]]></artwork>
      </figure>

      <t/>

      <t>The NRP ID sub-TLV is optional and MUST NOT appear more than once for
      one SR Policy candidate path.</t>
    </section>

    <section title="Procedures">
      <t>When a candidate path of SR Policy is instantiated within an NRP, and
      a network-wide data plane NRP Selector ID is used for identifying the
      resources of the NRP, the originating node of SR Policy MUST include the
      NRP ID sub-TLV in the BGP Tunnel Encapsulation Attribute of the BGP SR
      Policy. The setting of other fields and attributes in BGP SR Policy
      follows the mechanism as defined in <xref target="RFC9830"/>.</t>

      <t>On reception of an SR Policy NLRI with NRP ID sub-TLV in the BGP
      Tunnel Encapsulation Attribute , a BGP speaker determines if it is valid
      and usable according to the rules defined in Section 4.2 of <xref
      target="RFC9830"/>.</t>

      <t>The selected best routes of the SR Policy SAFI is passed on to the SR
      Policy Module (SRPM) for further processing as described in Section
      4.2.2 of <xref target="RFC9830"/>.</t>

      <t>Although the proposed mechanism allows different candidate paths in
      one SR policy to be associated with different NRPs, in normal network
      scenarios it is considered that the association between an SR Policy and
      NRP is consistent, in such case all candidate paths of one SR policy
      SHOULD be associated with the same NRP.</t>
    </section>

    <section title="Error Handling">
      <t>The error handling of the BGP Update messages for BGP SR Policy SAFI
      with the NRP extensions defined in this document follows the procedures
      in section 5 of <xref target="RFC9830"/>.</t>

      <t>The NRP ID sub-TLV is considered malformed if its format does not
      match the above description. If the NRP ID sub-TLV appears more than
      once, or its format is considered malformed, the associated BGP SR
      Policy NLRI is considered malformed and the "treat-as-withdraw" strategy
      of <xref target="RFC7606"/> MUST be applied.</t>
    </section>

    <section title="Operational Considerations">
      <t>The mechanism specified in this document adds additional information
      to the signaling of SR Policy candidate paths in BGP. As the number of
      NRP increases, the number of SR Policies may also increase. When SR
      Policies are associated with different NRPs, the amount of control plane
      information exchanged between the network controller and the headend
      nodes for provisioning SR Policy would increase. However, since the SR
      Policy candidate paths distributed using BGP are only installed by the
      corresponding headend nodes, the impacts to the BGP control plane are
      considered acceptable.</t>
    </section>

    <section anchor="security-considerations" title="Security Considerations">
      <t>The security considerations of BGP <xref target="RFC4271"/> and BGP
      SR Policy <xref target="RFC9830"/> apply to this document.</t>

      <t>The security considerations of SR Policy <xref target="RFC9256"/> and
      SR Policy NRP extensions <xref target="I-D.ietf-spring-sr-policy-nrp"/>
      apply to this document.</t>
    </section>

    <section anchor="iana-considerations" title="IANA Considerations">
      <t>IANA has assigned the sub-TLV type as defined in Section 2 from "BGP
      Tunnel Encapsulation Attribute sub-TLVs" registry in the "Border Gateway
      Protocol (BGP) Tunnel Encapsulation" registry group.</t>

      <t><figure>
          <artwork align="center"><![CDATA[      Value     Description                     Reference
      ----------------------------------------------------
       123        NRP ID                       This document
]]></artwork>
        </figure></t>
    </section>

    <section anchor="acknowledgments" title="Acknowledgments">
      <t>The authors would like to thank Guoqi Xu, Lei Bao, Haibo Wang,
      Shunwan Zhuang and Susan Hares for their review and discussion of this
      document.</t>
    </section>
  </middle>

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

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

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

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

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

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

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

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

      <?rfc include='reference.I-D.ietf-teas-ns-ip-mpls'?>
    </references>

    <references title="Informative References">
      <?rfc include='reference.RFC.9732'?>

      <?rfc include='reference.I-D.ietf-teas-nrp-scalability'?>

      <?rfc include='reference.I-D.ietf-spring-sr-policy-nrp'?>
    </references>
  </back>

  <!---->
</rfc>
