<?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" submissionType="IETF" category="std" consensus="true" docName="draft-ietf-pce-lsp-extended-flags-09" number="0000" ipr="trust200902" obsoletes="" updates="" xml:lang="en" tocInclude="true" tocDepth="4" symRefs="true" sortRefs="true" version="3">
  
  <!-- xml2rfc v2v3 conversion 3.15.1 -->
  <front>
    <title abbrev="LSP Object Flag Extn">Label Switched Path (LSP) Object Flag Extension for Stateful PCE</title>
    <seriesInfo name="RFC" value="0000"/>
    <author fullname="Quan Xiong" initials="Q" surname="Xiong">
      <organization>ZTE Corporation</organization>
      <address>
        <postal>
          <street>No.6 Huashi Park Rd</street>
          <city>Wuhan</city>
          <region>Hubei</region>
          <code>430223</code>
          <country>China</country>
        </postal>
        <phone/>
        <email>xiong.quan@zte.com.cn</email>
      </address>
    </author>
    <date year="2022" month="November"/>
    <area>rtg</area>
    <workgroup>pce</workgroup>
    <keyword>PCEP</keyword>
    <abstract>
      <t>RFC 8231 describes a set of extensions to Path Computation Element Communication 
		 Protocol (PCEP) to enable stateful control of MPLS-TE and GMPLS Label Switched 
		 Paths (LSPs) via PCEP. One of the extensions is the LSP object which includes 
		 a Flag field with a length of 12 bits. However, all bits of the Flag field have 
		 already been assigned in RFC 8231, RFC 8281, RFC 8623 and I-D.ietf-pce-binding-label-sid.</t>
      <t>[Note to RFC Editor - Replace I-D.ietf-pce-binding-label-sid to RFC XXXX, once the RFC number is assigned.]</t>
      <t>This document proposes to define a new LSP-EXTENDED-FLAG TLV for the 
		 LSP object for an extended flag field.</t>
    </abstract>
  </front>
  <middle>
    <section numbered="true" toc="default">
      <name>Introduction</name>
      <t><xref target="RFC5440" format="default"/> describes the Path Computation Element (PCE) 
	Communication Protocol (PCEP) which is used between a PCE and a Path Computation 
	Client (PCC) (or other PCE) to enable computation of Multi-protocol Label 
	Switching for Traffic Engineering (MPLS-TE) Label Switched Path (LSP). </t>
      <t>PCEP Extensions for the Stateful PCE Model <xref target="RFC8231" format="default"/> 
	describes a set of extensions to PCEP to enable active control of MPLS-TE and 
	Generalized MPLS (GMPLS) tunnels. One of the extensions is the LSP object, 
	which contains a flag field; bits in the flag field are used to indicate 
	delegation, synchronization, removal, etc.</t>
      <t>As defined in <xref target="RFC8231" format="default"/>, the length of the flag field is
	12 bits and the values from bit 5 to bit 11 are used for operational, administrative, 
	remove, synchronize and delegate bits respectively. The bit value 4 is assigned in <xref target="RFC8281" format="default"/> 
	to identify the PCE-Initiated LSPs. The bits from 1 to 3 are assigned in <xref target="RFC8623" format="default"/> 
	for Explicit Route Object (ERO)-compression, fragmentation and Point-to-Multipoint (P2MP) 
	respectively. The bit 0 is assigned in <xref target="I-D.ietf-pce-binding-label-sid" format="default"/> to PCE-allocation. 
	All bits of the Flag field have been assigned already. This document extends the 
	flag field of the LSP Object for other use.</t>
      <t>This document proposes to define a new LSP-EXTENDED-FLAG TLV for an extended flag field in the LSP object.</t>
    </section>
    <section numbered="true" toc="default">
      <name>Conventions used in this document</name>
      <section numbered="true" toc="default">
        <name>Terminology</name>
        <t>The terminology is defined as <xref target="RFC5440" format="default"/> and <xref target="RFC8231" format="default"/>.</t>
      </section>
      <section 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>PCEP Extension</name>
      <t>The LSP Object is defined in <xref target="RFC8231" sectionFormat="of" section="7.3"/>.
	This document proposes to define a new LSP-EXTENDED-FLAG TLV for an extended flag field in the LSP object.</t>
      <section numbered="true" toc="default">
        <name>The LSP-EXTENDED-FLAG TLV</name>
        <t>The format of the LSP-EXTENDED-FLAG TLV follows the format of
   all PCEP TLVs as defined in <xref target="RFC5440" format="default"/> and is shown in <xref target="fig1" format="default"/>. </t>
        <figure anchor="fig1">
          <name>Figure 1: LSP-EXTENDED-FLAG 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=TBD1           |           Length              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                                               |
//                 LSP Extended Flags                          //
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
        </figure>
        <t keepWithPrevious="true"/>
	<dl newline="false" spacing="normal">
          <dt>Type (16 bits):</dt>
	  <dd>TBD1.</dd>
          <dt>Length (16 bits):</dt>
	  <dd>indicates the length of the value portion in bytes. 
	  It <bcp14>MUST</bcp14> be in multiples of 4 and greater than 0.</dd>
          <dt>LSP Extended Flags:</dt>
	  <dd>this contains an array of units of 32-bit flags
      numbered from the most significant as bit zero, where each bit 
	  represents one LSP flag (for operation, feature, or state). The 
	  LSP Extended Flags field <bcp14>SHOULD</bcp14> use the minimal amount of space 
	  needed to encode the flag bits. Currently, no bits are assigned. 
	  Unassigned bits <bcp14>MUST</bcp14> be set to zero on transmission and <bcp14>MUST</bcp14> be 
	  ignored on receipt. </dd>
	</dl>
        <t>As an example of usage of the LSP-EXTENDED-FLAG TLV, the E-flag 
	is requested for entropy label configuration as proposed in <xref target="I-D.peng-pce-entropy-label-position" format="default"/>.</t>
      </section>
      <section numbered="true" toc="default">
        <name>Processing</name>
        <t>The LSP Extended Flags field is an array of units of 32 flags, to be 
   allocated starting from the most significant bit. The bits of the LSP Extended 
   Flags field will be assigned by future documents. This document does not define 
   any flags. Flags that an implementation is not supporting <bcp14>MUST</bcp14> be set to
   zero on transmission. Implementations that do not understand any particular 
   flag <bcp14>MUST</bcp14> ignore the flag.</t>
        <t>Note that PCEP peers <bcp14>MUST</bcp14> handle varying lengths of the
   LSP-EXTENDED-FLAG TLV.</t>
        <t>If a PCEP speaker receives the LSP-EXTENDED-FLAG TLV
     of a length more than it currently supports or understands,
     it <bcp14>MUST</bcp14> ignore the bits beyond that length.</t>
        <t>If a PCEP speaker receives the LSP-EXTENDED-FLAG TLV of
     a length less than the one supported by the implementation,
     it <bcp14>MUST</bcp14> treat the bits beyond the length to be unset.</t>
      </section>
    </section>
    <section numbered="true" toc="default">
      <name>Advice for Specification of New Flags</name>
      <t>Following the model provided in <xref target="RFC8786" sectionFormat="of" section="3.1"/>, we provide
   the following advice for new specifications that define additional
   flags. Each such specification is expected to describe the
   interaction between these new flags and any existing flags.  In
   particular, new specifications are expected to explain how to handle
   the cases when both new and pre-existing flags are set.
   They are also expected to discuss any security implications of the 
   additional flags (if any) and their interactions with existing flags.</t>
    </section>
    <section numbered="true" toc="default">
      <name>Backward Compatibility</name>
      <t>The LSP-EXTENDED-FLAG TLV defined in this document does not introduce
   any backward compatibility issues. An implementation that does not 
   understand or support the LSP-EXTENDED-FLAG TLV <bcp14>MUST</bcp14> ignore 
   the TLV as per <xref target="RFC5440" format="default"/>. It is expected that future documents that 
   define bits in the LSP-EXTENDED-FLAG TLV will also define the error 
   case handling required for missing LSP-EXTENDED-FLAG TLV if it <bcp14>MUST</bcp14> 
   be present.</t>
      <t>Further, any additional bits in the LSP-EXTENDED-FLAG TLV that are 
   not understood by an implementation <bcp14>MUST</bcp14> be ignored. It is expected
   that future documents that define bits in the LSP-EXTENDED-FLAG TLV
   will take that into consideration. </t>
    </section>
    <section anchor="IANA" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <section numbered="true" toc="default">
        <name>LSP Object</name>
        <section numbered="true" toc="default">
          <name>PCEP TLV Type Indicators</name>
          <t>IANA is requested to allocate the following TLV Type Indicator value within
   the "PCEP TLV Type Indicators" subregistry of the "Path Computation
   Element Protocol (PCEP) Numbers" registry:</t>
          <table anchor="table1" align="center">
            <thead>
              <tr>
                <th align="left"> Value </th>
                <th align="left"> Description </th>
                <th align="left"> Reference </th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td align="left">TBD1</td>
                <td align="left">LSP-EXTENDED-FLAG</td>
                <td align="left">[This document]</td>
              </tr>
            </tbody>
          </table>
        </section>
        <section numbered="true" toc="default">
          <name>LSP Extended Flags Field</name>
          <t>IANA is requested to create a new subregistry called "LSP-EXTENDED-FLAG TLV Flag Field", 
   within the "Path Computation Element Protocol (PCEP) Numbers"
   registry to manage the LSP Extended Flags field of the LSP-EXTENDED-FLAG TLV.  New values are
   assigned by Standards Action <xref target="RFC8126" format="default"/>.  Each bit should be tracked
   with the following qualities:</t>
          <ul spacing="normal">
            <li>Bit number (counting from bit 0 as the most significant bit)</li>
            <li>Capability description</li>
            <li>Defining RFC</li>
          </ul>
          <t>No values are currently defined. Bits 0-31 should initially be marked 
    as "Unassigned". Bits with a higher ordinal than 31 will be added to the 
    registry in future documents if necessary.</t>
        </section>
      </section>
    </section>
    <section numbered="true" toc="default">
      <name>Implementation Status</name>
      <t>[NOTE TO RFC EDITOR : This whole section and the reference to 
   <xref target="RFC7942" format="default"/> is to be removed before publication as an RFC]</t>
      <t>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 <xref target="RFC7942" format="default"/>.
   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.</t>
      <t>According to <xref target="RFC7942" format="default"/>, "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".</t>
      <t>At the time of posting this version of this document, there are no
   known implementations of this TLV.  It is believed that this would
   be implemented alongside the documents that allocate flags in the
   TLV. </t>
    </section>
    <section numbered="true" toc="default">
      <name>Management Considerations</name>
      <t>Implementations receiving set LSP Extended Flags that they do not recognize
   <bcp14>MAY</bcp14> log this.  That could be helpful for diagnosing backward
   compatibility issues with future features that utilize those flags.</t>
    </section>
    <section numbered="true" toc="default">
      <name>Security Considerations</name>
      <t><xref target="RFC8231" format="default"/> sets out security considerations for PCEP when 
	used for communication with a stateful PCE.  This document does not change
    those considerations. For LSP Object processing, see <xref target="RFC8231" format="default"/>.</t>
      <t>The flags for the LSP object and their associated security
    considerations are specified in <xref target="RFC8231" format="default"/>, <xref target="RFC8281" format="default"/>, <xref target="RFC8623" format="default"/>,
    and <xref target="I-D.ietf-pce-binding-label-sid" format="default"/>.</t>
      <t>This document provides for the future addition of flags in the LSP Object. 
   Any future document that specifies new flags must also discuss any 
   associated security implications. No additional security issues are 
   raised in this document beyond those that exist in the referenced 
   documents. Note that the <xref target="RFC8231" format="default"/> recommends 
   that the stateful PCEP extension are authenticated and encrypted 
   using Transport Layer Security (TLS) <xref target="RFC8253" format="default"/>, as per the
   recommendations and best current practices in <xref target="RFC7525" format="default"/>.
   Assuming that recommendation is followed, then the flags will be protected by TLS.</t>
    </section>
    <section anchor="Acknowledgements" numbered="true" toc="default">
      <name>Acknowledgements</name>
      <t>The authors would like to thank <contact fullname="Loa Andersson"/>, <contact fullname="Adrian Farrel"/>, <contact fullname="Aijun Wang"/>, and <contact fullname="Gyan Mishra"/> for their review, suggestions and comments to this document.</t>
    </section>
    <section numbered="true" toc="default">
      <name>Contributors</name>
      <t>The following people have substantially contributed to this document:</t>
      <contact fullname="Dhruv Dhody">
	<organization>Huawei Technologies</organization>
	<address>
	  <email>dhruv.ietf@gmail.com</email>
	</address>
      </contact>
      <contact fullname="Greg Mirsky">
	<organization>Ericsson</organization>
	<address>
	  <email>gregimirsky@gmail.com</email>
	</address>
      </contact>
    </section>
  </middle>
  <back>

