<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?rfc toc="yes" ?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="4"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="no"?>
<?rfc rfcedstyle="yes"?>
<?rfc subcompact="no"?>
<?rfc compact="yes" ?>
<?rfc iprnotified="Yes" ?>
<?rfc strict="no" ?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" category="std" docName="draft-ietf-pce-pcep-extension-pce-controller-srv6-06" obsoletes="" updates="" submissionType="IETF" xml:lang="en" tocInclude="true" tocDepth="4" symRefs="true" sortRefs="false" version="3">
  <!-- xml2rfc v2v3 conversion 3.9.0 -->
  <front>
    <title abbrev="PCECC-SRv6">PCE Communication Protocol (PCEP)
  Extensions for Using the PCE as a Central Controller (PCECC) for Segment Routing over IPv6 (SRv6) Segment Identifier (SID) Allocation and Distribution.</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-pce-pcep-extension-pce-controller-srv6-06"/>
    <author initials="Z" surname="Li" fullname="Zhenbin Li">
      <organization>Huawei Technologies</organization>
      <address>
        <postal>
          <street>Huawei Bld., No.156 Beiqing Rd.</street>
          <city>Beijing  </city>
          <region/>
          <code>100095</code>
          <country>China</country>
        </postal>
        <email>lizhenbin@huawei.com</email>
      </address>
    </author>
    <author initials="S" surname="Peng" fullname="Shuping Peng">
      <organization>Huawei Technologies</organization>
      <address>
        <postal>
          <street>Huawei Bld., No.156 Beiqing Rd.</street>
          <city>Beijing</city>
          <region/>
          <code>100095</code>
          <country>China</country>
        </postal>
        <email>pengshuping@huawei.com</email>
      </address>
    </author>
    <author initials="X" surname="Geng" fullname="Xuesong Geng">
      <organization>Huawei Technologies</organization>
      <address>
        <postal>
          <street/>
          <city/>
          <region/>
          <code/>
          <country>China</country>
        </postal>
        <email>gengxuesong@huawei.com</email>
      </address>
    </author>
    <author initials="M" surname="Negi" fullname="Mahendra Singh Negi">
      <organization>RtBrick Inc</organization>
      <address>
        <postal>
          <street>N-17L, 18th Cross Rd, HSR Layout</street>
          <city>Bangalore</city>
          <region>Karnataka</region>
          <code>560102</code>
          <country>India</country>
        </postal>
        <email>mahend.ietf@gmail.com</email>
      </address>
    </author>
    <date year="2026"/>
    <area>Routing</area>
    <workgroup>PCE Working Group</workgroup>
    <abstract>
      <t>The Path Computation Element (PCE) is a core component of Software-Defined Networking (SDN) systems. A PCE-based Central Controller (PCECC) can simplify the processing of
   a distributed control plane by blending it with elements of SDN
   without necessarily completely replacing it.</t>
   <t>This document specifies the procedures and Path Computation Element Communication Protocol (PCEP) extensions
   when a PCE-based controller is also responsible for configuring the
   forwarding actions on the routers, in addition to computing the paths for packet flows in an  SRv6 (SR in IPv6) network and telling the edge
   routers, what instructions to attach to packets as they enter the
   network. PCECC is further enhanced for SRv6 Segment Identifier (SID) allocation and distribution.</t>
    </abstract>
  </front>
  <middle>
    <section toc="default" numbered="true">
      <name>Introduction</name>
      <t>The PCE <xref target="RFC4655" format="default"/> was developed to offload
   the path computation function from routers in an MPLS traffic-engineered
   network.  It can compute optimal paths for traffic
   across a network and can also update the paths to reflect changes in
   the network or traffic demands. Since then, the role and function of the PCE have grown to
   cover a number of other uses (such as GMPLS <xref target="RFC7025" format="default"/>) and to allow
   delegated control <xref target="RFC8231" format="default"/> and PCE-initiated use of network
   resources <xref target="RFC8281" format="default"/>.</t>
      <t>According to <xref target="RFC7399" format="default"/>, Software-Defined Networking (SDN) refers to a
   separation between the control elements and the forwarding components
   so that software running in a centralized system, called a
   controller, can act to program the devices in the network to behave
   in specific ways.  A required element in an SDN architecture is a
   component that plans how the network resources will be used and how
   the devices will be programmed.  It is possible to view this
   component as performing specific computations to place traffic flows
   within the network, given knowledge of the availability of the network
   resources, how other forwarding devices are programmed, and the way
   that other flows are routed.  This is the function and purpose of a
   PCE, and the way that a PCE integrates into a wider network control
   system (including an SDN system) is presented in <xref target="RFC7491" format="default"/>.</t>
      <t>In early PCE implementations, where the PCE was used to derive paths
   for MPLS Label Switched Paths (LSPs), paths were requested by the network
   elements (known as Path Computation Clients (PCCs)), and the results
   of the path computations were supplied to network elements using the
   PCE Communication Protocol (PCEP) <xref target="RFC5440" format="default"/>.
   This protocol was later extended to allow a PCE to send unsolicited
   requests to the network for LSP establishment <xref target="RFC8281" format="default"/>.</t>
      <t><xref target="RFC8283" format="default"/> introduces the architecture for PCE as a central controller (PCECC) as an extension of the architecture described in <xref target="RFC4655" format="default"/>
   and assumes the continued use of PCEP as the protocol used between
   PCE and PCC. <xref target="RFC8283" format="default"/>  further examines the motivations and applicability
   for PCEP as a Southbound Interface (SBI), and introduces the implications for the
   protocol.  <xref target="RFC9689" format="default"/> describes the use cases for
   the PCECC architecture.</t>
      <t><xref target="RFC9050" format="default"/> specify the procedures and PCEP extensions for
   using the PCE as the central controller for static LSPs, where
   LSPs can be provisioned as explicit label instructions at each
   hop on the end-to-end path.</t>
      <t>Segment Routing (SR) technology leverages the source routing and tunneling paradigms.
   A source node can choose a path without relying on hop-by-hop
   signaling protocols such as LDP or RSVP-TE.  Each path is specified
   as a set of "segments" advertised by link-state routing protocols
   (IS-IS or OSPF).  <xref target="RFC8402" format="default"/> provides an
   introduction to the SR architecture. The corresponding IS-IS and OSPF extensions are
   specified in <xref target="RFC8667" format="default"/> and
   <xref target="RFC8665" format="default"/>, respectively.
   It relies on a series of
   forwarding instructions being placed in the header of a packet in the
   form of a list of segments forming the path, called the
   Segment List.  Segment Routing
   can be applied to the IPv6 architecture with the Segment Routing
   Header (SRH) <xref target="RFC8754" format="default"/>.  A segment is
   encoded as an IPv6 address.  An ordered list of segments is encoded
   as an ordered list of IPv6 addresses in the routing header.  The
   active segment is indicated by the Destination Address of the packet.
   Upon completion of a segment, a pointer in the new routing header is
   incremented and indicates the next segment.
   The segment routing architecture supports operations that can be used
   to steer packet flows in a network, thus providing a form of traffic
   engineering. <xref target="RFC8664" format="default"/> and <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/> specify the SR specific PCEP
   extensions.
      </t>
      <t>The PCECC may perform centralized allocation of the SR Segment
   Identifiers (SIDs) and use PCEP to distribute them to the SR nodes. The SR
     nodes continue to rely on IGP for distributed computation (nexthop
     selection, protection, etc.), where PCE (and PCEP) does only the
     allocation and distribution of SRv6 SIDs in the network.  Note that the
     topology at PCE is still learned via existing mechanisms.</t>
      <t>

   A PCE-based central controller may be responsible for computing the
   paths for packet flows in an MPLS Segment Routing (SR-MPLS) network
   and for telling the edge routers what instructions to attach to
   packets as they enter the network.  <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/> specifies the procedures and PCEP extensions when a
   PCE-based controller is additionally responsible for configuring the
   forwarding actions on routers in an SR-MPLS network (i.e., for SR-
   MPLS SID distribution).  This document extends those procedures to
   include SRv6 SID distribution as well.


      </t>
      <!--<t>[Important Note - Note that this document achieves by extending the new PCEP message defined in <xref target='I-D.zhao-pce-pcep-extension-for-pce-controller'/>.
    The authors and WG also debated on the use of existing PCEP messages.
    <xref target="Procedures"/> defines the first approach where as <xref target="appendix"/>
    defines the latter. The authors are open to either of the approach and
    will follow the direction of the WG.]</t>-->


    </section>
    <section toc="default" numbered="true">
      <name>Terminology</name>
      <t>Terminologies used in this document are the same as described in
       <xref target="RFC8283" format="default"/> and <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/>.</t>
      <section toc="default" numbered="true">
        <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 toc="default" anchor="SEC_M" numbered="true">
      <name>PCECC SRv6</name>
      <t><xref target="RFC8664" format="default"/> specifies extensions to
    PCEP that allows a stateful PCE to
   compute, update, or initiate SR-TE paths for the MPLS dataplane. An ingress node of an SR-TE path includes a list of MPLS labels (SIDs)
   in all outgoing packets. This is encoded in
   SR-ERO subobject, capable of carrying a label (SID) as well as the identity of the
   node/adjacency label (SID). <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/> extends the procedure
   to include support for SRv6 paths.</t>
      <t>As per <xref target="RFC8754" format="default"/>, an SRv6 Segment is a
   128-bit value.  "SRv6 SID" or simply "SID" are often used as a
   shorter reference for "SRv6 Segment".  Further details are in an
   illustration provided in
   <xref target="RFC8986" format="default"/>.
