PCP Working Group | M. Boucadair |
Internet-Draft | France Telecom |
Intended status: Standards Track | T. Reddy |
Expires: May 29, 2014 | Cisco |
November 25, 2013 |
Retrieving the Capabilities of a PCP-controlled Device
draft-boucadair-pcp-capability-03
This document extends Port Control Protocol (PCP) with the ability to retrieve the capabilities of PCP-controlled device: CAPABILITY Option.
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 May 29, 2014.
Copyright (c) 2013 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 extends the base PCP [RFC6887] with a new feature to discover the capabilities of a PCP-controlled device. Retrieving the capabilities of a PCP-controlled device would allow to avoid error, provide a hint why some applications fails, help select the OpCode to issue, etc.
This option can be elected to be defined as a new OpCode.
The CAPABILITY option (Code: TBA, Figure 1) is used by a PCP Server to indicate to a requesting PCP Client the capabilities it supports with regards to port forwarding operations.
One single Capability option is conveyed in the same PCP response message even if several functions are co-located in the same PCP-controlled device (e.g., NAT44 and NAT64, NAT44 and ports set assignment capability, etc.).
This option, when received from a PCP Server, is used by a PCP Client to constraint the content of its requests and therefore avoid errors.
0 1 2 3 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CAPABILITY | Reserved | Length=16 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |A| Capability | +-+ | : : +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ This Option: Option Name: PCP Capabilities Option (CAPABILITY) Number: TBA (IANA) Purpose: Retrieve the capabilities of a PCP-controlled device Valid for Opcodes: ANNOUNCE, MAP, PEER Length: 16 May appear in: both request and response Maximum occurrences: None
Figure 1: Capability option
A-bit when set (i.e., 1) indicates the PCP Server supports authentication. If this bit is set to 0, is indicates plain PCP is supported.
The Capability Field is encoded in 127 bits. Each bit in the Capability bit mask is used to represent the PCP-controlled device capability. Several bits can be set if several functions are co-located in the same device. The following values for the Capability field are:
This section specifies the behavior of the PCP Client and the PCP Server to handle the CAPABILITY Option.
The PCP Server MAY be configured to return the CAPABILITY Option even if it is not included in the request.
Once the PCP Client is configured with its PCP Server(s), it MAY issue an ANNOUNCE OpCode which enclose a CAPABILITY Option. Sending the ANNOUNCE OpCode and the CAPABILITY Option allows the PCP Client to determine whether the PCP Server is alive and also to retrieve its capabilities. Based on the received capabilities, the PCP Client may decide to tune its requests (e.g., Section 4) and decide whether all PCP Servers need to be contacted in parallel or only a subset of them should be contacted.
Upon receipt of a PCP request from a PCP Client requiring the PCP Server to enforce an operation beyond its capabilities, the PCP Server MAY return an error code together with the CAPABILITY option.
When a new PCP Server joins the network then it MAY send an ANNOUNCE OpCode with its capabilities (i.e., CAPABILITY Option).
PCP Client __________ +-----------+ +------+ +------+ / \ +-----------+ |Application|___| NPTv6|___| FW |____| Internet |___|Application| | Client | | | | | | | | Server | +-----------+ +------+ +------+ \__________/ +-----------+
Figure 2: NPTv6 and FW not collocated with PCP server Capability
+-----+ ______|NPTv6|___________ / +-----+ \ | | | +-----+ +-----------+ +------+ | | PRR | |Application|___| IPv6 |______| SP Network +-----+ |PCP Client| | FW | | | +-----------+ +------+ | +------+ | | NAT64| +-----------+ +-------+ | | + | |PCP Client |___|A+P NAT|_____| | FW | +-----------+ +-------+ | +-----+ +------+ \______|NPTv6|___________/ +-----+
Figure 3: Multiple PCP-controlled devoce
Below are provided examples of the CAPABILITY Option usage:
Security considerations discussed in [RFC6887] must be considered.
The following PCP Option Code is to be allocated in the optional-to-process range (the registry is maintained in http://www.iana.org/assignments/pcp-parameters/pcp-parameters.xml#options):
A sub-registry is required to track the set of capabilities of PCP-controlled devices.
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. |
[RFC6887] | Wing, D., Cheshire, S., Boucadair, M., Penno, R. and P. Selkirk, "Port Control Protocol (PCP)", RFC 6887, April 2013. |
[RFC6145] | Li, X., Bao, C. and F. Baker, "IP/ICMP Translation Algorithm", RFC 6145, April 2011. |
[RFC6146] | Bagnulo, M., Matthews, P. and I. van Beijnum, "Stateful NAT64: Network Address and Protocol Translation from IPv6 Clients to IPv4 Servers", RFC 6146, April 2011. |