Internet Engineering Task Force (IETF) E. Nordmark
Request for Comments: 7048 Arista Networks
Updates: 4861 I. Gashinsky
Category: Standards Track Yahoo!
ISSN: 2070-1721 January 2014
Neighbor Unreachability Detection Is Too Impatient
Nordmark & Gashinsky Standards Track [Page 1]
RFC 7048 NUD Is Too Impatient January 2014
Copyright Notice
1. Introduction
IPv6 Neighbor Discovery [RFC4861] includes Neighbor Unreachability Detection (NUD), which detects when a neighbor is no longer reachable. The timeouts specified for NUD are very short (by default, three transmissions spaced one second apart). These short timeouts can be appropriate when there are alternative neighbors to which the packets can be sent -- for example, if a host has multiple default routers in its Default Router List or if the host has a Neighbor Cache Entry (NCE) created by a Redirect message. In those cases, when NUD fails, the host will try the alternative neighbor by redoing the next-hop selection. That implies picking the next router in the Default Router List or discarding the NCE created by a Redirect message, respectively.
Nordmark & Gashinsky Standards Track [Page 2]
RFC 7048 NUD Is Too Impatient January 2014
As a result, IPv6 Neighbor Discovery is operationally more brittle than the IPv4 Address Resolution Protocol (ARP). For IPv4, there is no mandatory time limit on the retransmission behavior for ARP [RFC0826], which allows implementors to pick more robust schemes.
2. Definition of Terms
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 [RFC2119].
3. Protocol Updates
Discarding the NCE after three packets spaced one second apart is only needed when an alternative neighbor is available, such as an additional default router or discarding an NCE created by a Redirect.
Nordmark & Gashinsky Standards Track [Page 3]
RFC 7048 NUD Is Too Impatient January 2014
In the places where [RFC4861] says to discard/delete the NCE after N probes (Sections 7.3 and 7.3.3, and Appendix C), this document instead specifies a transition to the UNREACHABLE state.
Nordmark & Gashinsky Standards Track [Page 4]
RFC 7048 NUD Is Too Impatient January 2014
There is also the more obvious change already described above. [RFC4861] has this:
Nordmark & Gashinsky Standards Track [Page 5]
RFC 7048 NUD Is Too Impatient January 2014 4. Example AlgorithmThis section is NOT normative but specifies a simple implementation that conforms with this document. The implementation is described using operator-configurable values that allow it to be configured to be compatible with the retransmission behavior in [RFC4861]. The operator can configure the values for MAX_UNICAST_SOLICIT, MAX_MULTICAST_SOLICIT, RETRANS_TIMER, and the new BACKOFF_MULTIPLE, MAX_RETRANS_TIMER, and MARK_UNREACHABLE. This allows the implementation to be as simple as:
Nordmark & Gashinsky Standards Track [Page 6]
RFC 7048 NUD Is Too Impatient January 2014
After 5 transmissions, i.e., 40 seconds after the initial transmission, the example behavior is to switch to multicast NUD probes. In the language of the state machine in [RFC4861], that corresponds to the action "Discard entry". Thus, any attempts to send future packets would result in sending multicast NS packets. An implementation MAY retain the backoff value as it switches to multicast NUD probes. The potential downside of deferring switching to multicast is that it would take longer for NUD to handle a change in a link-layer address, i.e., the case when a host or a router changes its link-layer address while keeping the same IPv6 address. However, [RFC4861] says that a node MAY send unsolicited NS to handle that case, which is rather infrequent in operational networks. In any case, the implementation needs to follow the "SHOULD" in Section 3 to switch to multicast solutions within 60 seconds after the initial transmission.
5. Acknowledgements
The comments from Thomas Narten, Philip Homburg, Joel Jaeggli, Hemant Singh, Tina Tsou, Suresh Krishnan, and Murray Kucherawy have helped improve this document.
Nordmark & Gashinsky Standards Track [Page 7]
RFC 7048 NUD Is Too Impatient January 2014 6. Security ConsiderationsRelaxing the retransmission behavior for NUD is believed to have no impact on security. In particular, it doesn't impact the application of Secure Neighbor Discovery [RFC3971].
7. References 7.1. Normative References[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
7.2. Informative References
[RFC0826] Plummer, D., "Ethernet Address Resolution Protocol: Or