Dynamic Host Configuration (DHC) | J.B. Brzozowski |
Internet-Draft | Comcast Cable Communications |
Intended status: Informational | J.F. Tremblay |
Expires: March 09, 2013 | Videotron Ltd. |
J.C. Chen | |
Time Warner Cable | |
T.M. Mrugalski | |
ISC | |
September 07, 2012 |
DHCPv6 Redundancy Deployment Considerations
draft-ietf-dhc-dhcpv6-redundancy-consider-03
This document provides information for those wishing to use DHCPv6 to support their deployment of IPv6. In particular, it discusses the provision of semi-redundant DHCPv6 services.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http:/⁠/⁠datatracker.ietf.org/⁠drafts/⁠current/⁠.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on March 09, 2013.
Copyright (c) 2012 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) 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.
Redundancy and high availability for many components of IPv6 infrastructure are desirable and, in some deployments, mandatory. Unfortunately, for DHCPv6 there is currently no standards-based failover or redundancy protocol. An interim solution is to provide semi-redundant services: this document specifies an architecture by which this can be achieved.
DHCPv6 redundancy may be useful in a wide range of scenarios. Although the architecture suggested in this document is able to be used in a wide range of networks, just two deployment environments are discussed here: service provider and enterprise network. All other scenarios may be generalized to one of these two cases.
In the rest of the document, the following assumptions are made with regards to the existing DHCPv6 infrastructure, regardless of the environment being considered:
While the techniques described in this document provide some aspects of redundancy, it should be noted that complete redundancy will not be available until a DHCPv6 failover protocol is standardized. The requirements for such protocol are described in [I-D.ietf-dhc-dhcpv6-failover-requirements].
The same approaches discussed in this document can potentially be applied to prefix delegation [RFC3633]. One obvious drawback of using split prefix model for PD is that use of resources is doubled. It should be noted that such applicability remains theoretical and was not investigated thoroughly during work on this document. As such, the applicability of presented mechanisms to the prefix delegation is outside of scope of this document.
The service provider model represents cases where the network and end-user devices may be administered by separate entities.
The DHCPv6 clients include cable modems, customer gateways or home routers, and end-user devices: these are collectively referred to as Customer Premises Equipment (CPE). In some cases hosts may be configured directly using the service provider DHCPv6 infrastructure; in others, configuration may be via an intermediate router which is being configured by the provider DHCPv6 infrastructure. Either way, the service provider DHCPv6 infrastructure may be semi-redundant.
In discussing this environment, additional assumptions to those listed in Section 2 have been made:
The enterprise deployment environment covers cases where end-user devices are direct consumers of the configuration without any intermediate devices (as was the case with home routers used in the service provider environment). Although enterprise IPv6 environments quite often use or require DHCPv6 relay agents, the relays do not influence or process the configuration in any way and merely act as a transport mechanism.
The additional assumptions made for this model beyond those listed in Section 2 are:
Implementation of the architecture for semi-redundant DHCPv6 services using existing protocols places require the component DHCPv6 clients, relays, and servers to have certain capabilities. The following sections describe the requirements of such devices.
This interim architecture requires the DHCPv6 servers that are [RFC3315] compliant and support the necessary options. Essential to the architecture is support for stateful DHCPv6 and the DHCPv6 preference option [RFC3315]. For deployment scenarios where IPv6 prefix delegation is needed, DHCPv6 servers must support DHCPv6 prefix delegation as defined by [RFC3633]. Furthermore, the DHCPv6 servers must support [RFC3736] if stateless DHCPv6 is used.
DHCPv6 relay agents must be [RFC3315] compliant and must support the ability to relay DHCPv6 messages to more than one destination.
DHCPv6 clients are required to be compliant with [RFC3315] and support the necessary options required to support the solution depending on the mode of operations and desired behaviour:
At the time of writing, a standards-based DHCPv6 redundancy protocol is not available. In the interim solution presented here, existing DHCPv6 server implementations are used as-is to provide best effort, semi-redundant DHCPv6 services. The behavior of these services will, in part, be governed by the configuration of each of the servers. Various aspects of the DHCPv6 protocol [RFC3315] are used to yield the desired behaviour, although there is no inter-server or inter-process communication to coordinate DHCPv6 events and/or activities.
The solution does not impact on DHCPv4, so DHCP services for both IPv4 and IPv6 may operate simultaneously on the same physical server(s) or may operate on different ones.
This section defines three semi-redundant models. Although /64 prefixes are used throughout the following sections as examples, other prefix lengths may be used as well.
In the split prefixes model, each DHCPv6 server is configured with a unique, non-overlapping pool derived from the /64 prefix deployed for use within an IPv6 network. For example, distributing an allocated /64 such as 2001:db8:1:0001::/64 between two servers would require that it be split into two /65 pools, 2001:db8:1:0001:0000::/65 and 2001:db8:1:0001:8000::/65.
Both DHCPv6 servers are simultaneously active and operational, and each allocates IPv6 addresses from the corresponding pools per device class. The address allocation is governed largely through the use of the DHCPv6 preference option, so the server with the higher preference value is always preferred. Additional proprietary mechanisms can be used to further enforce the favouring of one DHCP server over another. An example of such a scenario is presented in Figure 1.
It is important to note that, over time, it is possible that bindings will be unevenly distributed amongst the DHCPv6 servers and no one server will be authoritative for all of them.
As defined in [RFC3315], a DHCPv6 ADVERTISE message with a preference option of 255 is an indicator to a DHCPv6 client to immediately begin a client-initiated message exchange by transmitting a REQUEST message to the server that sent the ADVERTISE. Alternatively, a DHCPv6 ADVERTISE message with no preference option (or one with a value less than 255) is an indicator to the client that it must wait for subsequent ADVERTISE messages before choosing the server to which is responds, as described in Section 17.1.2 of [RFC3315].
In the event of a DHCPv6 server failure it is desirable (but not essential) for a server other than the server that originally responded to be able to rebind the client's lease. Given the proposed architecture, the remaining active DHCPv6 server will have a different address pool configured, making it technically incorrect for the same to rebind the client in its current state. Ultimately, the rebinding will fail and the client will acquire a new binding from the pool configured in the active server.
To reduce the possibility that a client or some other element on the network will experience a disruption in service or access to relevant binding data, shorter values for T1, T2, valid, and preferred lifetimes can be used. The values for the last three can be adjusted or configured to minimize service disruption. Ideally, setting them equal (or nealy equal) can be used to trigger a DHCPv6 client to reacquire the IPv6 address, prefix, and or configuration information almost immediately after the rebinding fails. It is important to note however, that shorter values will create an additional load on the DHCPv6 servers.
While using a split prefix configuration model the dynamic updates to DNS [RFC2136] can be coordinated to ensure that the DNS is properly updated with the current binding information. Challenges arise with regards to the update of the PTR resource record for IPv6 addresses since the DNS information may need to be overwritten in a failure condition. The use of a split prefixes enables the differentiation of bindings and binding timing to determine which represents the current state. This becomes particularly important when DHCPv6 Leasequery [RFC5007] and/or DHCPv6 Bulk Leasequery [RFC5460] are used to determine lease or binding state.
Finally, a benefit of this scheme is that the use of separate pools per DHCPv6 server makes failure conditions more obvious and detectable.
+----------+ +-----------+ | Client 1 +-\ +--+ Server 1 | +----------+ \ | +-----------+ \ | \ | \ | +----------+ \ | +-----------+ | Client 2 +--------------+--| Server 2 | +----------+ / | +-----------+ . / . . / . . / . +----------+ / . +-----------+ | Client N +-/ .--| n+1 Server| +----------+ +-----------+ Server 1 ======== Prefix = 2001:db8:1:0:0::/64 Pool = 2001:db8:1:0:0::/65 Preference = 255 Server 2 ======== Prefix = 2001:db8:1:0:0::/64 Pool = 2001:db8:1:0:8000::/65 Preference = 0 Server n+1 ========== Prefix, pool, and preference would vary based on prefix definition
Split prefixes approach.
Figure 1
In the multiple prefix model, each DHCPv6 server is configured with a unique, non-overlapping prefix. A /64 pool equal to the prefix is configured on each server. For example, the 2001:db8:1:0000::/64 pool would be assigned to a single DHCPv6 server for allocation to clients equal to its parent prefix 2001:db8:1:0000::/64. The second DHCPv6 server could use 2001:db8:1:0001:::/64 as both pool and prefix. This would be repeated for each active DHCP server. An example of this scenario is presented in Figure 2.
The major difference between the split prefixes approach and the multiple unique prefixes one is that the latter does not require prefixes to be adjacent. In fact, the split prefixes approach can be considered a special case of the multiple unique prefixes approach.
This approach uses a unique prefix and ultimately pool per DHCPv6 server with the corresponding prefixes configured for use in the network. The corresponding network infrastructure must in turn be configured to use multiple prefixes on the interface(s) facing the DHCPv6 clients. The configuration is similar on all the servers, but a different prefix and a different preference is used for each DHCPv6 server.
This approach drastically increases the rate of consumption of IPv6 prefixes and also yields operational and management challenges related to the underlying network since a significantly higher number of prefixes need to be configured and routed. It also does not provide a clean migration path to the desired solution using a standards-based DHCPv6 redundancy or failover protocol (which of course, has yet to be specified).
The use of multiple unique prefixes provides benefits related to dynamic updates to DNS similar to those referred to in Section 6.1. The use of multiple unique prefixes enables the differentiation of bindings and binding timing to determine which represents the current state. This becomes particularly important when DHCPv6 Leasequery [RFC5007] and/or DHCPv6 Bulk Leasequery [RFC5460] are used to determine lease or binding state. The use of separate prefixes and pools per DHCPv6 server makes failure conditions more obvious and detectable.
+----------+ +-----------+ | Client 1 +-\ +--+ Server 1 | +----------+ \ | +-----------+ \ | \ | \ | +----------+ \ | +-----------+ | Client 2 +--------------+--| Server 2 | +----------+ / | +-----------+ . / . . / . . / . +----------+ / . +-----------+ | Client N +-/ .--| n+1 Server| +----------+ +-----------+ Server 1 ======== Prefix = 2001:db8:1:0000::/64 Pool = 2001:db8:1:0000::/64 Preference = 255 Server 2 ======== Prefix = 2001:db8:1:1000::/64 Pool = 2001:db8:1:1000::/64 Preference = 0 Server 3 ======== Prefix = 2001:db8:1:2000::/64 Pool = 2001:db8:1:2000::/64 Preference = [0..255)
Multiple unique prefix approach.
Figure 2
In the identical prefix model, each DHCPv6 server is configured with the same overlapping prefix and pool deployed for use within an IPv6 network. Distribution between two or more servers, for example, would require that the same /64 prefix and pool be configured on all DHCP servers. For example, the 2001:db8:1:0001:0000::/64 pool would be assigned to all the DHCPv6 servers for allocation to clients derived from the 2001:db8:1:0001::/64 pool. This would be repeated for each active DHCP server. An example of such a scenario is presented in Figure 3.
This approach uses the same prefix, length, and pool definition across multiple DHCPv6 servers: all other configuration parameters remain the same, with the exception of the DHCPv6 preference. Such an approach conceivably eases the migration of DHCPv6 services to fully support a standards based redundancy or failover protocol, once such solution becomes available. Similar to the split prefix architecture described above this approach does not place any additional addressing requirements on the network infrastructure.
The use of identical prefixes provides no benefit or advantage related to dynamic DNS updates, support of DHCPv6 Leasequery [RFC5007] or DHCPv6 Bulk Leasequery [RFC5460]. In this case all DHCP servers will use the same prefix and pool configurations making it less obvious that a failure condition or event has occurred.
+----------+ +-----------+ | Client 1 +-\ +--+ Server 1 | +----------+ \ | +-----------+ \ | \ | \ | +----------+ \ | +-----------+ | Client 2 +--------------+--| Server 2 | +----------+ / | +-----------+ . / . . / . . / . +----------+ / . +-----------+ | Client N +-/ .--| n+1 Server| +----------+ +-----------+ Server 1 ======== Prefix = 2001:db8:1:0000::/64 Pool = 2001:db8:1:0000::/64 Preference = 255 Server 2 ======== Prefix = 2001:db8:1:0000::/64 Pool = 2001:db8:1:0000::/64 Preference = 0 Server 3 ======== Prefix = 2001:db8:1:0000::/64 Pool = 2001:db8:1:0000::/64 Preference = [0..255)
Identical prefix approach.
Figure 3
The lack of interaction between DHCPv6 servers introduces a number of challenges related to the operations of the same service instances in a production environment. The following areas are of particular concern:
The DHCID resource record
[RFC4701] allows identification of the current owner of the specific DNS data that is the target of an update [RFC2136]. [RFC4704] specifies how DHCPv6 servers and/or client may perform updates. [RFC4703] provides a way to solve conflicts between clients. Although the [RFC4703] deals with most cases, it is still possible to leave abandoned resource records. Consider the following scenario: there are two independent servers, A and B. Server A assigns a lease to a client and updates the DNS with an AAAA record for the assigned address. When the client renews, server A is not available and server B assigns a different lease. The DNS is again updated, so now two AAAA resource records are present for the client: there is no indication as which of the two leases is active. If server A never recovers, its information may never be removed (although it should be noted that this case is somewhat similar to that of a single server crashing and leaving abandoned resource records).It is important to note that any exchange of available leases and synchronization between DHCPv6 servers is not possible until a redundancy or failover protocol is standardized or proprietary solutions become available.
This document does not require any actions from IANA.
Additional security considerations are created through the use of this interim architecture beyond what has been cited in Section 23 of [RFC3315]. In particular, Dynamic DNS update using the models defined in this document allows for the possibility of not removing abandoned DNS records, even when using conflict resolution mechanism defined in [RFC4703]. However, this is no worse than a case where a single deployed server crashes and its lease database cannot be recovered.
When using identical prefixes model, care must be taken to ensure that all servers use the same lease allocation procedure and are configured with the same policy. If this guidance is not followed, there is a risk of assignment of the same lease to two separate clients. In some cases that situation can be recovered by using Duplicate Address Detection (Neighbor Discovery) and DECLINE mechanism (DHCPv6).
Authors would like to thank Bernie Volz, Kim Kinnear, Ralph Droms, David Hankins, Chuck Anderson, Ted Lemon, Stephen Farrel, Pete McCann, Robert Sparks, Martin Stiemerling, Brian Haberman and Barry Leiba for their input and review.
Special thanks to Stephen Morris for his numerous spelling, grammar corrections and proof-reading.
This work has been partially supported by Department of Computer Communications (a division of Gdansk University of Technology) and the Polish Ministry of Science and Higher Education under the European Regional Development Fund, Grant No. POIG.01.01.02-00-045/09-00 (Future Internet Engineering Project).
[I-D.ietf-dhc-dhcpv6-failover-requirements] | Mrugalski, T and K Kinnear, "DHCPv6 Failover Requirements", Internet-Draft draft-ietf-dhc-dhcpv6-failover-requirements-01, July 2012. |