PCE Working Group C. Li Internet-Draft M. Chen Intended status: Standards Track Huawei Technologies Expires: 17 April 2025 W. Cheng China Mobile R. Gandhi Cisco Systems, Inc. Q. Xiong ZTE Corporation 14 October 2024 Path Computation Element Communication Protocol (PCEP) Extension for Path Segment in Segment Routing (SR) draft-ietf-pce-sr-path-segment-12 Abstract The Path Computation Element (PCE) provides path computation functions in support of traffic engineering in Multiprotocol Label Switching (MPLS) and Generalized MPLS (GMPLS) networks. The Source Packet Routing in Networking (SPRING) architecture describes how Segment Routing (SR) can be used to steer packets through an IPv6 or MPLS network using the source routing paradigm. A Segment Routed Path can be derived from a variety of mechanisms, including an IGP Shortest Path Tree (SPT), explicit configuration, or a Path Computation Element (PCE). Path identification is needed for several use cases such as performance measurement in Segment Routing (SR) network. This document specifies extensions to the Path Computation Element Communication Protocol (PCEP) to support requesting, replying, reporting and updating the Path Segment ID (Path SID) between PCEP speakers. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Li, et al. Expires 17 April 2025 [Page 1] Internet-Draft PCEP for SR Path Segment October 2024 Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 17 April 2025. Copyright Notice Copyright (c) 2024 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.1. Requirements Language . . . . . . . . . . . . . . . . . . 4 3. Overview of Path Segment Extensions in PCEP . . . . . . . . . 5 4. Objects and TLVs . . . . . . . . . . . . . . . . . . . . . . 5 4.1. OPEN Object . . . . . . . . . . . . . . . . . . . . . . . 5 4.1.1. SR PCE Capability sub-TLV . . . . . . . . . . . . . . 6 4.1.2. SRv6 PCE Capability sub-TLV . . . . . . . . . . . . . 6 4.1.3. PCECC-CAPABILITY sub-TLV . . . . . . . . . . . . . . 6 4.2. LSP Object . . . . . . . . . . . . . . . . . . . . . . . 6 4.2.1. Path Segment TLV . . . . . . . . . . . . . . . . . . 7 4.3. FEC Object . . . . . . . . . . . . . . . . . . . . . . . 8 4.4. CCI Object . . . . . . . . . . . . . . . . . . . . . . . 9 4.5. Path Attributes Object . . . . . . . . . . . . . . . . . 10 5. Operations . . . . . . . . . . . . . . . . . . . . . . . . . 10 5.1. Stateful PCE Operation . . . . . . . . . . . . . . . . . 10 5.1.1. Ingress PCC-Initiated Path Segment Allocation . . . . 10 5.1.2. PCE Initiated Path Segment Allocation . . . . . . . . 13 5.2. PCECC Based Operation . . . . . . . . . . . . . . . . . . 14 5.2.1. PCE Controlled Label Spaces Advertisement . . . . . . 14 5.2.2. PCECC based Path Segment Allocation . . . . . . . . . 14 6. Dataplane Considerations . . . . . . . . . . . . . . . . . . 16 7. Implementation Status . . . . . . . . . . . . . . . . . . . . 17 7.1. Huawei's Commercial Delivery . . . . . . . . . . . . . . 17 7.2. ZTE's Commercial Delivery . . . . . . . . . . . . . . . . 18 Li, et al. Expires 17 April 2025 [Page 2] Internet-Draft PCEP for SR Path Segment October 2024 8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 18 8.1. SR PCE Capability Flags . . . . . . . . . . . . . . . . . 18 8.2. SRv6 PCE Capability Flags . . . . . . . . . . . . . . . . 18 8.3. New LSP Flag Registry . . . . . . . . . . . . . . . . . . 19 8.4. New PCEP TLV . . . . . . . . . . . . . . . . . . . . . . 19 8.4.1. Path Segment TLV . . . . . . . . . . . . . . . . . . 19 8.5. New FEC Type Registry . . . . . . . . . . . . . . . . . . 20 8.6. PCEP Error Type and Value . . . . . . . . . . . . . . . . 20 9. Security Considerations . . . . . . . . . . . . . . . . . . . 20 10. Manageability Considerations . . . . . . . . . . . . . . . . 21 10.1. Control of Function and Policy . . . . . . . . . . . . . 21 10.2. Information and Data Models . . . . . . . . . . . . . . 21 10.3. Liveness Detection and Monitoring . . . . . . . . . . . 21 10.4. Verify Correct Operations . . . . . . . . . . . . . . . 21 10.5. Requirements On Other Protocols . . . . . . . . . . . . 21 10.6. Impact On Network Operations . . . . . . . . . . . . . . 22 11. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 22 12. References . . . . . . . . . . . . . . . . . . . . . . . . . 22 12.1. Normative References . . . . . . . . . . . . . . . . . . 22 12.2. Informative References . . . . . . . . . . . . . . . . . 24 Appendix A. Contributors . . . . . . . . . . . . . . . . . . . . 25 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 26 1. Introduction [RFC5440] describes the Path Computation Element (PCE) Communication Protocol (PCEP). PCEP enables the communication between a Path Computation Client (PCC) and a PCE, or between PCE and PCE, for the purpose of computation of Multiprotocol Label Switching (MPLS) as well as Generalized MPLS (GMPLS) Traffic Engineering Label Switched Path (TE LSP) characteristics. [RFC8231] specifies a set of extensions to PCEP to enable stateful control of TE LSPs within and across PCEP sessions in compliance with [RFC4657]. It includes mechanisms to effect LSP State Synchronization between PCCs and PCEs, delegation of control over LSPs to PCEs, and PCE control of timing and sequence of path computations within and across PCEP sessions. The model of operation where LSPs are initiated from the PCE is described in [RFC8281]. [RFC9050] specify the procedures and PCEP protocol 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. Segment routing (SR) [RFC8402] leverages the source routing and tunneling paradigms and supports steering packets into an explicit forwarding path at the ingress node. Li, et al. Expires 17 April 2025 [Page 3] Internet-Draft PCEP for SR Path Segment October 2024 An SR path needs to be identified in some use cases such as performance measurement. In order to identify an SR path, SR-MPLS Path Segment is identified in [RFC9545] while the SRv6 Path Segment is identified in [I-D.ietf-spring-srv6-path-segment]. [RFC8664] specifies extensions to the Path Computation Element Protocol (PCEP) [RFC5440] for SR networks, that allow a stateful PCE to compute and initiate SR-TE paths, as well as a PCC to request, report or delegate SR paths. [I-D.ietf-pce-segment-routing-policy-cp] specifies the PCEP extension to signal candidate paths of the SR Policy. [I-D.ietf-pce-pcep-extension-pce-controller-sr] specifies the procedures and PCEP protocol extensions when a PCE-based controller is also responsible for configuring the forwarding actions on the routers (SR SID distribution in this case), in addition to computing the paths for packet flows in a segment routing network and telling the edge routers what instructions to attach to packets as they enter the network. This document specifies a set of extensions to carry the SR path identification information in PCEP messages [RFC5440] [RFC8231] [RFC8281]. The SR path identifier can be a Path Segment in SR-MPLS [RFC9545] and SRv6 [I-D.ietf-spring-srv6-path-segment], or other IDs that can identify an SR path. Although [RFC9050] defines the PCE as the central controller (PCECC) model, where the PCE can instruct each hop (including the egress) on the end-to-end path, PCE (as per [RFC5440], [RFC8231], and [RFC8281]) typically only communicates with the ingress node. However, since the path segment identifies the SR path on the egress node, the PCE must also communicate with the egress node. This document also outlines a mechanism to use the existing stateful message exchange with the egress node to signal both the SR path and the path segment. 2. Terminology This memo makes use of the terms defined in [RFC4655], [RFC8664], and [RFC8402]. 2.1. Requirements Language The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. Li, et al. Expires 17 April 2025 [Page 4] Internet-Draft PCEP for SR Path Segment October 2024 3. Overview of Path Segment Extensions in PCEP This document specifies a mechanism of allocating Path Segment and extends PCEP to encode it in PCEP messages. For supporting Path Segment in PCEP, several TLVs and flags are defined. The formats of the objects and TLVs are described in Section 4. The procedures of Path Segment allocation are described in Section 5. There are various modes of operations, such as - * The Path Segment can be allocated by Egress PCC. The PCE should request the Path Segment from egress PCC by PCInitiate message and inform the ingress PCC by PCUpd message as described in section 5.1.2. * The PCE (or the ingress PCC would first request the path segment to PCE) can allocate a Path Segment on its own accord and inform the ingress/egress PCC by PCInitiate or PCUpd message as described in section 5.2.2. * Ingress PCC can also request PCE to allocate the Path Segment, in this case, the PCE would either allocate and inform the assigned Path Segment to the ingress/egress PCC using PCInitiate or PCUpd message, or first request egress PCC for Path Segment and then inform it to the ingress PCC as described in section 5.1.1. The path information to the ingress PCC and PCE is exchanged via an extension to [RFC8664] and [RFC9603]. The Path Segment information (for SR-MPLS) to the egress PCC can be informed via an extension to the PCECC-SR procedures [I-D.ietf-pce-pcep-extension-pce-controller-sr]. For the PCE to allocate a Path Segment on its own, the PCE needs to be aware of the MPLS label space from the PCCs. This is done via mechanism as described in [I-D.ietf-pce-controlled-id-space]. Otherwise, the PCE should request the egress PCC for Path Segment allocation. 4. Objects and TLVs 4.1. OPEN Object Li, et al. Expires 17 April 2025 [Page 5] Internet-Draft PCEP for SR Path Segment October 2024 4.1.1. SR PCE Capability sub-TLV [RFC8664] defined a new Path Setup Type (PST) and SR-PCE-CAPABILITY sub-TLV for SR-MPLS. PCEP speakers use this sub-TLV to exchange information about their SR capability. The TLV defines a Flags field [RFC8664]. This document adds an additional flag for Path Segment allocation, as follows - * P (Path Segment Identification bit): A PCEP speaker sets this flag to 1 to indicate that it has the capability to encode SR path identification (Path Segment, as per [RFC9545]). 4.1.2. SRv6 PCE Capability sub-TLV [RFC9603] defined a new Path Setup Type (PST) and SRv6-PCE-CAPABILITY sub-TLV for SRv6. PCEP speakers use this sub-TLV to exchange information about their SRv6 capability. This document adds an additional flag for Path Segment allocation, as follows - * P (Path Segment Identification bit): A PCEP speaker sets this flag to 1 to indicate that it has the capability to encode SRv6 Path Segment [I-D.ietf-spring-srv6-path-segment]). 4.1.3. PCECC-CAPABILITY sub-TLV Along with the SR sub-TLVs, the PCECC Capability as per [I-D.ietf-pce-pcep-extension-pce-controller-sr] should be advertised if the PCE allocates the Path Segment and acts as a Central Controller that manages the Label space. The PCECC Capability should be advertised on the egress PCEP session, along with the SR sub-TLVs. This is needed to ensure that the PCE can use the PCECC objects/mechanism to request/inform the egress PCC of the Path Segment as described in Section 5.2. 4.2. LSP Object The LSP Object is defined in Section 7.3 of [RFC8231]. [RFC9604] defines a new P flag in the LSP object for the PCE-allocated binding label/SID. The same flag can also be used for the Path Segment as described here - Li, et al. Expires 17 April 2025 [Page 6] Internet-Draft PCEP for SR Path Segment October 2024 * A PCC would set this bit to 1 and include a PATH-SEGMENT TLV to request for allocation of Path Segment by the PCE in the PCEP message. A PCE would also set this bit to 1 and include a PATH- SEGMENT TLV to indicate that the Path Segment is allocated by PCE and encoded in the PCEP message towards PCC. Further, a PCE would set this bit to 0 and include a PATH-SEGMENT TLV to indicate that the Path Segment should be allocated by the PCC as described in Section 5.1.1. 4.2.1. Path Segment TLV The PATH-SEGMENT TLV is an optional TLV for use in the LSP Object for Path Segment allocation. The type of this TLV is to be allocated by IANA (TBA4). The format is as shown below. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ST | Flag |L| Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ~ (Variable length) Path Segment ~ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 1: The PATH-SEGMENT TLV Format The type (16-bit) of the TLV is TBA4 (to be allocated by IANA). The length (16-bit) has a variable length. The value contains the following fields: * ST (The Segment type - 8 bits): The ST field specifies the type of the Path Segment field, which carries a Path Segment corresponding to the SR path. - 0: MPLS Path Segment, which is an MPLS label as defined in [RFC9545]. The PST type MUST be set to SR (MPLS). - 1: SRv6 Path Segment, which is a 16-octet value as defined in [I-D.ietf-spring-srv6-path-segment]. The PST type MUST be set to SRv6. - 2-255: Reserved for future use. * Flags (8 bits): One flag is currently defined: Li, et al. Expires 17 April 2025 [Page 7] Internet-Draft PCEP for SR Path Segment October 2024 - L-Bit (Local/Global - 1 bit): If set, then the Path Segment carried by the PATH-SEGMENT TLV has local significance. If not set, then the Path Segment carried by this TLV has global significance (i.e. Path Segment is global within an SR domain). - The unassigned bits MUST be set to 0 and MUST be ignored at receipt. * Reserved (16 bits): MUST be set to 0 and MUST be ignored at receipt. * Path Segment: The Path Segment of an SR path. The Path Segment type is indicated by the ST field. When the ST is 0, it is a MPLS Path Segment [RFC9545] in the MPLS label format. When the ST is 1, the path segment is a 16-octet value. In general, only one instance of PATH-SEGMENT TLV will be included in LSP object. If more than one PATH-SEGMENT TLV is included, the first one is processed and others MUST be ignored. Multiple Path Segment allocation for use cases like alternate-making will be considered in future version of this draft. When the Path Segment allocation is enabled, a PATH-SEGMENT TLV MUST be included in the LSP object. If the label space is maintained by PCC itself, and the Path Segment is allocated by Egress PCC, then the PCE should request the Path Segment from Egress PCC as described in Section 5.1.1. In this case, the PCE should send a PCUpdate or PCInitiate message to the egress PCC to request the Path Segment. The P-flag in LSP should be unset in this case. If a PCEP node does not recognize the PATH-SEGMENT TLV, it would behave in accordance with [RFC5440] and ignore the TLV. If a PCEP node recognizes the TLV but does not support the TLV, it MUST send PCErr with Error-Type = 2 (Capability not supported). 4.3. FEC Object The FEC Object [I-D.ietf-pce-pcep-extension-pce-controller-sr] is used to specify the FEC information and carried within PCInitiate or PCRpt message for the PCECC-SR operations. The PCE MUST inform the Path Identification information to the Egress PCC. To do this, this document extends the procedures of [I-D.ietf-pce-pcep-extension-pce-controller-sr] by defining a new FEC object type for Path. Li, et al. Expires 17 April 2025 [Page 8] Internet-Draft PCEP for SR Path Segment October 2024 FEC Object-Type is TBA6 'Path'. 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | // TLV(s) // | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 2: The path FEC object Format One or more following TLV(s) are allowed in the 'path' FEC object - * SYMBOLIC-PATH-NAME TLV: As defined in [RFC8231], it is a human- readable string that identifies an LSP in the network. * LSP-IDENTIFIERS TLVs: As defined in [RFC8231], it is optional for SR, but could be used to encode the source, destination and other identification information for the path. * SPEAKER-ENTITY-ID TLV: As defined in [RFC8232], a unique identifier for the PCEP speaker, it is used to identify the Ingress PCC. Either SYMBOLIC-PATH-NAME TLV or LSP-IDENTIFIERS TLV MUST be included. SPEAKER-ENTITY-ID TLV is optional. Only one instance of each TLV is processed, if more than one TLV of each type is included, the first one is processed and others MUST be ignored. 4.4. CCI Object The Central Control Instructions (CCI) Object is used by the PCE to specify the forwarding instructions as defined in [RFC9050]. Further [I-D.ietf-pce-pcep-extension-pce-controller-sr] defined a CCI object type for SR. The Path Segment information is encoded directly in the CCI SR object. The Path Segment TLV as described in the Section 4.2.1, MUST also be included in the CCI SR object as the TLV (as it includes additional information regarding the Path Segment identifier). The C flag in CCI object is used to indicate if the allocation needs to be done by the PCC. Li, et al. Expires 17 April 2025 [Page 9] Internet-Draft PCEP for SR Path Segment October 2024 4.5. Path Attributes Object The [I-D.ietf-pce-multipath] defines the PATH-ATTRIB object, which carries per-path information and serves as a separator between multiple ERO/RRO objects, enabling the encoding of multiple segment lists in a Candidate Path, as described in [I-D.ietf-pce-segment-routing-policy-cp] . The Path Segment TLV can be optionally included in the PATH-ATTRIB object to associate a segment list with the Path Segment Identifier (PSID). It is important to note that the Path Segment TLV in the PATH-ATTRIB object applies to the path (the immediately following ERO/RRO), whereas the Path Segment TLV in the LSP object applies to all paths in the PCEP message. If the PSID is encoded in the PATH-ATTRIB object, it MUST be used to identify the SR path. The usage of P flag in the LSP object for Path Segment as specified in Section 4.2 also applies to all PSIDs encoded in the PATH-ATTRIB object. 5. Operations The Path Segment allocation and encoding is as per the Stateful PCE operations for segment routing. The procedures are as per the corresponding extensions defined in [RFC8664] and [RFC9603] (which are further based on [RFC8231] and [RFC8281]). The additional operations for Path Segment are defined in this section. To notify (or request) the Path Segment to the Egress PCC, the procedures are as per the PCECC-SR [I-D.ietf-pce-pcep-extension-pce-controller-sr] (which is based on [RFC9050]). The additional operations are defined in this section. 5.1. Stateful PCE Operation As defined in [RFC9545], a Path Segment can be allocated by the egress PCC. In this case, the label space is maintained on the PCC itself. This section describes the mechanism of Path Segment allocation by using PCInitiate and PCUpd message in Stateful PCE model. 5.1.1. Ingress PCC-Initiated Path Segment Allocation The ingress PCC could request the Path Segment to be allocated by the PCE via PCRpt message. The delegate flag (D-flag) MUST also be set for this LSP. Also, the P-flag in the LSP object MUST be set. On receiving a delegation request with Path Segment allocation request from an ingress PCC, a stateful PCE requests the egress PCC to allocate a Path Segment. Li, et al. Expires 17 April 2025 [Page 10] Internet-Draft PCEP for SR Path Segment October 2024 The PATH-SEGMENT TLV MUST be included in an LSP object in the PCInitiate message sent from the PCE to the egress to request Path Segment allocation by the egress PCC. The P flag in LSP object MUST be set to 0. This PCInitiate message to egress PCC would be the similar to the one sent to ingress PCC as per [RFC8664], but the egress PCC would only allocate the Path Segment and would not trigger the LSP initiation operation (as it would be the egress for this LSP). The ASSOCIATION object MUST also be carried in PCInitiate message to indicate the SR policy association parameters as per [I-D.ietf-pce-segment-routing-policy-cp], if this SR path belongs to an SR policy. If the value of Path Segment is 0x0, it indicates that the PCE is requesting a Path Segment for this LSP. If the Path Segment is set to a value 'n' and the P flag is unset in the LSP object, it indicates that the PCE requests a specific value 'n' of Path Segment. If the Path Segment is allocated successfully, the egress PCC reports the Path Segment via PCRpt message with PATH-SEGMENT TLV in LSP object. Else, it MUST send a PCErr message with Error-Type = TBA7 ("Path SID failure") and Error Value = 1 ("Invalid SID"). If the value of Path Segment is valid, but the PCC is unable to allocate the Path Segment, it MUST send a PCErr message with Error-Type = TBA7 ("Path SID failure") and Error Value = 2 ("Unable to allocate the specified label/SID"). Once the PCE receives the PCRpt message, it can obtain the Path Segment information from the egress PCC and then update the path with Path Segment by sending PCUpd message to the ingress PCC. If the Path Segment is updated successfully, the ingress PCC will acknowledge with a PCRpt message to the PCE. In case of error, an PCErr message with Error-Type = TBA7 ("Path SID failure") and Error Value = 1 ("Invalid SID") will be sent back to the PCE. The PCE MUST roll back the Path Segment value to the previous value (if any) by sending a PCUpd message to synchronize with the egress PCC. Li, et al. Expires 17 April 2025 [Page 11] Internet-Draft PCEP for SR Path Segment October 2024 Ingress Egress +-+-+ +-+-+ +-+-+ |PCC| |PCE| |PCC| +-+-+ +-+-+ +-+-+ 1) LSP State | ---- PCRpt ----> | | Delegate | Delegate=1 | | | P=1 |2) PCE update | | | the LSP-DB and | | | request Path SID | | | | | | --- PCInitiate ---> | Egress | | PATH-SEGMENT | allocates | | TLV in LSP | a Path-SID | | | from its | | <----- PCRpt ------ | space | | Path SID | | | | |<---- PCUpd ---- |3)Paths update with | | PATH-SEGMENT TLV | Path SID | | | | 4) LSP State | ----- PCRpt ---> | | Report | | | | | | Figure 3: Ingress PCC-Initiated Path Segment Allocation If the ingress PCC wishes to withdraw or modify a previously reported Path Segment value, it MUST send a PCRpt message without any PATH- SEGMENT TLV or with the PATH-SEGMENT TLV containing the new Path Segment respectively. In this case, the PCE should synchronize with egress PCC via PCUpd message. The Path Segment MUST be withdrawn when the corresponding LSP is removed. When the LSP is deleted, the PCE MUST request the egress PCC to withdraw the LSP and associated Path Segment via PCInitiate message with the R flag is set in the SRP object. If an egress PCC receives a valid Path Segment value from a PCE which is different than the current Path Segment, it MUST try to allocate the new value. If the new Path Segment is successfully allocated, the egress PCC MUST report the new value to the PCE. Otherwise, it MUST send a PCErr message with Error-Type = TBA7 ("Path label/SID failure") and Error Value = 2 ("Unable to allocate the specified label/SID"). Li, et al. Expires 17 April 2025 [Page 12] Internet-Draft PCEP for SR Path Segment October 2024 5.1.2. PCE Initiated Path Segment Allocation A stateful PCE also can initiate or update an LSP with Path Segment actively via requesting the egress PCC to allocate a Path Segment. If a PCE wishes to modify a previously requested Path Segment value or allocate a Path Segment for an PCE-Initiated LSP, it MUST request the egress PCC to allocate a new value by sending a PCUpd message to the egress PCC with PATH-SEGMENT TLV containing the new Path Segment value. Also, the P flag in LSP object is unset. Absence of the PATH-SEGMENT TLV in PCUpd message means that the PCE wishes to withdraw the Path Segment. The mechanism of requesting Path Segment is as per Section 5.1.1. Once the PCE receives the PCRpt message, it can obtain the Path Segment information from the egress PCC and then update or initiate an LSP with Path Segment. If the SR-Path is setup, the ingress PCC will acknowledge with a PCRpt message to the PCE. In case of error, as described in [RFC8664], an PCErr message will be sent back to the PCE. The PCE MUST request the egress PCC to withdraw the LSP and associated Path Segment via PCInitiate message with the R flag is set in the SRP object. If the Path Segment is updated successfully, the ingress PCC will acknowledge with a PCRpt message to the PCE. In case of error, an PCErr message with Error-Type = TBA7 ("Path SID failure") and Error Value = 1 ("Invalid SID") will be sent back to the PCE. The PCE MUST roll back the Path Segment value to the previous value (if any) by sending a PCUpd message to synchronize with the egress PCC. Li, et al. Expires 17 April 2025 [Page 13] Internet-Draft PCEP for SR Path Segment October 2024 Ingress Egress +-+-+ +-+-+ +-+-+ |PCC| |PCE| |PCC| +-+-+ +-+-+ +-+-+ 1) LSP State | ---- PCRpt ----> | | Delegate if| Delegate=1 | | the LSP exists| |2)PCE actively update| | | the LSP-DB and | | | request Path SID | | | | | | --- PCInitiate ---> | Egress | | PATH-SEGMENT | allocates | | TLV in LSP | a Path-SID | | | from its | | <----- PCRpt ------ | space | | Path SID | | | | |<-- PCUpd/PCInit -- |3)Paths update with | | PATH-SEGMENT TLV | Path SID | | | | 4) LSP State | ----- PCRpt ---> | | Report | | | | | | Figure 4: Stateful PCE-Initiated Path Segment Allocation 5.2. PCECC Based Operation 5.2.1. PCE Controlled Label Spaces Advertisement For allocating the Path Segments to SR paths by the PCEs, the PCE controlled label space MUST be known at PCEs via configurations or any other mechanisms. The PCE controlled label spaces MAY be advertised as described in [I-D.ietf-pce-controlled-id-space]. 5.2.2. PCECC based Path Segment Allocation 5.2.2.1. PCECC-Initiated The PCE could allocate the Path Segment on its own for a PCE- Initiated (or delegated LSP). The allocated Path Segment needs to be informed to the Ingress and Egress PCC. The PCE would use the PCInitiate message [RFC8281] or PCUpd message [RFC8231] towards the Ingress PCC and MUST include the PATH-SEGMENT TLV in the LSP object. The PCE would further inform the egress PCC about the Path Segment allocated by the PCE using the PCInitiate message as described in [I-D.ietf-pce-pcep-extension-pce-controller-sr]. Li, et al. Expires 17 April 2025 [Page 14] Internet-Draft PCEP for SR Path Segment October 2024 Ingress Egress +-+-+ +-+-+ +-+-+ |PCC| |PCE| |PCC| +-+-+ +-+-+ +-+-+ | | | | <--PCInitiate--- |1)Initiate LSP with | | PATH-SEGMENT TLV | Path SID | | | | 2)LSP delegation |---PCRpt, D=1---> | (Confirm) | | | | |3) PCE informs the | --- PCInitiate ---> | | Path SID to Egress| FEC=Path | | | | | | <-------- PCRpt --- | | | | Figure 5: PCE allocated Path Segment on its own 5.2.2.2. Ingress PCC-Initiated PCECC The ingress PCC could request the Path Segment to be allocated by the PCE via PCRpt message as per [RFC8231]. The delegate flag (D-flag) MUST also be set for this LSP. Also, the P-flag in the LSP object MUST be set. A PATH-SEGMENT TLV MUST be included in the LSP object. If the value of Path Segment is 0x0, it indicates that the Ingress PCC is requesting a Path Segment for this LSP. If the Path Segment is set to a value 'n', it indicates that the ingress PCC requests a specific value 'n' of Path Segment. If the Path Segment is allocated successfully, the PCE would further respond to Ingress PCC with PCUpd message as per [RFC8231] and MUST include the PATH-SEGMENT TLV in a LSP object. Else, it MUST send a PCErr message with Error-Type = TBA7 ("Path SID failure") and Error Value = 1 ("Invalid SID"). If the value of Path Segment is valid, but the PCC is unable to allocate the Path Segment, it MUST send a PCErr message with Error-Type = TBA7 ("Path SID failure") and Error Value = 2 ("Unable to allocate the specified label/SID"). The active PCE would allocate the Path Segment as per the PATH- SEGMENT flags and in case PATH-SEGMENT is not included, the PCE MUST act based on the local policy. The PCE would further inform the egress PCC about the Path Segment allocated by the PCE using the PCInitiate message as described in [I-D.ietf-pce-pcep-extension-pce-controller-sr]. Li, et al. Expires 17 April 2025 [Page 15] Internet-Draft PCEP for SR Path Segment October 2024 Ingress Egress +-+-+ +-+-+ +-+-+ |PCC| |PCE| |PCC| +-+-+ +-+-+ +-+-+ 1) LSP State | ---- PCRpt ----> | | Delegate | Delegate=1 | | | P=1 |2) PCE update | | | the LSP-DB and | | | allocate Path SID | |<---- PCUpd ---- |3)Paths update with | | PATH-SEGMENT TLV | Path SID | | | | 4) LSP State Report | ----- PCRpt ---> | | | | | |5) PCE informs the | --- PCInitiate ---> | | Path SID to Egress| FEC=Path | | | | | | <-------- PCRpt --- | | | | Figure 6: Ingress PCC request Path Segment to PCE 6. Dataplane Considerations As described in [RFC9545], in an SR-MPLS network, when a packet is transmitted along an SR path, the labels in the MPLS label stack will be swapped or popped. So that no label or only the last label may be left in the MPLS label stack when the packet reaches the egress node. Thus, the egress node cannot determine from which SR path the packet comes. For this reason, it introduces the Path Segment. Apart from allocation and encoding of the Path Segment (described in this document) for the LSP, it would also be included in the SID/ Label stack of the LSP (usually for processing by the egress). To support this, the Path Segment MAY also be a part of SR-ERO as prepared by the PCE as per [RFC8664]. The PCC MAY also include the Path Segment while preparing the label stack based on the local policy and use-case. It is important that the PCE learns the Maximum SID Depth (MSD) that can be imposed at each node/link of a given SR path to ensure that the SID stack depth does not exceed the number of SIDs the node is capable of imposing. As a new type of segment, Path Segment will be inserted in the SID list just like other SIDs. Thus, the PCE needs to consider the affect of Path Segment when computing a LSP with Path Segment allocation. Li, et al. Expires 17 April 2025 [Page 16] Internet-Draft PCEP for SR Path Segment October 2024 Similar to SR-MPLS, when SRv6 Path Segment is implemented, SRv6 dataplane is required to be supported on PCCs. 7. Implementation Status [Note to the RFC Editor - remove this section before publication, as well as remove the reference to [RFC7942]. This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist. According to [RFC7942], "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit". 7.1. Huawei's Commercial Delivery The feature of SR-MPLS Path Segment has been developed based on Huawei VRP8. * Organization: Huawei * Implementation: Huawei's Commercial Delivery implementation based on VRP8. * Description: The implementation is under development and follows the mechanism as defined in section-5.1.1. * Maturity Level: Product * Contact: tanren@huawei.com Li, et al. Expires 17 April 2025 [Page 17] Internet-Draft PCEP for SR Path Segment October 2024 7.2. ZTE's Commercial Delivery The feature of SR-MPLS Path Segment has been developed based on Rosng v8. * Organization: ZTE * Implementation: ZTE's Commercial Delivery implementation based on Rosng v8. * Description: The implementation is under development and follows the mechanism as defined in section-5.1.1. * Maturity Level: Product * Contact: zhan.shuangping@zte.com.cn 8. IANA Considerations 8.1. SR PCE Capability Flags SR PCE Capability TLV is defined in [RFC8664], and the registry to manage the Flag field of the SR PCE Capability TLV is requested in [RFC8664]. IANA is requested to make the following allocation in the "SR Capability Flag Field" sub-registry. Bit Description Reference TBA1 Path Segment Allocation is supported(P) This document 8.2. SRv6 PCE Capability Flags SRv6 PCE Capability TLV is defined in defined in [RFC9603], and the registry to manage the Flag field of the SRv6 PCE Capability Flags is requested in [RFC9603]. IANA is requested to make the following allocation in the aforementioned registry. Bit Description Reference TBA2 Path Segment Allocation is supported(P) This document Li, et al. Expires 17 April 2025 [Page 18] Internet-Draft PCEP for SR Path Segment October 2024 8.3. New LSP Flag Registry [RFC8231] defines the LSP object; per that RFC, IANA created a registry to manage the value of the LSP object's Flag field. IANA has allocated a new bit in the "LSP Object Flag Field" sub-registry, as follows: Bit Description Reference TBA3 Request for Path Segment Allocation(P) This document 8.4. New PCEP TLV IANA is requested to add the assignment of a new allocation in the existing "PCEP TLV Type Indicators" sub-registry as follows: Value Description Reference TBA4 PATH-SEGMENT TLV This document 8.4.1. Path Segment TLV This document requests that a new sub-registry named "PATH-SEGMENT TLV Segment Type (ST) Field" to be created to manage the value of the ST field in the PATH-SEGMENT TLV. New values are assigned by Standards Action [RFC8126]. Value Description Reference 0 MPLS Path Segment(MPLS label) This document 1 SRv6 Path Segment (IPv6 addr) This document 2-255 Unassigned This document Further, this document also requests that a new sub-registry named "PATH-SEGMENT TLV Flag Field" to be created to manage the Flag field in the PATH-SEGMENT TLV. New values are assigned by Standards Action [RFC8126]. Each bit should be tracked with the following qualities: * Bit number (counting from bit 0 as the most significant bit) * Capability description * Defining RFC Li, et al. Expires 17 April 2025 [Page 19] Internet-Draft PCEP for SR Path Segment October 2024 Bit Description Reference 7 Local Signification (L) This document 0-6 Unassigned This document 8.5. New FEC Type Registry A new PCEP object called FEC is defined in [I-D.ietf-pce-pcep-extension-pce-controller-sr]. IANA is requested to allocate a new Object-Type for FEC object in the "PCEP Objects" sub-registry. Value Description Reference TBA6 Path This document 8.6. PCEP Error Type and Value IANA is requested to allocate code-points in the "PCEP-ERROR Object Error Types and Values" sub-registry for the following new error- types and error-values: Error-Type Meaning Reference TBA7 Path SID failure: This document Error-value = 1 Invalid SID Error-value = 2 Unable to allocate Path SID 9. Security Considerations The security considerations described in [RFC5440]], [RFC8231], [RFC8281] and [RFC8664] are applicable to this specification. No additional security measure is required. As described [RFC8664] and [RFC9050], SR allows a network controller to instantiate and control paths in the network. A rogue PCE can manipulate Path SID allocations to have impact based on the usage of Path SID such as accounting, bi-directional etc. Thus, as per [RFC8231], it is RECOMMENDED that these PCEP extensions only be activated on authenticated and encrypted sessions across PCEs and PCCs belonging to the same administrative authority, using Li, et al. Expires 17 April 2025 [Page 20] Internet-Draft PCEP for SR Path Segment October 2024 Transport Layer Security (TLS) [RFC8253], as per the recommendations and best current practices in [RFC7525] (unless explicitly set aside in [RFC8253]). 10. Manageability Considerations All manageability requirements and considerations listed in [RFC5440], [RFC8231], and [RFC8664] apply to PCEP protocol extensions defined in this document. In addition, requirements and considerations listed in this section also should be applied. 10.1. Control of Function and Policy A PCEP implementation SHOULD allow the operator to configure the policy based on which it allocates the Path SID. This includes the Path SID scope. 10.2. Information and Data Models The PCEP YANG module is defined in [I-D.ietf-pce-pcep-yang]. In future, this YANG module should be extended or augmented to provide the following additional information relating to Path SID. An implementation SHOULD allow the operator to view the Path SID allocated to the LSP as well as Path SID as part of the computed SID list for the SR path. 10.3. Liveness Detection and Monitoring Mechanisms defined in this document do not imply any new liveness detection and monitoring requirements in addition to those already listed in [RFC5440]. 10.4. Verify Correct Operations Mechanisms defined in this document do not imply any new operation verification requirements in addition to those already listed in [RFC5440], [RFC8231], and [RFC8664] . 10.5. Requirements On Other Protocols Mechanisms defined in this document do not imply any new requirements on other protocols. Li, et al. Expires 17 April 2025 [Page 21] Internet-Draft PCEP for SR Path Segment October 2024 10.6. Impact On Network Operations Mechanisms defined in [RFC5440], [RFC8231], and [RFC8664] also apply to PCEP extensions defined in this document. Further, the mechanism described in this document can help the operator to request control of the LSPs at a particular PCE. 11. Acknowledgments Many thanks for Jeff Tantsura, Khasanov Boris, Aijun Wang,Loa Andersson,Greg Mirsky,Shunwan Zhuang, Huanan Chen, Fengwei Qin, Julien Meuric's professional comements. Best wishes to them and their families in this special period. 12. References 12.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC5440] Vasseur, JP., Ed. and JL. Le Roux, Ed., "Path Computation Element (PCE) Communication Protocol (PCEP)", RFC 5440, DOI 10.17487/RFC5440, March 2009, . [RFC8126] Cotton, M., Leiba, B., and T. Narten, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 8126, DOI 10.17487/RFC8126, June 2017, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC8231] Crabbe, E., Minei, I., Medved, J., and R. Varga, "Path Computation Element Communication Protocol (PCEP) Extensions for Stateful PCE", RFC 8231, DOI 10.17487/RFC8231, September 2017, . Li, et al. Expires 17 April 2025 [Page 22] Internet-Draft PCEP for SR Path Segment October 2024 [RFC8232] Crabbe, E., Minei, I., Medved, J., Varga, R., Zhang, X., and D. Dhody, "Optimizations of Label Switched Path State Synchronization Procedures for a Stateful PCE", RFC 8232, DOI 10.17487/RFC8232, September 2017, . [RFC8253] Lopez, D., Gonzalez de Dios, O., Wu, Q., and D. Dhody, "PCEPS: Usage of TLS to Provide a Secure Transport for the Path Computation Element Communication Protocol (PCEP)", RFC 8253, DOI 10.17487/RFC8253, October 2017, . [RFC7525] Sheffer, Y., Holz, R., and P. Saint-Andre, "Recommendations for Secure Use of Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS)", RFC 7525, DOI 10.17487/RFC7525, May 2015, . [RFC8281] Crabbe, E., Minei, I., Sivabalan, S., and R. Varga, "Path Computation Element Communication Protocol (PCEP) Extensions for PCE-Initiated LSP Setup in a Stateful PCE Model", RFC 8281, DOI 10.17487/RFC8281, December 2017, . [RFC8664] Sivabalan, S., Filsfils, C., Tantsura, J., Henderickx, W., and J. Hardwick, "Path Computation Element Communication Protocol (PCEP) Extensions for Segment Routing", RFC 8664, DOI 10.17487/RFC8664, December 2019, . [RFC9050] Li, Z., Peng, S., Negi, M., Zhao, Q., and C. Zhou, "Path Computation Element Communication Protocol (PCEP) Procedures and Extensions for Using the PCE as a Central Controller (PCECC) of LSPs", RFC 9050, DOI 10.17487/RFC9050, July 2021, . [RFC9545] Cheng, W., Ed., Li, H., Li, C., Ed., Gandhi, R., and R. Zigler, "Path Segment Identifier in MPLS-Based Segment Routing Networks", RFC 9545, DOI 10.17487/RFC9545, February 2024, . [RFC9603] Li, C., Ed., Kaladharan, P., Sivabalan, S., Koldychev, M., and Y. Zhu, "Path Computation Element Communication Protocol (PCEP) Extensions for IPv6 Segment Routing", RFC 9603, DOI 10.17487/RFC9603, July 2024, . Li, et al. Expires 17 April 2025 [Page 23] Internet-Draft PCEP for SR Path Segment October 2024 [I-D.ietf-pce-pcep-extension-pce-controller-sr] Li, Z., Peng, S., Negi, M. S., Zhao, Q., and C. Zhou, "PCE Communication Protocol (PCEP) Extensions for Using PCE as a Central Controller (PCECC) for Segment Routing (SR) MPLS Segment Identifier (SID) Allocation and Distribution.", Work in Progress, Internet-Draft, draft-ietf-pce-pcep- extension-pce-controller-sr-09, 4 July 2024, . [I-D.ietf-spring-srv6-path-segment] Li, C., Cheng, W., Chen, M., Dhody, D., and Y. Zhu, "Path Segment Identifier (PSID) in SRv6 (Segment Routing in IPv6)", Work in Progress, Internet-Draft, draft-ietf- spring-srv6-path-segment-11, 18 September 2024, . [RFC9604] Sivabalan, S., Filsfils, C., Tantsura, J., Previdi, S., and C. Li, Ed., "Carrying Binding Label/SID in PCE-Based Networks", RFC 9604, DOI 10.17487/RFC9604, August 2024, . [I-D.ietf-pce-segment-routing-policy-cp] Koldychev, M., Sivabalan, S., Barth, C., Peng, S., and H. Bidgoli, "Path Computation Element Communication Protocol (PCEP) Extensions for Segment Routing (SR) Policy Candidate Paths", Work in Progress, Internet-Draft, draft- ietf-pce-segment-routing-policy-cp-18, 14 October 2024, . [I-D.ietf-pce-multipath] Koldychev, M., Sivabalan, S., Saad, T., Beeram, V. P., Bidgoli, H., Yadav, B., Peng, S., and G. S. Mishra, "PCEP Extensions for Signaling Multipath Information", Work in Progress, Internet-Draft, draft-ietf-pce-multipath-12, 8 October 2024, . 12.2. Informative References [RFC4655] Farrel, A., Vasseur, J.-P., and J. Ash, "A Path Computation Element (PCE)-Based Architecture", RFC 4655, DOI 10.17487/RFC4655, August 2006, . Li, et al. Expires 17 April 2025 [Page 24] Internet-Draft PCEP for SR Path Segment October 2024 [RFC4657] Ash, J., Ed. and J.L. Le Roux, Ed., "Path Computation Element (PCE) Communication Protocol Generic Requirements", RFC 4657, DOI 10.17487/RFC4657, September 2006, . [RFC8402] Filsfils, C., Ed., Previdi, S., Ed., Ginsberg, L., Decraene, B., Litkowski, S., and R. Shakir, "Segment Routing Architecture", RFC 8402, DOI 10.17487/RFC8402, July 2018, . [RFC7942] Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", BCP 205, RFC 7942, DOI 10.17487/RFC7942, July 2016, . [I-D.ietf-pce-controlled-id-space] Li, C., Shi, H., Wang, A., Cheng, W., and C. Zhou, "Path Computation Element Communication Protocol (PCEP) extension to advertise the PCE Controlled Identifier Space", Work in Progress, Internet-Draft, draft-ietf-pce- controlled-id-space-00, 4 June 2024, . [I-D.ietf-pce-pcep-yang] Dhody, D., Beeram, V. P., Hardwick, J., and J. Tantsura, "A YANG Data Model for Path Computation Element Communications Protocol (PCEP)", Work in Progress, Internet-Draft, draft-ietf-pce-pcep-yang-25, 21 May 2024, . Appendix A. Contributors The following people have substantially contributed to this document: Li, et al. Expires 17 April 2025 [Page 25] Internet-Draft PCEP for SR Path Segment October 2024 Dhruv Dhody Huawei Technologies Divyashree Techno Park, Whitefield Bangalore, Karnataka 560066 India Email: dhruv.ietf@gmail.com Jie Dong Huawei Technologies Huawei Campus, No. 156 Beiqing Rd. Beijing 100095 China Email: jie.dong@huawei.com Zhenbin Li Huawei Technologies Huawei Campus, No. 156 Beiqing Rd. Beijing 100095 China Email: lizhenbin@huawei.com Zafar Ali Cisco Systems, Inc. Email: zali@cisco.com Authors' Addresses Cheng Li Huawei Technologies Huawei Campus, No. 156 Beiqing Rd. Beijing 100095 China Email: c.l@huawei.com Mach(Guoyi) Chen Huawei Technologies Huawei Campus, No. 156 Beiqing Rd. Beijing 100095 China Li, et al. Expires 17 April 2025 [Page 26] Internet-Draft PCEP for SR Path Segment October 2024 Email: Mach.chen@huawei.com Weiqiang Cheng China Mobile China Email: chengweiqiang@chinamobile.com Rakesh Gandhi Cisco Systems, Inc. Canada Email: rgandhi@cisco.com Quan Xiong ZTE Corporation China Email: xiong.quan@zte.com.cn Li, et al. Expires 17 April 2025 [Page 27]