Internet-Draft | EHC extension | November 2024 |
Migault, et al. | Expires 25 May 2025 | [Page] |
This document describes an IKEv2 extension for Header Compression to agree on Attributes for Rules Generation. This extension defines the necessary registries for the ESP Header Compression Profile (EHCP) Diet-ESP.¶
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 https://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 25 May 2025.¶
Copyright (c) 2024 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 (https://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 Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
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.¶
The ESP Header Compression Profile (EHCP) [I-D.ietf-ipsecme-diet-esp] minimizes the overhead associated with ESP by compressing both the ESP header and additional fields within the secured packet. EHCP utilizes Attributes for Rules Generation (AfRG) that are specified for each Security Association (SA). Certain AfRG have already been established during the SA negotiation process through IKEv2. This extension facilitates the agreement on the remaining AfRG through IKEv2.¶
As illustrated in Figure 1, an initiator intending to utilize the Header Compression Profile (HCP) informs its peer by sending a HCP_SUPPORTED Notify Payload during the IKE_AUTH and CREATE_CHILD_SA exchanges. The HCP_SUPPORTED includes a list of Proposal payloads, each comprising an EHCP Name along with a set of Attributes for Rules Generation (AfRG)[I-D.ietf-ipsecme-diet-esp]. Any AfRG for which the initiator wishes to specify no limitations SHOULD be excluded, i.e., an AfRG is only sent if the sending peer wants the receiving peer to select a subset of the available values. A given AfRG MAY be repeated with different values in order to provide a list of acceptable values. A range of possible AfRG values MAY be indicated as well.¶
If a Proposal contains an unknown HCP Name, or any AfRG in a Proposal is unknown, then the entire Proposal must be discarded by the responder. If none of the received Proposals are deemed acceptable, the responder MAY choose to discard the HCP_SUPPORTED Notify Payload. Nevertheless, it is anticipated that the responder will provide an explanation for rejecting all HCP Proposals. If the reason pertains to an AfRG with an unacceptable value, the responder SHOULD reply with an HCP_UNSUPPORTED Notify Payload. This Notify Payload SHOULD include one or more acceptable Proposal Payloads to guide the initiator.¶
Conversely, if the receiver identifies a suitable Proposal, it will respond with an HCP_SUPPORTED Notify Payload that includes the chosen Proposal. In cases where the AfRG was not explicitly stated, the responder will provide the AfRG unless it defaults to a standard value. Each AfRG MUST NOT be mentioned more than one time. When multiple values are provided for a specific AfRG (either multiple values being provided or via a range of acceptable values), the responder MUST NOT provide more than one value. The Proposal MUST NOT contain any range of AfRG.¶
Upon receipt of an HCP_UNSUPPORTED Notify Payload, the initiator has the option to restart the CREATE_CHILD_SA exchange.¶
When the initiator receives the HCP_SUPPORTED Notify Payload, it will evaluate the Proposal to ensure that it aligns with the initial proposal and adheres to its policies prior to executing the HCP.¶
Figure 2 describes the HCP_SUPPORTED and HCP_UNSUPPORTED Notify Payload.¶
The fields Next Payload, Critical Bit, RESERVED, and Payload Length are defined in section 3.10 of [RFC7296].¶
set to zero.¶
set to zero.¶
Specifies the type of notification message. It is set to TBA1 for HCP_SUPPORTED and TBA2 for HCP_UNSUPPORTED¶
When sent by the Initiator, the HCP_SUPPORTED Notify Payload contains a list of Proposal payloads described in Figure 3. When sent by the responder the HCP_SUPPORTED Notify Payload contains a single Payload described in Figure 3.¶
The number identifying the Proposal.¶
The length in octets of the Proposal Data¶
A Proposal contains a set of parameters that are represented via Transform Attribute format [RFC7296], Section 3.3.5 and detailed further as described in Section 5.¶
Attributes for Rules Generation (AfRG) follow the same format as the Transform Attribute [RFC7296], Section 3.3.5 copied for convenience in Figure 4.¶
There are two types of AfRG: 1) AfRG that are specific to a given HCP and 2) generic AfRG.¶
This specification defines range_afrg_proposal as a Generic Attribute for Rules Generation to specify that a given AfRG can be selected within a range of values.¶
Designation: range_afrg_proposal¶
Has Associated Data: YES (AF=0)¶
Attribute Data: Let AfRG_min and AfRG_max be the minimum and maximum values of the proposed range, expressed following the Transform Attribute Payload format. The corresponding Attribute Data is the concatenation of AfRG_min and AfRG_max.¶
An HCP needs to register an HCP Name taken from Table 2 in Section 8.3, the specification that describes the operations of the EHCP, as well as the different AfRG. For each AfRG, the corresponding Attribute Type, the AF value, the Attribute Data and the Default Value MUST be specified.¶
This section defines the code points that are needed to agree on the AfRG between two IKEv2 peers as described in Section 6.¶
HCP Name: "Diet-ESP" as specified in Table 2, Section 8.3.¶
Specification : [I-D.ietf-ipsecme-diet-esp]¶
The following Attributes for Rules Generation are defined:¶
DSCP Compression/Decompression Action (CDA)¶
Designation: dscp_cda¶
Has Associated Data: YES (AF=0)¶
Attribute Data: DSCP CDA takes discrete values coded over one byte as described in DSCP CDA Value Registry (Table 4 in Section 8.5.1)¶
Default Value: the default value is set to "uncompress"¶
ECN Compression/Decompression Action (CDA)¶
Designation: ecn_cda¶
Has Associated Data: YES (AF=0)¶
Attribute Data: ECN CDA takes discrete values coded over one byte as described in the ECN CDA Value Registry (Table 5 in Section 8.5.2)¶
Default Value: the default value is set to "uncompress"¶
Flow Label Compression/Decompression Action (CDA)¶
Designation: flow_label_cda¶
Has Associated Data: YES (AF=0)¶
Attribute Data: Flow Label CDA takes discrete values coded over one byte as described in the Flow Label CDA Value Registry (Table 6 in Section 8.5.3)¶
Default Value: the default value is set to "uncompress"¶
OS or Network Bit Alignment¶
Designation: alignment¶
Has Associated Data: YES (AF=0)¶
Attribute Data: Byte Alignment takes discrete values coded over one byte as described in the Bit Alignment Value Registry (Table 7 in Section 8.5.4)¶
Default Value: the default value is set to "32 bit", which corresponds to the standard IPv6 bit alignment¶
Security Policy Index (SPI) Least Significant Bits (LSB)¶
Designation: esp_spi_lsb¶
Has Associated Data: YES (AF=0)¶
Attribute Data: SPI LSB designates the number of bits that are provided to infer the SPI. This number is between 0 and 32.¶
Default Value: the default value is 32, which is the size of the standard SPI in the standard ESP¶
Sequence Number (SN) Least Significant Bits (LSB)¶
IANA has allocated two values in the "IKEv2 Notify Message Types - Status Types" registry:¶
Value Notify Messages - Status Types ----------------------------------------- TBA1 HCP_SUPPORTED TBA2 HCP_UNSUPPORTED¶
This specification requests the IANA to create an IKEv2 Header Compression registry (see Section 8.3), as well as the necessary registries for the ESP Header Compression Profile Diet-ESP, that is the Attribute for Rules Generations (see Section 8.4) as well as, when required, the complementary specific AfRG Values associated with each AfRG (see Section 8.5).¶
All registries are "Specification Required".¶
Registry for Generic Attributes for Rules Generation. When Associated Data is set to YES, the AF bit of the corresponding Transform Attribute Payload is set to 0; otherwise it is set to 1. The AfRG Code Point mentioned here MUST NOT be reused by any Registries associated with any Profile and is shared by all profiles.¶
AfRG Code Point | Full Name | Designation | Has Associated Data | Reference |
---|---|---|---|---|
65535 | RANGE AfRG | range_afrg | YES | ThisRFC |
Value (1 Byte) | Designation | Reference |
---|---|---|
0 | Diet-ESP | ThisRFC |
1-255 | unallocated | - |
Registry for Attributes for Rules Generation for the ESP Header Compression Profile Diet-ESP. When Associated Data is set to YES, the AF bit of the corresponding Transform Attribute Payload is set to 0; otherwise it is set to 1.¶
AfRG Code Point | Full Name | Designation | Has Associated Data | Reference |
---|---|---|---|---|
0 | DSCP CDA | dscp_cda | YES | ThisRFC |
1 | ECN CDA | ecn_cda | YES | ThisRFC |
2 | Flow Label CDA | flow_label_cda | YES | ThisRFC |
3 | Alignment | alignment | YES | ThisRFC |
4 | SPI LSB | esp_spi_lsb | YES | ThisRFC |
5 | SN LSB | esp_spi_sn | YES | ThisRFC |
6 - 2^16-2 | unallocated | - | - | - |
Value | Designation | Reference |
---|---|---|
0 | uncompress | ThisRFC |
1 | lower | ThisRFC |
2 | sa | ThisRFC |
3-255 | unallocated | - |
Value | Designation | Reference |
---|---|---|
0 | uncompress | ThisRFC |
1 | lower | ThisRFC |
2-255 | unallocated | - |
Value | Designation | Reference |
---|---|---|
0 | uncompress | ThisRFC |
1 | lower | ThisRFC |
2 | generated | ThisRFC |
3 | zero | ThisRFC |
4-255 | unallocated | - |
Value | Designation | Reference |
---|---|---|
0 | 8 bit | ThisRFC |
1 | 16 bit | ThisRFC |
2 | 32 bit | ThisRFC |
3 | 64 bit | ThisRFC |
4-255 | unallocated | - |
The protocol defined in this document does not modify IKEv2.¶
Proposals may be expressed in various ways and a proposal may be expressed in a specific way so that its treatment overloads the receiver. The receiver needs to consider aborting the exchange when too much resource is required.¶