IKEv2 Optional SA&TS Payloads in Child Exchange
Huawei Technologies
Divyashree Techno Park, Whitefield
Bangalore
Karnataka
560066
India
sandeepkampati@huawei.com
Huawei Technologies
101 Software Avenue, Yuhuatai District
Nanjing
Jiangsu
China
william.panwei@huawei.com
Aiven
paul.wouters@aiven.io
Mavenir Systems Pvt Ltd
Manyata Tech Park
Bangalore
Karnataka
India
bharath.meduri@mavenir.com
China Mobile
32 Xuanwumen West Street, West District
Beijing
100053
China
chenmeiling@chinamobile.com
Sandelman Software Works
mcr+ietf@sandelman.ca
Security
IPSECME Working Group
Internet-Draft
This document describes a method for reducing the size of the Internet Key Exchange version 2 (IKEv2) CREATE_CHILD_SA exchanges used for rekeying of the IKE or Child SA by replacing the SA and TS payloads with a Notify Message payload.
Reducing size and complexity of IKEv2 exchanges is especially useful for low power consumption battery powered devices.
About This Document
Status information for this document may be found at .
Discussion of this document takes place on the
ipsec Working Group mailing list (),
which is archived at .
Source for this draft and an issue tracker can be found at
.
Introduction
The Internet Key Exchange protocol version 2 (IKEv2) is used to negotiate Security Association (SA) parameters for the IKE SA and the Child SAs.
Cryptographic key material for these SAs have a limited lifetime before it needs to be refreshed, a process referred to as "rekeying".
IKEv2 uses the CREATE_CHILD_SA exchange to rekey either the IKE SA or the Child SAs.
When rekeying, a full set of negotiation parameters are exchanged.
However, most of these parameters will be the same as before, and some of these parameters MUST not change.
For example, the Traffic Selector (TS) negotiated for the new Child SA MUST cover the Traffic Selectors negotiated for the old Child SA.
And in practically all cases, a new Child SA does not need to cover a wider set of Traffic.
In the rare case where this would be needed, either a standard rekey could be used or a new Child SA could be negotiated followed by a deletion of the replaced Child SA.
Similarly, IKEv2 states that the cryptographic parameters negotiated for rekeying SHOULD NOT be different.
This means that the security properties of the IKE or Child SA in practise do not change during a typical rekey.
This document specifies a method to omit these parameters and replace them with a single Notify Message declaring that all these parameters are identical to the originally negotiated parameters.
Large scale IKEv2 gateways such as Evolved Packet Data Gateway (ePDG) in 4G networks or Centralized Radio Access Network (cRAN/Cloud) gateways in 5G networks typically support more than 100,000 IKE/IPsec connections.
At any point in time, there will be hundreds or thousands of IKE SAs and Child SAs that are being rekeyed.
This takes a large amount of bandwidth and CPU power and any protocol simplification or bandwidth reducing would result in a significant resource saving.
For Internet of Things (IoT) devices which utilize low power consumption technology, reducing the size of the CREATE_CHILD_SA exchange for rekeying reduces its power consumption, as sending bytes over the air is usually the most power consuming operation of such a device.
Reducing the CPU operations required to verify the rekey exchanges parameters will also save power and extend the lifetime for these devices.
When using identical parameters for the IKE SA or Child SA rekey, the SA and TS payloads can be omitted thanks to the optimization defined in this document.
For an IKE SA rekey, instead of the (large) SA payload, only a Key Exchange (KE) payload and a new
Notify Type payload with the new SPI are required.
For a Child SA payload, instead of the SA or TS payloads, only an optional nonce payload (when using PFS) and a new Notify Type payload with the new SPI are needed.
This makes the rekey exchange packets much smaller and the peers do not need to verify that the SA or TS parameters are compatible with the old SA parameters.
Conventions Used in This Document
Requirements Language
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 when, and only when, they
appear in all capitals, as shown here.
Negotiation of Support for OPTIMIZED REKEY
To indicate support for the optimized rekey negotiation, the initiator includes the OPTIMIZED_REKEY_SUPPORTED notify payload in the IKE_AUTH exchange request.
During this initial key request, the entire SA and TA payloads are included as normal.
A responder that supports the optimized rekey exchange includes the OPTIMIZED_REKEY_SUPPORTED notify payload in its response.
Note that the notify indicates support for optimized rekey for both IKE and Child SAs.
A responder that does not support the optimized rekey exchange processes the SA and TA payloads as normal, and does not include the new Notify.
As per regular IKEv2 processing, a responder that does not recognize this new Notify, MUST ignore the notify.
Responders may have been administratively configured with the optimization turned off for local reasons.
The absense of the Notify indicates to the initiator that the optimization is not available, and normal, full rekey should be done.
When a peer wishes to rekey an IKE SA or Child SA, it MAY use the optimized rekey method during the CREATE_CHILD_SA exchange.
If both peers have exchanged OPTIMIZED_REKEY_SUPPORTED notifies, peers SHOULD use the optimized rekey method for rekeys.
Non-optimized, regular rekey requests MUST always be accepted.
The IKE_AUTH message exchange in this case is shown below:
<-- HDR, SK {IDr, [CERT,] AUTH,
SAr2, TSi, TSr,
N(OPTIMIZED_REKEY_SUPPORTED)}
]]>
Optimized Rekey of the IKE SA
The initiator of an optimized rekey request sends a CREATE_CHILD_SA payload with the OPTIMIZED_REKEY notify payload containing the new Security Parameter Index (SPI) for the new IKE SA.
It omits the SA payload.
The responder of an optimized rekey request replies with an included OPTIMIZED_REKEY notify with its new IKE SPI and also omits the SA payload.
Both parties send their nonce and KE payloads just as they would do for a regular IKE SA rekey.
Using the old SPI from the IKE header and the two new SPIs respectively from the initiator and responder's OPTIMIZED_REKEY payloads, both parties can perform the IKE SA rekey operation.
The CREATE_CHILD_SA message exchange in this case is shown below:
<-- HDR, SK {N(OPTIMIZED_REKEY,newSPIr),
Nr, KEr}
]]>
Optimized Rekey of Child SAs
The initiator of an optimized rekey request sends a CREATE_CHILD_SA payload with the OPTIMIZED_REKEY notify payload containing the new Security Parameter Index (SPI) for the new Child SA.
It omits the SA and TS payloads.
If the current Child SA was negotiated with Perfect Forward Secrecy (PFS), a KEi payload MUST be included as well.
If no PFS was negotiated for the current Child SA, a KEi payload MUST NOT be included.
The responder of an optimized rekey request performs the same process.
It includes the OPTIMIZED_REKEY notify with its new IKE SPI and omits the SA and TS payloads. Depending on the PFS negotiation of the current Child SA, the responder includes a KEr payload.
Both parties send their nonce payloads just as they would do for a regular Child SA rekey.
Using the old SPI from the REKEY_SA payload and the two new SPIs respectively from the initiator and responder's OPTIMIZED_REKEY payloads, both parties can perform the Child SA rekey operation.
The CREATE_CHILD_SA message exchange in this case is shown below:
<-- HDR, SK {N(OPTIMIZED_REKEY,newSPIr),
Nr, [KEr,]}
]]>
Payload Formats
OPTIMIZED_REKEY_SUPPORTED Notify
The OPTIMIZED_REKEY_SUPPORTED Notify Message type notification is used by the initiator and responder to indicate their support for the optimized rekey negotiation.
- Protocol ID (1 octet) - MUST be 0.
- SPI Size (1 octet) - MUST be 0, meaning no SPI is present.
- Notify Message Type (2 octets) - MUST be set to the value TBD1.
This Notify Message type contains no data.
The Critical bit MUST be 0.
A non-zero value MUST be ignored.
OPTIMIZED_REKEY Notify
The OPTIMIZED_REKEY Notify Message type is used to perform an optimized IKE SA or Child SA rekey.
- Protocol ID (1 octet) - For an IKE SA rekey, this field MUST contain (1).
For Child SAs, this field MUST contain either (2) to indicate AH or (3) to indicate ESP.
- SPI Size (1 octet) - MUST be 8 when rekeying an IKE SA. MUST be 4 when rekeying a Child SA.
- Notify Message Type (2 octets) - MUST be set to the value TBD2.
- SPI (4 octets or 8 octets) - Security Parameter Index.
The new SPI.
The Critical bit MUST be 1. A value of 0 MUST be ignored.
IANA Considerations
This document defines two new Notify Message Types in the "IKEv2 Notify Message Types - Status Types" registry.
IANA is requested to assign codepoints in this registry.
Operational Considerations
Some implementations allow sending rekey messages with a different set of Traffic Selectors or cryptographic parameters in response to a configuration update.
IKEv2 states this SHOULD NOT be done.
Whether or not optimized rekeying is used, a configuration change that changes the Traffic Selectors or cryptographic parameters MUST NOT use the optimized rekey method.
It SHOULD also not use a regular rekey method but instead start an entire new IKE and Child SA negotiation with the new parameters.
Security Considerations
The optimized rekey removes sending unnecessary new parameters that originally would have to be validated against the original parameters.
In that sense, this optimization enhances the security of the rekey process by reducing the complexity and code required.
Acknowledgments
Special thanks to Valery Smyslov and Antony Antony.
Normative References
Key words for use in RFCs to Indicate Requirement Levels
In many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.
Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words
RFC 2119 specifies common key words that may be used in protocol specifications. This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.
Internet Key Exchange Protocol Version 2 (IKEv2)
This document describes version 2 of the Internet Key Exchange (IKE) protocol. IKE is a component of IPsec used for performing mutual authentication and establishing and maintaining Security Associations (SAs). This document obsoletes RFC 5996, and includes all of the errata for it. It advances IKEv2 to be an Internet Standard.