<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>

<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" consensus="true" docName="draft-ietf-pce-sid-algo-29" number="9933" ipr="trust200902" updates="8664, 9603" obsoletes="" submissionType="IETF" xml:lang="en" tocInclude="true" tocDepth="3" symRefs="true" sortRefs="true" version="3">

  <front>
    <title abbrev="SR-Algorithm in PCEP">
    Carrying SR-Algorithm in Path Computation Element Communication Protocol (PCEP)
    </title>
    <seriesInfo name="RFC" value="9933"/>
    <author fullname="Samuel Sidor" initials="S." surname="Sidor">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street>Eurovea Central 3.</street>
          <street>Pribinova 10</street>
          <city>Bratislava</city>
          <code>811 09</code>
          <country>Slovakia</country>
        </postal>
        <email>ssidor@cisco.com</email>
      </address>
    </author>
    <author fullname="Zoey Rose" initials="Z." surname="Rose">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street>2300 East President George</street>
          <city>Richardson</city>
	  <region>TX</region>
          <code>75082</code>
          <country>United States of America</country>
        </postal>
        <email>atokar@cisco.com</email>
      </address>
    </author>
    <author fullname="Shaofu Peng" initials="S." surname="Peng">
      <organization>ZTE Corporation</organization>
      <address>
        <postal>
          <street>No.50 Software Avenue</street>
          <city>Nanjing</city>
          <region>Jiangsu</region>
          <code>210012</code>
          <country>China</country>
        </postal>
        <email>peng.shaofu@zte.com.cn</email>
      </address>
    </author>
    <author fullname="Shuping Peng" initials="S." surname="Peng">
      <organization>Huawei Technologies</organization>
      <address>
        <postal>
          <street>Huawei Campus, No. 156 Beiqing Rd.</street>
          <city>Beijing</city>
          <code>100095</code>
          <country>China</country>
        </postal>
        <email>pengshuping@huawei.com</email>
      </address>
    </author>
    <author fullname="Andrew Stone" initials="A." surname="Stone">
      <organization>Nokia</organization>
      <address>
        <email>andrew.stone@nokia.com</email>
      </address>
    </author>
    <date month="February" year="2026"/>
    <area>RTG</area>
    <workgroup>pce</workgroup>
    <keyword>Prefix-SID Algorithm</keyword>
    <keyword>Flexible Algorithm</keyword>
    <keyword>IGP Algorithm Types</keyword>

    <abstract>
      <t>This document specifies extensions to the Path Computation Element Communication Protocol (PCEP) to enhance support for Segment Routing (SR) with a focus on the use of Segment Identifiers (SIDs) and SR-Algorithms in Traffic Engineering (TE). The SR-Algorithm associated with a SID defines the path computation algorithm used by Interior Gateway Protocols (IGPs). It introduces mechanisms for PCEP peers to signal the SR-Algorithm associated with SIDs by encoding this information in Explicit Route Object (ERO) and Record Route Object (RRO) subobjects, enables SR-Algorithm constraints for path computation, and defines new metric types for the METRIC object. This document updates RFC 8664 and RFC 9603 to allow such extensions.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="Introduction" numbered="true" toc="default">
      <name>Introduction</name>
      <t><xref target="RFC5440" format="default"/> describes the Path Computation Element Communication Protocol (PCEP) for communication between a Path Computation Client (PCC) and a Path Computation Element (PCE) or between a pair of PCEs. <xref target="RFC8664" format="default"/> and <xref target="RFC9603" format="default"/> specify PCEP extensions to support Segment Routing (SR) over MPLS and IPv6 data planes, respectively.</t>
      <t>This document specifies extensions to PCEP to enhance support for  SR Traffic Engineering (TE). Specifically, it focuses on the use of Segment Identifiers (SIDs) and SR-Algorithms. An SR-Algorithm associated with a SID defines the path computation algorithm used by IGPs.</t>
      <t>The PCEP extensions specified in this document are as follows:
      </t>
      <dl newline="false" spacing="normal">
        <dt>Signaling SR-Algorithm in ERO and RRO:</dt>
        <dd> Mechanisms are introduced for PCEP peers
                        to exchange information about the SR-Algorithm associated with each SID. This includes
                        extending SR-ERO, SR-RRO, SRv6-ERO, and SRv6-RRO subobjects to carry an Algorithm field.
                        This document updates <xref target="RFC8664" format="default"/> and <xref target="RFC9603" format="default"/> to enable
                        such encoding.</dd>
        <dt>SR-Algorithm Constraint for Path Computation:</dt>
        <dd> Mechanisms are defined for signaling
                        a specific SR-Algorithm as a constraint to the PCE for path computation. This includes
                        a new SR-Algorithm TLV carried in the Label Switched Path Attributes (LSPA) object.</dd>
        <dt>Extensions to METRIC object:</dt>
        <dd>Several new metric types are introduced for the METRIC
                        object to support optimization metrics derived from Flexible Algorithm Definitions (FADs) during Flexible Algorithm path
                        computation; their application is not restricted to Flexible Algorithms, and they may be
                        used with Label Switched Paths (LSPs) set up using different Path Setup Types (PSTs).</dd>
      </dl>
      <section anchor="Language" numbered="true" toc="default">
        <name>Requirements Language</name>
        <t>
    The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL
    NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
    "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
    described in BCP&nbsp;14 <xref target="RFC2119"/> <xref target="RFC8174"/> 
    when, and only when, they appear in all capitals, as shown here.
        </t>

      </section>
    </section>
    <section numbered="true" toc="default">
      <name>Terminology</name>
      <t>This document uses the following terms defined in <xref target="RFC5440" format="default"/>: Explicit Route Object (ERO), Label Switched Path Attributes (LSPA), Path Computation Client (PCC), Path Computation Element (PCE), Path Computation Element Communication Protocol (PCEP), PCEP peer, PCEP speaker, Record Route Object (RRO), and Traffic Engineering Database (TED).</t>
      <t>This document uses the following term defined in <xref target="RFC3031" format="default"/>: Label Switched Path (LSP).</t>
      <t>This document uses the following term defined in <xref target="RFC9479" format="default"/> and <xref target="RFC9492" format="default"/>: Application-Specific Link Attributes (ASLA).</t>
      <t>This document uses the following terms defined in <xref target="RFC8664" format="default"/>: Node or Adjacency Identifier (NAI) and Segment Routing Database (SR-DB).</t>
      <t>This document uses the following terms defined in <xref target="RFC9350" format="default"/>: Flexible Algorithm Definition (FAD) and winning FAD.</t>
      <t> Note that the base PCEP specification <xref target="RFC4655" format="default"/> originally defined the use of the PCE architecture for MPLS and GMPLS networks
     with LSPs instantiated using the RSVP-TE signaling protocol. Over time, support for additional PSTs, such as
     SRv6, has been introduced <xref target="RFC9603" format="default"/>. The term "LSP" is used extensively in PCEP specifications and, in the
     context of this document, refers to a Candidate Path within an SR Policy, which may be an SRv6 path (still represented
     using the LSP object as specified in <xref target="RFC8231" format="default"/>).</t>
      <t>The term "extension block" is used in this document to identify the additional bytes appended to a PCEP object, which may exist depending on the inclusion of a flag in that object</t>
      <t>The following terminologies are used in this document:
      </t>
      <dl newline="false" spacing="normal">
        <dt>P2MP:</dt>
        <dd> Point-to-Multipoint</dd>
        <dt>Subobject Extension Block:</dt>
        <dd> Optional, variable-length extension block for SR-ERO and SR-RRO subobjects defined in <xref target="Subobject-Extension-Block" format="default"/> of this document.</dd>
        <dt>Subobject Extension Block Flag (SEBF):</dt>
        <dd> Any flag in the Flags field of SR-ERO or SR-RRO subobjects that is used to signal that the corresponding field is encoded in the Subobject Extension Block.</dd>
      </dl>
    </section>
    <section anchor="Motivation" numbered="true" toc="default">
      <name>Motivation</name>
      <t>Existing PCEP specifications lack mechanisms to explicitly signal and negotiate SR-Algorithm capabilities and constraints. This limits the ability of PCEs to make informed path computation decisions based on the specific SR-Algorithms supported and desired within the network. The absence of an explicit SR-Algorithm specification in PCEP messages implied no specific constraint on the SR-Algorithm to be used for path computation, effectively allowing the use of SIDs with any SR-Algorithm.</t>
      <t>A primary motivation for these extensions is to enable the PCE to leverage the path computation logic and topological information derived from IGPs, including Flexible Algorithms. Aligning PCE path computation with these IGP algorithms enables network operators to obtain paths that are congruent with the underlying routing behavior, which can result in segment lists with a reduced number of SIDs. The support for SR-Algorithm constraints in PCE path computation simplifies the deployment and management of Flexible Algorithm paths in multi-domain network scenarios.</t>
      <t>The PCE and the PCC may independently compute SR-TE paths with different SR-Algorithms. This information needs to be exchanged between PCEP peers for purposes such as network monitoring and troubleshooting. In scenarios involving multiple PCEs, when a PCC receives a path from the primary PCE, it needs to be able to report the complete path information, including the SR-Algorithm, to a backup PCE. This is essential for high availability (HA) scenarios, ensuring that the backup PCE can correctly verify Prefix SIDs.</t>
      <t>The introduction of an SR-Algorithm TLV within the LSPA object allows operators to specify SR-Algorithm constraints directly, thereby refining path computations to meet specific needs, such as low-latency paths.</t>
      <t>The ability to specify an SR-Algorithm per SID in ERO and RRO is crucial for multiple reasons, for example:</t>
      <ul spacing="normal">
        <li>
          <t>SID types without algorithm specified - Certain SID types, such as Binding SIDs (BSIDs) <xref target="RFC8402" format="default"/>, may not have an SR-Algorithm specified. It may be inaccurate to state that an entire end-to-end path adheres to a specific algorithm if it includes a BSID from another policy.</t>
	</li>
      </ul>

	  <aside><t>Note: In SRv6, the BSID can be allocated from an algorithm-specific SRv6 Locator, which will result in the path to that BSID PCC node following that algorithm-specific path. However, the implicit algorithm of BSID is independent of the SR-Algorithm used for the SR Policy associated with that BSID.</t>
	  </aside>
        <ul spacing="normal">
        <li>
          <t>Topologies with two IGP domains, each using the same FAD but with differing algorithm numbers.</t>
        </li>
      </ul>
    </section>
    <section anchor="OBJECT-FORMATS" numbered="true" toc="default">
      <name>Object Formats</name>
      <section anchor="THE-OPEN-SUBOBJECT" numbered="true" toc="default">
        <name>OPEN Object</name>
        <section anchor="SR-CAP-FLAG" numbered="true" toc="default">
          <name>SR PCE Capability Sub-TLV</name>
          <t>The SR-PCE-CAPABILITY sub-TLV is defined in <xref target="RFC8664" sectionFormat="of" section="4.1.2" format="default"/> to be included in the PATH-SETUP-TYPE-CAPABILITY TLV.</t>
          <t>This document defines the following flag in the SR-PCE-CAPABILITY Sub-TLV Flags field:</t>
          <dl spacing="normal" newline="false">
            <dt>S (SR-Algorithm Capability) - bit 5:</dt><dd>If the S flag is set to 1, a PCEP speaker indicates support for the Algorithm field and the Subobject Extension Block in the SR-ERO subobject described in <xref target="SR-ERO-Subobject" format="default"/> and the SR-Algorithm TLV described in <xref target="SR-Algorithm-TLV" format="default"/> for LSPs set up using PST 1 (Segment Routing) <xref target="RFC8664" format="default"/>. It does not indicate support for these extensions for other PSTs. If the S flag is set to 0, behavior reverts to the procedures defined in existing specifications prior to the introduction of this extension.</dd>
          </dl>
        </section>
        <section anchor="SRv6-CAP-FLAG" numbered="true" toc="default">
          <name>SRv6 PCE Capability Sub-TLV</name>
          <t>The SRv6-PCE-CAPABILITY sub-TLV is defined in <xref target="RFC9603" sectionFormat="of" section="4.1.1" format="default"/> to be included in the PATH-SETUP-TYPE-CAPABILITY TLV.</t>
          <t>This document defines the following flag in the SRv6-PCE-CAPABILITY Sub-TLV Flags field:</t>
          <dl spacing="normal" newline="false">
            <dt>SR-Algorithm Capability (S) - bit 13:</dt><dd>If the S flag is set to 1, a PCEP speaker indicates support for the Algorithm field in the SRv6-ERO subobject described in <xref target="SRv6-ERO-Subobject" format="default"/> and the SR-Algorithm TLV described in <xref target="SR-Algorithm-TLV" format="default"/> for LSPs set up using PST 3 (SRv6) <xref target="RFC9603" format="default"/>. It does not indicate support for these extensions for other PSTs. If the S flag is set to 0, behavior reverts to the procedures defined in existing specifications prior to the introduction of this extension.</dd>
          </dl>
        </section>
      </section>
      <section anchor="SR-ERO-Subobject" numbered="true" toc="default">
        <name>SR-ERO Subobject</name>
        <t>This document updates the SR-ERO subobject format defined in <xref target="RFC8664" sectionFormat="of" section="4.3.1" format="default"/> with a new optional, variable-length Subobject Extension Block field. The block is used to convey additional information, such as the Algorithm field, and is designed to allow future extensibility. Further, a new A flag in the Flags field is introduced as shown in <xref target="SR-ERO-subobject-format" format="default"/>.</t>
        <figure anchor="SR-ERO-subobject-format">
          <name>SR-ERO Subobject Format</name>
          <artwork align="center" name="" type="" alt=""><![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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |L|   Type=36   |     Length    |  NT   |     Flags   |A|F|S|C|M|
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                         SID (optional)                        |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  //                   NAI (variable, optional)                  //
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  //       Subobject Extension Block (variable, optional)        //
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+]]></artwork>
        </figure>
        <t>A new flag in the Flags field:

