<?xml version="1.0" encoding="UTF-8"?>
  <?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
  <!-- generated by https://github.com/cabo/kramdown-rfc2629 version 1.5.11 -->

<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
]>

<?rfc toc="yes"?>
<?rfc sortrefs="yes"?>
<?rfc symrefs="yes"?>
<?rfc docmapping="yes"?>

<rfc ipr="trust200902" docName="draft-dhody-pce-pcep-object-order-00" category="std" updates="5440">

  <front>
    <title>Updated Rules for PCEP Object Ordering</title>

    <author initials="D." surname="Dhody" fullname="Dhruv Dhody">
      <organization>Huawei Technologies</organization>
      <address>
        <postal>
          <street>Divyashree Techno Park, Whitefield</street>
          <city>Bangalore</city>
          <code>560066</code>
          <country>IN</country>
        </postal>
        <email>dhruv.ietf@gmail.com</email>
      </address>
    </author>

    <date />

    
    <workgroup>PCE Working Group</workgroup>
    

    <abstract>


<t>The Path Computation Element Communication Protocol (PCEP) defines the mechanisms for the communication between a Path Computation Client (PCC) and a Path Computation Element (PCE), or among PCEs. Such interactions include include path computation requests and path computation replies defined in RFC 5440. As per RFC 5440, these message are required to follow strict object ordering.</t>

<t>This document updates RFC 5440 by relaxing the strict object ordering requirement in the PCEP messages.</t>



    </abstract>


  </front>

  <middle>


<section anchor="introduction"><name>Introduction</name>

<t><xref target="RFC5440"/> describes the Path Computation Element Communication Protocol (PCEP).  PCEP defines the communication between a Path Computation Client (PCC) and a Path Computation Element (PCE), or between PCEs, enabling computation of Multiprotocol Label Switching (MPLS) for Traffic Engineering Label Switched Path (TE LSP) characteristics.</t>

<t><xref target="RFC5440"/> defines several PCEP messages. For each PCEP message type, rules are defined that specify the set of objects that the message can carry using <xref target="RFC5511"/>. Further, <xref target="RFC5440"/> states that the object ordering is mandatory. This causes confusion when multiple extensions add new objects in the PCEP messages and the respective order of these new objects is not specified (see <xref target="EID6627"/>).</t>

<t>This document updates <xref target="RFC5440"/> to relax the strict object ordering requirement.</t>

</section>
<section anchor="conventions"><name>Conventions</name>

<t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED",
"MAY", and "OPTIONAL" in this document are to be interpreted as
described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they
appear in all capitals, as shown here.</t>

</section>
<section anchor="motivation"><name>Motivation</name>

<t>The mandatory object ordering requirement in <xref target="RFC5440"/> is shown to result in exponential complexity in terms of what each new PCEP extension needs to cope with in terms of reconciling all previously-published RFCs, and all concurrently work in progress internet drafts. This requirement does not lend itself for extensibility of PCEP.</t>

</section>
<section anchor="update"><name>Update to RFC 5440</name>

<t><xref section="6" sectionFormat="of" target="RFC5440"/> states:</t>

<figure><sourcecode type="quote"><![CDATA[
   An implementation MUST form the PCEP
   messages using the object ordering specified in this document.
]]></sourcecode></figure>
<t>This text is updated to read as follows:</t>

<figure><sourcecode type="update"><![CDATA[
   An implementation SHOULD form the PCEP
   messages using the object ordering specified in this and 
   subsequent documents when an ordering can be unambiguously 
   determined; an implementation MUST be prepared to receive 
   a PCEP message with objects in any order.
]]></sourcecode></figure>

<t>This update does not aim to take away the object ordering completely. It is expected that the PCEP speaker will follow the object order as specified unless there are valid reasons to ignore. It is also expected that the receiver is able to unambiguously understand the object meaning irrespective of the order.</t>

<t>TODO: Scan all PCEP extensions to see if any other text needs to be updated related to object ordering.</t>

</section>
<section anchor="compatibility-considerations"><name>Compatibility Considerations</name>

<t>While one of the main objectives of the changes made by this document is to enable backward compatibility between PCEP extensions, there remains an issue of compatibility between existing implementations of <xref target="RFC5440"/> and implementations that are consistent with this document.</t>

<t>It should be noted that common behavior for checking object ordering in received PCEP messages is as described by the updated text presented in <xref target="update"/>.  Thus, many implementations, will still have implemented a consistent and future-proof approach.  However, for completeness, it is worth noting how behaviors might interact between implementations.</t>

<t>The messages generated by an implementation of this document when received by a legacy implementation with a strict interpretation of object ordering MAY lead to error handling. It is interesting to note that the <xref target="RFC5440"/> does not define an Error-Type and Error-value corresponding to this error condition.</t>

