Internet Engineering Task Force (IETF) F. Gont Request for Comments: 9096 SI6 Networks BCP: 234 J. Zorz Updates: 7084 6connect Category: Best Current Practice R. Patterson ISSN: 2070-1721 Sky UK B. VolzCisco JulyIndividual Contributor August 2021 Improving the Reaction of Customer Edge Routers to IPv6 Renumbering Events Abstract This document specifies improvements to Customer EdgeRoutersrouters that help mitigate the problems that may arise when network configuration information becomesinvalid,invalid without any explicit signaling of that condition to the local nodes. This document updates RFC 7084. Status of This Memo This memo documents an Internet Best Current Practice. This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on BCPs is available in Section 2 of RFC 7841. Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at https://www.rfc-editor.org/info/rfc9096. Copyright Notice Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Table of Contents 1. Introduction 2. Requirements Language 3. Improved Customer Edge Router Behavior 3.1. Automatic DHCPv6 RELEASEs 3.2. Stability of IAIDs 3.3. Interface between the WAN Side and LAN Side 3.4. LAN-Side Option Lifetimes 3.5. Signaling Stale Configuration Information 4. Recommended Option Lifetimes Configuration Values 5. IANA Considerations 6. Security Considerations 7. References 7.1. Normative References 7.2. Informative References Acknowledgments Authors' Addresses 1. Introduction In scenarios where network configuration information becomes invalid without any explicit signaling of that condition (such as when a Customer Edge (CE)Routerrouter crashes and reboots without knowledge of the previously employed configuration information), hosts on the local network will continue using stale information for an unacceptably long period of time, thus resulting in connectivity problems. This problem is documented in detail in [RFC8978]. This document specifies improvements to CERoutersrouters that help mitigate the aforementioned problem for residential and small office scenarios. It specifies recommendations for the default behavior of CERouters androuters but does not preclude the availability of configuration knobs that might allow an operator or user to manually configure the CERouterrouter to deviate from these recommendations. This document updates RFC 7084. 2. Requirements Language The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. 3. Improved Customer Edge Router Behavior This section specifies and clarifies requirements forCustomer Edge RoutersCE routers that can help mitigate the problem discussed in Section 1, particularly when they employ prefixes learned via DHCPv6 Prefix Delegation (DHCPv6-PD) [RFC8415] on the WAN side with Stateless Address Autoconfiguration (SLAAC) [RFC4862] or DHCPv6 [RFC8415] on the LAN side. The recommendations in this document help improve robustness at theCustomer Edge RouterCE router (on which the user or ISP may have no control) and do not preclude implementation of host-side improvements such as those specified in [6MAN-SLAAC-RENUM]. This document specifies additional WAN-side prefix-delegation (WPD) requirements to those specified in [RFC7084]: WPD-9: CERoutersrouters SHOULD NOT automatically send DHCPv6-PD RELEASE messages uponrebootrestart events. See Section 3.1 for further details. WPD-10: CERoutersrouters MUST by default use a WAN-side Identity Association IDentifier (IAID) value that is stable between CERouterrouter restarts, DHCPv6 client restarts, or interface state changes (e.g.,Transienttransient PPP interfaces), unless the CERouterrouter employs the IAID techniques discussed in Section 4.5 of [RFC7844]. See Section 3.2 for further details. This document also replaces LAN-side requirement L-13 from [RFC7084] with: L-13: CE routers MUST signal stale configuration information as specified in Section 3.5. Finally, this document specifies the following additional LAN-side requirements to those from [RFC7084]: L-15: CE routers MUST NOT advertise prefixes via SLAAC or assign addresses or delegate prefixes via DHCPv6 on the LANside, employingside using lifetimes that exceed the remaining lifetimes of the corresponding prefixes learnedfromon the WAN side via DHCPv6-PD. For more details, see Section 3.3. L-16: CE routers SHOULD advertise capped SLAAC optionlifetimes andlifetimes, capped DHCPv6 IA AddressOptionoption lifetimes, and capped IA PrefixOptionoption lifetimes, as specified in Section 3.4. 3.1. Automatic DHCPv6 RELEASEs Some CERoutersrouters are known to automatically send DHCPv6-PD RELEASE messages uponrebootrestart events. However, this may inadvertently trigger a flash-renumbering scenario, along with the associated problems discussed in [RFC8978], that this document attempts to mitigate. As a result, requirement WPD-9 from Section 3 specifies that CE routers SHOULD NOT automatically send DHCPv6-PD RELEASE messages uponrebootrestart events. 3.2. Stability of IAIDs [RFC8415] requires that the IAID for an IA MUST be consistent across restarts of the DHCP client. However, some popular CERoutersrouters are known to select new random IAIDs, e.g., every time the underlying PPP session isestablished.established or when the device is rebooted. This could be the result of extrapolating the behavior described in [RFC7844] or simply a consequence of not storing IAIDs on stable storage along withfailingfailure to employ an algorithm that consistently generates the same IAID upon reboots. Thus, requirement WPD-10 from Section 3 prevents CERoutersrouters from inadvertently triggering flash-renumbering events on the local network. 3.3. Interface between the WAN Side and LAN Side The "Preferred Lifetime" and "Valid Lifetime" of Prefix Information Options (PIOs) [RFC4861] corresponding to prefixes learned via DHCPv6-PD on the WAN side MUST NOT span past the remaining preferred and valid lifetimes of the corresponding DHCPv6-PD prefixes. This means that the "Preferred Lifetime" and the "Valid Lifetime" advertised in PIOs by the CE router MUST be dynamically adjusted such that they never span past the remaining preferred and valid lifetimes of the corresponding prefixes delegated via DHCPv6-PD on the WAN side. Similarly, the "preferred-lifetime" and "valid-lifetime" of DHCPv6 IA AddressOptionsoptions and DHCPv6 IA PrefixOptionsoptions employed with DHCPv6 on the LAN side MUST NOT span past the remaining preferred and valid lifetimes of the corresponding prefixesleasedlearned via DHCPv6-PD on the WAN side. This means that the "preferred-lifetime" and "valid- lifetime" of DHCPv6 IA AddressOptionsoptions and DHCPv6 IA PrefixOptionsoptions employed with DHCPv6 on the LAN side MUST be dynamically adjusted such that they never span past the remaining preferred and valid lifetimes of the corresponding prefixes delegated to the CE router on the WAN side via DHCPv6-PD. RATIONALE: * The lifetime values employed for the "Preferred Lifetime" (AdvPreferredLifetime) and "Valid Lifetime" (AdvValidLifetime) of SLAAC Prefix Information Options must never be larger than the remaining lifetimesforof the correspondingprefixprefixes (as learned via DHCPv6-PD on the WAN side). This is in line with the requirement from Section 6.3 of [RFC8415], which states: | In particular, if the delegated prefix or a prefix derived from it | is advertised for stateless address autoconfiguration [RFC4862], | the advertised preferred and valid lifetimes MUST NOT exceed the | corresponding remaining lifetimes of the delegated prefix. * The lifetime values of prefixes advertised on the LAN side via SLAAC must be dynamically updated (rather than static values); otherwise, the advertised lifetimes would eventually span past the DHCPv6-PD lifetimes. * The same considerations apply for thevalid-lifetime"valid-lifetime" andpreferred-lifetime"preferred-lifetime" of IA AddressOptionsoptions and IA PrefixOptionsoptions employed with DHCPv6 on the LAN side. 3.4. LAN-Side Option Lifetimes CERoutersrouters SHOULD override the default lifetime values of Neighbor Discovery options that depend in any way on changes in the prefix employed for address configuration on the LAN side, and employ shorter lifetime values to improve the robustness to renumbering events, while complying with the requirements from Section 3.3 of this document and the recommendations in [RFC7772]. CERoutersrouters SHOULD set the "Router Lifetime" of RouterLifetimeAdvertisement (RA) messages to ND_PREFERRED_LIMIT. CERoutersrouters SHOULD also set the PIOPreferred Lifetime"Preferred Lifetime" to the lesser of the remaining preferred lifetime of the corresponding prefix (see Section 3.3) and ND_PREFERRED_LIMIT, and set the PIOValid Lifetime"Valid Lifetime" to the lesser of the remaining valid lifetime of the corresponding prefix and ND_VALID_LIMIT. Additionally, theRoute Lifetime"Route Lifetime" of Route Information Options (RIOs) [RFC4191], theLifetime"Lifetime" of Recursive DNSSearch Options (RDNSSOs)Server (RDNSS) options [RFC8106], and theLifetime"Lifetime" of DNS Search ListOptions (DNSSLOs)(DNSSL) options [RFC8106] SHOULD be set to the lesser of the longestvalid-lifetime inremaining valid lifetime of aDHCPv6 IA Prefix Option (receivedprefix (leased via DHCPv6 on the WAN side) and ND_VALID_LIMIT, if any of these options are included in Router Advertisement(RA)messages. NOTE: In scenarios where thevalid-lifetimevalid lifetime and thepreferred-preferred lifetime ofthe prefix leasedprefixes learned via DHCPv6 on the WAN side are always larger than ND_VALID_LIMIT and ND_PREFERRED_LIMIT, respectively, the lifetime values advertised on the LAN side will not experience actual changes. The above text refers to the Neighbor Discovery options that are typically employed by CERouters.routers. A CERouterrouter may need to apply the same policy for setting the lifetime of other Neighbor Discovery options it employs, if and where applicable. CERoutersrouters providing stateful address configuration via DHCPv6 SHOULD set the "preferred-lifetime" of a DHCPv6 IA AddressOption preferred-lifetimeoption to the lesser of the remaining preferred lifetime of the corresponding prefix (see Section 3.3) and ND_PREFERRED_LIMIT, and set thevalid-lifetime"valid- lifetime" of the same option to the lesser of the remaining valid lifetime of the corresponding prefix and ND_VALID_LIMIT. CERoutersrouters providing DHCPv6-PD on the LAN side SHOULD set the "preferred-lifetime" of a DHCPv6 IA PrefixOption preferred-lifetimeoption to the lesser of the remaining preferred lifetime of the corresponding prefix (see Section 3.3) and ND_PREFERRED_LIMIT, and set thevalid-lifetime"valid-lifetime" of the same option to the lesser of the remaining valid lifetime of the corresponding prefix and ND_VALID_LIMIT. RATIONALE: * TheValid Lifetime"Valid Lifetime" andPreferred Lifetime"Preferred Lifetime" of PIOs have a direct impact on three different aspects: - The amount of time hosts may end up employing stale network configuration information (see [RFC8978]). - The amount of time CERoutersrouters need to persist trying to deprecate stale network configuration information (e.g., to handle cases where hosts miss RouterAdvertisementsAdvertisement messages and thus still consider the stale information as valid). - The amount of information that CERoutersrouters need to maintain when, e.g., multiple crash-and-reboot events occur in the time span represented by the option lifetimes employed on the LAN side. * CERoutersrouters need not employ the (possibly long) WAN-side DHCPv6-PD lifetimes for theValid Lifetime"Valid Lifetime" andPreferred Lifetime"Preferred Lifetime" of PIOs sent in Router Advertisement messages to advertisesub-prefixessub- prefixes of the leased prefix. Instead, CERoutersrouters SHOULD use shorter values for theValid Lifetime"Valid Lifetime" andPreferred Lifetime"Preferred Lifetime" of PIOs, since subsequent Router Advertisement messages will nevertheless refresh the associated lifetimes, leading to the same effective lifetimes as specified by the WAN-side DHCPv6-PD lifetimes. * Similarly, CERoutersrouters need not employ the (possibly long) WAN-side DHCPv6-PD lifetimes for thevalid-lifetime"valid-lifetime" andpreferred-lifetime"preferred- lifetime" of IA AddressOptionsoptions and IA PrefixOptionsoptions employed by DHCPv6 on the LAN side, since the renewal of bindings by DHCPv6 clients will lead to the same effective lifetimes as specified by the WAN-side DHCPv6-PD lifetimes. 3.5. Signaling Stale Configuration Information When a CERouterrouter provides LAN-side address-configuration information via SLAAC: * A CERouterrouter sending RAs that advertise prefixes belonging to a dynamically learnedprefixesprefix (e.g., via DHCPv6-PD) SHOULD record, on stable storage, the list of prefixes being advertised via PIOs on each network segment and the state of the "A" and "L" flags of the corresponding PIOs. * Upon changes to the advertised prefixes, and after bootstrapping, the CERouterrouter advertising prefix information via SLAAC proceeds as follows: - Any prefixes that were previously advertised by the CERouterrouter via PIOs in RA messages, but that have now become stale, MUST be advertised witha PIOPIOs thathashave the "Valid Lifetime" and the "Preferred Lifetime" set to 0 and the "A" and "L" bits unchanged. - The aforementionedadvertisementadvertisements MUST be performed for at least the "Valid Lifetime" previously employed for suchprefix.prefixes. The CERouterrouter MUST advertise this information with unsolicited RouterAdvertisementsAdvertisement messages, as described in Section 6.2.4 of[RFC4861][RFC4861], and MAY advertise this information via unicast RouterAdvertisementsAdvertisement messages when possible and applicable.o Note:NOTE: If requirement L-16 (Section3.4)3) is followed, theValid Lifetime"Valid Lifetime" need not be saved, and the stale prefix can simply be advertised for a period of ND_VALID_LIMIT. * CERoutersrouters receiving DHCPv6 IA PrefixDelegationsoptions with a 0valid- lifetime"valid- lifetime" MUST advertise the corresponding sub-prefixes (as they would be generated for the same leased prefix with a non-zero lifetime) witha PIOPIOs with both thePreferred Lifetime"Preferred Lifetime" and theValid Lifetime"Valid Lifetime" set to 0, for at least the WAN-side DHCPv6-PDvalid-lifetime,"valid-lifetime", or for a period of ND_VALID_LIMIT if the recommended lifetimes from Section 3.4 are employed. When a CERouterrouter provides LAN-side DHCPv6 (address assignment or prefix delegation), then: * The CERouterrouter SHOULD record, on stable storage, the DHCPv6 address and delegated-prefix bindings corresponding to the LAN side. * If the CERouterrouter finds that the prefix to be employed for address assignment and/or prefix delegation has changed (e.g., upon a crash-and-reboot event) or the CERouterrouter receives DHCPv6 IA PrefixDelegationsoptions with 0 lifetimes, the CERouterrouter MUST: - In Replies to DHCPv6 Request, Renew, and Rebind messages, send IA AddressOptionsoptions or IA PrefixOptionsoptions (as appropriate) for any address assignments or prefix delegations for thedeprecatedstale prefixes. The aforementioned options MUST be sent with both thevalid-lifetime"valid-lifetime" and thepreferred-lifetime"preferred-lifetime" set to 0, for at least thevalid-lifetime"valid-lifetime" originally employed for them, or for a period of ND_VALID_LIMIT if the recommended lifetimes from Section 3.4 are employed. - Initiate sending Reconfiguremessages (if possible, i.e.,messages, if possible (i.e., client requests Reconfigure support and the CERouterrouter offersit)it), to those clients with address assignments or prefix delegations for thedeprecatedstale prefixes. RATIONALE:-* IPv6 network renumbering is expected to take place in a planned manner with old/stale prefixes being phased out via reduced prefix lifetimes while new prefixes (with normal lifetimes) are introduced. However, a number of scenarios may lead to the so- called "flash-renumbering" events, wherethea prefix being employed on a network suddenly becomes invalid and replaced by a new prefix [RFC8978]. One such scenario is whena DHCPv6 serveran Internet Service Provider (ISP) employs dynamic prefixes and theCustomer Edge RouterCE router crashes and reboots. The requirements in this section are meant to allowCustomer Edge RoutersCE routers to deprecate stale information in such scenarios.-* The recommendations in this section expand from requirement L-13 in Section 4.3 of [RFC7084] and Section 6.3 of [RFC8415].- Host* Hosts configuring addresses via SLAAC on the local network may employ addresses configured for the previously advertised prefixes for at most the "Valid Lifetime" of the correspondingPIOPIOs of the last received Router Advertisementmessage.messages. Since Router Advertisement messages may be lost or fail to be received for various reasons,Customer Edge RoutersCE routers need to try to deprecate stale prefixes for a period of time equal to the "Valid Lifetime" of the PIO employed when originally advertising the prefix.-* Therequirementrequirements in this sectionisto store information on stable storage are conveyed asa"SHOULD" (as opposed toa"MUST"), sincethe requirement to store information on stable storagethey may represent a challenge for some implementations.-* Advertising DHCPv6-leased prefixes with zero lifetimes on the LAN side would handle the case where a CERouterrouter has no stable storage but receives the prefixes via DHCPv6 with 0 lifetimes.-* The above text does not include DHCPv6 Advertise messages sent in response to DHCPv6 Solicit messages, since Section 18.3.9 of [RFC8415] requires that a DHCPv6 server that is not going to assign an address or delegated prefix received as a hint in the Solicit message MUST NOT include that address or delegated prefix in the Advertise message. Additionally, any subsequent Request messages will trigger the response specified in this section and therefore cause the address or prefix to be deprecated. 4. Recommended Option Lifetimes Configuration Values * ND_PREFERRED_LIMIT: 2700 seconds (45 minutes) * ND_VALID_LIMIT: 5400 seconds (90 minutes) RATIONALE: * These values represent a trade-off among a number of factors, including responsiveness and possible impact on the battery life of connected devices [RFC7772]. * ND_PREFERRED_LIMIT is set according to the recommendations in [RFC7772] forRouter Lifetime,the "Router Lifetime", following the rationale from Section 3.2 of [RFC8978]. * ND_VALID_LIMIT is set to 2 * ND_PREFERRED_LIMIT to provide some additional leeway before configuration information is finally discarded by thehost.hosts. 5. IANA Considerations This document has no IANA actions. 6. Security Considerations This document discusses a problem that mayarisearise, e.g., in scenarios where dynamic IPv6 prefixes are employed, and it proposes improvements toCustomer Edge RoutersCE routers [RFC7084] to mitigate the problem for residential or small office scenarios. It does not introduce new security issues; thus, the same security considerations as for [RFC4861], [RFC4862], [RFC7084], and [RFC8415] apply. 7. References 7.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <https://www.rfc-editor.org/info/rfc2119>. [RFC4191] Draves, R. and D. Thaler, "Default Router Preferences and More-Specific Routes", RFC 4191, DOI 10.17487/RFC4191, November 2005, <https://www.rfc-editor.org/info/rfc4191>. [RFC4861] Narten, T., Nordmark, E., Simpson, W., and H. Soliman, "Neighbor Discovery for IP version 6 (IPv6)", RFC 4861, DOI 10.17487/RFC4861, September 2007, <https://www.rfc-editor.org/info/rfc4861>. [RFC4862] Thomson, S., Narten, T., and T. Jinmei, "IPv6 Stateless Address Autoconfiguration", RFC 4862, DOI 10.17487/RFC4862, September 2007, <https://www.rfc-editor.org/info/rfc4862>. [RFC7772] Yourtchenko, A. and L. Colitti, "Reducing Energy Consumption of Router Advertisements", BCP 202, RFC 7772, DOI 10.17487/RFC7772, February 2016, <https://www.rfc-editor.org/info/rfc7772>. [RFC7844] Huitema, C., Mrugalski, T., and S. Krishnan, "Anonymity Profiles for DHCP Clients", RFC 7844, DOI 10.17487/RFC7844, May 2016, <https://www.rfc-editor.org/info/rfc7844>. [RFC8106] Jeong, J., Park, S., Beloeil, L., and S. Madanapalli, "IPv6 Router Advertisement Options for DNS Configuration", RFC 8106, DOI 10.17487/RFC8106, March 2017, <https://www.rfc-editor.org/info/rfc8106>. [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, <https://www.rfc-editor.org/info/rfc8174>. [RFC8415] Mrugalski, T., Siodelski, M., Volz, B., Yourtchenko, A., Richardson, M., Jiang, S., Lemon, T., and T. Winters, "Dynamic Host Configuration Protocol for IPv6 (DHCPv6)", RFC 8415, DOI 10.17487/RFC8415, November 2018, <https://www.rfc-editor.org/info/rfc8415>. 7.2. Informative References [6MAN-SLAAC-RENUM] Gont, F., Zorz, J., and R. Patterson, "Improving the Robustness of Stateless Address Autoconfiguration (SLAAC) to Flash Renumbering Events", Work in Progress, Internet- Draft, draft-ietf-6man-slaac-renum-02, 19 January 2021, <https://datatracker.ietf.org/doc/html/draft-ietf-6man- slaac-renum-02>. [RFC7084] Singh, H., Beebee, W., Donley, C., and B. Stark, "Basic Requirements for IPv6 Customer Edge Routers", RFC 7084, DOI 10.17487/RFC7084, November 2013, <https://www.rfc-editor.org/info/rfc7084>. [RFC8978] Gont, F., Žorž, J., and R. Patterson, "Reaction of IPv6 Stateless Address Autoconfiguration (SLAAC) to Flash- Renumbering Events", RFC 8978, DOI 10.17487/RFC8978, March 2021, <https://www.rfc-editor.org/info/rfc8978>. Acknowledgments The authors would like to thank Owen DeLong, Philip Homburg, Erik Kline, and Ted Lemon for their valuable help in improving this document via successive detailed reviews. The authors would like to thank Mikael Abrahamsson, Luis Balbinot, Brian Carpenter, Tim Chown, Lorenzo Colitti, Alejandro D'Egidio, Gert Doering, Fernando Frediani, Guillermo Gont, Steinar Haug, Nick Hilliard, Lee Howard, Christian Huitema, Sheng Jiang, Benjamin Kaduk, Suresh Krishnan, Warren Kumari, Albert Manfredi, Olorunloba Olopade, Jordi Palet Martinez,Richard Patterson,Pete Resnick, Michael Richardson, Mark Smith, Job Snijders, Sander Steffann, Tarko Tikan, Ole Troan, Loganaden Velvindron, Éric Vyncke, Robert Wilton, Timothy Winters, Christopher Wood, and Chongfeng Xie for providing valuable comments on earlier draft versions of this document. Fernando would also like to thank Brian Carpenter who, over the years, has answered many questions and provided valuable comments that have benefited his protocol-related work. Authors' Addresses Fernando Gont SI6 Networks 7mo Piso Segurola y Habana 4310 Villa Devoto Ciudad Autonoma de Buenos Aires Argentina Email: fgont@si6networks.com URI: https://www.si6networks.com Jan Zorz 6connect Email: jan@6connect.com Richard Patterson Sky UK Email: richard.patterson@sky.uk Bernie VolzCisco Systems, Inc. 300 Beaver Brook Rd Boxborough, MA 01719Individual Contributor 116 Hawkins Pond Road Center Harbor, NH 03226 United States of America Email:volz@cisco.combevolz@gmail.com