Port Control Protocol (PCP) Parameters

Created

  • 2012-11-21

Last Updated

  • 2016-05-11

Available Formats


PCP Opcodes

Expert(s)

  • Dan Wing, Stuart Cheshire

Reference

Available Formats

RangeRegistration Procedures
0-31, 127Standards Action
32-63Specification Required
ValueDescriptionReference
0ANNOUNCERFC 6887
1MAPRFC 6887
2PEERRFC 6887
3AUTHENTICATIONRFC 7652
4-63Unassigned
64-95ReservedRFC 6887
96-126Reserved for Private UseRFC 6887
127ReservedRFC 6887

PCP Result Codes

Expert(s)

  • Dan Wing, Stuart Cheshire

Reference

Available Formats

RangeRegistration Procedures
0-127, 255Standards Action
128-191Specification Required
ValueNameDescriptionReference
0SUCCESSSuccess.RFC 6887
1UNSUPP_VERSIONThe version number at the start of the PCP Request header is not recognized by this PCP server. This is a long lifetime error. RFC 6887 describes PCP version 2.RFC 6887
2NOT_AUTHORIZEDThe requested operation is disabled for this PCP client, or the PCP client requested an operation that cannot be fulfilled by the PCP server's security policy. This is a long lifetime error.RFC 6887
3MALFORMED_REQUESTThe request could not be successfully parsed. This is a long lifetime error.RFC 6887
4UNSUPP_OPCODEUnsupported Opcode. This is a long lifetime error.RFC 6887
5UNSUPP_OPTIONUnsupported Option. This error only occurs if the Option is in the mandatory-to-process range. This is a long lifetime error.RFC 6887
6MALFORMED_OPTIONMalformed Option (e.g., appears too many times, invalid length). This is a long lifetime error.RFC 6887
7NETWORK_FAILUREThe PCP server or the device it controls are experiencing a network failure of some sort (e.g., has not obtained an External IP address). This is a short lifetime error.RFC 6887
8NO_RESOURCESRequest is well-formed and valid, but the server has insufficient resources to complete the requested operation at this time. For example, the NAT device cannot create more mappings at this time, is short of CPU cycles or memory, or is unable to handle the request due to some other temporary condition. The same request may succeed in the future. This is a system-wide error, different from USER_EX_QUOTA. This can be used as a catch- all error, should no other error message be suitable. This is a short lifetime error.RFC 6887
9UNSUPP_PROTOCOLUnsupported transport protocol, e.g. SCTP in a NAT that handles only UDP and TCP. This is a long lifetime error.RFC 6887
10USER_EX_QUOTAThis attempt to create a new mapping would exceed this subscriber's port quota. This is a short lifetime error.RFC 6887
11CANNOT_PROVIDE_EXTERNALThe suggested external port and/or external address cannot be provided. This error MUST only be returned for: * MAP requests that included the PREFER_FAILURE Option (normal MAP requests will return an available external port); * MAP requests for the SCTP protocol (PREFER_FAILURE is implied); * PEER requests. See Section 13.2 of RFC 6887 for processing details. The error lifetime depends on the reason for the failure.RFC 6887
12ADDRESS_MISMATCHThe source IP address of the request packet does not match the contents of the PCP Client's IP Address field, due to an unexpected NAT on the path between the PCP client and the PCP-controlled NAT or firewall. This is a long lifetime error.RFC 6887
13EXCESSIVE_REMOTE_PEERSThe PCP server was not able to create the filters in this request. This result code MUST only be returned if the MAP request contained the FILTER Option. See Section 13.3 for processing information. This is a long lifetime error.RFC 6887
14INITIATIONThe client includes this PCP result code in its request to the server for authentication.RFC 7652
15AUTHENTICATION_REQUIREDThis error response is sent to the client if EAP authentication is required.RFC 7652
16AUTHENTICATION_FAILEDThis error response is sent to the client if EAP authentication failed.RFC 7652
17AUTHENTICATION_SUCCEEDEDThis success response is sent to the client if EAP authentication succeeded.RFC 7652
18AUTHORIZATION_FAILEDThis error response is sent to the client if EAP authentication succeeded but authorization failed.RFC 7652
19SESSION_TERMINATEDThis PCP result code indicates to the partner that the PA session must be terminated.RFC 7652
20UNKNOWN_SESSION_IDThis error response is sent from the PCP server if there is no known PA session associated with the Session ID sent in the PA request or common PCP request from the PCP client.RFC 7652
21DOWNGRADE_ATTACK_DETECTEDThis PCP result code indicates to the client that the server detected a downgrade attack.RFC 7652
22AUTHENTICATION_REQUESTThe server indicates to the client that the PA message contains an EAP request.RFC 7652
23AUTHENTICATION_REPLYThe client indicates to the server that the PA message contains an EAP response.RFC 7652
24THIRD_PARTY_ID_UNKNOWNThe provided identifier in a THIRD_PARTY_ID option is unknown/unavailable to the PCP server. This is a long lifetime error.RFC 7843
25THIRD_PARTY_MISSING_OPTIONThis error occurs if both THIRD_PARTY and THIRD_PARTY_ID options are expected in a request but one option is missing. This is a long lifetime error.RFC 7843
26UNSUPP_THIRD_PARTY_ID_LENGTHThe received option length is not supported. This is a long lifetime error.RFC 7843
27-191Unassigned
192-254Reserved for Private UseRFC 6887
255ReservedRFC 6887

