<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="std" docName="draft-ietf-mpls-spl-terminology-06" ipr="trust200902" updates="3032, 7274">
  <front>

    <title abbrev="SPL Terminology">Special Purpose Label terminology</title>

    <author fullname="Loa Andersson" initials="L." surname="Andersson">
      <organization>Bronze Dragon Consulting</organization>
      <address>
        <email>loa@pi.nu</email>
      </address>
    </author>

      <author fullname="Kireeti Kompella" initials="K." surname="Kompella">
      <organization>Juniper Networks</organization>
      <address>
        <email>kireeti@juniper.net</email>
      </address>
    </author>

    <author fullname="Adrian Farrel" initials="A." surname="Farrel">
      <organization>Old Dog Consulting</organization>
      <address>
        <email>adrian@olddog.co.uk</email>
      </address>
    </author>

    <date/>

     <workgroup>MPLS Working Group</workgroup>

<abstract>

   <t>This document discusses and recommends a terminology that may be used when
      MPLS Special Purpose Labels (SPL) are specified and documented.</t>

   <t>This document applies that terminology change to the relevant IANA registry
      and also clarifies the use of the Entropy Label Indicator (7) when immediately
      preceded by the Extension Label (15).</t>

   <t>This document updates RFC 7274 and RFC 3032.</t>

</abstract>

</front>

