Test IKEv2.EN.R.1.1.5.1: Cookies Part A: Notify payload of type Cookie Format (ADVANCED)
To verify an IKEv2 device transmits IKE_SA_INIT response with a Notify payload of type COOKIE.
* [RFC 4306] - Sections 2.6 and 3.10.1 * [RFC 4718] - Sections 2.2 and 2.4
* Network Topology Connect the devices according to the Common Topology. * Configuration In each part, configure the devices according to the Common Configuration. * Pire-Sequence and Cleanup Sequence IKEv2 on the NUT is disabled after each part.
NUT TN1 (End-Node) (End-Node) | | |<-------------------| IKE_SA_INIT request (HDR, SAi1, KEi, Ni) | | (Packet #1) | ... | ... |<-------------------| IKE_SA_INIT request (HDR, SAi1, KEi, Ni) | | (Packet #2) | | |------------------->| IKE_SA_INIT response (HDR, N(COOKIE)) | | (Judgement #1) | | |<-------------------| IKE_SA_INIT request (HDR, N(COOKIE), SAi2, KEi, Ni) | | (Packet #3) |------------------->| IKE_SA_INIT response (HDR, SK {IDr, AUTH, N, SAr2, TSi, TSr}) | | (Judgement #2) | | V V
N: USE_TRANSPORT_MODE
Packet #1 See Common Packet #1 Packet #2 See Common Packet #1 Packet #3 See below
* Packet #3: IKE_SA_INIT request packet
IPv6 Header Same as the Common Packet #1 UDP Header Same as the Common Packet #1 IKEv2 Header >Other fields are same as the Common Packet #1 Next Payload 41 (N) N Payload Next Payload 33 (SA) Critical 0 Reserved 0 Payload Length Any Protocol ID 0 SPI Size 0 Notify Message Type COOKIE (16390) Notification Data The same value as COOKIE in IKE_SA_INIT response sent by NUT SA Payload Same as the Common Packet #1 KE Payload Same as the Common Packet #1 Ni, Nr Payload Same as the common packet #1
Part A: Notify payload of type Cookie Format (ADVANCED) 1. TN1 starts to negotiate with NUT by sending IKE_SA_INIT request. 2. TN1 transmits a large number of IKE_SA_INIT requests to the NUT. 3. Observe the messages transmitted on Link A. 4. After reception of IKE_SA_INIT response with a Notify payload of type COOKIE, TN1 transmits an IKE_SA_INIT request which includes a Notify payload of type COOKIE with the cookie data supplied by NUT 5. Observe the messages transmitted on Link A.
Part A Step 3: Judgment #1 The NUT transmits an IKE_SA_INIT response including a IKE Header which contains zero as IKE_SA Responder's SPI field and a Notify payload of type COOKIE containing 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 72 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 cookie data.
Step 5: Judgment #2 The NUT transmits an IKE_SA_INIT response including "ENCR_3DES", "PRF_HMAC_SHA1", "AUTH_HMAC_SHA1_96" and "D-H group 2" as proposed algorithms.
* None.