</t>
        <dl spacing="normal" newline="false">
          <dt>A (SR-Algorithm Flag):</dt><dd><t>If set by a PCEP speaker, the Subobject Extension Block <bcp14>MUST</bcp14> be included in the SR-ERO subobject, as shown in <xref target="SR-ERO-subobject-format" format="default"/>, along with the specified algorithm. The length of this block is variable and determined by subtracting the size of the fixed fields and any optional SID or NAI fields from the total subobject Length. The length of the Subobject Extension Block <bcp14>MUST</bcp14> always be a multiple of 4 bytes.
If this flag is set to 0, then either:</t>
            <ul spacing="normal">
              <li>the Subobject Extension Block is not included and processing described in <xref target="RFC8664" sectionFormat="of" section="5.2.1" format="default"/> applies or</li>
              <li>the Subobject Extension Block is included (due to an SEBF in a future specifications) and the Algorithm field <bcp14>MUST</bcp14> be ignored.</li>
            </ul>
	  </dd>
        </dl>
        <t>This document updates the SR-ERO subobject validation defined in <xref target="RFC8664" sectionFormat="of" section="5.2.1" format="default"/> by extending existing validation to include the Subobject Extension Block and the A flag, as follows.</t>
        <t>On receiving an SR-ERO subobject, a PCC <bcp14>MUST</bcp14> validate that the Length field, S bit, F bit, A bit, NT field, and any present SEBFs are consistent, as follows:</t>
        <ul spacing="normal">
          <li>
            <t>If the Subobject Extension Block is included (i.e., if any SEBF, such as A or a future flag, is set to 1), the length of the subobject <bcp14>MUST</bcp14> include the size of the entire Subobject Extension Block as determined by the set of SEBFs.
            </t>
            <ul spacing="normal">
              <li>The minimum size of the Subobject Extension Block is 4 bytes when only a single SEBF (such as A) is set and may be longer (in multiples of 4 bytes) if additional SEBFs are set and require more space.</li>
              <li>The total subobject Length is the sum of the sizes of the fixed and optional fields (SID, NAI, etc.) and the total size of the Subobject Extension Block required by the set of SEBFs.</li>
              <li>
                <t>The exact calculation of Length for each NT, S, F, and set of SEBFs is as follows:
                </t>
                <ul spacing="normal">
                  <li>If NT=0, the F bit <bcp14>MUST</bcp14> be 1, the S bit <bcp14>MUST</bcp14> be 0, and the Length <bcp14>MUST</bcp14> be 8 + the size of the Subobject Extension Block.</li>
                  <li>
                    <t>If NT=1, the F bit <bcp14>MUST</bcp14> be 0.
                    </t>
                    <ul spacing="normal">
                      <li>If the S bit is 1, the Length <bcp14>MUST</bcp14> be 8 + the size of the Subobject Extension Block.</li>
                      <li>If the S bit is 0, the Length <bcp14>MUST</bcp14> be 12 + the size of the Subobject Extension Block.</li>
                    </ul>
                  </li>
                  <li>
                    <t>If NT=2, the F bit <bcp14>MUST</bcp14> be 0.
                    </t>
                    <ul spacing="normal">
                      <li>If the S bit is 1, the Length <bcp14>MUST</bcp14> be 20 + the size of the Subobject Extension Block.</li>
                      <li>If the S bit is 0, the Length <bcp14>MUST</bcp14> be 24 + the size of the Subobject Extension Block.</li>
                    </ul>
                  </li>
                  <li>
                    <t>If NT=3, the F bit <bcp14>MUST</bcp14> be 0.
                    </t>
                    <ul spacing="normal">
                      <li>If the S bit is 1, the Length <bcp14>MUST</bcp14> be 12 + the size of the Subobject Extension Block.</li>
                      <li>If the S bit is 0, the Length <bcp14>MUST</bcp14> be 16 + the size of the Subobject Extension Block.</li>
                    </ul>
                  </li>
                  <li>
                    <t>If NT=4, the F bit <bcp14>MUST</bcp14> be 0.
                    </t>
                    <ul spacing="normal">
                      <li>If the S bit is 1, the Length <bcp14>MUST</bcp14> be 36 + the size of the Subobject Extension Block.</li>
                      <li>If the S bit is 0, the Length <bcp14>MUST</bcp14> be 40 + the size of the Subobject Extension Block.</li>
                    </ul>
                  </li>
                  <li>
                    <t>If NT=5, the F bit <bcp14>MUST</bcp14> be 0.
                    </t>
                    <ul spacing="normal">
                      <li>If the S bit is 1, the Length <bcp14>MUST</bcp14> be 20 + the size of the Subobject Extension Block.</li>
                      <li>If the S bit is 0, the Length <bcp14>MUST</bcp14> be 24 + the size of the Subobject Extension Block.</li>
                    </ul>
                  </li>
                  <li>
                    <t>If NT=6, the F bit <bcp14>MUST</bcp14> be 0.
                    </t>
                    <ul spacing="normal">
                      <li>If the S bit is 1, the Length <bcp14>MUST</bcp14> be 44 + the size of the Subobject Extension Block.</li>
                      <li>If the S bit is 0, the Length <bcp14>MUST</bcp14> be 48 + the size of the Subobject Extension Block.</li>
                    </ul>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li>If no SEBF (including the A flag defined in this document) is set, the Length value <bcp14>MUST</bcp14> follow the requirements defined in <xref target="RFC8664" sectionFormat="of" section="5.2.1" format="default"/>.</li>
        </ul>
        <section anchor="Subobject-Extension-Block" numbered="true" toc="default">
          <name>Subobject Extension Block</name>
          <t>The Subobject Extension Block is an optional, extensible field in the SR-ERO subobject. Its presence is indicated by the setting of any SEBF in the subobject's Flags field (e.g., the A flag defined in this document or flags defined by future specifications).</t>

	  <dl spacing="normal" newline="true">
          <dt>Block length and presence:</dt>
	  <dd>
          <ul spacing="normal">
            <li>
              <t>If the A flag is set, and no other SEBF is set, the block length <bcp14>MUST</bcp14> be 4.</t>
            </li>
            <li>
              <t>The block length is at least 4 bytes when present.</t>
            </li>
            <li>
              <t>The block length <bcp14>MUST</bcp14> always be a multiple of 4 bytes.</t>
            </li>
            <li>
              <t>The block <bcp14>MUST</bcp14> be included if any SEBF is set in the Flags field.</t>
            </li>
            <li>
              <t>Future extensions may define additional SEBFs and corresponding fields, allowing the block to be increased in size beyond the initial 4 bytes as needed.</t>
            </li>
          </ul>
	  </dd>
	  </dl>
          <t>The first 4 bytes of the Subobject Extension Block are described in <xref target="Subobject-extension-format" format="default"/>.</t>
          <figure anchor="Subobject-extension-format">
            <name>Subobject Extension Block Format</name>
            <artwork align="center" name="" type="" alt=""><![CDATA[
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                 Unassigned                    |  Algorithm    |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+]]></artwork>
          </figure>
	  <dl spacing="normal" newline="true">
            <dt>Unassigned (24 bits):</dt><dd>This field is reserved for future use and <bcp14>MUST</bcp14> be set to zero when sending and ignored when receiving.</dd>
            <dt>Algorithm (8 bits):</dt><dd>The SR-Algorithm value from the "IGP Algorithm Types" registry of the "Interior Gateway Protocol (IGP) Parameters" registry group (see <xref target="IANA-ALGORITHM-TYPES" format="default"/>).</dd>
	  </dl>
          <t>Future extensions <bcp14>SHOULD</bcp14> first use the Unassigned portion of the initial 4 bytes to carry new information. If additional space is needed, the Subobject Extension Block may be extended in 4-byte increments. Each such extension must be indicated by a dedicated SEBF in the Flags field (similar to the A flag) and must be accompanied by capability signaling in an appropriate capability sub-TLV. The specific sub-TLV to be used is not restricted by this specification and may include, for example, the SR-PCE-CAPABILITY sub-TLV, the SRv6-PCE-CAPABILITY sub-TLV, or other capability TLVs, depending on the context of the extension. Interoperability procedures and the precise signaling mechanisms for each new SEBF and its associated capability will be defined by future specifications or procedures describing those extensions.</t>
          <t>When receiving a Subobject Extension Block longer than 4 bytes, receivers that do not recognize or have not negotiated support for additional flags <bcp14>MUST</bcp14> ignore the unknown additional bytes beyond those defined in this document.</t>
        </section>
        <section anchor="Guidance-Future-Extensions" numbered="true" toc="default">
          <name>Guidance for Future Extensions</name>
          <t>Future enhancements extending the Subobject Extension Block must:
          </t>
          <ul spacing="normal">
            <li>
              <t>Define a new SEBF in the Flags field to indicate the presence of a new extension and specify the corresponding capability signaling for that extension.</t>
            </li>
            <li>
              <t>Specify which parts of the reserved/extension block are used and how the block length is calculated when their extension is present.</t>
            </li>
            <li>
              <t>Ensure the reserved bits in the initial 4 bytes are used when possible
      and the block is extended only when additional space is necessary.</t>
            </li>
            <li>
              <t> Have future extensions define additional SEBFs and corresponding
      fields, allowing the block to be increased in size beyond the
      initial 4 bytes as needed.</t>
            </li>
          </ul>
          <t>Example: Future extension introducing a Z flag and a new Z field (8 bits):
          </t>
          <ul spacing="normal">
            <li>
              <t>If the A flag and/or the Z flag are set, the Subobject Extension Block is included. The Z field may use 8 bits of the reserved portion. A field is only considered valid if its corresponding flag is set. For example, if the Z flag is set to 1 but the A flag is set to 0, the Z field is valid but the Algorithm field is ignored.</t>
            </li>
            <li>
              <t>If space beyond the initial 4 bytes is needed, the extension document specifies the new block layout and total length. To simplify parsing, if a flag for such an extension is set, the full extended block is encoded, including the initial 4 bytes, even if the A flag is set to 0.</t>
            </li>
          </ul>
        </section>
      </section>
      <section anchor="SRv6-ERO-Subobject" numbered="true" toc="default">
        <name>SRv6-ERO Subobject</name>
        <t>This document updates the SRv6-ERO subobject format defined in <xref target="RFC9603" sectionFormat="of" section="4.3.1" format="default"/> with the Algorithm field carved out of the Reserved field. Further, a new A flag is defined in the existing Flags field as shown in <xref target="SRv6-ERO-subobject-format" format="default"/>.</t>
        <figure anchor="SRv6-ERO-subobject-format">
          <name>SRv6-ERO Subobject Format</name>
          <artwork align="center" name="" type="" alt=""><![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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |L|  Type=40    |     Length    |   NT  |    Flags    |A|V|T|F|S|
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |    Reserved   |   Algorithm   |        Endpoint Behavior      |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                                                               |
  |                      SRv6 SID (optional)                      |
  |                           (128-bit)                           |
  |                                                               |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  //                    NAI (variable, optional)                 //
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                     SID Structure (optional)                  |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+]]></artwork>
        </figure>
	<dl spacing="normal" newline="true">
          <dt>Flags field:</dt>
          <dd>A (SR-Algorithm Flag): If set by a PCEP speaker, the Algorithm field is included in the SRv6-ERO subobject as specified in <xref target="SRv6-ERO-subobject-format" format="default"/>.