<middle>

   <section anchor="intro" title="Introduction">

      <t>RFC 7274 <xref target="RFC7274"/> made some changes to the terminology
         used for MPLS Special Purpose Labels, but did not define consistent
         terminology. </t>

      <t>One thing that RFC 7274 did was to deprecate use of the term
         "reserved labels" when describing a range of labels allocated from a
         registry maintained by IANA.  The term "Reserved" in such a registry
         means "set aside, not to be used", but that range of labels was
         available for allocation according to the policies set out in that
         registry.  The name "Special Purpose Labels" was introduced in RFC
         7274 in place of the previous term, and the abbreviation SPL was
         recommended.</t>

      <t>At the time of writing the first version of this document, the IETF was in the
         process of allocating the very first SPLs from the Extended SPL (eSPL)
         range <xref target="RFC8595"/>.  This document discusses and recommends
         terminology and abbreviations to be used when talking about and
         documenting Special Purpose Labels.</t>

      <t>This document updates RFC 3032  <xref target="RFC3032"/> and RFC 7274
         <xref target="RFC7274"/> in that it changes the terminology for both
         Base SPLs and Extended SPLs.</t>

      <t>This document applies that terminology change to the relevant IANA registry
         and also clarifies the use of the Entropy Label Indicator (7) when immediately
         preceded by the Extension Label (15).</t>

      <section anchor="terms" title="Terminology">

         <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>

   <section anchor="bckground" title="Background">

      <t>Two sets of SPLs are defined for use in MPLS:
         <list style="symbol">
           <t>The range of 0-15, Base Special Purpose Labels (bSPLs), is specified in RFC 3032
              <xref target="RFC3032"/>.</t>
           <t>The range 0-1048575 of eSPLs is specified in RFC 7274 <xref target="RFC7274"/>.
              <list style="symbols">
                <t>the values 0-15 have been reserved never to be allocated</t>
                <t>the values 16-239 are available for allocation</t>
                <t>the values 240-255 are for experimental use</t>
                <t>the values 256-1048575 are currently not available for
                   allocation. A standard track RFC will be needed to
                   allocate any labels from this range.</t>
              </list>
           </t>
         </list>
      </t>

      <section title="GMPLS Special Purpose Labels" anchor="GMPLS">

         <t>Note that IANA maintains a registry called "Special Purpose Generalized Label
            Values".  Labels in that registry have special meaning when present in certain
            signalling objects, are 32 bits long, and are not to be confused with MPLS
            forwarding plane labels.  This document does not make any changes to the GMPLS
            registry or to how labels from that registry are described.</t>

      </section>

   </section>

   <section anchor="terminology" title="Terminology and Abbreviations">

      <t>IANA maintains a name space for 'Special-Purpose Multiprotocol Label
         Switching (MPLS) Label Values' code points <xref target="SPL-NAME-SPACE"/>.
         Within this name space there are two registries. One is called the 'Special-Purpose
         MPLS Label Values' registry <xref target="bSPL"/>.  The other is called
         'Extended Special-Purpose MPLS Label Values' registry <xref target="eSPL"/>.</t>

      <t>The difference in the name of the name space and the first registry is only that
         the MPLS abbreviation is expanded.  This document changes the name of the first
         registry to 'Base Special-Purpose MPLS Label Values', but leaves the name of the
         latter registry unchanged as 'Extended Special-Purpose MPLS Label Values'.</t>

      <t>The following conventions will be used in specifications and when talking
         about SPLs.
         <list style="symbols">
            <t>Collectively, the two (unrelated) ranges (0-15 and 16-1048575) are
               known as Special Purpose Labels (SPL).</t>
            <t>Special purpose labels from the range 0-15 are called Base Special
               Purpose Labels (bSPL).</t>
            <t>Special purpose labels from the range 16-1048575 are called Extended
               Special Purpose Labels (eSPL).  (Note that the reserved values 0-15 from the
               'Extended Special-Purpose MPLS Label Values' registry do not need a
               name as they are not available for allocation and MUST NOT be used.)</t>
            <t>The combination of the Extension Label (XL) (value 15 which is a
               bSPL, and which is also called the xSPL) and an eSPL is called a
               Composite Special Purpose Label (cSPL).</t>
         </list>
      </t>

      <t>This results in a label stacks such as the illustrative examples shown
         in <xref target="stack-example-1"/> and <xref target="stack-example-2"/>.</t>

      <figure title="Example of Label Stack" align="left" anchor="stack-example-1">
         <artwork align="left">
            <![CDATA[
          0                                  31
          |     MPLS Label Stack entry        |
          +--------+--------+--------+--------+
          |     MPLS Label Stack entry        |
          +--------+--------+--------+--------+
bSPL      |             Base SPL              |
          +--------+--------+--------+--------+
          |  MPLS Label Stack entry (cont.)   |
            ]]>
         </artwork>
      </figure>

      <figure title="Example of Label Stack" align="left" anchor="stack-example-2">
         <artwork align="left">
            <![CDATA[
          0                                  31
          |     MPLS Label Stack entry        |
          +--------+--------+--------+--------+
          |     MPLS Label Stack entry        |
          +--------+--------+--------+--------+
xSPL      |       Extension Label (XL)        | <--+
          +--------+--------+--------+--------+    |--- cSPL
eSPL      |           Extended SPL            | <--+
          +--------+--------+--------+--------+
          |  MPLS Label Stack entry (cont.)   |
            ]]>
         </artwork>
      </figure>

   </section>

   <section anchor="clarify" title="Clarification on Handling of the Entropy Label Indicator">

      <t>Section 3.1 of [RFC7274] contains two paragraphs that describe the
         handling of the Entropy Label Indicator (label 7).  These paragraphs have introduced
         some confusion about whether the Entropy Label Indicator can be present when
         immediately preceded by the Extension Label.  This document updates
         [RFC7274] by replacing those paragraphs as follows.</t>

      <t>OLD

         <list style="none">

            <t>Values 0-15 of the "Extended Special-Purpose MPLS Label Values"
               registry are set aside as reserved.  Furthermore, values 0-6 and 8-15
               MUST NOT appear in the data plane following an XL; an LSR processing
               a packet with an XL at the top of the label stack followed by a label
               with value 0-6 or 8-15 MUST drop the packet.</t>

            <t>Label 7 (when received) retains its meaning as Entropy Label
               Indicator (ELI) whether a regular special-purpose label or an ESPL;
               this is because of backwards compatibility with existing implemented
               and deployed code and hardware that looks for the ELI without
               verifying if the previous label is XL or not.  However, when an LSR
               inserts an entropy label, it MUST insert the ELI as a regular
               special-purpose label, not as an ESPL.</t>
         </list></t>

      <t>NEW

         <list style="none">

            <t>Values 0-15 of the "Extended Special-Purpose MPLS Label Values"
               registry are set aside as reserved.  Furthermore, an implementation
               MUST NOT place a label with value 0-15 in the label stack immediately following
               an XL; an LSR processing a packet with an XL at the top of the label
               stack immediately followed by a label with value 0-15 MUST drop the packet.</t>

            <t>When inspecting a label stack to find an Entropy Label Indicator
               (ELI - label 7) a pre-existing implementation may fail to inspect the
               previous label, and so not notice that  it is an XL.  Such systems can
               continue to process the entropy information and forward the packet when
               the previous label is an XL without causing harm.  However, the packet
               will be dropped when the XL reaches the top of the stack at another LSR.</t>

         </list></t>

      <t>END</t>

   </section>

   <section anchor="security" title="Security Considerations">

      <t>The document describes the terminology to be used when describing and
         specifying the use of SPLs. It does not effect the forwarding in the MPLS
         data plane, nor does it have any effect on how LSPs are established by an
         MPLS control plane or by a centralized controller.</t>

      <t>This document does not aim to describe existing implementations of SPLs or
         potential vulnerabilities of SPLs.</t>

   </section>

   <section anchor="IANA" title="IANA Considerations">

      <t>IANA is requested to change the name of the registry that today is called
         "Special-Purpose MPLS Label Values" is changed to "Base Special-
         Purpose MPLS Label Values". </t>

   </section>

   <section anchor="Acknowledgements" title="Acknowledgements">

      <t>We like to thank the Routing Directorate reviwer Eric Gray
         for a detailed, careful and insightful review, and Tom Petch for
         pointing out several issues of clarity.</t>

   </section>

   <section anchor="Contributors" title="Contributors">

      <t>The following people contributed text to this document:</t>
         <figure>
           <artwork align="left">
              <![CDATA[
     Stewart Bryant
     Futurewei Technologies Inc.

     Email: stewart.bryant@gmail.com
              ]]>
           </artwork>
         </figure>

   </section>

  </middle>

  <back>

    <references title="Normative References">
      <?rfc include="reference.RFC.2119"?>
      <?rfc include="reference.RFC.3032"?>
      <?rfc include="reference.RFC.7274"?>
      <?rfc include="reference.RFC.8174"?>

      <reference anchor="SPL-NAME-SPACE" target="https://www.iana.org/assignments/mpls-label-values/mpls-label-values.xhtml/">
         <front>
           <title>Special-Purpose Multiprotocol Label Switching (MPLS) Label Values</title>
           <author/>
           <date/>
         </front>
      </reference>

      <reference anchor="bSPL" target="https://www.iana.org/assignments/mpls-label-values/mpls-label-values.xhtml#special-purpose/">
         <front>
            <title>Special-Purpose MPLS Label Values</title>
            <author/>
            <date/>
         </front>
      </reference>

      <reference anchor="eSPL" target="https://www.iana.org/assignments/mpls-label-values/mpls-label-values.xhtml#extended/">
         <front>
            <title>Extended Special-Purpose MPLS Label Values</title>
            <author/>
            <date/>
         </front>
      </reference>
    </references>

    <references title="Informative References">
      <?rfc include="reference.RFC.8595"?>
    </references>

  </back>
</rfc>
