Test IKEv2.EN.R.1.1.5.4: Interaction of COOKIE and INVALID_KE_PAYLOAD with unoptimized Initiator Part A: (ADVANCED)
To verify an IKEv2 device handles interaction of COOKIE and INVALID_KE_PAYLOAD.
* [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), SAi1, KEi, Ni) | | (Packet #3) |------------------->| IKE_SA_INIT response (HDR, N(INVALID_KE_PAYLOAD)) | | (Judgement #2) | | |<-------------------| IKE_SA_INIT request (HDR, SAi1, KEi', Ni) | | (Packet #4) |------------------->| IKE_SA_INIT response (HDR, N(COOKIE')) | | (Judgement #3) | | |<-------------------| IKE_SA_INIT request (HDR, N(COOKIE'), SAi1, KE'i, Ni) | | (Packet #5) |------------------->| IKE_SA_INIT response (HDR, SAr1, KEr, Nr) | | (Judgement #4) | | V V
Packet #1 See Common Packet #1 Packet #2 See Common Packet #1 Packet #3 See below Packet #4 See Common Packet #1 Packet #5 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 Other fields are same as the common packet #1 DH Group # 14 Ni, Nr Payload Same as the common packet #1
* Packet #4: 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: (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. The IKE_SA_INIT requests include an invalid KE payload which has different .DH Group # from proposing DH Group #. 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. The IKE_SA_INIT still has an invalid KE payload. 5. Observe the messages transmitted on Link A. 6. After reception of IKE_SA_INIT response with a Notify payload of type INVALID_KE_PAYLOAD, TN1 transmits an IKE_SA_INIT request with a valid KE payload. 7. Observe the messages transmitted on Link A. 8. 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. The IKE_SA_INIT still has a valid KE payload. 9. 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 INVALID_KE_PAYLOAD.
Step 7: Judgment #3 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 9: Judgment #3 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.