MPLS Working GroupR.Bonica Internet Draft MCIWorldCom Document: draft-ietf-mpls-icmp-02.txt D.Tappan Cisco Systems D.GanR. Bonica Internet-Draft D. Gan Expires: February 3, 2006 Juniper Networks D. Tappan Cisco Systems, Inc. August20002, 2005 ICMP Extensions for MultiProtocol Label Switching draft-ietf-mpls-icmp-03 Status of this MemoThis documentBy submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she isan Internet-Draftaware have been or will be disclosed, andisany of which he or she becomes aware will be disclosed, infull conformanceaccordance withall provisions ofSection106 of[RFC-2026].BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet- Drafts. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The list of current Internet-Drafts can be accessed athttp://www.ietf.org/ietf/1id-abstracts.txthttp://www.ietf.org/ietf/1id-abstracts.txt. The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.1. AbstractThis Internet-Draft will expire on February 3, 2006. Copyright Notice Copyright (C) ThecurrentInternet Society (2005). Abstract This memo proposes extensions to ICMP that permit Label Switching Routers to append MPLS information to ICMP messages. Table of Contents 1. Conventions Used In This Document . . . . . . . . . . . . . . 3 2. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4 3. Application to TRACEROUTE . . . . . . . . . . . . . . . . . . 5 4. Disclaimer . . . . . . . . . . . . . . . . . . . . . . . . . . 6 5. Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 5.1 Common Header . . . . . . . . . . . . . . . . . . . . . . 8 5.2 Object Header . . . . . . . . . . . . . . . . . . . . . . 8 5.3 MPLS Stack Entry Object Class . . . . . . . . . . . . . . 9 5.4 Extended Payload Object Class . . . . . . . . . . . . . . 10 6. Backward Compatibility . . . . . . . . . . . . . . . . . . . . 11 7. Security Considerations . . . . . . . . . . . . . . . . . . . 12 8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 13 9. Normative References . . . . . . . . . . . . . . . . . . . . . 13 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . 13 Intellectual Property and Copyright Statements . . . . . . . . 15 1. Conventionsused in this documentUsed In This Document 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[RFC-2119]. 3.RFC2119 [1]. 2. IntroductionRouters and destination hostsIP routers use the Internet Control Message Protocol (ICMP)[RFC-792][2] to convey control information to source hosts. Network operators use this information to diagnose routing problems.Bonica, Tappan, Hwa Draft-Expires February 2001 1When a router receives an undeliverable IP datagram, it can send an ICMP message to the host that originated the datagram. The ICMP message indicates why the datagram could not be delivered. It also contains the IP header and leading payload octets of the "original datagram". In this document, the term "original datagram" refers to the datagram to which the ICMP message is a response. MPLS Label Switching Routers (LSR) also use ICMP to convey control information to source hosts. Sections 2.3 and 2.4 of[ENCODE]RFC 3032 [3] describe the interaction between MPLS and ICMP. When an LSR receives an undeliverable MPLS encapsulated datagram, it removes the entire MPLS label stack, exposing the previously encapsulated IP datagram. The LSR then submits the IP datagram toa network-forwarding module foran errorprocessing.processing module. Error processing can include ICMP message generation. The ICMP message indicates why the original datagram could not be delivered. It also contains the IP header and leading octets of the original datagram. The ICMP message, however,includescontains no information regarding the MPLS label stack that encapsulated the original datagram when it arrived at the LSR. This omission is significant because the LSR would have routed the original datagram based upon information contained by the MPLS label stack.The currentThis memo proposes extensions to ICMP that permit an LSR to append MPLS label stack information to ICMP messages. ICMP messages regarding MPLS encapsulated datagrams SHOULD include the MPLS label stack, as it arrived at the router that is sending the ICMP message. The ICMP message MUST also include the IP header and leading payload octets of the original datagram.Network operators will use this information3. Application todiagnose routing problems. 4. MotivationTRACEROUTE ICMP extensions defined inthe currentthis memo support enhancements to TRACEROUTE. The enhanced TRACEROUTE, like older implementations, indicates which nodes the original datagram visited en route to itsultimatedestination. It differs from older implementations in that it also indicates the original datagrams MPLS encapsulation status as it arrived at each node. Figure 1 contains sample output from an enhanced TRACEROUTE implementation.Bonica,Tappan,Gan Draft-Expires February 2001 2 >Traceroute 166.45.2.74> traceroute 100.100.6.1 traceroute to166.45.2.74,100.100.6.1 (100.100.6.1), 30 hops max, 40 byte packets 1166.45.5.1 1.28110.1.1.2 (10.1.1.2) 0.661 ms1.1030.618 ms1.0960.579 ms 2166.45.4.1 1.28110.1.12.2 (10.1.12.2) 0.861 ms1.1030.718 ms1.0960.679 msmplsLabel1=2001 mplsExpBits1=0MPLS Label=100048 Exp=0 TTL=1 S=1 3166.45.3.1 1.28110.1.24.2 (10.1.24.2) 0.822 ms1.1030.731 ms1.0960.708 msmplsLabel1=2002 mplsExpBits1=0MPLS Label=100016 Exp=0 TTL=1 S=1 4166.45.6.1 1.281 ms 1.103 ms 1.096 ms mplsLabel1=2003 mplsExpBits1=0 5 166.45.2.1 1.281 ms 1.10310.100.6.1 (10.100.6.1) 0.961 ms1.0968.676 ms6 166.45.2.74 1.281 ms 1.103 ms 1.0960.875 ms Figure1.1: Enhanced TRACEROUTEsample output 5.Sample Output 4. DisclaimerThe currentThis memo does not define the general relationship between ICMP and MPLS. Sections 2.3 and 2.4 of[ENCODE]RFC3032 define this relationship. Specifically, this document defers to[ENCODE]RFC3032 with respect to the following issues: - conditions upon which an LSR emits ICMP messages - handling of ICMP messages bound for hosts that are identified by private addresses The current memo does not define encapsulation specific TTL manipulation procedures. It defers to Section105.4 of[MPLSATM]RFC 3034 [4] and Section5.410 of[MPLSFRAME]RFC 3035 [5] in this matter. When encapsulation specific TTL manipulation procedures defeat the basic TRACEROUTE mechanism, they will also defeat enhanced TRACEROUTE implementations. The current memo does not address extensions to ICMPv6. These should be addressed in a separate draft.6. Formal5. Syntax This section defines a data structure that an LSR can append to selected ICMP messages. The data structure contains the MPLS label stack that encapsulated the original datagram when it arrived at the LSR.TheIn theory, the data structure defined herein can be appended to the following ICMP message types:Bonica,Tappan,Gan Draft-Expires February 2001 3 1)Destination Unreachable2)Time Exceeded3)Parameter Problem4)Source Quench5)Redirect However, in practice, it would only be useful when appended to the Destination Unreachable and Time Exceeded messages. According to RFC-792, bytes 0 through 19 of any ICMP message contain a header whose format is analogous to that of the IP datagram. Bytes 20 through 23 contain an ICMP message type, code and checksum. Bytes 24 through 27 contain message specific data. Also according to RFC-792, the final field contained by each of the ICMP message types listed above begins at byte 28. It reflects the IP header and leading 64 bits of the original datagram.[RFC-1812]RFC 1812 [6] recommends that this final field be extended to include as much of the original datagram as possible. When an LSR appends the data structure defined herein to an ICMP message, the final field of the ICMP message body MUST contain the first 128 octets of the original datagram. At least 20 of these 128 octets represent the IP header of the original datagram. If the original datagram was shorter than 128 octets, the final field MUST be padded with 0's. When an LSR appends the data structure defined herein to an ICMP message, the ICMP "total length" MUST beequaladjusted appropriately to include the datastructure length plus 156. The first octet of the data structure must be displaced 156 octets from the beginning of the ICMP message.structure. The data structure defined in this section consists of a common header followed by object instances. Each object instance consists of an object header plus contents. Currently, two object classes are defined. One object class contains an entire MPLS label stack, formatted exactly as it was when it arrived at the LSR that sends the ICMP message. The other contains some portion of the original datagram that could not be included in the final field of the ICMP message body (i.e., the octet 129 and beyond). Both object classes are optional. In the future, additional object classes may be defined.Bonica,Tappan,Gan Draft-Expires February 2001 4 6.15.1 Common Header 0 1 2 3 +-------------+-------------+-------------+-------------+ | Vers | (Reserved) | Checksum | +-------------+-------------+-------------+-------------+ Figure 2: Common Header The fields in the common header are as follows: Vers: 4 bits ICMP extension version number. This is version 2. Checksum: 16 bits The one's complement of the one's complement sum of the data structure, with the checksum field replaced by zero for the purpose of computing the checksum. An all-zero value means that no checksum was transmitted. If the checksum field contains a value other than described above, the ICMP message does not include the extensions described in this memo. This, however, does not imply that the ICMP message is malformed. It may be in strict compliance with RFC-1812. Reserved: Must be set to 0.6.25.2 Object Header Every object consists of one or more 32-bit words with a one-wordheader, with theheader. The followingformat:is the format of the one-word header: +-------------+-------------+-------------+-------------+ | Length | Class-Num | C-Type | +-------------+-------------+-------------+-------------+ | | | // (Object contents) // | | | +-------------+-------------+-------------+-------------+ Figure 3: Object Header An object header has the following fields: Length: 16 bits Length of the object, measured in octets, including the object header and object contents.Bonica,Tappan,Gan Draft-Expires February 2001 5Class-Num: 8 bits Identifies object class. C-Type: 8 bits Identifies object sub-type.6.35.3 MPLS Stack Entry Object Class A single instance of the MPLS Entry Object class represents the entire MPLS label stack, formatted exactly as it was when it arrived at the LSR that sends the ICMP message In the illustration below, octets 0-3 depict the first member of the MPLS label stack. Each remaining member of the MPLS label stack is represented by another 4 octets that share the same format. Syntax follows: MPLS Stack Entry Class = 1, C-Type = 1. 0 1 2 3 +-------------+-------------+-------------+-------------+ | Label |EXP |S| TTL | +-------------+-------------+-------------+-------------+ | | | // Remaining MPLS Stack Entries // | | | +-------------+-------------+-------------+-------------+ Figure 4: MPLS Stack Entry Object Class Label: 20 bits Exp: Experimental Use, 3 bits S: Bottom of Stack, 1 bit TTL: Time to Live, 8 bits6.45.4 Extended Payload Object Class An instance of the Extended Payload Object class represents some portion of the original datagram that could not be fit in the final field of the ICMP message body (i.e., octets beyond 128).Bonica,Tappan,Gan Draft-Expires February 2001 6Syntax follows: MPLS Stack Entry Class = 2, C-Type = 1. 0 1 2 3 +-------------+-------------+-------------+-------------+ | | | // Additional bytes of original datagram // | | | +-------------+-------------+-------------+-------------+7.Figure 5: Extended Payload Object Class 6. Backward Compatibility ICMP extensions proposed in this document MUST be backward compatible with the syntax described in RFC-792. Extensions proposed in this memo MUST NOT change or deprecate any field defined inRFC- 792.RFC-792. The extensions defined herein are in keeping with the spirit, if not the letter of RFC-1812. In order to support IP-in-IP tunneling, RFC- 1812 extends the final field of selected ICMP messages to include a greater portion of the original datagram. Unfortunately, it extends this field to a variable length without adding a length attribute. This memo binds the length of that final field to an arbitrarily large value (128 octets). Fixing the length of that field facilitates extension of the ICMP message. An additional object is provided through which octets 129 and beyond can be appended to the ICMP message. As few datagrams contain L3 or L4 header information beyond octet 128, it is unlikely that the extensions described herein will disable any applications that rely upon RFC-1812 style ICMP messages.8.7. Security Considerations This memo presents no security considerations beyond those already presented by current ICMP applications (e.g., traceroute).9. References [ARCH], Rosen, E., Viswanathan, A.,8. IANA Considerations IANA should establish a registry of ICMP extention classes andR. Callon, "Multiprotocol Label Switching Architecture", Internet Draft <draft-ietf-mpls-arch- 06.txt>, August, 1999 Bonica,Tappan,Gan Draft-Expires February 2001 7 [ENCODE],class- sub-types. 9. Normative References [1] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [2] Postel, J., "Internet Control Message Protocol", STD 5, RFC 792, September 1981. [3] Rosen, E.,Rekhter, Y.,Tappan,D, Farinacci,D., Fedorkow, G., Rekhter, Y., Farinacci, D., Li, T., and A. Conta,A.,"MPLS Label Stack Encoding",Internet Draft, <draft-ietf-mpls-label-encapse-07.txt>, September 1999. [MPLSATM],RFC 3032, January 2001. [4] Conta, A., Doolan, P., and A. Malis, "Use of Label Switching on Frame Relay Networks Specification", RFC 3034, January 2001. [5] Davie, B., Lawrence, J., McCloghrie, K.,Rekhter, Y.,Rosen, E., Swallow,G,G., Rekhter, Y., and P. Doolan, "MPLS using LDP and ATM VC Switching",<draft-ietf- mpls-atm-04.txt>, June 2000. [MPLSFRAME], Conta, A., Doolan, P., Malis, A., "Use of Label Switching on Frame Relay Networks", <draft-ietf-mpls-fr-06.txt>, June, 2000. [RFC-792], Postel, J., "Internet Control Message Protocol",RFC792, ISI, September 1981. [RFC-1812],3035, January 2001. [6] Baker, F., "Requirements for IP Version 4 Routers", RFC 1812, June 1995.[RFC-2026], Bradner, S., "Internet Standards Process Revision 3", RFC 2026, Harvard University, October 1996. [RFC-2119], Bradner, S,, "Key words for use in RFCs to Indicate Requirement Levels", RFC 2119, Harvard University, March 1997 10. Acknowledgments Thanks to Yakov Rekhter and Mike Heard for their contributions to this memo. 11. Author'sAuthors' Addresses Ronald P. BonicaMCI WorldCom 22001 Loudoun County Pkwy Ashburn, Virginia, 20147 Phone: 703 886 1681Juniper Networks 2251 Corporate Park Drive Herndon, VA 20171 US Email:rbonica@mci.netrbonica@juniper.net Der-Hwa Gan Juniper Networks 1194 N. Mathilda Ave. Sunnyvale, CA 94089 US Email: dhg@juniper.net Daniel C. Tappan CiscoSystemsSystems, Inc. 250 Apollo Drive Chelmsford,Massachusetts,MA 01824 US Email: tappan@cisco.comDer-Hwa Gan Juniper Networks 385 Ravendale Drive Mountain View, California 94043 Bonica,Tappan,Gan Draft-Expires February 2001 8 Email: dhg@juniper.net Bonica,Tappan,Gan Draft-Expires February 2001 9 Full CopyrightIntellectual Property Statement"Copyright (C)TheInternet Society (date). All Rights Reserved. This document and translations of it may be copied and furnished to others, and derivative works that comment onIETF takes no position regarding the validity orotherwise explain itscope of any Intellectual Property Rights orassist in its implmentation mayother rights that might beprepared, copied, published and distributed, in wholeclaimed to pertain to the implementation orin part, without restrictionuse ofany kind, provided thattheabove copyright notice and this paragraph are included on all such copies and derivative works. However,technology described in this documentitself mayor the extent to which any license under such rights might or might not bemodified inavailable; nor does it represent that it has made any independent effort to identify anyway,suchas by removingrights. Information on thecopyright noticeprocedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79. Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, orreferencesthe result of an attempt made to obtain a general license or permission for theInternet Societyuse of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr. The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or otherInternet organizations, except as needed forproprietary rights that may cover technology that may be required to implement this standard. Please address thepurposeinformation to the IETF at ietf-ipr@ietf.org. Disclaimer ofdevelopingValidity This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Copyright Statement Copyright (C) The InternetstandardsSociety (2005). This document is subject to the rights, licenses and restrictions contained inwhich caseBCP 78, and except as set forth therein, theproceduresauthors retain all their rights. Acknowledgment Funding forcopyrights defined inthe RFC Editor function is currently provided by the InternetStandards process must be followed, or as required to translate it into Bonica,Tappan,Gan Draft-Expires February 2001 10Society.