PCP Options

Expert(s)

  • Dan Wing, Stuart Cheshire

Reference

Note

Values 0-127 are mandatory to process, and 128-255 are optional to process.

Available Formats

RangeRegistration Procedures
0-63, 127-191, 255Standards Action
64-95, 192-223Specification Required
ValueNamePurposeValid for OpcodesLengthMay Appear inMaximum OccurrencesReference
0ReservedRFC 6887
1THIRD_PARTYIndicates the MAP or PEER request is for a host other than the host sending the PCP Option.MAP, PEER16 octetsRequest. May appear in response only if it appeared in the associated request.1RFC 6887
2PREFER_FAILUREIndicates that the PCP server should not create an alternative mapping if the suggested external port and address cannot be mapped.MAP0Request. May appear in response only if it appeared in the associated request.1RFC 6887
3FILTERSpecifies a filter for incoming packets.MAP20 octetsRequest. May appear in response only if it appeared in the associated request.As many as fit within maximum PCP message size.RFC 6887
4NONCESee Section 5.3 of RFC 7652.AUTHENTICATION4 octetsRequest and response.1RFC 7652
5AUTHENTICATION_TAGSee Section 5.4 of RFC 7652.MAP, PEER, ANNOUNCEvariableRequest and response.1RFC 7652
6PA_AUTHENTICATION_TAGSee Section 5.5 of RFC 7652.AUTHENTICATIONvariableRequest and response.1RFC 7652
7EAP_PAYLOADSee Section 5.6 of RFC 7652.AUTHENTICATIONvariableRequest and response.1RFC 7652
8PRFSee Section 5.7 of RFC 7652.AUTHENTICATION4 octetsRequest and response.As many as fit within maximum PCP message size.RFC 7652
9MAC_ALGORITHMSee Section 5.8 of RFC 7652.AUTHENTICATION4 octetsRequest and response.As many as fit within maximum PCP message size.RFC 7652
10SESSION_LIFETIMESee Section 5.9 of RFC 7652.AUTHENTICATION4 octetsResponse.1RFC 7652
11RECEIVED_PAKSee Section 5.10 of RFC 7652.AUTHENTICATION4 octetsRequest and response.1RFC 7652
12ID_INDICATORSee Section 5.11 of RFC 7652.AUTHENTICATIONvariableResponse.1RFC 7652
13THIRD_PARTY_IDTogether with the THIRD_PARTY option, the THIRD_PARTY_ID option identifies a third party for which a request for an external IP address and port is made.MAP, PEERVariable; maximum 1016 octets.Request. May appear in response only if it appeared in the associated request.1RFC 7843
14-95Unassigned
96-126Reserved for Private UseRFC 6887
127ReservedRFC 6887
128DESCRIPTIONUsed to associate a text description with a mapping.MAP, PEERvariable, maximum 1016 octets.Request. May appear in response only if it appeared in the associated request.1RFC 7220
129PREFIX64Learn the prefix used by the NAT64 to build IPv4-converted IPv6 addresses. This is used by a host for local address synthesis (e.g., when an IPv4 address is present in referrals).MAP, ANNOUNCEvariablerequest, response1 for a request. As many as fit within the maximum PCP message size for a response.RFC 7225
130PORT_SETTo map sets of ports.MAP5 bytesRequest and response.1RFC 7753
131-191Unassigned
192CHECKPOINT_REQUIREDIndicate if an entry needs to be check-pointed.MAP, PEER0Request and response.1RFC 7767
193-223Unassigned
224-254Reserved for Private UseRFC 6887
255ReservedRFC 6887