</section>
<section anchor="management-considerations"><name>Management Considerations</name>

<t>Implementations receiving set objects that they consider out of order MAY log this.  That could be helpful for diagnosing backward compatibility issues.</t>

</section>
<section anchor="other-efforts"><name>Other Efforts</name>

<t>In the past there have been effort to consolidate and update the RBNF such as in <xref target="I-D.cmfg-pce-pcep-grammar"/>. This document document relaxes the object ordering only, it does not take on the various other issues or the need to consolidate the RBNF for all PCEP extensions. They might be taken up in parallel.</t>

</section>
<section anchor="security-considerations"><name>Security Considerations</name>

<t>This document does not raise any security issues.</t>

</section>
<section anchor="iana-considerations"><name>IANA Considerations</name>

<t>This document does not require any IANA actions.</t>

</section>


  </middle>

  <back>

    <references title='Normative References'>





<reference anchor='RFC2119' target='https://www.rfc-editor.org/info/rfc2119'>
<front>
<title>Key words for use in RFCs to Indicate Requirement Levels</title>
<author fullname='S. Bradner' initials='S.' surname='Bradner'><organization/></author>
<date month='March' year='1997'/>
<abstract><t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t></abstract>
</front>
<seriesInfo name='BCP' value='14'/>
<seriesInfo name='RFC' value='2119'/>
<seriesInfo name='DOI' value='10.17487/RFC2119'/>
</reference>



