Demystifying IKE/IKEv2 — Original
18,456 Total views across this article’s versions; includes the historical baseline where available.
IKEv2 authenticates IPsec peers and establishes the security associations and shared keying material they need. It negotiates how traffic will be protected; IPsec, not IKEv2, carries the protected application traffic.
IKE/IKEv2
IKEv2 was first defined in RFC 4306 in 2005 and is not backward compatible with IKEv1. RFC 7296 defines the base IKEv2 protocol. Separate RFCs cover signature authentication, raw public-key support, and cryptographic algorithm guidance.
IKEv2 is the control protocol; mechanisms such as ESP protect traffic using the negotiated IPsec SAs. IKEv2 is not a wrapper that calls three separate ISAKMP, Oakley and SKEME processes. Those names belong to the history of IKEv1, described below.
Characteristics
- Establishes and maintains an IKE SA, which protects subsequent IKE messages.
- Negotiates Child SAs to protect traffic. A pair of IPsec SAs provides protection in opposite directions.
- Supports several authentication methods. A shared secret and certificate-based authentication are distinct choices, not a single required method.
- Supports NAT traversal; the usual UDP ports are 500 and 4500. MOBIKE is a separate extension.
IKEv2 and IPsec
An IKE SA and its Child SAs have different jobs. The IKE SA protects control messages; the Child SAs protect data traffic selected by the agreed traffic selectors. More than one Child SA can coexist under one IKE SA. The two peers derive their keys; they do not send the resulting symmetric traffic keys across the network.
Preserved original IPsec/IKE diagram (historical illustration; not a correct IKEv2 exchange sequence).
IKEv2 Exchanges and Historical IKEv1 Phases
Historical IKEv1 (RFC 2409) used a two-phase model. Phase 1 established an ISAKMP SA via Main Mode or Aggressive Mode; Phase 2 used Quick Mode to negotiate IPsec SAs under that protected channel. IKEv2 does not use these modes or this phase terminology. RFC 9395 deprecates IKEv1.
IKEv2 Initial Exchanges
IKE_SA_INIT and IKE_AUTH make up the initial exchange sequence. IKE_SA_INIT negotiates algorithms and exchanges nonces and Diffie–Hellman public values; it does not yet authenticate the peers. IKE_AUTH authenticates the peers, completes the IKE SA and normally establishes the first Child SA. Authentication method and optional features can affect the exchange; do not assume a fixed packet count. A Child SA negotiation can fail while the IKE SA is still established.
Main Mode (IKEv1 only)
Main Mode is one of the historical IKEv1 Phase 1 exchange types. It is not an IKEv2 configuration option.
Aggressive Mode (IKEv1 only)
Aggressive Mode is the other historical IKEv1 Phase 1 exchange type. It is not a faster form of IKE_AUTH.
Child SAs and IKEv2 Control Exchanges
CREATE_CHILD_SA adds a Child SA or rekeys either a Child SA or the IKE SA. A protected INFORMATIONAL exchange handles control messages such as deletion and liveness checks. The IKE SA is not discarded just because the first Child SA was established.
The Three Musketeers: ISAKMP, OAKLEY, and SKEME
RFC 2409 describes IKEv1 as using the ISAKMP framework with selected ideas from Oakley and SKEME. That history is useful context, but it does not describe an IKEv2 call chain or require three separate processes.
Preserved original process diagram (historical illustration; not an IKEv2 reference).
ISAKMP
RFC 2408 defined the historical ISAKMP framework: message formats and procedures for negotiating and managing security associations without prescribing one key-exchange mechanism. IKEv1 used that framework.
ISAKMP and IKEv2
IKEv2 defines its own exchanges and IKE SA in RFC 7296. It does not call a separate ISAKMP protocol or establish a second ISAKMP SA to handle the Child SAs.
OAKLEY
RFC 2412 describes Oakley, a historical protocol for determining shared keying material, with options for authentication. IKEv1 drew on Oakley; IKEv2 does not pass requests to an Oakley process.
Cryptographic Key Provisioning
Key agreement and peer authentication answer different questions. A shared secret derived from a key exchange is not proof of the other peer’s identity until the protocol’s authentication checks succeed.
Characteristics of OAKLEY
RFC 2412 is the primary source for Oakley’s exchange designs; consult it as protocol history, not as a model for IKEv2 implementation.
OAKLEY and IKEv2
The preserved Phase 2 image reflects the old article’s interpretation. IKEv2 negotiates key exchange within its own named exchanges; it does not use a historical Oakley middleware sequence.
Non-DH Key Management
An authentication credential, such as a pre-shared key or certificate, is not the key protecting the resulting data traffic. The roles are distinct.
OAKLEY Key Transformation Operations
For IKEv2, RFC 7296 defines cryptographic transforms as negotiated choices. It does not define a separate process that transforms key requests and forwards them between historical protocols.
Scenario #1: Create a New Symmetric Key Using Diffie-Hellman Algorithm
Peers exchange public values and independently compute the shared secret. The resulting secret is not transmitted as an IKE message.
Scenario #2: Retrieve a Pre-Shared Symmetric Key
A pre-shared authentication secret is configured at the endpoints; it is not retrieved from the other peer or transmitted in the exchange.
Scenario #3: Retrieve a Public Key
Public-key authentication proves possession of the corresponding private key; it is not a fetch operation delegated to Oakley.
Scenario #4: Retrieve an X.509 Certificate Key
A certificate binds a public key to an identity. Authentication depends on validating the certificate and the peer’s proof under the applicable trust configuration.
Time: The Nemesis of Symmetric Keys
Key agreement involves computation. For IKEv2, see RFC 7296’s cookie mechanism for the protocol’s treatment of initial-request resource pressure. A cookie is not peer authentication.
SKEME
SKEME was a separate key-exchange design referenced by RFC 2409. IKEv1 drew on some of its ideas; IKEv2 does not load it as a key-generating module.
SKEME Overview
Use the historical SKEME specification when reviewing that protocol, not the IKEv2 standard and not the original diagrams on this page.
SKEME Process Flow
The labels below identify historical material, not IKEv1 or IKEv2 message names. The old walkthrough is not a reference for configuring IKEv2.
Phase 1 (SHARE)
Preserved original SKEME diagram (archival illustration, not independently validated).
Phase 2 (EXCH)
This historical exchange is not IKEv1 Quick Mode or IKEv2 CREATE_CHILD_SA.
Phase 3 (AUTH)
This label refers to the historical SKEME discussion and is not the IKEv2 IKE_AUTH exchange.
Session Key Creation (Post-Phase 3)
For IKEv2 key derivation and session keys, see RFC 7296, section 2.14.
Perfect Forward Secrecy in SKEME
Forward secrecy concerns what a later credential compromise reveals about earlier session keys; it does not follow merely from assigning roles to different protocol names. IKEv2’s security considerations discuss its own guarantees and assumptions.
SKEME Phase 1 Is Vulnerable
The old article’s categorical vulnerability claim is not established by the recovered sources. It should not be used to judge IKEv2.
Historical SKEME Security Context
The earlier analysis mixed historical SKEME concepts with an incorrect IKEv2 component model. Its conclusions do not establish IKEv2 behavior or operational security.
Diminishing SKEME’s Vulnerability Exposure
For an actual deployment, use current vendor guidance for peer authentication, supported IKEv2 algorithms, key rotation and monitoring. Do not interpret archival SKEME examples as deployment advice.
Missing Source References
The migrated original referred to a numbered bibliography missing from the recovered source. The current protocol discussion cites the relevant RFCs inline. The historical bibliography itself has not been recovered.