Title


  Test IKEv2.EN.R.1.1.6.8: Sending INVALID_KE_PAYLOAD in Initial Exchange
  Part A: (BASIC)


Purpose

  To verify an IKEv2 device properly handles an invalid KE payload which has different D-H
  Group # from proposed D-H Group #.


References

  * [RFC 4306] - Sections 2.7, 3.4 and 3.10.1
  * [RFC 4718] - Sections 2.1 and 2.2


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(DH#2, DH#14), KEi(DH#14), Ni)
    |                    | (Packet #1)
    |------------------->| IKE_SA_INIT response (HDR, N(INVALID_KE_PAYLOAD(DH#2)))
    |                    | (Judgement #1)
    |                    |
    |<-------------------| IKE_SA_INIT request (HDR, SAi1(DH#2, DH#14), KEi(DH#2), Ni)
    |                    | (Packet #2)
    |------------------->| IKE_SA_INIT response (HDR, SAr1(DH#2), KEr(DH#2), Nr)
    |                    | (Judgement #2)
    |                    |
    V                    V

Packet #1 See below
Packet #2 See Common Packet #1

Packet #1: IKE_SA_INIT request
IPv6 Header Same as the common packet #1
UDP Header Same as the common packet #1
IKEv2 Header Same as the common packet #1
SA Payload Same as the common packet #1
KEi Payload Next Payload 40 (Ni, Nr)
Critical 0
Reserved 0
Payload Length 264
DH Group # 14
Reserved 0
Key Exchange Data any
Ni, Nr Payload Same as the common packet #1
  Part A: (BASIC)
     1. TN1 starts to negotiate with NUT by sending IKE_SA_INIT request including a SA payload
        which contains a D-H Group transform proposes using D-H Group 2 and D-H Group 14, and
        a Key Exchange payload which contains 14 (D-H Group 14) as DH Group # field and the
        Key Exchange Data.
     2. Observe the messages transmitted on Link A.
     3. TN1 transmits an IKE_SA_INIT request including KE payload with D-H Group 2 public
        key value 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 response including a Notify payload of type
       INVALID_KE_PAYLOAD which contains 2 (D-H Group 2) as Notification Data. The
       message's IKE_SA Responder's SPI value is set to zero.
       Step 4: 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 accepted
       algorithms.


Possible Problems

  * None.