SR is applied to the IPv6 data plane using the SRH.  An SR path can be derived from an IGP Shortest Path
   Tree (SPT), but SR-TE paths might not follow the IGP SPT.  Such paths may
   be chosen by a suitable network planning tool or a PCE and
   provisioned on the ingress node. <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/> specifies
   the SRv6-ERO subobject capable of carrying an SRv6 SID as well as the identity
   of the node/adjacency represented by the SID.</t>
      <t><xref target="RFC8283" format="default"/> examines the motivations and applicability for
   PCECC and the use of PCEP as an SBI. Section 3.1.5. of <xref target="RFC8283" format="default"/>
   highlights the use of PCECC for configuring the forwarding actions on the routers and
   assuming responsibility for managing the identifier space. It simplifies the processing of a distributed
   control plane by blending it with elements of SDN without
   necessarily completely replacing it. This allows the operator to introduce
   the advantages of SDN (such as programmability) into the network. Further, Section 3 of <xref target="RFC9689" format="default"/> describes some of the scenarios where the PCECC technique could be useful. Section 4 of <xref target="RFC8283" format="default"/>
   also describes the implications of the protocol when used as an SDN SBI. The operator needs to evaluate the advantages offered by PCECC against the operational and scalability needs of the PCECC <xref target="Manageability" format="default"/>.  </t>
      <t>As per <xref target="RFC8283" format="default"/>,
   PCECC can allocate the node/prefix/adjacency label (SID) and provision them via PCEP.
  As per <xref target="RFC9689" format="default"/>, this is also applicable to SRv6 SIDs. </t>
      <t>The rest of the
   processing is similar to existing stateful PCE for SRv6 <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/>.</t>
    </section>
    <section toc="default" anchor="SEC_R" numbered="true">
      <name>PCEP Requirements</name>
      <t>Following key requirements for PCECC-SRv6 should be considered when
   designing the PCECC-based solution:</t>
      <ul spacing="normal">
        <li>A PCEP speaker supporting this document needs to have the capability to
       advertise its PCECC-SRv6 capability to its peers.</li>
        <li>PCEP procedures need to allow for PCC-based SRv6 SID allocations.</li>

        <!--<t>PCEP speaker not supporting this document needs to be able to reject
       PCECC-SRv6 related message with a reason code that indicates no
       support for it.</t>-->

   <li>PCEP procedures need to provide a means to update (or clean up) the SRv6 SID to the PCC.</li>
        <li>PCEP procedures need to provide a means to synchronize the SRv6 SID allocations between
       the PCE and the PCC in the PCEP messages.</li>
      </ul>
    </section>
    <section toc="default" anchor="Procedures" numbered="true">
      <name>Procedures for Using the PCE as a Central Controller (PCECC) in SRv6</name>
      <section toc="default" numbered="true">
        <name>Stateful PCE Model</name>
        <t>Active stateful PCE is described in <xref target="RFC8231" format="default"/>. A PCE
    as a Central Controller (PCECC) reuses the existing active stateful PCE
    mechanism as much as possible to control the LSPs.</t>
      </section>
      <section toc="default" numbered="true">
        <name>New Functions</name>

        <t>The PCEP messages PCRpt, PCInitiate, and PCUpd are used to send LSP
   reports, LSP setup, and LSP updates, respectively.  <xref target="RFC9050" format="default"/> describes
   the use of the PCInitiate message with a new object called the CCI
   for encoding the central controller instructions.
   <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/> defines a CCI object-type for SR-MPLS.</t>

   <t>This document uses the same PCEP messages and their extensions as
   described in <xref target="RFC9050" format="default"/> and <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/>.  It extends their use to PCECC-SRv6.  In particular, this document defines a new CCI
   object type for SRv6 with type=TBD3.</t>

      </section>
      <section toc="default" numbered="true">
        <name>PCECC Capability Advertisement</name>
        <t>During the PCEP initialization phase, PCEP speakers (PCE or PCC)
   advertise their support of and willingness to use PCEP extensions for the PCECC. A PCEP speaker includes
   the PCECC-CAPABILITY sub-TLV in the PATH-SETUP-TYPE-CAPABILITY TLV as per
   <xref target="RFC9050" format="default"/>.</t>

   <t><xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/> defines the S bit in
   the PCECC-CAPABILITY sub-TLV to indicate support for PCECC-SR-MPLS.
   This document defines another bit (the I bit) to indicate PCECC
   support for SRv6.  A PCC MUST set the I bit in the PCECC-CAPABILITY
   sub-TLV and include the SRv6-PCE-CAPABILITY sub-TLV
   (<xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/>) in the OPEN object (inside the
   PATH-SETUP-TYPE-CAPABILITY TLV) to support the PCECC SRv6 extensions
   defined in this document.</t>

   <t>Implementations that are not aware of the meaning of the I bit will
   ignore it per Section 7.1.1 of <xref target="RFC9050" format="default"/>.  Implementations that are
   not aware of the SRv6-PCE-CAPABILITY sub-TLV but receive one in the
   PATH-SETUP-TYPE-CAPABILITY TLV with the PST value of 3 sets (per
   <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/>, will respond as described in Section 5 of <xref target="RFC8408" format="default"/>.</t>

        <t>If the I bit is set in PCECC-CAPABILITY sub-TLV and the SRv6-PCE-CAPABILITY sub-TLV is not advertised, or is advertised without the I bit set, in the OPEN object, a receiver that implements this specification MUST:
        </t>
        <ul spacing="normal">
          <li>send a PCErr message with Error-Type=19 (Invalid Operation) and
      Error-value=TBD4 (SRv6 capability
   was not advertised) and</li>
          <li>terminate the session.</li>
        </ul>
        <t>The rest of the processing is as per
     <xref target="RFC9050" format="default"/> and <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/>.</t>
      </section>
      <section toc="default" anchor="SEC_SESSION" numbered="true">
        <name>PCEP session IP address and TED Router-ID</name>
        <t>As described in <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/>, it is important to link the session IP address with the
   Router-ID in the Traffic Engineering Database (TED) for successful PCECC-SRv6 operations. Note that the session IP needs to be different from the IPv6 address for the SID to avoid any impact on the PCEP session when the SRv6 SID is allocated. The Router-ID TLVs are specified in <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/> and are used to advertise the TE mapping information.</t>
      </section>
      <section toc="default" numbered="true">
        <name>SRv6 Path Operations</name>
        <t><xref target="RFC8664" format="default"/> specifies the PCEP extension to allow a stateful PCE
        to compute and initiate SR-TE paths, as well as a PCC to request a
        path subject to certain constraint(s) and optimization criteria in SR
        networks. <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/> extends it to support SRv6.</t>
        <t>The Path Setup Type for SRv6 (PST=3) is used on the PCEP session with the Ingress as per
        <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/>.</t>
        <!--<t> The PCEP messages pertaining to PCECC-SRv6 MUST include PATH-SETUP-TYPE
   TLV <xref target='RFC8408'/> with PST=TBD2 in the SRP object
   to clearly identify the PCECC-SRv6 setup is intended.</t>-->

    <section toc="default" anchor="SEC_SR_SETUP" numbered="true">
          <name>PCECC Segment Routing in IPv6 (SRv6)</name>
          <t>Segment Routing (SR) as described in
   <xref target="RFC8402" format="default"/> depends on "segments" that are
   advertised by Interior Gateway Protocols (IGPs).  The SR-node
   allocates and advertises the SID (node, adj, etc) and floods them via the
   IGP.  This document describes a new mechanism where the PCE allocates the
   SRv6 SID centrally and uses PCEP to distribute them to all nodes.  In some
   deployments, PCE (and PCEP) are better suited than IGP because of
   the centralized nature of PCE and direct TCP-based PCEP sessions to the
   node. Note that only
     the SRv6 SID allocation and distribution are done by the PCEP; all other SRv6
     operations (nexthop selection, protection, etc) are still done by the
     node (and the IGPs).</t>
          <section toc="default" anchor="SEC_NODE_ALLOC" numbered="true">
            <name>PCECC SRv6 Node/Prefix SID Allocation</name>
            <t>Each node (PCC) is allocated a node SRv6 SID by the PCECC.  The
         PCECC sends the PCInitiate message to update the SRv6 SID table of each node.
         The TE Router-ID is determined from the
         TED or from "IPv4/IPv6 Router-ID" TLVs
         <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/>, in the OPEN Object.</t>
            <!--<t>Note: See <xref target="appendix"/> for how
   we could use PCInitiate message instead.]</t>-->

        <!--<t>It is RECOMMENDED that PCEP session with PCECC SR capability to use a
         different session IP address during TCP session establishment than
         the node Router ID in TEDB, to make sure that the PCEP session does
         not get impacted by the SR Node/Prefix Label maps (<xref target="SEC_SESSION"/>).</t>-->

         <!--<t>If a node (PCC) receives a PCInitiate message with a CCI encoding a SID, out
      of the range set aside for the SRGB, it MUST send a PCErr message with Error-type=TBD
   (PCECC failure) and Error-value=TBD (SID out of range) and MUST include the
   SRP object to specify the error is for the corresponding label update via PCInitiate message.</t>-->

        <t>On receiving the SRv6 node SID allocation, each node (PCC) uses the local
         routing information to determine the nexthop and download the
         forwarding instructions accordingly.  The PCInitiate message uses the FEC object <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/>.</t>
            <t>On receiving the SRv6 node SID allocation:</t>
            <ul empty="true" spacing="normal">
              <li>For the local SID, the node (PCC) needs to update the SID with the associated
  function (END function in this case) in "My Local SID Table" (<xref target="RFC8986" format="default"/>).</li>
              <li>For the non-local SID, the node (PCC) uses the local routing information
  to determine the nexthop and download the forwarding instructions accordingly.  </li>
            </ul>
            <!--<t>The PCInitiate message in this
  case MUST have FEC object.</t>-->


        <t>The forwarding behaviour and the end result are similar to IGP-based
        "Node-SID" in SRv6.  Thus, from anywhere in the domain, it enforces the
        ECMP-aware shortest-path forwarding of the packet towards the related
        node as per <xref target="RFC8402" format="default"/>.</t>
            <t>PCE relies on the Node/Prefix SRv6 SID clean up using the same PCInitiate
        message as per <xref target="RFC8281" format="default"/>.</t>
          </section>
          <section toc="default" anchor="SEC_ADJ_ALLOC" numbered="true">
            <name>PCECC SRv6 Adjacency SID Allocation</name>
            <!--<t><xref target='RFC8664'/> extends PCEP to allow a stateful PCE
        to compute and initiate SR-TE paths, as well as a PCC to request a
        path subject to certain constraint(s) and optimization criteria in SR
        networks.</t>-->

        <t>For PCECC-SRv6, apart from node-SID, Adj-SID is used, where each adjacency
         is allocated an Adj-SID by the PCECC.  The PCECC sends
         PCInitiate message to update the SRv6 SID entry for each adjacency to all
         nodes in the domain.  Each node (PCC) downloads the SRv6 SID
         instructions accordingly.  Similar to SRv6 Node/Prefix Label allocation, the
         PCInitiate message, in this case, uses
         the FEC object. </t>
            <t>The forwarding behaviour and the end result are similar to IGP-based
        "Adj-SID" in SRv6 as per <xref target="RFC8402" format="default"/>.</t>
            <t>The handling of adjacencies on the LAN subnetworks is specified in <xref target="RFC8402" format="default"/>. PCECC MUST assign an Adj-SID for every pair of routers in the LAN. The rest of the protocol mechanism remains the same.</t>
            <!--<t>The Path Setup Type for segment routing MUST be set for PCECC SRv6 = TBD2
         (see <xref target="SEC_PATH"/>).  All PCEP procedures and mechanism are similar to
        <xref target='RFC8664'/>.</t>-->

        <t>PCE relies on the Adj label cleanup using the same PCInitiate
        message as per <xref target="RFC8281" format="default"/>.</t>
          </section>
          <section toc="default" anchor="SEC_REDUND" numbered="true">
            <name>Redundant PCEs</name>
            <t><xref target="I-D.ietf-pce-state-sync" format="default"/> describes the synchronization
       mechanism between the stateful PCEs. The SRv6 SIDs allocated by a PCE MUST also be
       synchronized among PCEs for PCECC-SRv6 state synchronization. Note that the SRv6 SIDs
       are independent of the SRv6 paths and remain intact until any topology
       change. The redundant PCEs MUST have a common view of all SRv6 SIDs allocated in the
       domain.
            </t>
          </section>
          <section toc="default" anchor="SEC_SES_TERMIN" numbered="true">
            <name>Re-Delegation and Cleanup</name>
            <t><xref target="RFC9050" format="default"/> describes the action
        needed for CCIs for the static LSPs on a terminated
        session. Same holds true for the CCI for SRv6 SID as well.</t>
          </section>
          <section toc="default" anchor="SEC_DB_SYNC" numbered="true">
            <name>Synchronization of SRv6 SID Allocations</name>
            <t><xref target="RFC9050" format="default"/> describes the synchronization of CCIs via the LSP state synchronization
   as described in <xref target="RFC8231" format="default"/> and
   <xref target="RFC8232" format="default"/>.
        Same procedures are applied for the SRv6 SID CCIs.</t>
            <!--<t>See <xref target="I-D.palle-pce-controller-labeldb-sync"/> for the optimizations for LABEL-DB synchronization procedure.</t>          -->
       </section>
              <section toc='default' anchor='BSID'><name>Binding SID</name>

   <t>Another SID called binding SID is described in <xref target='I-D.ietf-pce-binding-label-sid'/>. The PCECC mechanism can also be used to allocate the binding SID for SRv6.</t>

   <t>A procedure for binding label/SID allocation is described in <xref target='I-D.ietf-pce-binding-label-sid'/> and is applicable for all path setup types (including SRv6 paths).</t>
 </section>
        <section toc='default' anchor='anycast'><name>Anycast SID</name>
        <t>As per <xref target='RFC8402'/>, an anycast segment or Anycast-SID enforces the ECMP-aware shortest-path forwarding towards the closest node of the anycast set. Note that the SRv6 anycast prefix segments can also be allocated and distributed in the same way as described in <xref target="SEC_NODE_ALLOC"/>.</t>
      </section>
        </section>
      </section>
    </section>
    <section toc="default" numbered="true">
      <name>PCEP Messages</name>
      <t>The PCEP messages are as per  <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/>.</t>
    </section>
    <section toc="default" numbered="true">
      <name>PCEP Objects</name>
      <section toc="default" numbered="true">
        <name>OPEN Object</name>
        <section toc="default" anchor="SEC_PCECC_CAP_TLV" numbered="true">
          <name>PCECC Capability sub-TLV</name>
          <t><xref target="RFC9050" format="default"/> defined
    the PCECC-CAPABILITY sub-TLV.</t>
          <t>A new I-bit is defined in PCECC-CAPABILITY sub-TLV for PCECC-SRv6:</t>
          <artwork align="left" alt="" name="" type=""><![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=1          |            Length=4           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                             Flags                       |I|S|L|
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

        ]]></artwork>
          <t>[Editor's Note - The above figure is included for the ease of the reader but should be removed before publication.]</t>
          <t>I (PCECC-SRv6-CAPABILITY - 1 bit - TBD1):  If set to 1 by a PCEP speaker, it
      indicates that the PCEP speaker is capable of PCECC-SRv6 capability
      and the PCE allocates the Node and Adj SRv6 SID on this session.</t>
        </section>
      </section>
      <section toc="default" anchor="SEC_PATH" numbered="true">
        <name>SRv6 Path Setup</name>
        <t>The PATH-SETUP-TYPE TLV is defined in <xref target="RFC8408" format="default"/>. A PST value of 3 is used
   when Path is setup via SRv6 mode as per <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/>. The procedure for SRv6 path setup as specified in <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/> remains unchanged.</t>
        <!--<t>On a PCRpt/PCUpd/PCInitiate message, the PST=TBD2 indicates that this
   path was setup via a PCECC-SRv6 based mechanism where either the SIDs were
   allocated/instructed by PCE via PCECC mechanism.</t>-->


    </section>
      <section toc="default" anchor="SEC_CCI" numbered="true">
        <name>CCI Object</name>
        <t>The Central Control Instructions (CCI) Object is used by the PCE to specify the controller instructions as defined in <xref target="RFC9050" format="default"/>.
    This document defines another object type for SRv6 purposes. </t>
        <t>CCI Object-Type is TBD3 for SRv6 as below -
        </t>
        <artwork align="left" alt="" name="" type=""><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            CC-ID                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      MT-ID    |    Algorithm  |    Flags      |B|P|G|C|N|E|V|L|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           Reserved            |   SRv6 Endpoint Function      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                                               |
|                      SRv6 Identifier                          |
|                         (128-bit)                             |
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                              SID                              |
|                           Structure                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                                               |
//                        Optional TLV                         //
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

        ]]></artwork>
        <t>The field CC-ID is as described in <xref target="RFC9050" format="default"/>. The fields MT-ID, Algorithm, and Flags are defined in
       <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/>.</t>
        <t>Reserved: MUST be set to 0 while sending and ignored on receipt.</t>
        <t>SRv6 Endpoint Function: 16-bit field representing supported
      functions associated with SRv6 SIDs.</t>
        <t>SRv6 Identifier: 128-bit IPv6 addresses representing SRv6
      segment.</t>
        <t>SID Structure: 64-bit field formatted as per "SID Structure" in <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/>. The sum of all four sizes in the SID Structure must be lower than or equal
   to 128 bits. According to <xref target="I-D.ietf-pce-segment-routing-ipv6" format="default"/>, if the sum of
   all four sizes advertised in the SID Structure is larger than 128
   bits, the corresponding SRv6 SID is considered invalid and a
   PCErr message with Error-Type = 10 ("Reception of an invalid object")
   and Error-Value = 37 ("Invalid SRv6 SID Structure") is returned.</t>
      </section>
      <section toc="default" anchor="SEC_FEC" numbered="true">
        <name>FEC Object</name>
        <t>The FEC Object is used to specify the FEC information and MAY be
   carried within the PCInitiate or PCRpt message.</t>
        <t>FEC Object (and various Object-Types) are described in <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/>. SRv6 Node SID MUST include the FEC Object-Type 2 for IPv6 Node.
    SRv6 Adjacency SID MUST include the FEC Object-Type=4 or 6 for IPv6 adjacency. Further FEC object types could be added in future extensions.</t>
      </section>
    </section>
    <section toc="default" numbered="true">
      <name>Security Considerations</name>
      <t>As per <xref target="RFC8283" format="default"/>, the security considerations for a PCE-based controller are a little
   different from those for any other PCE system.  That is, the
   operation relies heavily on the use and security of PCEP, so
   consideration should be given to the security features discussed in
   <xref target="RFC5440" format="default"/> and the additional mechanisms described in <xref target="RFC8253" format="default"/>. It further lists the vulnerability of a central controller architecture, such as a central
   point of failure, denial of service, and a focus for
   interception and modification of messages sent to individual Network Elements (NEs).</t>
      <t>The PCECC extension builds on the existing PCEP messages; thus, the security considerations described in <xref target="RFC5440" format="default"/>, <xref target="RFC8231" format="default"/>,
       <xref target="RFC8281" format="default"/>, <xref target="RFC9050" format="default"/>, and <xref target="I-D.ietf-pce-pcep-extension-pce-controller-sr" format="default"/> continue to apply. As per <xref target="RFC9050"/>, for the PCECC
 	   operations, the PCEP sessions are also required for the internal
 	   routers, thus increasing the resources required for the session
 	   management at the PCE.  The PCECC has the capability to allocate or
 	   remove SIDs at the PCC, which can cause the SRv6 paths/policies to
 	   behave inappropriately and cause a major impact on the network.
 	   Similarly, an out-of-sync PCEP speaker with a conflicting view of SRv6
 	   SIDs allocation can have major impact.</t>
      <t>Thus, it is RECOMMENDED that these PCEP extensions only be activated on mutually authenticated and encrypted sessions across PCEs and PCCs belonging to the same administrative authority, using Transport Layer Security (TLS) <xref target="RFC8253" format="default"/> as per the recommendations and best current practices in BCP 195 <xref target="RFC9325" format="default"/>.</t>
    </section>
    <section toc="default" numbered="true" anchor="Manageability" >
      <name>Operational Considerations</name>
      <section toc="default" numbered="true">
        <name>Control of Function and Policy</name>
        <t> A PCE or PCC implementation SHOULD allow the PCECC-SRv6 capability to be enabled/disabled as part of the global configuration. The implementation SHOULD also allow setting the local IP address used by the PCEP session with PCECC-SRv6 capability. The PCEP session with this capability set ought to use a different session IP address during TCP session establishment than the SRv6 SID.</t>
      </section>
      <section toc="default" numbered="true">
        <name>Information and Data Models</name>
        <t>A future augmentation of the PCEP YANG module <xref target="RFC9826" format="default"/> needs to support a way to enable/disable PCECC SRv6 capability. The "/pcep/entity/addr" can be used to set the local IP address used by the PCEP session.</t>
      </section>
      <section toc="default" numbered="true">
        <name>Liveness Detection and Monitoring</name>
        <t>Mechanisms defined in this document do not imply any new liveness
           detection and monitoring requirements for PCEP in addition to those already
           listed in <xref target="RFC5440" format="default"/>.</t>
      </section>
      <section toc="default" numbered="true">
        <name>Verify Correct Operations</name>
        <t>Mechanisms defined in this document do not imply any new operation
   verification requirements for PCEP, in addition to those already listed in
   <xref target="RFC5440" format="default"/> and <xref target="RFC8231" format="default"/>.</t>
      </section>
      <section toc="default" numbered="true">
        <name>Requirements On Other Protocols</name>
        <t>PCEP extensions defined in this document do not put new requirements
   on other protocols. It is expected that PCECC-based mechanisms described in this document are not used in conjunction with the IGP-based mechanism, though different SIDs allocated and distributed via both mechanisms can coexist. </t>
      </section>
      <section toc="default" numbered="true">
        <name>Impact On Network Operations</name>
        <t>PCEP extensions defined in this document allow SRv6 SID allocation to be done from a central controller, thus simplifying the network operations. While the forwarding behavior is	consistent with SRv6, introducing PCECC-SRv6 changes operational
 	   dependencies by making SRv6 SID allocation/distribution reliant on the
 	   PCE.  Operators should consider resilience of the PCECC deployment
 	   (e.g., redundant PCEs, state synchronization, and failure recovery
 	   behavior) and the impact of partial or inconsistent SRv6 SID distribution.	</t>
        <t>PCEP implementation SHOULD allow a limit to be placed on the rate
   of PCInitiate/PCUpd messages (as per <xref target="RFC8231" format="default"/>) sent by PCE and processed by PCC.
   It SHOULD also allow sending a notification when a rate threshold is
   reached.</t>
      </section>
      <section toc="default" numbered="true">
        <name>Migration Considerations</name>
       <t>Nodes that do not support PCECC-SRv6 will not receive SID mappings via
 	   PCEP and therefore cannot participate in centrally distributed
 	   allocations; operators should plan migration such that centrally
 	   allocated SIDs are only relied upon where all relevant nodes have the
 	   necessary capability and connectivity to the PCE.  During migration
 	   from IGP-based SID distribution to PCECC-SRv6 SID allocation and
 	   distribution by a PCE, care is required to avoid disruption to
 	   existing services.  To support a smooth transition, it may be useful
 	   to allocate PCE-controlled SIDs from a separate SID space.  This
 	   allows PCE-based allocation and IGP-based allocation to coexist for a
 	   limited period of time, enabling services to be gradually migrated
 	   from IGP-based SRv6 to PCE-controlled SRv6 without impacting network
 	   stability.</t>

        </section>
    </section>
    <section toc="default" numbered="true">
      <name>IANA Considerations</name>
      <section toc="default" numbered="true">
        <name>PCECC-CAPABILITY sub-TLV</name>
        <t><xref target="RFC9050" format="default"/> defines the
      PCECC-CAPABILITY sub-TLV and requests that IANA create a registry to
      manage the value of the PCECC-CAPABILITY sub-TLV's Flag field.  IANA
      is requested to allocate a new bit in the PCECC-CAPABILITY sub-TLV Flag
      Field registry, as follows:</t>
        <table anchor="CAP-TLV" align="center">
          <thead>
            <tr>
              <th align="left">Bit</th>
              <th align="left">Description</th>
              <th align="left">Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">TBD1</td>
              <td align="left">SRv6 (I-bit)</td>
              <td align="left">This document</td>
            </tr>
          </tbody>
        </table>
      </section>
      <!--<section title="New Path Setup Type Registry" toc="default">
        <t>IANA is requested to allocate new PST Field in PATH-
           SETUP-TYPE TLV.  The allocation policy for this new registry should
           be by IETF Consensus. The new registry should contain the following value:</t>
     <texttable anchor="PCEP-PATH-TYPE" style="none" suppress-title="true" title="" align="center">
      <ttcol align="left" width="20%">Value</ttcol>
      <ttcol align="left" width="30%">Description</ttcol>
      <ttcol align="left" width="20%">Reference</ttcol>
       <c>TBD2</c>
       <c>Path is</c>
       <c>This document</c>
       <c> </c>
       <c>setup using PCECC-SRv6 mode</c>
       <c> </c>
     </texttable>
      </section>-->