<displayreference target="I-D.ietf-pce-binding-label-sid" to="PCE-BINDING-LABEL-SID"/>
<displayreference target="I-D.peng-pce-entropy-label-position" to="PCE-ENTROPY-LABEL-POSITION"/>

    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>

<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5440.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8231.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8126.xml"/>

      </references>
      <references>
        <name>Informative References</name>

<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5088.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5089.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7525.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.7942.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8253.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8281.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8623.xml"/>
<xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8786.xml"/>
<xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.ietf-pce-binding-label-sid.xml"/>
<xi:include href="https://datatracker.ietf.org/doc/bibxml3/reference.I-D.peng-pce-entropy-label-position.xml"/>

      </references>
    </references>
    <section numbered="true" toc="default">
      <name>WG Discussion</name>
      <t>
           The WG discussed the idea of a fixed length (with 32 bits) for LSP-
   EXTENDED-FLAG TLV.  Though 32 bits would be sufficient for quite a
   while, the use of variable length with a multiple of 32-bits allows
   for future extensibility where we would never run out of flags and
   there would not be a need to define yet another TLV in the future.
   Further, note that <xref target="RFC5088" format="default"/> and <xref target="RFC5089" format="default"/> use the same approach for
   the PCE-CAP-FLAGS Sub-TLV and are found to be useful.
      </t>
    </section>
  </back>
</rfc>