If this flag is set to 0, then the Algorithm field is absent and processing described in <xref target="RFC9603" sectionFormat="of" section="5.2.1" format="default"/> applies.
</dd>
        <dt>Reserved (8 bits):</dt><dd>It <bcp14>MUST</bcp14> be set to 0 while sending and ignored on
      receipt.</dd>
        <dt>Algorithm (8 bits):</dt><dd>The SR-Algorithm value from the "IGP Algorithm Types" registry of the "Interior Gateway Protocol (IGP) Parameters" registry group.</dd>
	</dl>
        <aside><t>Note: The Subobject Extension Block is applicable to the SRv6-ERO subobject but is not required by this specific specification as existing reserved space is used. When additional space is needed in the SRv6-ERO subobject, the future extensions <bcp14>SHOULD</bcp14> specify the usage of the Subobject Extension Block for the SRv6-ERO subobject.</t></aside>
      </section>
      <section anchor="SR-Algorithm-TLV" numbered="true" toc="default">
        <name>SR-Algorithm TLV</name>
        <t>A new TLV for the LSPA object is introduced to carry the SR-Algorithm constraint (<xref target="SR-ALGORITHM-CONSTRAINT" format="default"/>). This TLV <bcp14>MUST</bcp14> only be used when PST = 1 or 3 for SR-MPLS and SRv6, respectively. Only the first instance of this TLV <bcp14>MUST</bcp14> be processed; subsequent instances <bcp14>MUST</bcp14> be ignored.</t>
        <t>The format of the SR-Algorithm TLV is as follows:</t>
        <figure anchor="SR-ALGORITHM-TLV-FMT">
          <name>SR-Algorithm TLV Format</name>
          <artwork align="center" name="" type="" alt=""><![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=66               |            Length=4           |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |         Reserved              |   Flags     |S|   Algorithm   |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+]]></artwork>
        </figure>
	<dl spacing="normal" newline="false">
          <dt>Type (16 bits):</dt><dd>66</dd>
          <dt>Length (16 bits):</dt><dd>4</dd>
	</dl>
        <t>The 32-bit value is formatted as follows.</t>
        <dl newline="false" spacing="normal">
          <dt>Reserved (16 bits):</dt>
          <dd> <bcp14>MUST</bcp14> be set to 0 by the sender and <bcp14>MUST</bcp14> be ignored by the receiver.</dd>
          <dt>Flags (8 bits):</dt>
          <dd>
            <t> This document defines the following flag. The other flags
              <bcp14>MUST</bcp14> be set to 0 by the sender and <bcp14>MUST</bcp14> be ignored by the receiver.
            </t>
            <dl spacing="normal" newline="false">
              <dt>S (Strict):</dt><dd>If set, the path computation at the PCE
              <bcp14>MUST</bcp14> fail if the specified SR-Algorithm
              constraint cannot be satisfied. If the S (Strict) bit is unset
              and the PCE is unable to compute a path that satisfies the
              specified SR-Algorithm constraint, the PCE <bcp14>MUST</bcp14>
              attempt to compute a path as if no SR-Algorithm constraint had
              been requested. This means the PCE may use any available
              SR-Algorithm for the computation, consistent with the default
              behavior in the absence of SR-Algorithm constraint.</dd>
            </dl>
          </dd>
          <dt>Algorithm (8 bits):</dt>
          <dd>The SR-Algorithm to be used during path computation (see <xref target="SR-ALGORITHM-CONSTRAINT" format="default"/>).</dd>
        </dl>
      </section>
      <section anchor="METRIC-TYPES" numbered="true" toc="default">
        <name>Extensions to METRIC Object</name>
        <t>The METRIC object is defined in <xref target="RFC5440" sectionFormat="of" section="7.8" format="default"/>. This document specifies additional types for the METRIC object to enable the encoding of optimization metric types derived from the FAD during Flexible Algorithm path computation (see <xref target="FLEX-ALGO-COMPUTATION" format="default"/>). While these new metric types are defined to support this specific use case, their use is not restricted to Flexible Algorithm path computation or to any specific PST.</t>
        <ul spacing="normal">
          <li>
            <t> T=22: Path Min Delay metric (<xref target="P2P-MIN-DELAY" format="default"/>) </t>
          </li>
          <li>
            <t> T=23: P2MP Path Min Delay metric (<xref target="P2MP-MIN-DELAY" format="default"/>) </t>
          </li>
          <li>
            <t> T=24: Path Bandwidth metric (<xref target="P2P-BANDWIDTH" format="default"/>) </t>
          </li>
          <li>
            <t> T=25: P2MP Path Bandwidth metric (<xref target="P2MP-BANDWIDTH" format="default"/>) </t>
          </li>
          <li>
            <t> T=128-255: User-defined metric (<xref target="USER-DEFINED-METRIC" format="default"/>) </t>
          </li>
        </ul>
        <t>The following terminology is used and expanded along the way.</t>
        <ul spacing="normal">
          <li>
            <t>A network comprises a set of N links {Li, (i=1...N)}.</t>
          </li>
          <li>
            <t>A path P of a point-to-point (P2P) LSP is a list of K links {Lpi,(i=1...K)}.</t>
          </li>
          <li>
            <t>A P2MP tree T comprises a set of M destinations {Dest_j,(j=1...M)}.</t>
          </li>
        </ul>
        <section anchor="MIN-DELAY-VALUE" numbered="true" toc="default">
          <name>Path Min Delay Metric</name>
          <t><xref target="RFC7471" format="default"/> and <xref target="RFC8570" format="default"/> define the "Min/Max Unidirectional Link Delay" sub-TLV to advertise the link minimum and maximum delay in microseconds in a 24-bit field.</t>
          <t><xref target="RFC5440" format="default"/> defines the METRIC object with a 32-bit metric value encoded in IEEE floating point format (see <xref target="IEEE.754.2019" format="default"/>).</t>
          <t>The encoding for the Path Min Delay metric value is quantified in units of microseconds and encoded in IEEE floating point format.</t>
          <t>For use in the PCEP METRIC object, the 24-bit unsigned integer delay value is converted to a 32-bit IEEE floating point value. This conversion follows the procedure specified in <xref target="IEEE.754.2019" format="default"/>.</t>
          <section anchor="P2P-MIN-DELAY" numbered="true" toc="default">
            <name>P2P Path Min Delay Metric</name>
            <t>The minimum Link Delay metric is defined in <xref target="RFC7471" format="default"/> and <xref target="RFC8570" format="default"/> as "Min Unidirectional Link Delay". The Path Min Link Delay metric represents the measured minimum link delay value over a configurable interval.</t>
            <t>The Path Min Delay metric type of the METRIC object in PCEP represents the sum of the Min Link Delay metric of all links along a P2P path. </t>
            <ul spacing="normal">
              <li>
                <t>A Min Link Delay metric of link L is denoted by D(L).</t>
              </li>
              <li>
                <t>A Path Min Delay metric for the P2P path P = Sum {D(Lpi), (i=1...K)}.</t>
              </li>
            </ul>
          </section>
          <section anchor="P2MP-MIN-DELAY" numbered="true" toc="default">
            <name>P2MP Path Min Delay Metric</name>
            <t>The P2MP Path Min Delay metric type of the METRIC object in PCEP encodes the Path Min Delay metric for the destination that observes the worst (i.e., highest value) delay metric among all destinations of the P2MP tree.</t>
            <ul spacing="normal">
              <li>
                <t>The P2P Path Min Delay metric of the path to destination Dest_j is denoted by PMDM(Dest_j).</t>
              </li>
              <li>
                <t>The P2MP Path Min Delay metric for the P2MP tree T = Maximum{PMDM(Dest_j), (j=1...M)}.</t>
              </li>
            </ul>
          </section>
        </section>
        <section anchor="BANDWIDTH-VALUE" numbered="true" toc="default">
          <name>Path Bandwidth Metric</name>
          <t><xref target="RFC9843" sectionFormat="of" section="4" format="default"/> defines a new metric type, "Bandwidth metric", which may be advertised in their link metric advertisements.</t>
          <t>When performing Flexible Algorithm path computation as described in <xref target="FLEX-ALGO-COMPUTATION" format="default"/>, procedures described in Sections <xref target="RFC9843" sectionFormat="bare" section="4.1"/> and <xref target="RFC9843" sectionFormat="bare" section="5"/> from <xref target="RFC9843" format="default"/> <bcp14>MUST</bcp14> be followed with automatic metric calculation.</t>
          <t>For path computations in contexts other than Flexible Algorithm (including PSTs other than 1 or 3 for SR-MPLS and SRv6, respectively), if the Generic Metric sub-TLV with the Bandwidth metric type is not advertised for a link, the PCE implementation <bcp14>MAY</bcp14> apply a local policy to derive a metric value (similar to the procedures in Sections <xref target="RFC9843" sectionFormat="bare" section="4.1.3"/> and <xref target="RFC9843" sectionFormat="bare" section="4.1.4"/> of <xref target="RFC9843" format="default"/>) or the link <bcp14>MAY</bcp14> be treated as if the metric value is unavailable (e.g., by using a default value). If the Bandwidth metric value is advertised for a link, the PCE <bcp14>MUST</bcp14> use the advertised value to compute the path metric in accordance with Sections <xref target="P2P-BANDWIDTH" format="counter"/> and <xref target="P2MP-BANDWIDTH" format="counter"/>.</t>
          <t>The Path Bandwidth metric value is encoded in IEEE floating point format (see <xref target="IEEE.754.2019" format="default"/>).</t>
          <t>For use in the PCEP METRIC object, the 24-bit unsigned integer delay value is converted to a 32-bit IEEE floating point value. This conversion follows the procedure specified in <xref target="IEEE.754.2019" format="default"/>. </t>
          <section anchor="P2P-BANDWIDTH" numbered="true" toc="default">
            <name>P2P Path Bandwidth Metric</name>
            <t>The Path Bandwidth metric type of the METRIC object in PCEP represents the sum of the Bandwidth metric of all links along a P2P path.</t>
	    <aside><t>Note: The link Bandwidth metric utilized in the formula may be the original metric advertised on the link, which may have a value inversely proportional to the link capacity.</t></aside>
            <ul spacing="normal">
              <li>
                <t>A Bandwidth metric of link L is denoted by B(L).</t>
              </li>
              <li>
                <t>A Path Bandwidth metric for the P2P path P = Sum {B(Lpi), (i=1...K)}.</t>
              </li>
            </ul>
          </section>
          <section anchor="P2MP-BANDWIDTH" numbered="true" toc="default">
            <name>P2MP Path Bandwidth Metric</name>
            <t>The Bandwidth metric type of the METRIC object in PCEP encodes the Path Bandwidth metric for the destination that observes the worst Bandwidth metric among all destinations of the P2MP tree.</t>
            <ul spacing="normal">
              <li>
                <t>The P2P Bandwidth metric of the path to destination Dest_j is denoted by BM(Dest_j).</t>
              </li>
              <li>
                <t>The P2MP Path Bandwidth metric for the P2MP tree T = Maximum{BM(Dest_j), (j=1...M)}.</t>
              </li>
            </ul>
          </section>
        </section>
        <section anchor="USER-DEFINED-METRIC" numbered="true" toc="default">
          <name>User-Defined Metric</name>
          <t><xref target="RFC9843" sectionFormat="of" section="2" format="default"/> defined a new metric type range for "User-defined metric", which may be advertised in their link metric advertisements. These are user defined and can be assigned by an operator for local use.</t>
          <t>User-defined metric values are encoded using the IEEE floating point format (see <xref target="IEEE.754.2019" format="default"/>).</t>
          <t>For use in the PCEP METRIC object, the 24-bit unsigned integer delay value is converted to a 32-bit IEEE floating point value. This conversion follows the procedure specified in <xref target="IEEE.754.2019" format="default"/>.</t>
          <t>The metric type range was chosen to allow mapping with values assigned in the "IGP Metric-Type" registry. For example, the User-defined metric type 130 of the METRIC object in PCEP can represent the sum of the User-defined metric 130 of all links along a P2P path.</t>
          <t>User-defined metrics are equally applicable to P2P and P2MP paths.</t>
        </section>
      </section>
    </section>
    <section anchor="Operation" numbered="true" toc="default">
      <name>Operation</name>
      <t>The PCEP extensions defined in Sections <xref target="ERO-ENCODING" format="counter"/> and <xref target="SR-ALGORITHM-CONSTRAINT" format="counter"/> of this document <bcp14>MUST NOT</bcp14> be used unless both PCEP speakers have indicated support by setting the S flag in the Path Setup Type sub-TLV corresponding to the PST of the LSP. If this condition is not met, the receiving PCEP speaker <bcp14>MUST</bcp14> respond with a PCErr message with Error-Type 19 (Invalid Operation) and Error-value 33 (Attempted use of SR-Algorithm without advertised capability).</t>
      <t>The SR-Algorithm used in this document refers to a complete range of SR-Algorithm values (0-255) if a specific section does not specify otherwise. Valid SR-Algorithm values are defined in the "IGP Algorithm Types" registry of the "Interior Gateway Protocol (IGP) Parameters" registry group. Refer to <xref target="RFC8402" sectionFormat="of" section="3.1.1" format="default"/> and <xref target="RFC9256" format="default"/> for the definition of SR-Algorithm in SR. <xref target="RFC8665" format="default"/> and <xref target="RFC8667" format="default"/> describe the use of the SR-Algorithm in IGP. Note that some RFCs refer to SR-Algorithm with different names, for example, "Prefix-SID Algorithm" and "SR Algorithm".</t>
      <section anchor="ERO-ENCODING" numbered="true" toc="default">
        <name>ERO and RRO Subobjects</name>
        <t>If a PCC receives the Algorithm field in the ERO subobject within PCInitiate, PCUpd, or PCRep messages and the path received from those messages is being included in the ERO of PCRpt message, then the PCC <bcp14>MUST</bcp14> include the Algorithm field in the encoded subobjects with the received SR-Algorithm value.</t>
        <t>As per <xref target="RFC8664" format="default"/>, the format of the SR-RRO subobject is the same as that of the SR-ERO subobject but without the L flag; therefore, the SR-RRO subobject may also carry the A flag and Algorithm field in the Subobject Extension Block. Similarly, as per <xref target="RFC9603" format="default"/>, the format of the SRv6-RRO subobject is the same as that of the SRv6-ERO subobject but without the L flag; therefore, the SRv6-RRO subobject may also carry the A flag and Algorithm field.</t>
        <section anchor="SR-ERO-ENCODING" numbered="true" toc="default">
          <name>SR-ERO</name>
          <t>A PCEP speaker <bcp14>MAY</bcp14> set the A flag and include the Algorithm field as part of the Subobject Extension Block in an SR-ERO subobject if the S flag has been advertised in the SR-PCE-CAPABILITY sub-TLV by both PCEP speakers.</t>
          <t>If the PCEP peer receives an SR-ERO subobject with the A flag set but the S flag was not advertised in SR-PCE-CAPABILITY sub-TLV, then it <bcp14>MUST</bcp14> consider the entire ERO as invalid, as described in <xref target="RFC8664" sectionFormat="of" section="5.2.1" format="default"/>.</t>
          <t>The Subobject Extension Block field in the SR-ERO subobject <bcp14>MUST</bcp14> be included after the optional SID, NAI, or SID structure, and the length of the SR-ERO subobject <bcp14>MUST</bcp14> be increased by the size of the Subobject Extension Block, as determined by the set of SEBFs.</t>
          <t>If the length and the A flag are not consistent, as specified in <xref target="SR-ERO-Subobject" format="default"/>, the PCEP peer <bcp14>MUST</bcp14> consider the entire ERO invalid and <bcp14>MUST</bcp14> send a PCErr message with Error-Type = 10 ("Reception of an invalid object") and Error-value = 11 ("Malformed object").</t>
          <t>If the SID value is absent (S flag is set to 1), the NAI value is present (F flag is set to 0), and the Algorithm field is set (the A flag is set to 1), the PCC is responsible for choosing the SRv6-SID value based on values specified in the NAI and Algorithm fields. If the PCC cannot find a SID index in the SR-DB, it <bcp14>MUST</bcp14> send a PCErr message with Error-Type = 10 ("Reception of an invalid object") and Error-value = 14 ("Unknown SID").</t>
        </section>
        <section anchor="SRv6-ERO-ENCODING" numbered="true" toc="default">
          <name>SRv6-ERO</name>
          <t>A PCEP speaker <bcp14>MAY</bcp14> set the A flag and include the Algorithm field in an SRv6-ERO subobject if the S flag has been advertised in SRv6-PCE-CAPABILITY sub-TLV by both PCEP speakers.</t>
          <t>If the PCEP peer receives an SRv6-ERO subobject with the A flag set or with the SR-Algorithm included, but the S flag was not advertised in SRv6-PCE-CAPABILITY sub-TLV, then it <bcp14>MUST</bcp14> consider the entire ERO as invalid, as described in <xref target="RFC8664" sectionFormat="of" section="5.2.1" format="default"/>.</t>
          <t>The Algorithm field in the SRv6-ERO subobject <bcp14>MUST</bcp14> be included in the position specified in <xref target="SRv6-ERO-Subobject" format="default"/>; the length of the SRv6-ERO subobject is not impacted by the inclusion of the Algorithm field.</t>
          <t>If the SRv6-SID value is absent (S flag is set to 1), the NAI value is present (F flag is n), and the Algorithm field is set (the A flag is set to 1), the PCC is responsible for choosing the SRv6-SID value based on values specified in the NAI and Algorithm fields. If the PCC cannot find a SID index in the SR-DB, it <bcp14>MUST</bcp14> send a PCErr message with Error-Type = 10 ("Reception of an invalid object") and Error-value = 14 ("Unknown SID").</t>
        </section>
      </section>
      <section anchor="SR-ALGORITHM-CONSTRAINT" numbered="true" toc="default">
        <name>SR-Algorithm Constraint</name>
        <t>To signal a specific SR-Algorithm constraint to the PCE, the headend <bcp14>MUST</bcp14> encode the SR-Algorithm TLV inside the LSPA object.</t>
        <t>If a PCC receives an LSPA object with the SR-Algorithm TLV as part of PCInitiate or PCUpd messages, then it <bcp14>MUST</bcp14> include an LSPA object with the SR-Algorithm TLV in a PCRpt message as part of intended-attribute-list.</t>
        <t>If a PCE receives an LSPA object with the SR-Algorithm TLV in PCRpt or PCReq, then it <bcp14>MUST</bcp14> include the LSPA object with the SR-Algorithm TLV in a PCUpd message, or a PCRep message in case of an unsuccessful path computation based on rules described in <xref target="RFC5440" sectionFormat="of" section="7.11" format="default"/>.</t>
        <t>A PCEP peer that did not advertise the S flag in the Path Setup Type sub-TLV corresponding to the LSP's PST <bcp14>MUST</bcp14> ignore the SR-Algorithm TLV on receipt.</t>
        <t>The PCE <bcp14>MUST NOT</bcp14> use Prefix SIDs associated with an SR-Algorithm other than the one specified in the SR-Algorithm constraint. If a protected Adjacency SID is used without an associated SR-Algorithm, there is a risk that the backup path may fail to forward traffic over parts of the topology that are not included in the specified SR-Algorithm. Consequently, it is <bcp14>NOT RECOMMENDED</bcp14> to use protected Adjacency SIDs without an explicitly specified SR-Algorithm. If an Adjacency SID has an associated SR-Algorithm, the PCE <bcp14>MUST</bcp14> ensure that the SR-Algorithm matches the one specified in the SR-Algorithm constraint.</t>
        <t>Other SID types, such as BSIDs, are allowed. Furthermore, the inclusion of a path BSID from another policy is permitted only if the path associated with that policy fully satisfies all the constraints of the current path computation.</t>
        <t>The specified SR-Algorithm constraint is applied to the end-to-end SR Policy path. Using different SR-Algorithm constraints or using winning FAD with different optimization metrics or constraints for the same SR-Algorithm in each domain or part of the topology in single path computation is out of the scope of this document.</t>
        <t>If the PCE is unable to find a path with the given SR-Algorithm constraint, it does not support a combination of specified constraints, or if the FAD contains constraints, optimization metrics, or other attributes, which the PCE does not support or recognize, it <bcp14>MUST</bcp14> use an empty ERO in PCInitiate for LSP instantiation, a PCUpd message if an update is required, or a NO-PATH object in PCRep to indicate that it was not able to find the valid path.</t>
        <t>If the Algorithm field value is in the range 128-255, the PCE <bcp14>MUST</bcp14> perform path computation according to the Flexible Algorithm procedures outlined in <xref target="FLEX-ALGO-COMPUTATION" format="default"/>. Otherwise, the PCE <bcp14>MUST</bcp14> adhere to the path computation procedures with SID filtering as defined in <xref target="SID-FILTERING-COMPUTATION" format="default"/>.</t>
        <t>If the NO-PATH object is included in PCRep, then the PCE <bcp14>MAY</bcp14> include the SR-Algorithm TLV to indicate constraint, which cannot be satisfied as described in <xref target="RFC5440" sectionFormat="of" section="7.5" format="default"/>.</t>
        <t>SR-Algorithm does not replace the objective function defined in <xref target="RFC5541" format="default"/>.</t>
        <section anchor="SID-FILTERING-COMPUTATION" numbered="true" toc="default">
          <name>Path Computation for SR-Algorithms 0-127</name>
          <t>The SR-Algorithm constraint acts as a filter, restricting which SIDs may be used as a result of the path computation function. Path computation is done based on optimization metric type and constraints specified in the PCEP message received from the PCC.</t>
          <t>The mechanism described in this section is applicable only to SR-Algorithm values in the range 0-127. It is not applicable to Flexible Algorithms (range 128-255), which are handled as described in <xref target="FLEX-ALGO-COMPUTATION" format="default"/>. Within the 0-127 range, currently defined algorithms are 0 (Shortest Path First (SPF)) and 1 (Strict-SPF), as introduced in <xref target="RFC8402" sectionFormat="of" section="3.1.1" format="default"/>. Future algorithms defined within this range that do not require explicit PCEP extensions beyond the SR-Algorithm TLV may also utilize this SID filtering approach. If a PCE implementation receives a request with an SR-Algorithm value in the 0-127 range that it does not support for path computation, it <bcp14>MUST</bcp14> reject the PCEP message and send a PCErr message with Error-Type 19 (Invalid Operation) and Error-value 34 (Unsupported combination of constraints).</t>
        </section>
        <section anchor="FLEX-ALGO-COMPUTATION" numbered="true" toc="default">
          <name>Path Computation for Flexible Algorithms</name>
          <t>This section is applicable only to the Flexible Algorithms range of SR-Algorithm values. The PCE performs Flexible Algorithm path computation based on topology information stored in its TED <xref target="RFC5440" format="default"/>. The TED is expected to be populated with necessary information, including Flexible Algorithm Definitions (FADs), node participation, and ASLA-specific link attributes, through standard mechanisms, such as IGPs with Traffic Engineering extensions or BGP - Link State (BGP-LS) <xref target="RFC9552" format="default"/>.</t>
          <t>The PCE must follow the IGP Flexible Algorithm path computation logic as described in <xref target="RFC9350" format="default"/>. This includes performing the FAD selection as described in <xref target="RFC9350" sectionFormat="of" section="5.3" format="default"/> and other sections, determining the topology associated with specific a Flexible Algorithm based on the FAD, the node participation (<xref target="RFC9350" sectionFormat="of" section="11" format="default"/>), using ASLA-specific link attributes (<xref target="RFC9350" sectionFormat="of" section="12" format="default"/>), and applying other rules for Flexible Algorithm path calculation (<xref target="RFC9350" sectionFormat="of" section="13" format="default"/>). While <xref target="RFC9350" format="default"/> defines the base procedures for IGP Flexible Algorithms, these procedures are further extended by other documents, such as <xref target="RFC9843" format="default"/>; a PCE implementation may need to support these IGP extensions to allow use of specific constraints in FAD. <xref target="RFC9917" format="default"/> created an IANA registry called "IGP Flex-Algorithm Path Computation Rules" <eref target="https://www.iana.org/assignments/igp-parameters" brackets="angle"/> within the "Interior Gateway Protocol (IGP) Parameters" registry group with the ordered set of rules that <bcp14>MUST</bcp14> be used to prune links from the topology during the Flexible Algorithm path computation.</t>
          <t>The PCE <bcp14>MUST</bcp14> optimize the computed path based on the metric type specified in the FAD. The optimization metric type included in PCEP messages from the PCC <bcp14>MUST</bcp14> be ignored. The PCE <bcp14>MUST</bcp14> use the metric type from the FAD in messages sent to the PCC unless that metric type is not defined in PCEP or not supported by the PCEP peer. It is allowed to use SID types other than Prefix SID (e.g., Adjacency or BSID) but only from nodes participating in the specified SR-Algorithm.</t>
          <t>There are corresponding metric types in PCEP for IGP and TE metrics from FAD introduced in <xref target="RFC9350" format="default"/>, but there were no corresponding metric types defined for "Min Unidirectional Link Delay" from <xref target="RFC9350" format="default"/> and "Bandwidth metric" and "User-defined metric" from <xref target="RFC9843" format="default"/>. <xref target="METRIC-TYPES" format="default"/> of this document introduces them. Note that the defined "Path Bandwidth metric" is accumulative and is different from the BANDWIDTH object defined in <xref target="RFC5440" format="default"/>.</t>
          <t>The PCE <bcp14>MUST</bcp14> use the constraints specified in the FAD and also constraints (except optimization metric type) directly included in PCEP messages from the PCC. The PCE implementation <bcp14>MAY</bcp14> decide to ignore specific constraints received from the PCC based on existing processing rules for PCEP objects and TLVs, e.g., the P flag described in <xref target="RFC5440" sectionFormat="of" section="7.2" format="default"/> and processing rules described in <xref target="RFC9753" format="default"/>. If the PCE does not support a specified combination of constraints, it <bcp14>MUST</bcp14> fail path computation and respond with a PCEP message with a PCInitiate or PCUpd message with an empty ERO or PCRep with NO-PATH object. The PCC <bcp14>MUST NOT</bcp14> include constraints from the FAD in the PCEP message sent to the PCE, as it can result in undesired behavior in various cases. The PCE <bcp14>SHOULD NOT</bcp14> include constraints from the FAD in PCEP messages sent to the PCC.</t>
          <t>The combinations of the constraints specified in the FAD and constraints directly included in PCEP messages from the PCC may decrease the chance that Flexible-Algorithm-specific Prefix SIDs represent an optimal path while satisfying all specified constraints; as a result, a longer SID list may be required for the computed path.  Adding more constraints on top of the FAD requires complex path computation and may reduce the benefit of this scheme.</t>
        </section>
      </section>
      <section anchor="NEW-METRIC-TYPES" numbered="true" toc="default">
        <name>Metric Types</name>
        <t>All the rules of processing the METRIC object as explained in <xref target="RFC5440" format="default"/> and <xref target="RFC8233" format="default"/> are applicable to the metric types defined in this document.</t>
      </section>
    </section>
    <section numbered="true" toc="default">
      <name>Manageability Considerations</name>
      <t>All manageability requirements and considerations listed in <xref target="RFC5440" format="default"/>, <xref target="RFC8231" format="default"/>, <xref target="RFC8664" format="default"/>, and <xref target="RFC9603" format="default"/> apply to the PCEP extensions defined in this document. In addition, the requirements and considerations listed in this section apply.</t>
      <section numbered="true" toc="default">
        <name>Control of Function and Policy</name>
        <t>A PCE or PCC implementation <bcp14>MAY</bcp14> allow the capability of supporting the PCEP extensions introduced in this document to be enabled or disabled as part of the global configuration. By default, this capability <bcp14>SHOULD</bcp14> be enabled.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Information and Data Models</name>
        <t>An implementation <bcp14>SHOULD</bcp14> allow the operator to view the capability defined in this document. Sections <xref target="RFC9826" sectionFormat="bare" section="4.1" format="default"/> and <xref target="RFC9826" sectionFormat="bare" section="4.1.1" format="default"/> of <xref target="RFC9826" format="default"/> should be extended to include the capabilities introduced in Sections <xref target="SR-CAP-FLAG" format="counter"/> and <xref target="SRv6-CAP-FLAG" format="counter"/> for the PCEP peer.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Liveness Detection and Monitoring</name>
        <t>This document does not define any new mechanism that impacts the liveness detection and monitoring of PCEP.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Verify Correct Operations</name>
        <t>An implementation <bcp14>SHOULD</bcp14> also allow the operator to view FADs, which may be used in Flexible Algorithm path computation as defined in <xref target="FLEX-ALGO-COMPUTATION" format="default"/>.</t>
        <t>An implementation <bcp14>SHOULD</bcp14> allow the operator to view nodes participating in the specified SR-Algorithm.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Requirements on Other Protocols and Functional Components</name>
        <t>This document does not put new requirements but relies on the necessary IGP extensions.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Impact on Network Operations</name>
        <t>This document inherits considerations from documents describing IGP Flexible Algorithm -- for example, <xref target="RFC9350" format="default"/> and <xref target="RFC9843" format="default"/>.</t>
      </section>
    </section>
    <section numbered="true" toc="default">
      <name>Operational Considerations</name>
      <t>This document inherits operational considerations from documents describing IGP Flexible Algorithm -- for example, <xref target="RFC9350" format="default"/> and <xref target="RFC9843" format="default"/>.</t>
    </section>

    <section numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>The security considerations described in <xref target="RFC5440" format="default"/>,
      <xref target="RFC8231" format="default"/>, <xref target="RFC8253" format="default"/>, <xref target="RFC8281" format="default"/>, <xref target="RFC8664" format="default"/>, <xref target="RFC9603" format="default"/>, and <xref target="RFC9350" format="default"/> apply to the extensions described in this document as well.</t>
      <t>Note that this specification introduces the possibility of computing paths by the PCE based on Flexible-Algorithm-related topology attributes and based on the metric type and constraints from the FAD. This creates additional vulnerabilities, which are already described for the path computation done by IGP, like those described in the Security Considerations section of <xref target="RFC9350" format="default"/> but which are also applicable to path computation done by the PCE. Hence, securing the PCEP session using Transport Layer Security (TLS) <xref target="RFC8253" format="default"/> <xref target="RFC9916" format="default"/> is <bcp14>RECOMMENDED</bcp14> as per the recommendations
   and best current practices described in <xref target="RFC9325" format="default"/>.</t>
    </section>
    <section anchor="IANA" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <section anchor="SR-CAPABILITY-FLAG" numbered="true" toc="default">
        <name>SR Capability Flag</name>
        <t>IANA maintains a registry named "SR Capability Flag Field" within the "Path Computation Element Protocol
   (PCEP) Numbers" registry group to manage the Flags field of the SR-PCE-CAPABILITY sub-TLV.  IANA has registered the following:</t>
        <table anchor="SR-CAPABILITY-FLAG-value" align="center">
          <thead>
            <tr>
              <th align="center">Bit</th>
              <th align="left">Description </th>
              <th align="left">Reference </th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="center">5</td>
              <td align="left">SR-Algorithm Capability</td>
              <td align="left">RFC 9933</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="SRv6-CAPABILITY-FLAG" numbered="true" toc="default">
        <name>SRv6 PCE Capability Flag</name>
        <t>IANA maintains a registry named "SRv6 Capability Flag Field" within the "Path Computation Element Protocol
   (PCEP) Numbers" registry group to manage the Flags field of SRv6-PCE-CAPABILITY sub-TLV.  IANA has registered the following:</t>
        <table anchor="SRv6-CAPABILITY-FLAG-value" align="center">
          <thead>
            <tr>
              <th align="center">Bit</th>
              <th align="left">Description </th>
              <th align="left">Reference </th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="center">13</td>
              <td align="left">SR-Algorithm Capability</td>
              <td align="left">RFC 9933</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="SR-ERO-FLAG" numbered="true" toc="default">
        <name>SR-ERO Flag</name>
        <t>IANA maintains a registry named "SR-ERO Flag Field" within the "Path Computation Element Protocol
   (PCEP) Numbers" registry group to manage the Flags field of the SR-ERO Subobject.  IANA has registered the following:</t>
        <table anchor="SR-ERO-FLAG-value" align="center">
          <thead>
            <tr>
              <th align="center">Bit</th>
              <th align="left">Description </th>
              <th align="left">Reference </th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="center">7</td>
              <td align="left">SR-Algorithm Flag (A)</td>
              <td align="left">RFC 9933</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="SRv6-ERO-FLAG" numbered="true" toc="default">
        <name>SRv6-ERO Flag</name>
        <t>IANA maintains a registry named "SRv6-ERO Flag Field" within the "Path Computation Element Protocol
   (PCEP) Numbers" registry group to manage the Flags field of the SRv6-ERO subobject.  IANA has registered the following:</t>
        <table anchor="SRv6-ERO-FLAG-value" align="center">
          <thead>
            <tr>
              <th align="center">Bit</th>
              <th align="left">Description </th>
              <th align="left">Reference </th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="center">7</td>
              <td align="left">SR-Algorithm Flag (A)</td>
              <td align="left">RFC 9933</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="TLV-Type" numbered="true" toc="default">
        <name>PCEP TLV Types</name>
        <t>IANA maintains a registry named "PCEP TLV Type Indicators" within the "Path Computation Element Protocol (PCEP) Numbers" registry group. IANA has registered the following TLV type for the new LSPA TLV specified in this document.</t>
        <table anchor="LSPA-TLV-type" align="center">
          <thead>
            <tr>
              <th align="center">Value</th>
              <th align="left">Description </th>
              <th align="left">Reference </th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="center">66</td>
              <td align="left">SR-Algorithm</td>
              <td align="left">RFC 9933</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="Metric-Types" numbered="true" toc="default">
        <name>Metric Types</name>
        <t>IANA maintains a registry named "METRIC Object T Field" within the "Path Computation Element Protocol (PCEP) Numbers" registry group. IANA has registered these codepoints as follows:</t>
        <table anchor="Metric-types" align="center">
          <thead>
            <tr>
              <th align="center">Value</th>
              <th align="left">Description </th>
              <th align="left">Reference </th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="center">22</td>
              <td align="left">Path Min Delay metric</td>
              <td align="left">RFC 9933</td>
            </tr>
            <tr>
              <td align="center">23</td>
              <td align="left">P2MP Path Min Delay metric</td>
              <td align="left">RFC 9933</td>
            </tr>
            <tr>
              <td align="center">24</td>
              <td align="left">Path Bandwidth metric</td>
              <td align="left">RFC 9933</td>
            </tr>
            <tr>
              <td align="center">25</td>
              <td align="left">P2MP Path Bandwidth metric</td>
              <td align="left">RFC 9933</td>
            </tr>
            <tr>
              <td align="center">128-255</td>
              <td align="left">User-defined metric </td>
              <td align="left">RFC 9933</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="PCEP-Error-Object" numbered="true" toc="default">
        <name>PCEP-Error Object</name>
        <t>IANA has registered the following Error-Types and Error-values within the "PCEP-ERROR Object Error Types and Values" registry of the "Path Computation Element Protocol (PCEP) Numbers" registry group.</t>
        <table anchor="PCEP-Error-type" align="center">
          <thead>
            <tr>
              <th align="center">Error-Type</th>
              <th align="left">Meaning </th>
              <th align="left">Error-value </th>
              <th align="left">Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="center">19</td>
              <td align="left">Invalid Operation</td>
              <td align="left">33: Attempted use of SR-Algorithm without advertised capability</td>
              <td align="left">RFC 9933</td>
            </tr>
            <tr>
              <td align="center"/>
              <td align="left"/>
              <td align="left">34: Unsupported combination of constraints</td>
              <td align="left">RFC 9933</td>
            </tr>
          </tbody>
        </table>
      </section>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5440.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7471.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8231.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8233.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8253.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8281.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8402.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8570.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8664.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8665.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8667.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9256.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9350.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9603.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9753.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9843.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9917.xml"/>

