<?xml version="1.0" encoding="US-ASCII"?>
<!-- This template is for creating an Internet Draft using xml2rfc,
     which is available here: http://xml.resource.org. -->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>

<!-- used by XSLT processors -->
<!-- For a complete list and description of processing instructions (PIs), 
     please see http://xml.resource.org/authoring/README.html. -->
<!-- Below are generally applicable Processing Instructions (PIs) that most I-Ds might want to use.
     (Here they are set differently than their defaults in xml2rfc v1.32) -->
<?rfc strict="yes" ?>
<!-- give errors regarding ID-nits and DTD validation -->
<!-- control the table of contents (ToC) -->
<?rfc toc="yes"?>
<!-- generate a ToC -->
<?rfc tocdepth="4"?>
<!-- the number of levels of subsections in ToC. default: 3 -->
<!-- control references -->
<?rfc symrefs="yes"?>
<!-- use symbolic references tags, i.e, [RFC2119] instead of [1] -->
<?rfc sortrefs="yes" ?>
<!-- sort the reference entries alphabetically -->
<!-- control vertical white space 
     (using these PIs as follows is recommended by the RFC Editor) -->
<?rfc compact="yes" ?>
<!-- do not start each main section on a new page -->
<?rfc subcompact="no" ?>
<!-- keep one blank line between list items -->
<!-- end of list of popular I-D processing instructions -->


<rfc category="std" docName="draft-akiya-mpls-lsp-ping-lag-multipath-00" ipr="trust200902" updates="4379,6424">
  <!-- category values: std, bcp, info, exp, and historic
     ipr values: full3667, noModification3667, noDerivatives3667
     you can add the attributes updates="NNNN" and obsoletes="NNNN" 
     they will automatically be output with "(if approved)" -->

  <!-- ***** FRONT MATTER ***** -->

  <front>
    <title abbrev="LSP Ping LAG Multipath">
	Label Switched Path (LSP) Ping/Trace Multipath Support for Link&nbsp;Aggregation Group (LAG) Interfaces
    </title>

    <!-- add 'role="editor"' below for the editors if appropriate -->
    <!-- Another author who claims to be an editor -->

    <author fullname="Nobo Akiya" initials="N."
            surname="Akiya">
      <organization>Cisco Systems</organization>
      <address>
        <email>nobo@cisco.com</email>
      </address>
    </author>

    <author fullname="George Swallow" initials="G."
            surname="Swallow">
      <organization>Cisco Systems</organization>
      <address>
        <email>swallow@cisco.com</email>
      </address>
    </author>

    <author fullname="Stephane Litkowski" initials="S."
            surname="Litkowski">
      <organization>Orange</organization>
      <address>
        <email>stephane.litkowski@orange.com</email>
      </address>
    </author>

    <author fullname="Bruno Decraene" initials="B."
            surname="Decraene">
      <organization>Orange</organization>
      <address>
        <email>bruno.decraene@orange.com</email>
      </address>
    </author>

    <author fullname="John E. Drake" initials="J."
            surname="Drake">
      <organization>Juniper Networks</organization>
      <address>
        <email>jdrake@juniper.net</email>
      </address>
    </author>

    <date year="2014" />

    <area>MPLS Working Group</area>
    <workgroup>Internet Engineering Task Force</workgroup>

    <!-- WG name at the upperleft corner of the doc,
    IETF is fine for individual submissions.  
	If this element is not present, the default is "Network Working Group",
    which is used by the RFC Editor as a nod to the history of the IETF. -->

    <keyword>MPLS</keyword>
    <keyword>LSP Ping</keyword>
    <keyword>LAG</keyword>

    <!-- Keywords will be incorporated into HTML output
         files in a meta tag but they have no effect on text or nroff
         output. If you submit your draft to the RFC Editor, the
         keywords will be used for the search engine. -->

    <abstract>

      <t>This document defines an extension to the Multiprotocol Label Switching (MPLS) Label Switched Path (LSP) Ping and Traceroute to describe Multipath Information for Link Aggregation (LAG) member links separately, thus allowing MPLS LSP Ping and Traceroute to discover and exercise specific paths of layer 2 Equal-Cost Multipath (ECMP) over LAG interfaces.</t>
      
      <t>This document updates RFC4379 and RFC6424.</t>

    </abstract>
	
	<note title="Requirements Language">
	<t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in <xref target="RFC2119">RFC 2119</xref>.</t>
	</note>
  </front>

  <middle>

    <section title="Introduction" anchor="INTRO">

    <section title="Terminology">

<t>The following acronyms/terminologies are used in this document:

<list style="symbols">
<t>MPLS - Multiprotocol Label Switching.</t>
<t>LSP - Label Switched Path.</t>
<t>LSR - Label Switching Router.</t>
<t>ECMP - Equal-Cost Multipath.</t>
<t>LAG - Link Aggregation.</t>
<t>Initiating LSR - LSR which sends MPLS echo request.</t>
<t>Responder LSR - LSR which receives MPLS echo request and sends MPLS echo reply.</t>

</list>
</t>

    </section>

    <section title="Background">

      <t>The Multiprotocol Label Switching (MPLS) Label Switched Path (LSP) Ping and Traceroute <xref target="RFC4379" /> are powerful tools designed to diagnose all available layer 3 paths of LSPs, i.e. provides diagnostic coverage of layer 3 Equal-Cost Multipath (ECMP). In many MPLS networks, Link Aggregation (LAG) as defined in <xref target="IEEE802.1AX" />, which provide layer 2 ECMP, are often used for various reasons. MPLS LSP Ping and Traceroute tools were not designed to discover and exercise specific paths of layer 2 ECMP. Result raises a limitation for following scenario when LSP X traverses over LAG Y:

      <list style="symbols">
        <t>MPLS switching of LSP X over one or more member links of LAG Y is succeeding.</t>
        <t>MPLS switching of LSP X over one or more member links of LAG Y is failing.</t>
        <t>MPLS echo request for LSP X over LAG Y is load balanced over a member link which is MPLS switching successfully.</t>
      </list>

With above scenario, MPLS LSP Ping and Traceroute will not be able to detect the MPLS switching failure of problematic member link(s) of the LAG. In other words, lack of layer 2 ECMP discovery and exercise capability can produce an outcome where MPLS LSP Ping and Traceroute can be blind to MPLS switching failures over LAG interface that are impacting MPLS traffic. It is, thus, desirable to extend the MPLS LSP Ping and Traceroute to have deterministic diagnostic coverage of LAG interfaces.</t>

    </section>
    </section>

    <section title="Overview">

      <t>This document defines an extension to the MPLS LSP Ping and Traceroute to describe Multipath Information for LAG member links separately, thus allowing MPLS LSP Ping and Traceroute to discover and exercise specific paths of layer 2 ECMP over LAG interfaces. Reader is expected to be familiar with mechanics of the MPLS LSP Ping and Traceroute described in Section 3.3 of <xref target="RFC4379" /> and Downstream Detailed Mapping TLV (DDMAP) described in Section 3.3 of <xref target="RFC6424" />. </t>

      <t>MPLS echo request carries a DDMAP and an optional TLV to indicate that separate load balancing information for each layer 2 nexthop over LAG is desired in MPLS echo reply. Responder LSR places the same optional TLV in the MPLS echo reply to provide acknowledgement back to the initiator. It also adds, for each downstream LAG member, a load balance information (i.e. multipath information and interface index). For example:

	<figure align="left"><preamble></preamble><artwork align="left">
  &lt;----- LDP Network -----&gt;

          +-------+
          |       |
  A-------B=======C-------E
          |               |
          +-------D-------+

  ---- Non-LAG
  ==== LAG comprising of two member links

                 Figure 1: Example LDP Network
	</artwork></figure>

When node A is initiating LSP Traceroute to node E, node B will return to node A load balance information for following entries.
        <list style="numbers">
          <t>Downstream C over Non-LAG (upper path).</t>
          <t>First Downstream C over LAG (middle path).</t>
          <t>Second Downstream C over LAG (middle path).</t>
          <t>Downstream D over Non-LAG (lower path).</t>
        </list>

This document defines:

<list style="symbols">
<t>In <xref target="_DISCOVER" />, a mechanism to discover L2 ECMP multipath information;</t>
<t>In <xref target="_TRAVERSE" />, a mechanism to validate L2 ECMP traversal in some LAG provisioning models;</t>
<t>In <xref target="LAG_DOWN_TLV" />, the LAG Interface Info TLV;</t>
<t>In <xref target="DS_Flags" />, the LAG Description Indicator flag;</t>
<t>In <xref target="_INT_IND_DDMAP" />, the Interface Index Sub-TLV;</t>
<t>In <xref target="_D_ILS" />, the Detailed Interface and Label Stack TLV.</t>
</list>

</t>

</section>

<section title="Mechanism to Discover L2 ECMP Multipath" anchor="_DISCOVER">

<t>The MPLS echo request carries a DDMAP and the LAG Interface Info TLV (described in <xref target="LAG_DOWN_TLV" />) to indicate that separate load balancing information for each layer 2 nexthop over LAG is desired in MPLS echo reply. Responder LSR:

<list style="symbols">
<t>MUST add the LAG Interface Info TLV in the MPLS echo reply to provide acknowledgement back to the initiator. Downstream LAG Info Accommodation flag MUST be set in LAG Interface Info Flags.</t>
<t>For each downstream that is a LAG interface:
  <list style="symbols">
  <t>MUST add DDMAP in the MPLS echo reply.</t>
  <t>MUST set LAG Description Indicator flag in DS Flags (described in <xref target="DS_Flags" />) of DDMAP.</t>
  <t>All fields and Sub-TLVs, except for Multipath Data Sub-TLV and Interface Index Sub-TLV, are set/added to DDMAP to describe this LAG interface, as per <xref target="RFC6424" />.</t>
  <t>For each LAG member link of this LAG interface:
    <list style="symbols">
    <t>MUST add Interface Index Sub-TLV (described in <xref target="_INT_IND_DDMAP" />) with LAG Member Link Indicator flag set in Interface Index Flags, describing this LAG member link.</t>
    <t>MUST add Multipath Data Sub-TLV for this LAG member link, if received DDMAP requested multipath information.</t>
    </list>
  </t>
  </list>
</t>
</list>

Each LAG member link is described with Interface Index Sub-TLV and conditionally with Multipath Data Sub-TLV (if multipath information is requested). If both Sub-TLVs are placed in the DDMAP to describe a LAG member link, Interface Index Sub-TLV MUST be added first with Multipath Data Sub-TLV immediately following.</t>

<t>For example, a responder LSR possessing a LAG interface with two member links would send the following DDMAP for this LAG interface:

<figure align="left"><preamble/><artwork align="left">
   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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |   DDMAP fields describing LAG interface with DS Flags G set   |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |         Interface Index Sub-TLV of LAG member link #1         |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |             Multipath Data Sub-TLV LAG member link #1         |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |         Interface Index Sub-TLV of LAG member link #2         |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |             Multipath Data Sub-TLV LAG member link #2         |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                       Label Stack Sub-TLV                     |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                 Figure 2: LAG Interface DDMAP Example
</artwork></figure>

These procedures allow initiating LSR to:

<list style="symbols">
<t>Identify whether responder LSR understands this mechanism.</t>
<t>Identify whether each DDMAP describes a LAG interface or a non-LAG interface.</t>
<t>Obtain multipath information which is expected to traverse the specific LAG member link described by interface index.</t>
</list>

</t>
</section>

<section title="Mechanism to Validate L2 ECMP Traversal" anchor="_TRAVERSE">

<t>The MPLS echo request is sent with a DDMAP with DS Flags I set and the optional LAG Interface Info TLV to indicate the request for Detailed Interface and Label Stack TLV with additional LAG member link information (i.e. interface index) in the MPLS echo reply. Responder LSR MUST:

<list style="symbols">
<t>Add LAG Interface Info TLV in the MPLS echo reply to provide acknowledgement back to the initiator. Upstream LAG Info Accommodation flag MUST be set in LAG Interface Info Flags.</t>
<t>Add the Detailed Interface and Label Stack TLV (described in <xref target="_D_ILS" />) in the MPLS echo reply.</t>
<t>Add the Incoming Interface Index Sub-TLV (described in <xref target="_IN_INT_IND" />) for LAG interfaces. The LAG Member Link Indicator flag MUST be set in Interface Index Flags, and the incoming Interface Index set to LAG member link which received the MPLS echo request.</t>
</list>

Described procedures allow initiating LSR to know:

<list style="symbols">
<t>The expected load balance information of every LAG member link, at LSR with TTL=n.</t>
<t>The actual incoming interface at LSR with TTL=n+1, including the interface index of LAG member link if incoming interface is a LAG interface.</t>
</list>

Note that defined procedures will provide a deterministic result for LAG interfaces that are back-to-back connected between routers (i.e. no L2 switch in between). If there is a L2 switch between LSR at TTL=n and LSR at TTL=n+1, there is no guarantee that traversal of every LAG member link at TTL=n will result in reaching different interface index at TTL=n+1. Issues resulting from LAG with L2 switch in between are further described in <xref target="_LAG_L2_ISSUES" />. LAG provisioning models in operated network should be considered when analyzing the output of LSP Traceroute exercising L2 ECMPs.</t>

</section>

    <section title="LAG Interface Info TLV" anchor="LAG_DOWN_TLV">

      <t>The LAG Interface Info object is a new TLV that MAY be included in the MPLS echo request message. An MPLS echo request MUST NOT include more than one LAG Interface Info object. Presence of LAG Interface Info object is a request that responder LSR describes upstream and downstream LAG interfaces according to procedures defined in this document. If the responder LSR is able to accommodate this request, then the LAG Interface Info object MUST be included in the MPLS echo reply message.</t>

<t>LAG Interface Info TLV Type is TBD1. Length is 4. The Value field of LAG Interface TLV has following format:

<figure align="left"><preamble/><artwork align="left">
   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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |   LAG Interface Info Flags    |         Must Be Zero          |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                 Figure 3: LAG Interface Info TLV
</artwork></figure>

LAG Interface Info Flags

<list>
<t>LAG Interface Info Flags field is a bit vector with following format.

<figure align="left"><preamble/><artwork align="left">
    0                   1
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Must Be Zero (Reserved) |U|D|
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
</artwork></figure>

Two flags are defined: U and D. The remaining flags MUST be set to zero when sending and ignored on receipt. Both U and D flags MUST be cleared in MPLS echo request message when sending, and ignored on receipt. Either or both U and D flags MAY be set in MPLS echo reply message.

<figure align="left"><preamble/><artwork align="left">
   Flag  Name and Meaning
   ----  ----------------

      U  Upstream LAG Info Accommodation

         When this flag is set, LSR is capable of placing Incoming
         Interface Index Sub-TLV, describing LAG member link, in
         the Detailed Interface and Label Stack TLV.

      D  Downstream LAG Info Accommodation

         When this flag is set, LSR is capable of placing Interface
         Index Sub-TLV and Multipath Data Sub-TLV, describing LAG
         member link, in the Downstream Detailed Mapping TLV.
</artwork></figure>

</t>
</list>
</t>

    </section>

    <section title="DDMAP TLV DS Flags: G" anchor="DS_Flags">

      <t>One flag, G, is added in DS Flags field of the DDMAP TLV. In the MPLS echo request message, G flag MUST be cleared when sending, and ignored on receipt. In the MPLS echo reply message, G flag MUST be set if the DDMAP TLV describes a LAG interface. It MUST be cleared otherwise.</t>

<t>
DS Flags

<list>
<t>DS Flags G is added, in Bit Number 3, in DS Flags bit vector.

<figure align="left"><preamble/><artwork align="left">
    0 1 2 3 4 5 6 7
   +-+-+-+-+-+-+-+-+
   | MBZ |G|MBZ|I|N|
   +-+-+-+-+-+-+-+-+
</artwork></figure>

<figure align="left"><preamble/><artwork align="left">
   Flag  Name and Meaning
   ----  ----------------

      G  LAG Description Indicator

         When this flag is set, DDMAP describes a LAG interface.
</artwork></figure>

</t>

</list>
</t>

    </section>

<section title="Interface Index Sub-TLV" anchor="_INT_IND_DDMAP">

<t>The Interface Index object is a Sub-TLV that MAY be included in a DDMAP TLV. Zero or more Interface Index object MAY appear in a DDMAP TLV. The Interface Index Sub-TLV describes the index assigned by the upstream LSR to the interface.</t>

<t>Interface Index Sub-TLV Type is TBD2. Length is 8, and the Value field has following format:

<figure align="left"><preamble/><artwork align="left">
   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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |    Interface Index Flags      |         Must Be Zero          |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                        Interface Index                        |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Figure 4: Interface Index Sub-TLV
</artwork></figure>

Interface Index Flags

<list>
<t>Interface Index Flags field is a bit vector with following format.

<figure align="left"><preamble/><artwork align="left">
    0                   1
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Must Be Zero (Reserved)   |M|
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
</artwork></figure>

One flag is defined: M. The remaining flags MUST be set to zero when sending and ignored on receipt.

<figure align="left"><preamble/><artwork align="left">
   Flag  Name and Meaning
   ----  ----------------

      M  LAG Member Link Indicator

         When this flag is set, interface index described in
         this sub-TLV is member of a LAG.
</artwork></figure>

</t>
</list>
</t>

<t>Interface Index
<list>
<t>Index assigned by the LSR to this interface.</t>
</list>
</t>

</section>

<section title="Detailed Interface and Label Stack TLV" anchor="_D_ILS">

<t>The Detailed Interface and Label Stack object is a TLV that MAY be included in a MPLS echo reply message to report the interface on which the MPLS echo request message was received and the label stack that was on the packet when it was received. A responder LSR MUST NOT insert more than one instance of this TLV. This TLV allows the initiating LSR to obtain the exact interface and label stack information as it appears at the responder LSR.</t>

<t>Detailed Interface and Label Stack TLV Type is TBD3. Length is K + Sub-TLV Length, and the Value field has following format:

<figure align="left"><preamble/><artwork align="left">
   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 
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | Address Type  |             Must Be Zero                      |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                   IP Address (4 or 16 octets)                 |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                   Interface (4 or 16 octets)                  |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |          Must Be Zero         |        Sub-TLV Length         |   
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  .                                                               .   
  .                      List of Sub-TLVs                         .   
  .                                                               .   
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Figure 5: Detailed Interface and Label Stack TLV
</artwork></figure>

The Detailed Interface and Label Stack TLV format is derived from the Interface and Label Stack TLV format (from <xref target="RFC4379" />). Two changes are introduced. First is that label stack, which is of variable length, is converted into a sub-TLV. Second is that a new sub-TLV is added to describe an interface index. The fields of Detailed Interface and Label Stack TLV have the same use and meaning as in <xref target="RFC4379" />. A summary of the fields taken from the Interface and Label Stack TLV is as below:

<list>

<t>Address Type
  <list>
  <t>The Address Type indicates if the interface is numbered or unnumbered. It also determines the length of the IP Address and Interface fields. The resulting total for the initial part of the TLV is listed in the table below as "K Octets". The Address Type is set to one of the following values: 

<figure align="left"><preamble/><artwork align="left">
         Type #        Address Type           K Octets
         ------        ------------           --------
              1        IPv4 Numbered                16
              2        IPv4 Unnumbered              16
              3        IPv6 Numbered                40
              4        IPv6 Unnumbered              28
</artwork></figure>
  </t>
  </list>
</t>

<t>IP Address and Interface
  <list>
  <t>IPv4 addresses and interface indices are encoded in 4 octets; IPv6 addresses are encoded in 16 octets.</t>

  <t>If the interface upon which the echo request message was received is numbered, then the Address Type MUST be set to IPv4 Numbered or IPv6 Numbered, the IP Address MUST be set to either the LSR's Router ID or the interface address, and the Interface MUST be set to the interface address.</t>

  <t>If the interface is unnumbered, the Address Type MUST be either IPv4 Unnumbered or IPv6 Unnumbered, the IP Address MUST be the LSR's Router ID, and the Interface MUST be set to the index assigned to the interface.</t>

  <t>Note: Usage of IPv6 Unnumbered has the same issue as <xref target="RFC4379" />, described in Section 3.4.2 of <xref target="I-D.ietf-mpls-ipv6-only-gap" />. A solution should be considered an applied to both <xref target="RFC4379" /> and this document.</t>

  </list>
