rfc3122.txt
来自「RFC 的详细文档!」· 文本 代码 · 共 1,124 行 · 第 1/3 页
TXT
1,124 行
Note: These Option Type values should be assigned from the IPv6
Neighbor Discovery family of values.
Length The length of the option (including the Type,
Length, and the Reserved fields) in units of 8
octets. The minimum value for Length is 3, for one
IPv6 address.
Reserved This field is unused. It MUST be initialized to
zero by the sender and MUST be ignored by the
receiver.
IPv6 Addresses One or more IPv6 addresses of the interface.
Conta Standards Track [Page 7]
RFC 3122 Extensions to IPv6 Neighbor Discovery June 2001
Description:
The Source Address List contains a list of IPv6 addresses of the
interface identified by the Source Link-Layer Address.
The Target Address List contains a list of IPv6 addresses of the
interface identified by the Target Link-Layer Address.
The number of addresses "n" in the list is calculated based on the
length of the option:
n = (Length - 1)/2 (Length is the number of groups of 8 octets)
The Source Address List MUST fit in one IND Solicitation message.
Therefore in case all IPv6 addresses of an interface do not fit in
one messages, the option does not contain a complete list. For a
complete list of IPv6 addresses, a node should rely on the IND
Advertisement message.
The Target Address List SHOULD be the complete list of addresses of
the interface identified by the Target Link-Layer Address. If the
list of IPv6 addresses of an interface does not fit in one IND
Advertisement message, one or more IND Advertisement messages, with
the same fields as the first message, SHOULD follow. The Target
Address List option(s) of the second, and subsequent message(s)
SHOULD contain the rest of the IPv6 addresses of the interface
identified by the Target Link-Layer Address, which did not fit in the
first message.
Note 1: The scope of the Inverse Neighbor Discovery mechanism is
limited to IPv6 address discovery, that is, providing address mapping
information. Therefore, it does not make any provisions or rules
regarding how a node uses the addresses that were returned in an
Inverse Discovery message. Furthermore, it does not exclude any
particular type of IPv6 address from the Source or Target Address
List. For example, if an interface has manually configured, and
autoconfigured addresses, including temporary ones, unicast,
multicast, etc..., the list should not exclude any.
Note 2: An implementation MUST NOT send duplicates in the IPv6
address list.
Conta Standards Track [Page 8]
RFC 3122 Extensions to IPv6 Neighbor Discovery June 2001
4. Inverse Neighbor Discovery Protocol
IND operates essentially the same as ND [IPv6-ND]: the solicitor of a
target IP address sends on an interface a solicitation message, the
target node responds with an advertisement message containing the
information requested. The information learned MAY be stored in the
Neighbor Discovery cache [IPv6-ND], as well as IPv6 address
structures which may be associated with the interface.
4.1 Sender Node Processing
A soliciting node formats an IND Solicitation message as defined in a
previous section, encapsulates the packet for the specific link-layer
and sends it directly to the target node. Although the destination
IP address is the all-node multicast address, the message is sent
only to the target node. The significant fields for the IND protocol
are the Source IP address, the Source link-layer address, the Target
link-layer address, and the MTU. The latter can be used in setting
the optimum value of the MTU for the link.
While awaiting a response, the sender SHOULD retransmit IND
Solicitation messages approximately every RetransTimer
(expiration)[IPv6-ND], even in the absence of additional traffic to
the neighbor. Retransmissions MUST be rate-limited to at most one
solicitation per neighbor every RetransTimer.
If no IND Advertisement is received after MAX_MULTICAST_SOLICIT
[IPv6-ND] solicitations, inverse address resolution has failed. If
the sending of the Solicitation was required by an upper-layer, the
sender module MUST notify the error to the upper-layer through an
appropriate mechanism (e.g., return value from a procedure call).
4.2 Receiver Node Processing
4.2.1 Processing Inverse Neighbor Solicitation Messages
For every IND Solicitation, the receiving node SHOULD format in
response a proper IND Advertisement using the link-layer source and
target address pair as well as the IPv6 source address from the IND
Solicitation message.
If a node updates the Neighbor Discovery Cache with information
learned from IND messages, the receiver node of the IND Solicitation
SHOULD put the sender's IPv6 address/link-layer address mapping -
i.e., the source IP address and the Source link-layer address from
the solicitation message - into its ND cache [IPv6-ND] as it would
for a ND solicitation.
Conta Standards Track [Page 9]
RFC 3122 Extensions to IPv6 Neighbor Discovery June 2001
Because IPv6 nodes may have multiple IPv6 addresses per interface, a
node responding to an IND Solicitation SHOULD return in the Target
Address List option a list containing one or more IPv6 addresses
corresponding to the interface identified by the Target Link-Layer
Address field in the solicitation message. The list MUST not contain
duplicates.
4.2.2 Processing Inverse Neighbor Advertisement Messages
If a node updates The Neighbor Discovery Cache with information
learned from IND messages, the receiver node of the IND advertisement
SHOULD put the sender's IPv6 address/link-layer address mapping -
i.e., the IP addresses from Target addresses list and the Source
link-layer address from the IND advertisement message - into its ND
cache [IPv6-ND] as it would for a ND advertisement.
4.3 Message Validation
Inverse Neighbor Discovery messages are validated as follows:
4.3.1 Validation of Inverse Neighbor Discovery Solicitations
A node MUST silently discard any received Inverse Neighbor
Solicitation messages that do not satisfy all of the following
validity checks:
- The IP Hop Limit field has a value of 255, i.e., the packet
could not possibly have been forwarded by a router.
- If the message includes an IP Authentication Header, the
message authenticates correctly.
- ICMP Checksum is valid.
- ICMP Code is 0.
- ICMP length (derived from the IP length) is 24 or more
octets.
- The Target Link-Layer Address is a required option and MUST
be present.
- The Source Link-Layer Address is a required option and MUST
be present.
- All included options have a length that is greater than
zero.
Conta Standards Track [Page 10]
RFC 3122 Extensions to IPv6 Neighbor Discovery June 2001
The content of the Reserved field, and of any unrecognized options,
MUST be ignored. Future, backward-compatible changes to the protocol
may specify the contents of the Reserved field or add new options;
backward-incompatible changes may use different Code values.
The contents of any Neighbor Discovery [IPv6-ND] options that are not
specified to be used with Inverse Neighbor Discovery Solicitation
messages MUST be ignored and the packet processed as normal. The
only defined option that may appear besides the required options is
the MTU option.
An Inverse Neighbor Solicitation that passes the validity checks is
called a "valid solicitation".
4.3.2 Validation of Inverse Neighbor Discovery Advertisements
A node MUST silently discard any received Inverse Neighbor Discovery
Advertisement messages that do not satisfy all of the following
validity checks:
- The IP Hop Limit field has a value of 255, i.e., the packet
could not possibly have been forwarded by a router.
- If the message includes an IP Authentication Header, the
message authenticates correctly.
- ICMP Checksum is valid.
- ICMP Code is 0.
- ICMP length (derived from the IP length) is 48 or more
octets.
- Source Link-Layer Address option is present.
- Target Link-Layer Address option is present.
- The Target Address List option is present.
- The length of the Target Address List option is at least 3.
- All other included options have a length that is greater
than zero.
The contents of the Reserved fields, and of any unrecognized options,
MUST be ignored. Future, backward-compatible changes to the protocol
may specify the contents of the Reserved fields or add new options;
backward-incompatible changes may use different Code values.
Conta Standards Track [Page 11]
RFC 3122 Extensions to IPv6 Neighbor Discovery June 2001
The contents of any defined options [IPv6-ND] that are not specified
to be used with Inverse Neighbor Advertisement messages MUST be
ignored and the packet processed as normal. The only defined option
that may appear besides the required options is the MTU option.
An Inverse Neighbor Advertisement that passes the validity checks is
called a "valid advertisement".
5. Security Considerations
When being employed on point to point virtual circuits, as it is the
case with Frame Relay networks, Inverse Neighbor Discovery messages
are less sensitive to impersonation attacks from on-link nodes, as it
would be the case with broadcast links.
Like Neighbor Discovery, the protocol reduces the exposure to threats
from off-link nodes in the absence of authentication by ignoring IND
packets received from off-link senders. The Hop Limit field of all
received packets is verified to contain 255, the maximum legal value.
Because routers decrement the Hop Limit on all packets they forward,
received packets containing a Hop Limit of 255 must have originated
from a neighbor.
Inverse Neighbor Discovery protocol packet exchanges can be
authenticated using the IP Authentication Header [IPSEC-Auth]. A
node SHOULD include an Authentication Header when sending Inverse
Neighbor Discovery packets if a security association for use with the
IP Authentication Header exists for the destination address. The
security associations may have been created through manual
configuration or through the operation of some key management
protocol.
Received Authentication Headers in Inverse Neighbor Discovery packets
MUST be verified for correctness and packets with incorrect
authentication MUST be ignored.
In case of use with Frame Relay, to avoid an IP Security
Authentication verification failure, the Frame Relay specific
preprocessing of a Neighbor Discovery Solicitation message that
contains a DLCI format Source link-layer address option, MUST be done
by the receiver node after it completed IP Security processing.
It SHOULD be possible for the system administrator to configure a
node to ignore any Inverse Neighbor Discovery messages that are not
authenticated using either the Authentication Header or Encapsulating
Security Payload. Such a switch SHOULD default to allowing
unauthenticated messages.
Conta Standards Track [Page 12]
RFC 3122 Extensions to IPv6 Neighbor Discovery June 2001
Confidentiality issues are addressed by the IP Security Architecture
and the IP Encapsulating Security Payload documents [IPSEC], [IPSEC-
ESP].
6. IANA Considerations
IANA was requested to assign two new ICMPv6 type values, as described
in Section 2.1 and 2.2. They were assigned from the Informational
range of messages, as defined in Section 2.1 of RFC 2463. There were
no ICMPv6 code values defined for these types (other than 0); future
assignments are to be made under Standards Action as defined in RFC
2434.
IANA was also requested to assign two new ICMPv6 Neighbor Discovery
Option types as defined in Section 3.1. No outside reviewing was
necessary.
7. Acknowledgments
Thanks to Steve Deering, Thomas Narten and Erik Nordmark for
discussing the idea of Inverse Neighbor Discovery. Thanks to Thomas
Narten, and Erik Nordmark, and also to Dan Harrington, Milan Merhar,
Barbara Fox, Martin Mueller, and Peter Tam for a thorough reviewing.
Also it should be acknowledged that parts of the text in this
specification derived from the IPv6 Neighbor Discovery text [IPv6-
ND].
8. References
[IPv6] Deering, S. and R. Hinden, "Internet Protocol Version 6
Specification", RFC 2460, December 1998.
[IPv6-ND] Narten, T., Nordmark, E. and W. Simpson "Neighbor
Discovery for IP Version 6 (IPv6)", RFC 2461, December
1998.
[ICMPv6] Conta, A., and S. Deering "Internet Control Message
Protocol for the Internet Protocol Version 6", RFC
2463, December 1998.
[IPv6-FR] Conta, A., Malis, A. and M. Mueller, "Transmission of
IPv6 Packets over Frame Relay Networks", RFC 2590, May
1999. December 1997.
[IPSEC] Atkinson, R. and S. Kent, "Security Architecture for
the Internet Protocol", RFC 2401, November 1998.
Conta Standards Track [Page 13]
RFC 3122 Extensions to IPv6 Neighbor Discovery June 2001
[IPSEC-Auth] Atkinson, R. and S. Kent, "IP Authentication Header",
RFC 2402, December 1998.
[IPSEC-ESP] Atkinson, R. and S. Kent, "IP Encapsulating Security
Protocol (ESP)", RFC 2406, November 1998.
[ASSIGN] Reynolds, J. and J. Postel, "Assigned Numbers", STD 2,
RFC 1700, March 1994.
[ENCAPS] Brown, C. and A. Malis, "Multiprotocol Interconnect
over Frame Relay", RFC 2427, November 1998.
[INV-ARP] Bradley, T., Brown, C. and A. Malis "Inverse Address
Resolution Protocol", RFC 2390, August 1998.
[KEYWORDS] Bradner, S., "Key words for use in RFCs to Indicate
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?