Test IKEv2.EN.R.1.1.5.2: Invalid Cookies Part A: (ADVANCED)
To verify an IKEv2 device handles IKE_SA_INIT request with an invalid cookie data.
* [RFC 4306] - Sections 2.6 and 3.10.1 * [RFC 4718] - Sections 2.2, 2.4 and 2.5
* 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, N(COOKIE")) | | (Judgement #2) | | V V
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 difference value than 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: (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 a cookie data unexpected 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 an IKE Header which contains zero as IKE_SA Responder's SPI field and a Notify payload of type COOKIE.
Step 5: Judgment #2 The NUT transmits an IKE_SA_INIT response including an IKE Header which contains zero as IKE_SA Responder's SPI field and a Notify payload of type COOKIE with a new cookie data.
* None.