<!-- [I-D.ietf-pce-pceps-tls13] -> [RFC9916]
companion doc RFC9916
-->
<reference anchor="RFC9916" target="https://www.rfc-editor.org/info/rfc9916">
  <front>
    <title>Updates for PCEPS: TLS Connection Establishment Restrictions</title>
    <author initials="D." surname="Dhody" fullname="Dhruv Dhody">
      <organization>Huawei</organization>
    </author>
    <author initials="S." surname="Turner" fullname="Sean Turner">
      <organization>sn3rd</organization>
    </author>
    <author initials="R." surname="Housley" fullname="Russ Housley">
      <organization>Vigil Security, LLC</organization>
    </author>
    <date month='February' year='2026'/>
  </front>
  <seriesInfo name="RFC" value="9916"/>
  <seriesInfo name="DOI" value="10.17487/RFC9916"/>
</reference>

      </references>
      <references>
        <name>Informative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9826.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3031.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4655.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5541.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9325.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9479.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9492.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9552.xml"/>

        <reference anchor="IEEE.754.2019">
          <front>
            <title>IEEE Standard for Floating-Point Arithmetic</title>
            <author>
              <organization showOnFrontPage="true">IEEE</organization>
            </author>
            <date month="July" year="2019"/>
          </front>
          <seriesInfo name="IEEE Std" value="754-2019"/>
          <seriesInfo name="DOI" value="10.1109/IEEESTD.2019.8766229"/>
        </reference>

        <reference anchor="IANA-ALGORITHM-TYPES" target="https://www.iana.org/assignments/igp-parameters">
          <front>
            <title>IGP Algorithm Types</title>
            <author>
              <organization>IANA</organization>
            </author>
          </front>
        </reference>
      </references>
    </references>

    <section anchor="Acknowledgements" numbered="false" toc="default">
      <name>Acknowledgements</name>
      <t>Thanks to <contact fullname="Dhruv Dhody"/> for shepherding the
      document and for their contributions and suggestions.</t>
      <t>The authors would like to thank <contact fullname="Adrian Farrel"/>, <contact
      fullname="Aijun Wang"/>, <contact fullname="Alexey Melnikov"/>, <contact
      fullname="Boris Khasanov"/>, <contact fullname="Deb Cooley"/>, <contact
      fullname="Éric Vyncke"/>, <contact fullname="Gunter Van de Velde"/>,
      <contact fullname="Jie Dong"/>, <contact fullname="Ketan Talaulikar"/>,
      <contact fullname="Mahesh Jethanandani"/>, <contact fullname="Marina
      Fizgeer"/>, <contact fullname="Mike Bishop"/>, <contact
      fullname="Mohamed Boucadair"/>, <contact fullname="Nagendra Nainar"/>,
      <contact fullname="Rakesh Gandhi"/>, <contact fullname="Russ White"/>,
      and <contact fullname="Shraddha Hegde"/> for review and suggestions.</t>
    </section>

    <section numbered="false" toc="default">
      <name>Contributors</name>

    <contact fullname="Mike Koldychev">
      <organization>Ciena Corporation</organization>
      <address>
        <email>mkoldych@proton.me</email>
      </address>
    </contact>

    <contact fullname="Zafar Ali">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <email>zali@cisco.com</email>
      </address>
    </contact>

    <contact fullname="Stephane Litkowski">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <email>slitkows.ietf@gmail.com</email>
      </address>
    </contact>

    <contact fullname="Siva Sivabalan">
      <organization>Ciena</organization>
      <address>
        <email>msiva282@gmail.com</email>
      </address>
    </contact>

    <contact fullname="Tarek Saad">
      <organization>Cisco Systems, Inc.</organization>
      <address>
        <email>tsaad.net@gmail.com</email>
      </address>
    </contact>

    <contact fullname="Mahendra Singh Negi">
      <organization>RtBrick Inc</organization>
      <address>
        <email>mahend.ietf@gmail.com</email>
      </address>
    </contact>

    <contact fullname="Tom Petch">
      <address>
        <email>ietfc@btconnect.com</email>
      </address>
    </contact>

    </section>

</back>

<!-- [rfced] Please review whether any of the notes in this document
should be in the <aside> element. It is defined as "a container for 
content that is semantically less important or tangential to the 
content that surrounds it" (https://authors.ietf.org/en/rfcxml-vocabulary#aside).
-->
</rfc>