<reference anchor='RFC5440' target='https://www.rfc-editor.org/info/rfc5440'>
<front>
<title>Path Computation Element (PCE) Communication Protocol (PCEP)</title>
<author fullname='JP. Vasseur' initials='JP.' role='editor' surname='Vasseur'><organization/></author>
<author fullname='JL. Le Roux' initials='JL.' role='editor' surname='Le Roux'><organization/></author>
<date month='March' year='2009'/>
<abstract><t>This document specifies the Path Computation Element (PCE) Communication Protocol (PCEP) for communications between a Path Computation Client (PCC) and a PCE, or between two PCEs.  Such interactions include path computation requests and path computation replies as well as notifications of specific states related to the use of a PCE in the context of Multiprotocol Label Switching (MPLS) and Generalized MPLS (GMPLS) Traffic Engineering.  PCEP is designed to be flexible and extensible so as to easily allow for the addition of further messages and objects, should further requirements be expressed in the future.  [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='RFC' value='5440'/>
<seriesInfo name='DOI' value='10.17487/RFC5440'/>
</reference>



<reference anchor='RFC5511' target='https://www.rfc-editor.org/info/rfc5511'>
<front>
<title>Routing Backus-Naur Form (RBNF): A Syntax Used to Form Encoding Rules in Various Routing Protocol Specifications</title>
<author fullname='A. Farrel' initials='A.' surname='Farrel'><organization/></author>
<date month='April' year='2009'/>
<abstract><t>Several protocols have been specified in the Routing Area of the IETF using a common variant of the Backus-Naur Form (BNF) of representing message syntax.  However, there is no formal definition of this version of BNF.</t><t>There is value in using the same variant of BNF for the set of protocols that are commonly used together.  This reduces confusion and simplifies implementation.</t><t>Updating existing documents to use some other variant of BNF that is already formally documented would be a substantial piece of work.</t><t>This document provides a formal definition of the variant of BNF that has been used (that we call Routing BNF) and makes it available for use by new protocols.  [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='RFC' value='5511'/>
<seriesInfo name='DOI' value='10.17487/RFC5511'/>
</reference>



<reference anchor='RFC8174' target='https://www.rfc-editor.org/info/rfc8174'>
<front>
<title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
<author fullname='B. Leiba' initials='B.' surname='Leiba'><organization/></author>
<date month='May' year='2017'/>
<abstract><t>RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t></abstract>
</front>
<seriesInfo name='BCP' value='14'/>
<seriesInfo name='RFC' value='8174'/>
<seriesInfo name='DOI' value='10.17487/RFC8174'/>
</reference>




    </references>

    <references title='Informative References'>





<reference anchor='RFC5455' target='https://www.rfc-editor.org/info/rfc5455'>
<front>
<title>Diffserv-Aware Class-Type Object for the Path Computation Element Communication Protocol</title>
<author fullname='S. Sivabalan' initials='S.' role='editor' surname='Sivabalan'><organization/></author>
<author fullname='J. Parker' initials='J.' surname='Parker'><organization/></author>
<author fullname='S. Boutros' initials='S.' surname='Boutros'><organization/></author>
<author fullname='K. Kumaki' initials='K.' surname='Kumaki'><organization/></author>
<date month='March' year='2009'/>
<abstract><t>This document specifies a CLASSTYPE object to support Diffserv-Aware Traffic Engineering (DS-TE) where path computation is performed with the aid of a Path Computation Element (PCE).  [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='RFC' value='5455'/>
<seriesInfo name='DOI' value='10.17487/RFC5455'/>
</reference>



<reference anchor='RFC8231' target='https://www.rfc-editor.org/info/rfc8231'>
<front>
<title>Path Computation Element Communication Protocol (PCEP) Extensions for Stateful PCE</title>
<author fullname='E. Crabbe' initials='E.' surname='Crabbe'><organization/></author>
<author fullname='I. Minei' initials='I.' surname='Minei'><organization/></author>
<author fullname='J. Medved' initials='J.' surname='Medved'><organization/></author>
<author fullname='R. Varga' initials='R.' surname='Varga'><organization/></author>
<date month='September' year='2017'/>
<abstract><t>The Path Computation Element Communication Protocol (PCEP) provides mechanisms for Path Computation Elements (PCEs) to perform path computations in response to Path Computation Client (PCC) requests.</t><t>Although PCEP explicitly makes no assumptions regarding the information available to the PCE, it also makes no provisions for PCE control of timing and sequence of path computations within and across PCEP sessions.  This document describes a set of extensions to PCEP to enable stateful control of MPLS-TE and GMPLS Label Switched Paths (LSPs) via PCEP.</t></abstract>
</front>
<seriesInfo name='RFC' value='8231'/>
<seriesInfo name='DOI' value='10.17487/RFC8231'/>
</reference>


<reference anchor='I-D.cmfg-pce-pcep-grammar'>
   <front>
      <title>Current issues with existing RBNF notation for PCEP messages and extensions</title>
      <author fullname='Ramon Casellas'>
	 </author>
      <author fullname='Cyril Margaria'>
	 </author>
      <author fullname='Adrian Farrel'>
	 </author>
      <author fullname='Oscar Gonzalez de Dios'>
	 </author>
      <author fullname='Dhruv Dhody'>
	 </author>
      <author fullname='Xian Zhang'>
	 </author>
      <date day='10' month='January' year='2014'/>
      <abstract>
	 <t>   The PCEP protocol has been defined in [RFC5440] and later extended in
   several RFCs.  This document aims at documenting inconsistencies when
   implementing a set of extensions and at providing a reference,
   complete and formal RBNF grammar for PCEP messages, including object
   ordering and precedence rules.

	 </t>
      </abstract>
   </front>
   <seriesInfo name='Internet-Draft' value='draft-cmfg-pce-pcep-grammar-02'/>
   <format target='https://www.ietf.org/archive/id/draft-cmfg-pce-pcep-grammar-02.txt' type='TXT'/>
</reference>


<reference anchor="EID6627" target="https://www.rfc-editor.org/errata/eid6627">
  <front>
    <title>Errata ID: 6627</title>
    <author >
      <organization></organization>
    </author>
    <date year="n.d."/>
  </front>
</reference>


    </references>


<section anchor="acknowledgments"><name>Acknowledgments</name>

<t>Thanks to John Scudder for the motivation behind this document. Thanks to Oscar Gonzalez de Dios and Cyril Margaria for raising errata on this topic. Thanks to the author of <xref target="I-D.cmfg-pce-pcep-grammar"/> for highlighting the issue.</t>

</section>
<section anchor="examples"><name>Examples</name>

<t>As described in <xref target="EID6627"/>, for the PCReq message, the CLASSTYPE object is encoded after the END-POINTS object in <xref target="RFC5455"/>. Where as in <xref target="RFC8231"/>, the LSP object is encoded just after the END-POINTS object. So it is not known which of the below order is expected.</t>

<figure><sourcecode type="RBNF"><![CDATA[
...<END-POINTS>[<LSP>][<CLASSTYPE>]... 

or 

...<END-POINTS>[<CLASSTYPE>][<LSP>]...
]]></sourcecode></figure>

<t>This update require the receiver to be able to except both of these.</t>

</section>


  </back>

<!-- ##markdown-source:
H4sIALf8bmEAA7VY227bSBJ951f0Oi8JICl2NvbsaINgFUuZaGBbWstBMAiC
RYtsST0m2Ux307LGcL5lv2W/bE9VkxQla2YHi5kHJ7x0V1edOnWqqG63G0Ve
+1T1xccikV4l4rpMlRMLY8X0fDQVk/nPKvZiYhNldb6Mngk5n1t11xeG33QN
vYkSE+cyg5nEyoXvJiuTbLpFrOiv6LaXdo+PIzqpLx6Gg5vRYxTjZmnspi+c
TyJd2L7wtnT+1fHx98evopL9cn1x+vr1MR1vleyLa1N6cmdt7O3SmrLok7vi
E27xWPxAj6LIeZkn/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