</t>

<t>Sub-TLV Length
  <list>
  <t>Total length in octets of the sub-TLVs associated with this TLV.</t>
  </list>
</t>

</list>
</t>

<section title="Sub-TLVs">

<t>This section defines the sub-TLVs that MAY be included as part of the Detailed Interface and Label Stack TLV.

<figure align="left"><preamble/><artwork align="left">
        Sub-Type    Value Field
        ---------   ------------
          1         Incoming Label stack
          2         Incoming Interface Index
</artwork></figure>
</t>

<section title="Incoming Label Stack Sub-TLV">

<t>The Incoming Label Stack sub-TLV contains the label stack as received by the LSR.  If any TTL values have been changed by this LSR, they SHOULD be restored.</t>

<t>Incoming Label Stack Sub-TLV Type is 1. Length is variable, and the Value field has following format:

<figure align="left"><preamble/><artwork align="left">
   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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                 Label                 | TC  |S|      TTL      |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  .                                                               .
  .                                                               .
  .                                                               .
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                 Label                 | TC  |S|      TTL      |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Figure 6: Incoming Label Stack Sub-TLV
</artwork></figure>

</t>

</section>

<section title="Incoming Interface Index Sub-TLV" anchor="_IN_INT_IND">

<t>The Incoming Interface Index object is a Sub-TLV that MAY be included in a Detailed Interface and Label Stack TLV. The Incoming Interface Index Sub-TLV describes the index assigned by this LSR to the interface which received the MPLS echo request message.</t>

<t>Incoming Interface Index Sub-TLV Type is 2. Length is 8, and the Value field has following format:

<figure align="left"><preamble/><artwork align="left">
   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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |    Interface Index Flags      |         Must Be Zero          |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                        Interface Index                        |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                   Figure 7: Incoming Interface Index Sub-TLV
</artwork></figure>

Interface Index Flags

<list>
<t>Interface Index Flags field is a bit vector with following format.

<figure align="left"><preamble/><artwork align="left">
    0                   1
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Must Be Zero (Reserved)   |M|
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
</artwork></figure>

One flag is defined: M. The remaining flags MUST be set to zero when sent and ignored on receipt.

<figure align="left"><preamble/><artwork align="left">
   Flag  Name and Meaning
   ----  ----------------

      M  LAG Member Link Indicator

         When this flag is set, the interface index described in
         this sub-TLV is a member of a LAG.
</artwork></figure>

</t>
</list>
</t>

<t>Interface Index
<list>
<t>Index assigned by the LSR to this interface.</t>
</list>
</t>

</section>

</section>

</section>

    <section anchor="Security" title="Security Considerations">

      <t>This document extends LSP Traceroute mechanism to discover and exercise layer 2 ECMP paths. Additional processing are required for initiating LSR and responder LSR, especially to compute and handle increasing number of multipath information. Due to additional processing, it is critical that proper security measures described in <xref target="RFC4379" /> and <xref target="RFC6424" /> are followed.</t>

    </section>

    <section anchor="IANA" title="IANA Considerations">

      <section title="LAG Interface Info TLV">
<t>The IANA is requested to assign new value TBD1 for LAG Interface Info TLV from the &quot;Multiprotocol Label Switching Architecture (MPLS) Label Switched Paths (LSPs) Ping Parameters - TLVs&quot; registry.

<figure align="left"><preamble/><artwork align="left">
   Value   Meaning                                      Reference
   -----   -------                                      ---------
   TBD1    LAG Interface Info TLV                       this document
</artwork></figure>
</t>
      </section>

      <section title="Interface Index Sub-TLV">
