RFC 8168
DHCPv6 Prefix-Length Hint Issues
DHCPv6 Prefix-Length Hint Issues ๐
okay bestie, this is RFC 8168 ๐, a Standards Track doc from the IETF (ISSN 2070-1721). It was written by T. Li, C. Liu, and Y. Cui from Tsinghua University, and it's dated May 2017 ๐ธ. The title block doesn't list any RFCs it obsoletes or updates โจ.
Abstract โจ
okay so DHCPv6 Prefix Delegation lets a client include a prefix-length hint in its IA_PD option to say what size prefix it'd prefer ๐ . The catch is that the spec isn't clear on how the client and server should act in different situations involving that hint ๐ค. This doc sums up the existing problems with the prefix-length hint and gives guidance on what the client and server could do in those situations ๐ฆ.
Status of This Memo ๐
This is an Internet Standards Track document.
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 Internet Standards is available in Section 2 of RFC 7841.
Info about the current status of this document, any errata, and how to send feedback on it can be found at http://www.rfc-editor.org/info/rfc8168 ๐.
Copyright Notice ยฉ๏ธ
Copyright (c) 2017 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 (http://trustee.ietf.org/license-info) as in effect on the date of publication of this document. Please read these documents carefully, because 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 they're provided without warranty as described in the Simplified BSD License ๐ซถ.
Table of Contents ๐๏ธ
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Requirements Language . . . . . . . . . . . . . . . . . . . . 3
3. Problem Description and Proposed Solutions . . . . . . . . . 3
3.1. Creation of Solicit Message . . . . . . . . . . . . . . . 3
3.2. Receipt of Solicit Message . . . . . . . . . . . . . . . 4
3.3. Receipt of Advertise Message . . . . . . . . . . . . . . 5
3.4. Creation of Renew/Rebind Message . . . . . . . . . . . . 6
3.5. Receipt of Renew/Rebind Message . . . . . . . . . . . . . 6
3.6. General Recommendation . . . . . . . . . . . . . . . . . 8
4. Security Considerations . . . . . . . . . . . . . . . . . . . 8
5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 8
6. Normative References . . . . . . . . . . . . . . . . . . . . 8
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 9
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 9
1. Introduction ๐ธ
okay so DHCPv6 Prefix Delegation [RFC3633] lets a client include a prefix-length hint in the message it sends to the server, basically saying "this is the prefix size I'd love" ๐ . The client sends that hint as an IA_PD Prefix Option (IAPREFIX option), tucked inside an IA_PD option, with the "IPv6 prefix" field set to zero and the "prefix-length" field set to a non-zero value ๐ง. Servers are totally free to ignore the hint depending on their policy ๐.
BUT some clients can't function (or only work in a degraded state) if they get a prefix with a different length than they asked for ๐ญ. Like, if the client asks for a /56 and the server gives it a /64, the client might not be able to split the prefix across all its interfaces, and that's giving major problems ๐. For other hints, like asking for an explicit address, it's less of a big deal, since it just helps a client that wants to keep using what it used last time ๐. The point is the prefix-length hint directly affects what the client can actually do, so it should be given more consideration โจ.
[RFC3633] is unclear about how the client and server should act in different situations involving the prefix-length hint ๐คทโโ๏ธ. From the client side, it should be able to use the hint to signal its real-time need to the server, and it should be able to handle prefixes with lengths that differ from the hint ๐. This document gives guidance on what a client should do in different situations so it can operate properly. From the server side, the server is free to ignore the prefix-length hints depending on server policy. However, when the server has a policy for considering the hint, this document explains how the server should handle the hint in different situations ๐.
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. Problem Description and Proposed Solutions ๐ฅ
3.1. Creation of Solicit Message ๐
Problem:
okay so the Solicit message is how a client asks servers for prefixes and other configuration parameters ๐จ. The client might want a different prefix length because its configuration changed, or it might just want the same prefix again after a reboot ๐. It might also prefer a prefix of a specific length in case the requested prefix isn't available ๐ค. The server could decide whether to give the client its preferred prefix based on server policy, but the client should be able to signal its real-time need to the server ๐ .
The server usually has a record of the prefix it gave the client during its most recent interaction ๐๏ธ. The best way to make sure the client gets a completely new delegated prefix is to send a new IAID (Identity Association IDentifier) in the IA_PD (Identity Association for Prefix Delegation). BUT that would mean the client device needs persistent storage, because rebooting the device would make the client use the original IAID in the IA_PD ๐ฉ.
Solution:
When the client prefers a prefix of a specific length from the server, the client MUST send a Solicit message using the same IAID in the IA_PD, include the preferred prefix-length value in the "prefix-length" field of the IAPREFIX option, and set the "IPv6 prefix" field to zero. This tells the server that the client prefers a prefix of the specified length, regardless of what it received before ๐ฏ.
When the client wants the same prefix back from the server, it MUST send a Solicit message using the same IAID in the IA_PD, include the previously delegated prefix value in the "IPv6 prefix" field of the IAPREFIX option, and include the length of the prefix in the "prefix-length" field. This tells the server that the client wants the same prefix back ๐ซถ.
When the client wants the same prefix back from the server and would also like to accept a prefix of a specified length in case the requested prefix isn't available, the client MUST send a Solicit message using the same IAID in the IA_PD, include the previously delegated prefix in one IAPREFIX option, and include the prefix-length hint in another IAPREFIX option. There's no requirement about the order of the two IAPREFIX options ๐ฆ.
3.2. Receipt of Solicit Message ๐ฌ
Problem:
[RFC3633] lets a client include a prefix-length hint in the Solicit message to signal its preference to the server. How the server should handle that hint is unclear ๐ตโ๐ซ. The client might want a different prefix length because of configuration changes, or it might just want the same prefix again after a reboot. The server should interpret these cases differently ๐ง .
Lots of servers are configured to only provide prefixes of specific lengths to the client. For example, if the client requested a /54 but the server can only provide /30, /48, and /56. So how should these servers decide which prefix to give the client based on the prefix-length hint? ๐ค
Solution:
When a Solicit message arrives, if the client included only a prefix-length hint in the message, the server SHOULD first check its prefix pool for a prefix with a length matching the prefix-length hint value, regardless of the prefix record from previous interactions with the client. If the server doesn't have a prefix with a length matching the prefix-length hint value, then the server SHOULD provide the prefix whose length is shorter and closest to the prefix-length hint value ๐.
If the client included a specific prefix value in the Solicit message, the server SHOULD check its prefix pool for a prefix matching the requested prefix value. If the requested prefix isn't available in the server's prefix pool, and the client also included a prefix-length hint in the same IA_PD option, then the server SHOULD check its prefix pool for a prefix with a length matching the prefix-length hint value. If the server doesn't have a prefix with a length matching the prefix-length hint value, the server SHOULD provide the prefix whose length is shorter and closest to the prefix-length hint value ๐ .
If the server won't assign any prefixes to any IA_PDs in a subsequent Request from the client, the server MUST send an Advertise message to the client, as described in Section 11.2 of [RFC3633] ๐ฎ.
more to come in part 2 ๐ฆ (section 3.3 is up next and it's giving main character energy) ๐
3.3. Receipt of Advertise Message โจ
Problem:
okay so the server might not be able to honor the prefix-length hint ๐ฅบ because of server policy or because its prefix pool is running on fumes ๐ซ . If the Advertise message comes back with a prefix length that's different from what the client asked for in its Solicit, the big question is whether the client should just take what it got or keep asking for the length it wants ๐ค. Some clients literally can't function with a different length, but if they ignore Advertise and keep soliciting for their preferred length, they might get stuck in the DHCP process forever ๐. And should the client also ignore other config stuff like available addresses? ๐ง
Solution:
If the client can actually use the prefixes in the Advertise messages even though they're not the hint length, it SHOULD choose the shortest prefix length that's closest to the hint ๐ . It SHOULD keep requesting its preferred prefix in later DHCPv6 messages, as defined in Section 3.4 of this document ๐.
If the client sent a Solicit with only IA_PDs and can't use the prefixes in the Advertise messages, it MUST ignore those Advertise messages and keep sending Solicit messages until it gets its preferred prefix ๐. To avoid traffic congestion, it MUST send Solicit messages at defined intervals, as specified in [RFC7083] ๐ธ.
If the client also asked for other stateful config options, like IA_NAs, and can't use the prefixes in the Advertise messages, the client SHOULD accept those other stateful options and keep requesting the desired IA_PD prefix in later DHCPv6 messages, as specified in [RFC7550] ๐ซถ.
3.4. Creation of Renew/Rebind Message ๐
Problem:
servers might not be able to give a prefix that's equal to or shorter than the hint ๐ฌ. If the client decided to use the prefix the server gave even though it's longer than the hint, but still prefers the hint length from its Solicit, there should be some way for it to say so during Renew/Rebind ๐ซฃ. For example, if the client asked for a /60 and got a /64, it should be able to tell the server during Renew/Rebind that it still prefers a /60 ๐ง. That's so the server can check whether its pool has the client's preferred prefix right then. [RFC3633] isn't totally clear on whether the client is allowed to put a prefix-length hint in the Renew/Rebind message ๐คทโโ๏ธ.
Solution:
During Renew/Rebind, if the client prefers a prefix length that's different from the prefix it's currently using, the client SHOULD send the Renew/Rebind message with the same IA_PD and include two IAPREFIX options: one with the currently delegated prefix and one with the prefix-length hint ๐ฆ. This extends the lifetime of the prefix the client is using now, gets the prefix it prefers, and lets it go through a graceful switchover โจ.
If the server can't provide the newly requested prefix but can extend the lifetime of the old one, the client SHOULD keep using the old prefix ๐.
3.5. Receipt of Renew/Rebind Message ๐
Problem:
the prefix the client prefers might show up in the server's prefix pool during Renew/Rebind, even though it wasn't available during Solicit ๐. That could be due to a server config change, or because some other client stopped using it ๐.
The question is whether the server should remember the prefix-length hint the client sent in its Solicit and check it during Renew/Rebind to see if it can give the length the client wanted ๐ง . That means the server would have to keep extra info about each client ๐ฎโ๐จ. There's also the chance the client changed its mind about the length in the meantime, so the remembered hint might not match what it wants now ๐.
Instead of making the server remember anything, the client could just include the prefix-length hint in the Renew/Rebind message ๐ฏ. [RFC3633] is unclear about what the server should do if the client includes a hint there, and whether the server could hand out a different prefix in that case ๐ซ .
Solution:
When a Renew/Rebind arrives and the client's IA_PD includes both an IAPREFIX option with the delegated prefix value and an IAPREFIX option with a prefix-length hint value, the server SHOULD check whether it could extend the lifetime of the original delegated prefix, and whether it has any available prefix matching the prefix-length hint (or determine the closest possible one to the hint) within its limits ๐.
If the server assigned the prefix included in the IA_PD to the client, the server SHOULD do one of the following, depending on its policy ๐ :
- Extend the lifetime of the original delegated prefix.
- Extend the lifetime of the original delegated prefix and assign a new prefix of the requested length.
- Mark the original delegated prefix as invalid by giving it
0lifetimes, and assign a new prefix of the requested length. This avoids the complexity of handling multiple delegated prefixes, but it may break all the existing connections of the client ๐. - Assign the original delegated prefix with
0preferred-lifetime, a specific non-zero valid-lifetime depending on actual requirements, and assign a new prefix of the requested length. This lets the client finish up existing connections with the original prefix and use the new prefix for new connections ๐ธ. - Don't include the original delegated prefix in the Reply message, and assign a new prefix of the requested length. The original prefix stays valid until its lifetime expires, which avoids sudden renumbering on the client ๐ซถ.
If the server doesn't know the client's bindings (for example, a different server receives the message during Rebind), the server SHOULD ignore the original delegated prefix and try to assign a new prefix of the requested length ๐งญ.
It's unnecessary for the server to remember the prefix-length hint the client requested during Solicit ๐ . The client's preference for the prefix length might have changed during that time, so the prefix-length hint in the Renew message is what the client wants at that moment ๐ฏ.
3.6. General Recommendation ๐
the recommendation for these issues is that a client which wants (at least) to have a delegated prefix of a specific length should always include an IAPREFIX option with just the prefix-length hint, in addition to any IAPREFIX options it has already included for each IA_PD, in any Solicit, Request, Renew, and Rebind messages it sends ๐ฌ. A server is free to ignore the hint, but servers that do not choose to ignore it should attempt to assign a prefix of the hint length (or assign the next closest length that does not exceed the hint) if one is available ๐. Whether a server favors the hint or avoids a renumbering event is a matter of server policy ๐ซง.
4. Security Considerations ๐
This document gives guidance on how clients and servers interact with regard to the DHCPv6 prefix-length hint. Security considerations in DHCP are described in Section 23 of [RFC3315]. Security considerations regarding DHCPv6 prefix delegation are described in Section 15 of [RFC3633] ๐ก๏ธ.
5. IANA Considerations ๐
This document does not require any IANA actions ๐ฅฐ.
6. 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,
http://www.rfc-editor.org/info/rfc2119. - [RFC3315] Droms, R., Ed., Bound, J., Volz, B., Lemon, T., Perkins, C., and M. Carney, "Dynamic Host Configuration Protocol for IPv6 (DHCPv6)", RFC 3315, DOI 10.17487/RFC3315, July 2003,
http://www.rfc-editor.org/info/rfc3315. - [RFC3633] Troan, O. and R. Droms, "IPv6 Prefix Options for Dynamic Host Configuration Protocol (DHCP) version 6", RFC 3633, DOI 10.17487/RFC3633, December 2003,
http://www.rfc-editor.org/info/rfc3633. - [RFC7083] Droms, R., "Modification to Default Values of SOL_MAX_RT and INF_MAX_RT", RFC 7083, DOI 10.17487/RFC7083, November 2013,
http://www.rfc-editor.org/info/rfc7083. - [RFC7550] Troan, O., Volz, B., and M. Siodelski, "Issues and Recommendations with Multiple Stateful DHCPv6 Options", RFC 7550, DOI 10.17487/RFC7550, May 2015,
http://www.rfc-editor.org/info/rfc7550. - [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017,
http://www.rfc-editor.org/info/rfc8174.
Acknowledgements ๐
Many thanks to Qi Sun, Bernie Volz, Ole Troan, Sunil Gandhewar, Marcin Siodelski, Ted Lemon, Roni Even, Benoit Claise, Mirja Kuehlewind, Kathleen Moriarty, Eric Rescorla, Alvaro Retana, Susan Hares, and Hilarie Orman for their review and comments ๐ซถโจ.
Authors' Addresses ๐ง
Tianxiang Li
Tsinghua University
Beijing 100084
China
Phone: +86-18301185866
Email: peter416733@gmail.com
Cong Liu
Tsinghua University
Beijing 100084
China
Phone: +86-10-6278-5822
Email: gnocuil@gmail.com
Yong Cui
Tsinghua University
Beijing 100084
China
Phone: +86-10-6260-3059
Email: yong.cui.thu@gmail.com
๐ฆ where this page comes from
- ietf: rfc8168 2017-05
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms