⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfc2463.txt

📁 著名的RFC文档,其中有一些文档是已经翻译成中文的的.
💻 TXT
📖 第 1 页 / 共 3 页
字号:
Network Working Group                                           A. ContaRequest for Comments: 2463                                        LucentObsoletes: 1885                                               S. DeeringCategory: Standards Track                                  Cisco Systems                                                           December 1998               Internet Control Message Protocol (ICMPv6)               for the Internet Protocol Version 6 (IPv6)                             SpecificationStatus of this Memo   This document specifies an Internet standards track protocol for the   Internet community, and requests discussion and suggestions for   improvements.  Please refer to the current edition of the "Internet   Official Protocol Standards" (STD 1) for the standardization state   and status of this protocol.  Distribution of this memo is unlimited.Copyright Notice   Copyright (C) The Internet Society (1998).  All Rights Reserved.Abstract   This document specifies a set of Internet Control Message Protocol   (ICMP) messages for use with version 6 of the Internet Protocol   (IPv6).Table of Contents      1. Introduction........................................2      2. ICMPv6 (ICMP for IPv6)..............................2            2.1 Message General Format.......................2            2.2 Message Source Address Determination.........3            2.3 Message Checksum Calculation.................4            2.4 Message Processing Rules.....................4      3. ICMPv6 Error Messages...............................6            3.1 Destination Unreachable Message..............6            3.2 Packet Too Big Message...................... 8            3.3 Time Exceeded Message....................... 9            3.4 Parameter Problem Message...................10      4. ICMPv6 Informational Messages......................11            4.1 Echo Request Message........................11            4.2 Echo Reply Message..........................12      5. Security Considerations............................13      6. References.........................................14      7. Acknowledgments....................................15Conta & Deering             Standards Track                     [Page 1]RFC 2463                 ICMPv6 (ICMP for IPv6)            December 1998      8. Authors' Addresses.................................16      Appendix A - Changes since RFC 1885...................17      Full Copyright Statement..............................181. Introduction   The Internet Protocol, version 6 (IPv6) is a new version of IP.  IPv6   uses the Internet Control Message Protocol (ICMP) as defined for IPv4   [RFC-792], with a number of changes.  The resulting protocol is   called ICMPv6, and has an IPv6 Next Header value of 58.   This document describes the format of a set of control messages used   in ICMPv6.  It does not describe the procedures for using these   messages to achieve functions like Path MTU discovery; such   procedures are described in other documents (e.g., [PMTU]).  Other   documents may also introduce additional ICMPv6 message types, such as   Neighbor Discovery messages [IPv6-DISC], subject to the general rules   for ICMPv6 messages given in section 2 of this document.   Terminology defined in the IPv6 specification [IPv6] and the IPv6   Routing and Addressing specification [IPv6-ADDR] applies to this   document as well.   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].2. ICMPv6 (ICMP for IPv6)   ICMPv6 is used by IPv6 nodes to report errors encountered in   processing packets, and to perform other internet-layer functions,   such as diagnostics (ICMPv6 "ping").  ICMPv6 is an integral part of   IPv6 and MUST be fully implemented by every IPv6 node.2.1 Message General Format   ICMPv6 messages are grouped into two classes: error messages and   informational messages.  Error messages are identified as such by   having a zero in the high-order bit of their message Type field   values.  Thus, error messages have message Types from 0 to 127;   informational messages have message Types from 128 to 255.   This document defines the message formats for the following ICMPv6   messages:Conta & Deering             Standards Track                     [Page 2]RFC 2463                 ICMPv6 (ICMP for IPv6)            December 1998        ICMPv6 error messages:             1    Destination Unreachable      (see section 3.1)             2    Packet Too Big               (see section 3.2)             3    Time Exceeded                (see section 3.3)             4    Parameter Problem            (see section 3.4)        ICMPv6 informational messages:             128  Echo Request                 (see section 4.1)             129  Echo Reply                   (see section 4.2)   Every ICMPv6 message is preceded by an IPv6 header and zero or more   IPv6 extension headers. The ICMPv6 header is identified by a Next   Header value of 58 in the immediately preceding header.  (NOTE: this   is different than the value used to identify ICMP for IPv4.)   The ICMPv6 messages have the following general format:       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      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |     Type      |     Code      |          Checksum             |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                                                               |      +                         Message Body                          +      |                                                               |   The type field indicates the type of the message. Its value   determines the format of the remaining data.   The code field depends on the message type. It is used to create an   additional level of message granularity.   The checksum field is used to detect data corruption in the ICMPv6   message and parts of the IPv6 header.2.2 Message Source Address Determination   A node that sends an ICMPv6 message has to determine both the Source   and Destination IPv6 Addresses in the IPv6 header before calculating   the checksum.  If the node has more than one unicast address, it must   choose the Source Address of the message as follows:    (a) If the message is a response to a message sent to one of the        node's unicast addresses, the Source Address of the reply must        be that same address.Conta & Deering             Standards Track                     [Page 3]RFC 2463                 ICMPv6 (ICMP for IPv6)            December 1998    (b) If the message is a response to a message sent to a multicast or        anycast group in which the node is a member, the Source Address        of the reply must be a unicast address belonging to the        interface on which the multicast or anycast packet was received.    (c) If the message is a response to a message sent to an address        that does not belong to the node, the Source Address should be        that unicast address belonging to the node that will be most        helpful in diagnosing the error. For example, if the message is        a response to a packet forwarding action that cannot complete        successfully, the Source Address should be a unicast address        belonging to the interface on which the packet forwarding        failed.    (d) Otherwise, the node's routing table must be examined to        determine which interface will be used to transmit the message        to its destination, and a unicast address belonging to that        interface must be used as the Source Address of the message.2.3 Message Checksum Calculation   The checksum is the 16-bit one's complement of the one's complement   sum of the entire ICMPv6 message starting with the ICMPv6 message   type field, prepended with a "pseudo-header" of IPv6 header fields,   as specified in [IPv6, section 8.1].  The Next Header value used in   the pseudo-header is 58.  (NOTE: the inclusion of a pseudo-header in   the ICMPv6 checksum is a change from IPv4; see [IPv6] for the   rationale for this change.)   For computing the checksum, the checksum field is set to zero.2.4 Message Processing Rules   Implementations MUST observe the following rules when processing   ICMPv6 messages (from [RFC-1122]):    (a) If an ICMPv6 error message of unknown type is received, it MUST        be passed to the upper layer.    (b) If an ICMPv6 informational message of unknown type is received,        it MUST be silently discarded.    (c) Every ICMPv6 error message (type < 128) includes as much of the        IPv6 offending (invoking) packet (the packet that caused the        error) as will fit without making the error message packet        exceed the minimum IPv6 MTU [IPv6].Conta & Deering             Standards Track                     [Page 4]RFC 2463                 ICMPv6 (ICMP for IPv6)            December 1998    (d) In those cases where the internet-layer protocol is required to        pass an ICMPv6 error message to the upper-layer process, the        upper-layer protocol type is extracted from the original packet        (contained in the body of the ICMPv6 error message) and used to        select the appropriate upper-layer process to handle the error.        If the original packet had an unusually large amount of        extension headers, it is possible that the upper-layer protocol        type may not be present in the ICMPv6 message, due to truncation        of the original packet to meet the minimum IPv6 MTU [IPv6]        limit.  In that case, the error message is silently dropped        after any IPv6-layer processing.    (e) An ICMPv6 error message MUST NOT be sent as a result of        receiving:         (e.1) an ICMPv6 error message, or         (e.2) a packet destined to an IPv6 multicast address (there are               two exceptions to this rule: (1) the Packet Too Big               Message - Section 3.2 - to allow Path MTU discovery to               work for IPv6 multicast, and (2) the Parameter Problem               Message, Code 2 - Section 3.4 - reporting an unrecognized               IPv6 option that has the Option Type highest-order two               bits set to 10), or         (e.3) a packet sent as a link-layer multicast, (the exception               from e.2 applies to this case too), or         (e.4) a packet sent as a link-layer broadcast, (the exception               from e.2 applies to this case too), or         (e.5) a packet whose source address does not uniquely identify               a single node -- e.g., the IPv6 Unspecified Address, an               IPv6 multicast address, or an address known by the ICMP               message sender to be an IPv6 anycast address.    (f) Finally, in order to limit the bandwidth and forwarding costs        incurred sending ICMPv6 error messages, an IPv6 node MUST limit        the rate of ICMPv6 error messages it sends.  This situation may        occur when a source sending a stream of erroneous packets fails        to heed the resulting ICMPv6 error messages.  There are a        variety of ways of implementing the rate-limiting function, for        example:         (f.1) Timer-based - for example, limiting the rate of               transmission of error messages to a given source, or to               any source, to at most once every T milliseconds.Conta & Deering             Standards Track                     [Page 5]RFC 2463                 ICMPv6 (ICMP for IPv6)            December 1998         (f.2) Bandwidth-based - for example, limiting the rate at which               error messages are sent from a particular interface to               some fraction F of the attached link's bandwidth.        The limit parameters (e.g., T or F in the above examples) MUST        be configurable for the node, with a conservative default value        (e.g., T = 1 second, NOT 0 seconds, or F = 2 percent, NOT 100        percent).   The following sections describe the message formats for the above   ICMPv6 messages.3. ICMPv6 Error Messages3.1 Destination Unreachable Message       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      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |     Type      |     Code      |          Checksum             |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                             Unused                            |      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+      |                    As much of invoking packet                 |      +                as will fit without the ICMPv6 packet          +      |                exceeding the minimum IPv6 MTU [IPv6]          |   IPv6 Fields:   Destination Address                  Copied from the Source Address field of the invoking                  packet.   ICMPv6 Fields:   Type           1   Code           0 - no route to destination                  1 - communication with destination                        administratively prohibited                  2 - (not assigned)                  3 - address unreachable                  4 - port unreachable   Unused         This field is unused for all code values.                  It must be initialized to zero by the sender                  and ignored by the receiver.Conta & Deering             Standards Track                     [Page 6]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -