Call Today 716.688.4675

Internet Key Exchange version 2 (IKEv2) Protocol

The Internet Key Exchange version 2 (IKEv2) Protocol dynamically establishes and maintains a shared state between the end-points of an IP datagram. IKEv2 performs mutual authentication between two parties and establishes the IKEv2 Security Association (SA). The IKE-SA uses shared secret information that it stores to do two different functions:

  1. Establish CHILD-SAs for Encapsulated Security Payload (ESP) Protocol and/or Authentication Header (AH) Protocol
  2. Defines the cryptographic algorithms to be used by the SAs

IKEv2 is a request/response pair protocol. These pairs are refered to as exchanges. The requester bears the burden of ensuring reliability. If a response is not received the requester can either retransmit or abandon the connection. IKEv2 has four types of exchanges:

  1. IKE_SA_INIT– This is the first exchange that establishes the IKE-SA and MUST complete before any further exchanges can happen. It performs three functions in the setup of the IKE-SA.
    • Negotites security parameters for the IKE-SA
    • Sends nonces
    • Sends Diffie-Hellman values
  2. IKE_AUTH– This is the second exchange and MUST complete before any further exchanges can happen. It performs three required functions:
    • Transmits identities
    • Proves knowledge of the secrets related to those identities
    • Establishes the first, and usually the only, AH and/or ESP CHILD-SA
  3. CREATE_CHILD_SA – This is simply used to create additional CHILD-SAs as needed
  4. INFORMATIONAL– This is a maintenance exchange that performs a veriety of functions to maintain the SAs. Some of these function include:
    • Delete SAs as needed
    • Report error conditions
    • Check SA liveliness
    • Other SA housekeeping functions

Once the first two mandatory exchanges have completed in their proper order, all subsequent exchanges can happen in any order necessary. In some cases their will be no future exchanges once everything is setup. An example IKEv2 exchange is shown in Figure1.

Figure 1

IKEv2 is expected to operate in a veriety of scenarios, examples of threescenarios can be seen in Figure 2. The Endpoint to Endpoint Transport scenario (upper diagram) shows both the endpoints implementing IPsec. This senario can use either transport or tunnel mode. The middle diagram shows Security Gateway to Security Gateway Tunnel scenario. This is a case where the endpoints do not implement IPsec but nodes between the endpoints do. This implementation is completely transparnt to the users. The last diagram shows an example of Endpoint to Security Gateway Tunnel scenario where a endpoint implementing IPsec connects to a Security Gateway to securly access the network on the other side. Others senarios are possible and can include a combination of the three shown.

Figure 2

IKEv2 employs a number of cryptographic protocols to accomplish all the security requirements of Key Management. IKEv2 is based on the Diffie-Hellman (DH) Key Management Protocol. IKE has four transform types that are mandatory to implement:

  1. Ecryption Algorithms – Common algorithms
    3DES, RC5, IDEA, 3IDEA,
  2. Pseudo-Random Functions – Common functions
    HMAC and
  3. Integrity Algorithms – Common Algorithms
    DES, KPDK, and
  4. Diffie-Hellman Groups – Defined Groups are 2, 3, 5, and 14 through 18
VOCAL Technologies, Ltd.
520 Lee Entrance, Suite 202
Amherst New York 14228
Phone: +1-716-688-4675
Fax: +1-716-639-0713