PCP Working Group | M. Boucadair |
Internet-Draft | France Telecom |
Intended status: Standards Track | R. Penno |
Expires: February 05, 2013 | D. Wing |
Cisco | |
August 6, 2012 |
DHCP Options for the Port Control Protocol (PCP)
draft-ietf-pcp-dhcp-04
This document specifies DHCP (IPv4 and IPv6) options to configure hosts with Port Control Protocol (PCP) Server names. The use of DHCPv4 or DHCPv6 depends on the PCP deployment scenario.
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 RFC 2119 [RFC2119].
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 February 05, 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.
This document defines DHCPv4 [RFC2131] and DHCPv6 [RFC3315] options which can be used to provision PCP Server [I-D.ietf-pcp-base] names.
In order to make use of these options, this document assumes appropriate name resolution means (e.g., Section 6.1.1 of [RFC1123]) are available on the host client.
The use of DHCPv4 or DHCPv6 depends on the PCP deployment scenarios.
This document makes use of the following terms:
Both IP Address and Name DHCP options have been considered in early stages of this specification. This flexibility aims to let service providers to make their own engineering choices and use the convenient option according to their deployment context. Nevertheless, DHC WG's position is this flexibility has some drawbacks such as inducing errors (See Section 7 of [I-D.ietf-dhc-option-guidelines]). Therefore, only the Name option is maintained within this document.
This document defines an option to carry a name rather than an IP address. This choice is motivated by operational considerations: In particular, some Service Providers are considering two levels of redirection:
Distinct operational teams are responsible for each of the above mentioned levels. A clear separation between the functional perimeter of each team is a sensitive task for the maintenance of the offered services. Regional teams will require to introduce new resources (e.g., new PCP-controlled devices such as Carrier Grade NATs (CGNs, [I-D.ietf-behave-lsn-requirements])) to meet an increase of customer base. Operations related to the introduction of these new devices (e.g., addressing, redirection, etc.) are implemented locally. Having this regional separation provides flexibility to manage portions of network operated by dedicated teams. This two-level redirection can not be met by the IP Address option.
In addition to the operational considerations:
This DHCPv6 option conveys a domain name to be used to retrieve the IP addresses of PCP Server(s). Appropriate name resolution queries should be issued to resolve the conveyed name.
The format of the DHCPv6 PCP Server option is shown in Figure 1.
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTION_PCP_SERVER | Option-length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | : PCP Server Domain Name(s) : | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 1: PCP Server Name DHCPv6 Option
To discover a PCP Server [I-D.ietf-pcp-base], the DHCPv6 client MUST include an Option Request Option (ORO) requesting the DHCPv6 PCP Server Name option as described in Section 22.7 of [RFC3315] (i.e., include OPTION_PCP_SERVER on its OPTION_ORO).
If the DHCPv6 client receives an OPTION_PCP_SERVER option from the DHCPv6 server, it extracts the Name(s) conveyed in the OPTION_PCP_SERVER option and proceeds to validate it.
Once each Name conveyed in the OPTION_PCP_SERVER option is validated, the DHCPv6 client MUST follow the procedure specified in Section 6.
The PCP Server Name DHCPv4 option can be used to configure a name to be used by the PCP Client to contact a PCP Server. The format of this option is illustrated in Figure 2.
Code Length PCP Server Domain Name +-----+-----+-----+-----+-----+-----+-----+-- | TBA | n | s1 | s2 | s3 | s4 | s5 | ... +-----+-----+-----+-----+-----+-----+-----+--
Figure 2: PCP Server Name DHCPv4 Option
The description of the fields is as follows:
[RFC3396] MUST be used if the PCP Server Name option exceeds the maximum DHCPv4 option size of 255 octets.
DHCPv4 client expresses the intent to get OPTION_PCP_SERVER by specifying it in Parameter Request List Option [RFC2132].
If the DHCPv4 client receives an OPTION_PCP_SERVER option from the DHCPv4 server, it extracts the Name(s) conveyed in the option and proceeds to validating it.
Once each Name conveyed in the OPTION_PCP_SERVER option is validated, the DHCPv4 client MUST follow the procedure specified in Section 6.
This section specifies the behavior to be followed by the PCP Client to contact its PCP Server(s) when receiving one or several PCP Names. This section is not specific to DHCP; it is applicable to any mechanism that configures server names.
Multiple Names may be configured to a PCP Client in some deployment contexts such as multi-homing. It is out of scope of this document to enumerate all deployment scenarios which require multiple Names to be configured.
Each configured Name is passed to the name resolution library (e.g., Section 6.1.1 of [RFC1123] or [RFC6055]) to retrieve the corresponding IP address(es) (IPv4 or IPv6). Then, the PCP Client MUST follow the procedure specified in Section 6.2 to contact its PCP Server(s).
It is RECOMMENDED to associate a validity lifetime (e.g., TTL of DNS record if the Name is resolved using DNS) with any address resulting from resolving the PCP Server Name when stored in a local name resolution cache. Considerations on how to flush out a local cache are out of the scope of this document.
A host may have multiple network interfaces (e.g, 3G, WiFi, etc.); each configured differently. Each PCP Server learned MUST be associated with the interface via which it was learned.
This section specifies the behavior to be followed by the PCP Client to contact its PCP Server(s) when receiving one or several PCP Names:
The discovery procedure may result in a PCP Client instantiating multiple mappings maintained by distinct PCP Servers. The decision to use all these mappings or delete some of them is deployment-specific. Only the client can decide whether all the mappings are needed or only a subset of them.
The PCP Client initializes its retransmission timer, RETRY_TIMER, to 2 seconds. The PCP Client sends its PCP message to the PCP Server and waits 2 seconds for a response. If no response is received, it doubles the value of RETRY_TIMER, sends another (identical) PCP message and waits 2*RETRY_TIMER. This procedure is repeated three (3) times, doubling the value of RETRY_TIMER each time. If no response is received after four (4) attempts, the PCP Client tries with the next IP address in its list of PCP Server addresses. If it has exhausted its list, the procedure is repeated every fifteen minutes until the PCP request is successfully answered. If, when sending PCP requests the PCP Client receives an ICMP error (e.g., port unreachable, network unreachable) it SHOULD immediately try the next IP address in the list. Once the PCP Client has successfully received a response from a PCP Server address on that interface, it sends subsequent PCP requests to that same server address until that PCP Server becomes non-responsive, which causes the PCP client to attempt to re-iterate the procedure starting with the first PCP Server address on its list.
The following sub-sections provide three examples to illustrate the procedure.
For all these examples, let's suppose pcpserver-x, pcpserver-y and pcpserver-z are configured as PCP Names.
Let's also suppose:
* IPx1 and IPx2 are returned for pcpserver-x; IPx1 is not reachable. * IPy1 and IPy2 are returned for pcpserver-y; IPy1 is reachable * IPz1 and IPz2 are returned for pcpserver-z; IPz1 is reachable
The procedure to contact the PCP Servers is as follows:
* Send PCP requests to all servers: IPx1, IPy1 and IPz1 * Responses are received from IPy1 and IPz1 but not from IPx1 - The request is re-sent to IPx1 - If no response is received after four attempts, the request is sent to IPx2
Now, if the following conditions are made:
* IPx1 and IPx2 are returned for pcpserver-x; IPx1 is not reachable. * IPy1 and IPy2 are returned for pcpserver-y; IPy1 is reachable * IPz1 and IPz2 are returned for pcpserver-z; IPz1 is not reachable
The procedure to contact the PCP Servers lead to the following:
* Send PCP requests to all servers: IPx1, IPy1 and IPz1 * A response is received from IPy1 but not from IPx1 and IPz1 - the requests are re-sent to IPx1 and IPz1 - If no response is received after four attempts, the request is then sent to IPx2 and IPz2
Let's suppose now that:
* IPx1 and IPx2 are returned for pcpserver-x; IPx1 is not reachable. * IPy1 and IPy2 are returned for pcpserver-y; IPy1 is not reachable * IPz1 and IPz2 are returned for pcpserver-z; IPz1 is not reachable
The procedure to contact the PCP Servers is as follows:
* Send PCP requests to all servers: IPx1, IPy1 and IPz1 * No answer is received for all requests - the requests are re-sent to IPx1, IPy1 and IPz1 - If no response is received after four attempts, the request is then sent to IPx2, IPy2 and IPz2
In some deployment contexts, the PCP Server may be reachable with an IPv4 address but DHCPv6 is used to provision the PCP Client. In such scenarios, a plain IPv4 address or an IPv4-mapped IPv6 address can be configured to reach the PCP Server.
A Dual-Stack host may receive OPTION_PCP_SERVER via both DHCPv4 and DHCPv6. The content of these OPTION_PCP_SERVER options may refer to the same or distinct PCP Servers. This is deployment-specific and as such it is out of scope of this document.
The security considerations in [RFC2131], [RFC3315] and [I-D.ietf-pcp-base] are to be considered.
Authors of this document request the following DHCPv6 option code:
Option Name | Value |
---|---|
OPTION_PCP_SERVER | TBA |
Authors of this document request the following DHCPv4 option code:
Option Name | Value |
---|---|
OPTION_PCP_SERVER | TBA |
Many thanks to B. Volz, C. Jacquenet, R. Maglione, D. Thaler, T. Mrugalski, T. Lemon and M. Wasserman for their review and comments.
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. |
[RFC3315] | Droms, R., Bound, J., Volz, B., Lemon, T., Perkins, C. and M. Carney, "Dynamic Host Configuration Protocol for IPv6 (DHCPv6)", RFC 3315, July 2003. |
[RFC2131] | Droms, R., "Dynamic Host Configuration Protocol", RFC 2131, March 1997. |
[RFC2132] | Alexander, S. and R. Droms, "DHCP Options and BOOTP Vendor Extensions", RFC 2132, March 1997. |
[RFC3396] | Lemon, T. and S. Cheshire, "Encoding Long Options in the Dynamic Host Configuration Protocol (DHCPv4)", RFC 3396, November 2002. |
[I-D.ietf-pcp-base] | Wing, D, Cheshire, S, Boucadair, M, Penno, R and P Selkirk, "Port Control Protocol (PCP)", Internet-Draft draft-ietf-pcp-base-13, July 2011. |