RFC 4304

Extended Sequence Number (ESN) Addendum to IPsec Domain of Interpretation (DOI) for Internet Security Association and Key Management Protocol (ISAKMP)

πŸ“… published December 2005, from ietf

Network Working Group RFC 4304 ✨ Extended Sequence Number (ESN) Addendum to IPsec DOI for ISAKMP πŸŽ€

okay bestie, let's get into it πŸ’– This one is by Stephen Kent of BBN Technologies πŸ¦‹, filed in December 2005, and it's a Standards Track doc πŸ‘‘. It's an addendum to the IPsec Domain of Interpretation for ISAKMP, and it does not obsolete anything and does not update anything πŸ’…. It's a brand-new add-on, no drama.

Status of This Memo 🌸

okay so this one is an Internet standards track protocol for the Internet community 🫢. It's asking for discussion and suggestions for improvements, and you should check the "Internet Official Protocol Standards" (STD 1) for the current standardization state and status of this protocol πŸ“š. Distribution of this memo is unlimited, so share away πŸ’œ.

Copyright (C) The Internet Society (2005) ✨.

Abstract 🧚

ngl the whole point here is replay detection 😭. The IP Security Authentication Header (AH) and Encapsulating Security Payload (ESP) protocols use a sequence number to catch replays πŸ”. This doc extends the IPsec DOI for ISAKMP so you can negotiate whether an AH or ESP security association uses the traditional 32-bit sequence numbers or the extended (64-bit) sequence numbers (ESNs) πŸ“. Iconic energy ✨.

1. Introduction πŸŽ€

So AH and ESP both have an option for extended (64-bit) sequence numbers πŸ’…. Why do we want it? Because it lets you send huge amounts of data at high speed over an IPsec Security Association without having to rekey just to dodge running out of sequence number space πŸ”₯. This doc adds what the IPsec DOI for ISAKMP [DOI] needs so you can negotiate the ESN option πŸ¦‹.

The keywords MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL, when they show up in this document, are to be read as described in RFC 2119 [Bra97] πŸ’œ. Those capitalized words are the ones that really matter, so read them like they're underlined in red πŸ™ˆ.

2. IPsec Security Association Attribute 🌸

This SA attribute is used in Phase II of an Internet Key Exchange Protocol (IKE) negotiation πŸ”. The attribute type is Basic (B) ✨. How it gets encoded is defined in the base ISAKMP specification [ISAKMP]. Attributes that are basic MUST NOT be encoded as variable, so don't even try πŸ™…β€β™€οΈ. For more on attribute encoding in the IPsec DOI, check [IKE] πŸ“–. And every restriction listed in [IKE] also applies to the IPsec DOI and to this addendum πŸ’–.

Attribute Type πŸ¦‹

          class                        value           type
   ---------------------------------------------------------
   Extended (64-bit) Sequence Number    11              B

Class Values πŸ“

This class says the Security Association will be using 64-bit sequence numbers πŸ’…. (See [AH] and [ESP] for a description of extended (64-bit) sequence numbers.)

   RESERVED                0
   64-bit Sequence Number  1

3. Attribute Negotiation πŸ”₯

Okay, so if an implementation gets a defined IPsec DOI attribute (or attribute value) that it doesn't support, it SHOULD send an ATTRIBUTES-NOT-SUPPORT, and the security association setup MUST be aborted πŸ™ˆ.

Wait, also: if an implementation receives any attribute value other than the one for 64-bit sequence numbers, the security association setup MUST be aborted πŸ’€.

4. Security Considerations πŸ’€

This memo is about the Internet Key Exchange protocol [IKE], which combines ISAKMP [ISAKMP] and Oakley [OAKLEY] to derive cryptographic keying material in a secure and authenticated way πŸ”. Specific discussion of the various security protocols and transforms in this document lives in the associated base documents and the cipher references πŸ“š.

The addition of the ESN attribute does not change the underlying security characteristics of IKE πŸ’…. But when you use ESNs with ESP, it's super important to use an encryption mode that stays secure when very large volumes of data are encrypted under one key 😭. So, for example, Data Encryption Standard (DES) in Cipher Block Chaining (CBC) mode would NOT be suitable for use with the ESN 🚫, because no more than 2^32 blocks should be encrypted under a single DES key in that mode πŸ’€. Similarly, the integrity algorithm used with ESP or AH should be secure relative to the number of packets being protected πŸ›‘οΈ. To avoid potential security problems from algorithm limits, the SA lifetime MAY be set to limit how much data gets protected with a single key, before you hit the 2^64 packet limit that ESN imposes 🧚.

5. IANA Considerations 🌈

This document contains a "magic" number to be maintained by the IANA ✨. No additional class values will be assigned for this attribute πŸ™…β€β™€οΈ. The IANA has allocated an IPsec Security Attribute value for "Attribute Type" πŸŽ€, and you can find it under the heading "value" in the table in Section 2 πŸ’–.

Acknowledgements 🫢

The author would like to thank the members of the IPsec working group πŸ’œ. The author also acknowledges Karen Seo for her help editing this spec 🌸.

Normative References πŸ“š

[Bra97]  Bradner, S., "Key words for use in RFCs to Indicate
         Requirement Level", BCP 14, RFC 2119, March 1997.

[AH]     Kent, S., "IP Authentication Header", RFC 4302, December
         2005.

[DOI]    Piper, D., "The Internet IP Security Domain of
         Interpretation for ISAKMP", RFC 2407, November 1998.

[ESP]    Kent, S., "IP Encapsulating Security Payload (ESP)", RFC
         4303, December 2005.

[IKE]    Harkins, D. and D. Carrel, "The Internet Key Exchange
         (IKE)", RFC 2409, November 1998.

[ISAKMP] Maughan, D., Schertler, M., Schneider, M., and J. Turner,
         "Internet Security Association and Key Management Protocol
         (ISAKMP)", RFC 2408, November 1998.

Informative References 🧚

[OAKLEY] Orman, H., "The OAKLEY Key Determination Protocol", RFC
         2412, November 1998.

Author's Address πŸ¦‹

Stephen Kent BBN Technologies 10 Moulton Street Cambridge, MA 02138 USA

Phone: +1 (617) 873-3988 EMail: kent@bbn.com

Copyright (C) The Internet Society (2005).

This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights.

This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE πŸ’€.

Intellectual Property 🌸

The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document, or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79 πŸ“–.

Copies of IPR disclosures made to the IETF Secretariat, and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification, can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr πŸ”—.

The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org πŸ’Œ.

Acknowledgement πŸ’–

Funding for the RFC Editor function is currently provided by the Internet Society ✨.

πŸ“¦ where this page comes from