<t>The IANA is requested to assign new value TBD2 for Interface Index Sub-TLV from the &quot;Multiprotocol Label Switching Architecture (MPLS) Label Switched Paths (LSPs) Ping Parameters - TLVs&quot; registry, &quot;Sub-TLVs for TLV Types 20&quot; sub-registry.

<figure align="left"><preamble/><artwork align="left">
   Value   Meaning                                      Reference
   -----   -------                                      ---------
   TBD2    Interface Index Sub-TLV                      this document
</artwork></figure>
</t>
      </section>

      <section title="Detailed Interface and Label Stack TLV">
<t>The IANA is requested to assign new value TBD3 for Detailed Interface and Label Stack TLV from the &quot;Multiprotocol Label Switching Architecture (MPLS) Label Switched Paths (LSPs) Ping Parameters - TLVs&quot; registry.

<figure align="left"><preamble/><artwork align="left">
   Value   Meaning                                      Reference
   -----   -------                                      ---------
   TBD3    Detailed Interface and Label Stack TLV       this document
</artwork></figure>
</t>
      </section>

      <section title="New Sub-Registry">

      <section title="DS Flags">

<t><xref target="RFC4379" /> defines the Downstream Mapping TLV, which has the Type 2 assigned from the &quot;Multi-Protocol Label Switching (MPLS) Label Switched Paths (LSPs) Ping Parameters - TLVs&quot; registry.  [RFC6424] defines the Downstream Detailed Mapping TLV, which has the Type 20 assigned from the &quot;Multi-Protocol Label Switching (MPLS) Label Switched Paths (LSPs) Ping Parameters - TLVs&quot; registry. DSMAP has been deprecated by DDMAP, but both TLVs shares a field: &quot;DS Flags&quot;. This document requires allocation of a new value in the &quot;DS Flags&quot; field, which is not maintained by IANA today.  Therefore, this document requests IANA to create new registries within <xref target="IANA-MPLS-LSP-PING" /> protocol to maintain &quot;DS Flags&quot; field.  Initial values for this registry, &quot;DS Flags&quot;, are described below.

<figure align="left"><preamble></preamble><artwork align="left">
 Bit number Name                                        Reference
 ---------- ----------------------------------------    ---------
       7    N: Treat as a Non-IP Packet                 RFC4379
       6    I: Interface and Label Stack Object Request RFC4379
     5-4    Unassigned
       3    G: LAG Description Indicator                this document
     2-0    Unassigned
</artwork></figure>

Assignments of DS Flags are via Standards  Action <xref target="RFC5226" /> or IESG Approval <xref target="RFC5226" />.</t>

<t>Note that &quot;DS Flags&quot; is a field included in two TLVs defined in &quot;Multi-Protocol Label Switching (MPLS) Label Switched Paths (LSPs) Ping Parameters - TLVs&quot; registry: Downstream Mapping TLV (value 2) and Downstream Detailed Mapping TLV (value 20).  Modification to &quot;DS Flags&quot; registry will affect both TLVs.</t>

<t>Also note that <xref target="I-D.akiya-mpls-entropy-lsp-ping" /> makes request to create a new retry for &quot;DS Flags&quot;, with new values being added for Bit Number 4 and 5. If <xref target="I-D.akiya-mpls-entropy-lsp-ping" /> becomes RFC and &quot;DS Flags&quot; IANA registry is created as result, then this document simply requests Bit Number 3 (G: LAG Description Indicator) to be added to the registry.</t>

      </section>

      <section title="Sub-TLVs for TLV Type TBD3">
<t>The IANA is requested to make a new &quot;Sub-TLVs for TLV Type TBD3&quot; sub-registry under &quot;Multiprotocol Label Switching Architecture (MPLS) Label Switched Paths (LSPs) Ping Parameters - TLVs&quot; registry.

Initial values for this sub-registry, &quot;Sub-TLVs for TLV Types TBD3&quot;, are described below.

<figure align="left"><preamble></preamble><artwork align="left">
 Sub-Type   Name                                        Reference
 ---------  ----------------------------------------    ---------
   1        Incoming Label Stack                        this document
   2        Incoming Interface Index                    this document
   4-65535  Unassigned
</artwork></figure>

