Revised Cookie Processing in the IKEv2 Protocol
draft-smyslov-ipsecme-ikev2-cookie-revised-00

Document Type Active Internet-Draft (individual)
Author Valery Smyslov 
Last updated 2020-10-28
Stream (None)
Intended RFC status (None)
Formats plain text pdf htmlized (tools) htmlized bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                         V. Smyslov
Internet-Draft                                                ELVIS-PLUS
Intended status: Standards Track                        October 28, 2020
Expires: May 1, 2021

            Revised Cookie Processing in the IKEv2 Protocol
             draft-smyslov-ipsecme-ikev2-cookie-revised-00

Abstract

   This document defines a revised processing of cookies in the Internet
   Key Exchange protocol Version 2 (IKEv2).  It is intended to solve a
   problem in IKEv2 when due to packets loss and reordering peers may
   erroneously fail to authenticate each other when cookies are used in
   the initial IKEv2 exchange.

Status of This Memo

   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 May 1, 2021.

Copyright Notice

   Copyright (c) 2020 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 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.

Smyslov                    Expires May 1, 2021                  [Page 1]
Internet-Draft     Revised Cookie Processing in IKEv2       October 2020

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Terminology and Notation  . . . . . . . . . . . . . . . . . .   2
   3.  Using Cookie in IKEv2 . . . . . . . . . . . . . . . . . . . .   3
   4.  Problem Description . . . . . . . . . . . . . . . . . . . . .   3
   5.  Revised Cookie Processing . . . . . . . . . . . . . . . . . .   6
     5.1.  Negotiation of Revised Cookie Processing  . . . . . . . .   6
     5.2.  Processing of REVISED_COOKIE Notification . . . . . . . .   7
     5.3.  Changes in AUTH Payload Calculation . . . . . . . . . . .   7
   6.  Security Considerations . . . . . . . . . . . . . . . . . . .   8
   7.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   9
   8.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .   9
   9.  Normative References  . . . . . . . . . . . . . . . . . . . .   9
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  10

1.  Introduction

   The Internet Key Exchange protocol Version 2 (IKEv2) described in
   [RFC7296] includes mechanism to defend against DoS attacks.  The
   mechanism is based on cookie which a responder can request an
   initiator to return in a subsequent request.  This allows the
   responder avoid creating state until it is sure that the initiator's
   IP address is not spoofed.  The cookie mechanism is optional and it
   is up to the responder whether to use it or not.

   When cookie mechanism is used in networks with high probability of
   packets loss and reordering, it is possible that peers end up with
   different views on whether cookies were used or not or which content
   the used cookie had.  Since cookie, if used, is a part of an IKEv2
   message that is included into calculation of authentication data by
   both peers, the different views leads to the situation when peers
   erroneously fail to authenticate each other.

   This specification revises processing of cookies in IKEv2 in such a
   way that peers supporting it exclude cookies from data to be
   authenticated.  This allows them to complete authentication even in
   the situation described above.

2.  Terminology and Notation

   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.

Smyslov                    Expires May 1, 2021                  [Page 2]
Internet-Draft     Revised Cookie Processing in IKEv2       October 2020
Show full document text