Title

  Test IKEv2.EN.I.1.1.5.1: Retrying IKE_SA_INIT request with a Notify payload of type COOKIE
  Part A: (ADVANCED)


Purpose

  To verify an IKEv2 device retries IKE_SA_INIT request using a Notify payload of type
  COOKIE.


References

  * [RFC 4306] - Sections 2.6 and 3.10.1
  * [RFC 4718] - Sections 2.2 and 2.4


Test Setup

  * Network Topology
      Connect the devices according to the Common Topology.
  * Configuration
      In each part, configure the devices according to the Common Configuration.
  * Pre-Sequence and Cleanup Sequence
      IKEv2 on the NUT is disabled after each part.


Procedure

   NUT                  TN1
(End-Node)           (End-Node)
    |                    |
    |------------------->| IKE_SA_INIT request (HDR, SAi1, KEi, Ni)
    |                    | (Judgement #1)
    |<-------------------| IKE_SA_INIT Response (HDR, N(COOKIE))
    |                    | (Packet #1)
    |                    |
    |------------------->| IKE_SA_INIT request (HDR, N(COOKIE), SAi1, KEi, Ni)
    |                    | (Judgement #2)
    |                    |
    V                    V
Packet #1 See below
Packet #1: IKE_SA_INIT request
IPv6 Header All fields are same as Common Packet #2
UDP Header All fields are same as Common Packet #2
IKEv2 Header IKE_SA Initiator's SPI The same value as corresponding
request's IKE_SA Initiator's SPI value
IKE_SA Responder's SPI 0
Next Payload 41(N)
Major Version 2
Minor Version 0
Exchange Type 34 (IKE_SA_INIT)
X (bits 0-2 of Flags) 0
I (bit 3 of Flags) 0
V (bit 4 of Flags) 0
R (bit 5 of Flags) 1
X (bits 6-7 Flags) 0
Message ID 0
Length any
N Payload Next Payload 0
Critical 0
Reserved 0
Payload Length any
Protocol ID 0
SPI Size 0
Notify Message Type COOKIE (16390)
Notification Data Cookie value
  Part A: (ADVANCED)
       1. NUT starts to negotiate with TN1 by sending IKE_SA_INIT request.
       2. Observe the messages transmitted on Link A.
       3. TN1 responds with an IKE_SA_INIT response including a Notify payload of type COOKIE
          to the NUT.
       4. Observe the messages transmitted on Link A.


Observable Result

  Part A
    Step 2: Judgment #1
      The NUT transmits an IKE_SA_INIT request including "ENCR_3DES",
      "PRF_HMAC_SHA1", "AUTH_HMAC_SHA1_96" and "D-H group 2" as proposed
      lgorithms.
  
    Step 4: Judgment #2
      The NUT transmits an IKE_SA_INIT request including a Notify payload of type COOKIE
      ontaining following values:
                           1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      ! Next Payload  !C!  RESERVED   !         Payload Length        !
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      !  Protocol ID  !   SPI Size    !      Notify Message Type      !
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      !                                                               !
      ~                Security Parameter Index (SPI)                 ~
      !                                                               !
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      !                                                               !
      ~                       Notification Data                       ~
      !                                                               !
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 21 Notify Payload Format
* A Next Payload field is set to SA Payload (33). * A Critical field is set to zero. * A RESERVED field is set to zero. * A Payload Length field is set to length of the current payload. * A SPI Size field is set to zero. * A Notify Message Type field is set to COOKIE (16390). * A Notification Data field is set to the TN1 supplied cookie data.


Possible Problems

  * None.