Assignments of Sub-Types are via Standards  Action <xref target="RFC5226" /> or IESG Approval <xref target="RFC5226" />.</t>
      </section>

      </section>

    </section>

    <section title="Acknowledgements">

      <t>TBD</t>

    </section>

  </middle>

  <!--  *****BACK MATTER ***** -->

  <back>
    <!-- References split into informative and normative -->

    <references title="Normative References">
	  <?rfc include="reference.RFC.2119"?>
         <?rfc include="reference.RFC.4379"?>
	  <?rfc include="reference.RFC.6424"?>
    </references>
    
    <references title="Informative References">
	  <?rfc include="reference.RFC.5226"?>
         <?rfc include="reference.I-D.akiya-mpls-entropy-lsp-ping"?>
         <?rfc include="reference.I-D.ietf-mpls-ipv6-only-gap"?>

<reference anchor="IANA-MPLS-LSP-PING" target="http://www.iana.org/assignments/mpls-lsp-ping-parameters/mpls-lsp-ping-parameters.xhtml">
  <front>
    <title>Multi-Protocol Label Switching (MPLS) Label Switched Paths (LSPs) Ping Parameters</title>
    <author><organization>IANA</organization></author>
    <date/>
  </front>
</reference>

      <reference anchor="IEEE802.1AX">
        <front>
          <title>IEEE Standard for Local and metropolitan area
		  networks - Link Aggregation
          </title>
		  <author> <organization>IEEE Std. 802.1AX</organization> </author>
          <date month="November" year="2008" />
        </front>
      </reference>

    </references>

<section title="LAG with L2 Switch Issues" anchor="_LAG_L2_ISSUES">

<t>Several flavors of &quot;LAG with L2 switch&quot; provisioning models are described in this section, with MPLS data plane ECMP traversal validation issues with each.</t>

<section title="Equal Numbers of LAG Members">

<t>
<figure align="left"><preamble></preamble><artwork align="left">
R1 ==== S1 ==== R2
</artwork></figure>

The issue with this LAG provisioning model is that packets traversing a LAG member from R1 to S1 can get load balanced by S1 towards R2. Therefore, MPLS echo request messages traversing specific LAG member from R1 to S1 can actually reach R2 via any LAG members, and sender of MPLS echo request messages have no knowledge of this nor no way to control this traversal. In the worst case, MPLS echo request messages with specific entropies to exercise every LAG members from R1 to S1 can all reach R2 via same LAG member. Thus it is impossible for MPLS echo request sender to verify that packets intended to traverse specific LAG member from R1 to S1 did actually traverse that LAG member, and to deterministically exercise &quot;receive&quot; processing of every LAG member on R2.</t>

</section>

<section title="Deviating Numbers of LAG Members">

<t>
<figure align="left"><preamble></preamble><artwork align="left">
           ____
R1 ==== S1 ==== R2
</artwork></figure>

There are deviating number of LAG members on the two sides of the L2 switch. The issue with this LAG provisioning model is the same as previous model, sender of MPLS echo request messages have no knowledge of L2 load balance algorithm nor entropy values to control the traversal.</t>

</section>

<section title="LAG Only on Right">

<t>

<figure align="left"><preamble></preamble><artwork align="left">
R1 ---- S1 ==== R2
</artwork></figure>

The issue with this LAG provisioning model is that there is no way for MPLS echo request sender to deterministically exercise both LAG members from S1 to R2. And without such, &quot;receive&quot; processing of R2 on each LAG member cannot be verified.</t>

</section>

<section title="LAG Only on Left">

<t>

<figure align="left"><preamble></preamble><artwork align="left">
R1 ==== S1 ---- R2
</artwork></figure>

MPLS echo request sender has knowledge of how to traverse both LAG members from R1 to S1. However, both types of packets will terminate on the non-LAG interface at R2. It becomes impossible for MPLS echo request sender to know that MPLS echo request messages intended to traverse a specific LAG member from R1 to S1 did indeed traverse that LAG member.</t>

</section>

</section>

    <!-- Change Log
v00-a 2014-02-03 Nobo: Initial version
    -->
  </back>
</rfc>