<section toc="default" numbered="true">
        <name>PCEP Object</name>
        <t>IANA is requested to allocate a new code point for the new CCI object type in "PCEP Objects" registry as follows:</t>
        <table anchor="PCEP-OBJECT" align="center">
          <thead>
            <tr>
              <th align="left">Object-Class Value</th>
              <th align="left">Name</th>
              <th align="left">Object-Type</th>
              <th align="left">Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">44</td>
              <td align="left">CCI</td>
              <td align="left"> </td>
              <td align="left">
                <xref target="RFC9050" format="default"/></td>
            </tr>
            <tr>
              <td align="left"> </td>
              <td align="left"> </td>
              <td align="left">TBD3: SRv6</td>
              <td align="left">This document</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section toc="default" numbered="true">
        <name>PCEP-Error Object</name>
        <t>IANA is requested to allocate new error types and error values within
        the "PCEP-ERROR Object Error Types and Values" registry of the
        PCEP Numbers registry group for the following errors:</t>

<table anchor="Error" align="center">
          <thead>
            <tr>
              <th align="left">Error-Type</th>
              <th align="left">Meaning</th>
              <th align="left">Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">19</td>
              <td align="left">Invalid Operation</td>
              <td align="left"></td>
            </tr>
            <tr>
              <td align="left"></td>
              <td align="left">Error-value = TBD4: SRv6 capability was not advertised</td>
              <td align="left">This document</td>
            </tr>
          </tbody>
        </table>



      </section>
    </section>
    <section toc="default" numbered="true">
      <name>Acknowledgments</name>
      <t>Thanks to Adrian Farrel for the review and suggested text.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5440.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8231.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8281.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8664.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-pce-segment-routing-ipv6.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9050.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-pce-pcep-extension-pce-controller-sr.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-pce-binding-label-sid.xml"/>
      </references>
      <references>
        <name>Informative References</name>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4655.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7025.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7399.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7491.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9325.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8232.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8253.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8283.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8402.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8408.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8665.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8667.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8754.xml"/>
        <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8986.xml"/>
                <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9689.xml"/>
                                <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.9826.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-pce-state-sync.xml"/>
        <!--<xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-dhodylee-pce-pcep-ls.xml"/>
        <xi:include href="https://datatracker.ietf.org/doc/bibxml3/draft-ietf-spring-srv6-network-programming.xml"/>
        <?rfc include="reference.I-D.palle-pce-controller-labeldb-sync"?>-->

      </references>
    </references>
    <section toc="default" numbered="true">
      <name>Contributor Addresses</name>
      <artwork name="" type="" align="left" alt=""><![CDATA[


Dhruv Dhody
Huawei
India

EMail: dhruv.ietf@gmail.com


        ]]></artwork>
    </section>
  </back>
</rfc>
