<?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" [
<!-- One method to get references from the online citation libraries.
    There has to be one entity for each item to be referenced. 
    An alternate method (rfc include) is described in the references. -->
<!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC2629 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2629.xml">
<!ENTITY RFC3552 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3552.xml">
<!ENTITY RFC5226 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5226.xml">
<!ENTITY RFC4379 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4379.xml">
<!ENTITY RFC1112 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.1112.xml">
<!ENTITY RFC1812 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.1812.xml">
]>
<?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-shao-mpls-ping-ttl-00" ipr="trust200902"
     updates="RFC4379">
  <!-- category values: std, bcp, info, exp, and historic
    ipr values: trust200902, noModificationTrust200902, noDerivativesTrust200902,
       or pre5378Trust200902
    you can add the attributes updates="NNNN" and obsoletes="NNNN" 
    they will automatically be output with "(if approved)" -->

  <!-- ***** FRONT MATTER ***** -->

  <front>
    <!-- The abbreviated title is used in the page header - it is only necessary if the 
        full title is longer than 39 characters -->

    <title abbrev="IP TTL in MPLS ping traceroute">Relaxing IP TTL setting in
    MPLS Ping and traceroute</title>

    <!-- add 'role="editor"' below for the editors if appropriate -->

    <!-- Another author who claims to be an editor -->

    <author fullname="Mingchao Shao" initials="M.S." role="editor"
            surname="Shao">
      <organization>Ericsson Inc.</organization>

      <address>
        <postal>
          <street>300 Holger Way</street>

          <!-- Reorder these if your country does things differently -->

          <city>San Jose</city>

          <region>CA</region>

          <code>95134</code>

          <country>US</country>
        </postal>

        <phone/>

        <email>michael.shao@ericsson.com</email>

        <!-- uri and facsimile elements may also be added -->
      </address>
    </author>

    <date year="2016"/>

    <!-- If the month and year are both specified and are the current ones, xml2rfc will fill 
        in the current day for you. If only the current year is specified, xml2rfc will fill 
	 in the current day and month for you. If the year is not the current one, it is 
	 necessary to specify at least a month (xml2rfc assumes day="1" if not specified for the 
	 purpose of calculating the expiry date).  With drafts it is normally sufficient to 
	 specify just the year. -->

    <!-- Meta-data Declarations -->

    <area>General</area>

    <workgroup>MPLS Working Group</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>Ping</keyword>

    <keyword>Traceroute</keyword>

    <keyword>TTL</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>Packets with IP TTL 1 might be filtered by TTL-filtering access
      control lists deployed to mitigate TTL expiry attacks <xref
      target="CISCO"/>. Thus MPLS ping and traceroute will be inoperable in
      these networks if IP TTL is set to 1 according to <xref
      target="RFC4379">RFC&nbsp;4379</xref> chapter 4.3.</t>

      <t>This document discuss and updates IP TTL setting in MPLS Ping and
      traceroute.</t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction">
      <t><xref target="RFC4379">RFC&nbsp;4379</xref> suggests to set IP TTL as
      1 in MPLS echo request packet for MPLS ping and traceroute. However
      packets with IP TTL 1 may be dropped by TTL filtering access control
      list deployed to mitigate TTL expiry attacks, with the assumption that
      legitimate packets unlikely have low TTL values. Then MPLS ping and
      traceroute will be inoperable in these networks.</t>

      <t><xref target="RFC4379">RFC&nbsp;4379</xref> suggests " The IP TTL is
      set to 1.", and requires that "The Router Alert option MUST be set in
      the IP header", and "sending an MPLS echo request to the control plane
      is triggered by one of the following packet processing exceptions:
      Router Alert option, IP TTL expiration, MPLS TTL expiration, MPLS Router
      Alert label, or the destination address in the 127/8 address range.".
      Setting IP TTL as 1 isn't necessary for sending an MPLS echo request to
      the control plane because it's mandatory to include Router Alert option
      in the IP header. And it makes MPLS echo request susceptible to TTL
      filtering thus render it inoperable.</t>

      <section 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>
      </section>
    </section>

    <section title="How MPLS echo request gets received by control plane">
      <t>For MPLS ping, the MPLS echo request will eventually be fowarded to
      the egress node if the fowarding path is normal. And sending the MPLS
      echo request to control plane at the egress node will be triggered by
      the Router Alert option in the IP header. And this is regardless whether
      IP TTL is 1 or not.</t>

      <t>For MPLS traceroute, the MPLS echo request will arrive at the transit
      or egress node depending on the MPLS TTL if the forwarding path is
      working correctly. The transit or egress nodes will send the MPLS echo
      request to their control plane when MPLS TTL expires. This works
      regardless whether IP TTL is 1 or not.</t>

      <t>If the fowarding path isn't normal, the MPLS echo request may be
      received by routers or hosts outside of the normal forarding path. But
      since the destination address is in 127/8 address range, the packet
      won't be forwarded according to <xref
      target="RFC1112">RFC&nbsp;1112</xref> and <xref
      target="RFC1812">RFC&nbsp;1812</xref>, regardless whether IP TTL is 1 or
      not.</t>

      <t>In summary, MPLS echo request packet will get either received or
      discarded properly regardless IP TTL settings, as long as it has a valid
      value.</t>
    </section>

    <section title="Proposed changes">
      <t>It's proposed that IP TTL MAY be set to non-zero values other than 1.
      For example, it could be set to 255 by default. Routers SHOULD NOT
      expect IP TTL to be a specific value on receving MPLS echo request
      packet. And routers SHOULD process MPLS echo request packet according to
      <xref target="RFC4379">RFC&nbsp;4379</xref> as long as IP TTL is not
      zero.</t>

      <section title="Sending MPLS echo request">
        <t>While sending MPLS echo request, IP TTL MAY be set to any non-zero
        value. It's RECOMMENDED to set IP TTL to a larger value (e.g. 255) to
        avoid the MPLS echo request being filtered by TTL-filtering access
        control lists deployed to mitigate TTL expiry attacks.</t>
      </section>

      <section title="Receiving MPLS echo request">
        <t>On receiving MPLS echo request, fowarding plane SHOULD NOT expect a
        specific value of IP TTL as long as it's not zero. Routers MAY choose
        to discard MPLS echo request packet with IP TTL 0 according to their
        general IP TTL processing rules.</t>
      </section>
    </section>

    <section anchor="Acknowledgements" title="Acknowledgements">
      <t/>
    </section>

    <!-- Possibly a 'Contributors' section ... -->

    <section anchor="IANA" title="IANA Considerations">
      <t>This memo includes no request to IANA.</t>
    </section>

    <section anchor="Security" title="Security Considerations">
      <t>Setting IP TTL to non-zero values other than 1 in MPLS echo request
      doesn't introduce new security concerns. The MPLS echo request will be
      received or discarded properly for both normal and abnormal forwarding
      paths. Setting IP TTL to non-zero values other than 1 allows MPLS ping
      and traceroute to function properly even if there are TTL-filtering
      rules deployed to mitigate TTL expiry attacks.</t>
    </section>
  </middle>

  <!--  *****BACK MATTER ***** -->

  <back>
    <!-- References split into informative and normative -->

    <!-- There are 2 ways to insert reference entries from the citation libraries:
    1. define an ENTITY at the top, and use "ampersand character"RFC2629; here (as shown)
    2. simply use a PI "less than character"?rfc include="reference.RFC.2119.xml"?> here
       (for I-Ds: include="reference.I-D.narten-iana-considerations-rfc2434bis.xml")

    Both are cited textually in the same manner: by using xref elements.
    If you use the PI option, xml2rfc will, by default, try to find included files in the same
    directory as the including file. You can also define the XML_LIBRARY environment variable
    with a value containing a set of directories to search.  These can be either in the local
    filing system or remote ones accessed by http (http://domain/dir/... ).-->

    <references title="Normative References">
      <!--?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"?-->

      &RFC2119;

      &RFC4379;

      &RFC1112;

      &RFC1812;
    </references>

    <references title="Informative References">
      <!-- Here we use entities that we defined at the beginning. -->

      <!-- A reference written by by an organization not a person. -->

      <reference anchor="CISCO"
                 target="http://www.cisco.com/c/en/us/about/security-center/ttl-expiry-attack.html">
        <front>
          <title>TTL Expiry Attack Identification and Mitigation</title>

          <author>
            <organization>Cisco Systems, Inc.</organization>
          </author>

          <date year="2016"/>
        </front>
      </reference>
    </references>

    <!-- Change Log

v00 2006-03-15  EBD   Initial version-->
  </back>
</rfc>
