🎓 BookMCQ
← Back to 32. Internet Security

📝 IKE Internet Key Exchange protocol (14 MCQs)

Automated Key Management for IPsec Peers

Internet Key Exchange version 2 (IKEv2) is the control protocol used with IPsec to authenticate communicating peers and establish, maintain, rekey, and delete Security Associations. Rather than requiring administrators to configure every session key manually, IKEv2 negotiates cryptographic algorithms and exchanges keying material. It creates the state needed for AH or ESP to protect ordinary IP datagrams. while keeping negotiated key material out of user data.

IKE SA and Child SA Roles

IKEv2 first establishes an IKE SA that protects subsequent IKE control messages. Within that protected relationship, peers negotiate one or more Child SAs for IPsec traffic. Authentication can use pre-shared keys or certificates with digital signatures. Diffie-Hellman key exchange contributes shared secret material, from which fresh cryptographic keys are derived.

The IKEv2 Exchange Sequence

The initial IKE_SA_INIT exchange negotiates algorithms and exchanges nonces and Diffie-Hellman values. IKE_AUTH then authenticates identities and establishes the first Child SA. Later CREATE_CHILD_SA exchanges can create additional Child SAs or rekey existing ones. INFORMATIONAL exchanges carry notifications, liveness checks, and deletion requests under the protected IKE SA. and exchange encrypted under IKE SA keys.

Setting Up an IPsec Site-to-Site Link

Two office gateways are configured with each other’s identities and matching authentication credentials. They exchange IKE_SA_INIT messages, derive shared key material, and authenticate during IKE_AUTH. After negotiating traffic selectors and ESP parameters, they install Child SAs; matching private-subnet traffic can then use the resulting IPsec tunnel. Traffic selectors limit which packets enter the tunnel.

How IKEv2 Supports VPN Operation

IKEv2 separates control-plane negotiation from data-plane packet protection. IKE messages manage identities, algorithms, and SA lifetimes, whereas ESP carries the protected user traffic. IKE normally uses UDP port 500 and can use UDP port 4500 for NAT traversal. Rekeying refreshes cryptographic material without requiring applications to manage keys. independently of application payload format.

Mistakes About IKE and IPsec Data Traffic

‘IKE encrypts every application packet’ is incorrect; ESP or AH protects the data plane. ‘IKEv2 and ESP are the same protocol’ confuses key management with packet protection. ‘A successful IKE exchange proves a remote user is authorized for every resource’ is false; network access policy and application authorization remain separate controls.

IKEv2 Message Names and Exchange Purposes

Be able to distinguish IKE_SA_INIT, IKE_AUTH, CREATE_CHILD_SA, and INFORMATIONAL exchanges. Explain which messages negotiate algorithms, authenticate peers, create Child SAs, or report status. Trace the relationship between IKE SA and IPsec Child SA, and identify how nonces, Diffie-Hellman values, identities, and traffic selectors contribute to secure tunnel establishment. and the negotiated authentication method.

IKEv2 Exchange and Key-Management Terms

  • IKEv2 - Negotiates IPsec keys and associations.
  • IKE SA - Protects key-management messages between peers.
  • Child SA - Carries user traffic using ESP or AH.
  • Nonce - Fresh value used in key agreement.
  • Diffie-Hellman - Derives shared secret material.
  • Traffic selector - Defines packets protected by a Child SA.
4
Easy
6
Medium
4
Hard

📝 All IKE Internet Key Exchange protocol MCQs

Q1. What is the primary purpose of the IKE protocol in IPsec?

A.To encrypt data payloads
B.To negotiate security associations ✅
C.To route packets
D.To assign IP addresses
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: IKE is tasked with establishing, negotiating, and managing the parameters that define an IPsec Security Association. It does not encrypt the traffic itself; instead it determines the algorithms, keys, and lifetimes that the IPsec layer will later apply to protect the data flow.

Q2. In IKE Main Mode, how many total messages are exchanged between the initiator and responder before completing the Diffie‑Hellman exchange?

A.4
B.5
C.6 ✅
D.7
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Main Mode of IKE uses a six‑message exchange: three from the initiator and three from the responder. The first two pairs negotiate identities and nonces, the third pair carries the Diffie‑Hellman public values and authenticates the exchange, totaling six messages before the DH secret is derived.

Q3. If an IKE SA is established using a pre‑shared key, which of the following statements is most likely true about the subsequent IPsec SA?

A.It will use a different authentication method
B.It inherits the same authentication material ✅
C.It does not require any authentication
D.It must use public‑key certificates
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: When the IKE Security Association is built on a pre‑shared key, that same secret is used to authenticate the subsequent IPsec Security Association. The child SA therefore inherits the authentication context, ensuring continuity of trust without introducing a new credential type.

Q4. Suppose the IKE negotiation fails because the initiator proposes a Diffie‑Hellman group that the responder does not support. What is the most direct effect on the VPN connection?

A.The existing IPsec SA will continue unaffected
B.All traffic will be dropped until a new SA is negotiated ✅
C.Only the IKE SA will be torn down while IPsec SAs remain
D.The VPN will fall back to plaintext transmission
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A mismatch in supported DH groups aborts the IKE exchange, causing the IKE Security Association to be discarded. Without a valid IKE SA, no new IPsec SAs can be created, so all protected traffic is halted until the parties renegotiate using compatible parameters.

Q5. During an IKEv2 exchange, the responder sends a Notify payload with type INVALID_KE_PAYLOAD\text{INVALID\_KE\_PAYLOAD}. Which inference best explains the subsequent behavior of the initiator?

A.The initiator will immediately abort the negotiation
B.The initiator will retry the exchange using the same DH group
C.The initiator will propose a different DH group in a new IKE\_SA_INIT ✅
D.The initiator will switch to IKEv1 mode
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The INVALID_KE_PAYLOAD notification indicates that the responder rejected the Diffie‑Hellman values. IKEv2 specifies that the initiator should restart the IKE_SA_INIT exchange, selecting a DH group that the responder advertised as acceptable, thereby preserving the negotiation flow.

Q6. Which of the following best contrasts IKEv1 and IKEv2 regarding the number of exchanges required to establish a child SA?

A.IKEv1 uses three exchanges, IKEv2 uses one
B.IKEv1 uses two exchanges, IKEv2 uses two
C.IKEv1 uses six messages, IKEv2 uses four ✅
D.IKEv1 uses one exchange, IKEv2 uses three
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: IKEv1’s main mode requires six individual messages to set up the IKE SA, after which additional exchanges create child SAs. IKEv2 streamlines the process: only four messages (two request/response pairs) are needed to establish both the IKE SA and its first child SA, reducing overhead.

Q7. When evaluating security, why is IKEv2 main mode generally considered more secure than IKEv1 aggressive mode?

A.Aggressive mode encrypts fewer payloads
B.Aggressive mode transmits the pre‑shared key in clear text ✅
C.Aggressive mode does not support NAT traversal
D.Aggressive mode lacks integrity protection
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: In aggressive mode, the initiator sends the pre‑shared key (or its hash) in the first message, which may be exposed to eavesdroppers. Main mode defers authentication until after the Diffie‑Hellman exchange, keeping the secret protected by encryption and thus offering stronger confidentiality.

Q8. How does NAT traversal handling differ between IKEv1 and IKEv2?

A.IKEv1 uses UDP encapsulation only, while IKEv2 cannot traverse NAT
B.IKEv1 requires manual NAT‑Discovery, IKEv2 automates it with NAT‑D
C.IKEv1 relies on the NAT‑Keepalive payload, IKEv2 uses the ESP‑in‑UDP encapsulation ✅
D.Both versions use identical NAT‑D mechanisms
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: IKEv1 employs NAT‑Keepalive messages and optional UDP encapsulation to maintain state across NAT devices. IKEv2 improves this by standardizing ESP‑in‑UDP encapsulation and providing built‑in NAT‑Discovery, allowing seamless traversal without extra keepalive traffic.

Q9. What is the first step an administrator should take when configuring IKE for a new site‑to‑site VPN?

A.Generate a pair of X.509 certificates
B.Define the IKE policy with encryption and DH group ✅
C.Create the IPsec tunnel interface
D.Assign static routes to the remote network
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Before any tunnels or routes are built, the administrator must establish the IKE policy that specifies the cryptographic suite (encryption algorithm, hash, DH group, and authentication method). This policy forms the foundation for subsequent IKE negotiations and ensures that both peers agree on common security parameters.

Q10. How does the lifetime of an IKE SA influence the rekeying process of its child IPsec SAs?

A.A shorter IKE SA lifetime forces more frequent child SA rekeying ✅
B.The IKE SA lifetime does not affect child SA rekeying
C.Child SAs are rekeyed only when the IKE SA expires
D.Longer IKE SA lifetimes prevent any rekeying of child SAs
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Child SAs inherit the rekey schedule of their parent IKE SA. When the IKE SA’s lifetime is reduced, the parent must be refreshed more often, prompting the creation of new child SAs to maintain continuity of protection, thereby increasing the frequency of child‑SA rekey events.

Q11. In a scenario where a single IKE SA protects multiple child SAs, which design advantage is most directly achieved?

A.Reduced computational overhead during key exchange ✅
B.Increased latency for each packet
C.Higher probability of key compromise
D.Need for separate authentication for each child SA
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: By reusing one IKE SA for several child SAs, the costly Diffie‑Hellman and authentication exchanges occur only once. Subsequent child SAs can be derived from the existing IKE keys, lowering CPU consumption and reducing the time needed to set up additional protected flows.

Q12. What is the likely impact on network performance if the IKE SA rekey interval is reduced from 24 hours to 2 hours?

A.Negligible impact because rekeying is lightweight
B.Increased CPU usage due to more frequent cryptographic operations ✅
C.Decreased bandwidth consumption
D.Elimination of all latency spikes
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Frequent rekeying forces the devices to perform additional Diffie‑Hellman calculations and authentication steps every two hours. These operations are CPU‑intensive, so the overall processing load rises, potentially affecting throughput on devices with limited resources.

Q13. A captured packet contains an IKE payload with a NEXT_PAYLOAD\text{NEXT\_PAYLOAD} value of 33 and a EXCHANGE_TYPE\text{EXCHANGE\_TYPE} of 34. Which IKE version is most likely in use?

A.IKEv1
B.IKEv2 ✅
C.Both IKEv1 and IKEv2
D.Neither, it is a proprietary protocol
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Values 33 (NEXT_PAYLOAD) and 34 (EXCHANGE_TYPE) correspond to the IKEv2 definitions for a Notify payload and the IKE_SA_INIT exchange. IKEv1 uses different numeric assignments, so the observed codes strongly indicate that the packet belongs to an IKEv2 session.

Q14. How do X.509 certificates contribute to the authentication process in IKE?

A.They provide a shared secret for symmetric encryption
B.They bind a public key to an identity, enabling asymmetric verification ✅
C.They replace the need for Diffie‑Hellman key exchange
D.They are only used for post‑quantum cryptography
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: X.509 certificates carry a public key together with identity information signed by a trusted Certificate Authority. During IKE, each side presents its certificate, allowing the peer to verify the signature with the public key, thereby establishing mutual authentication without exchanging secret material directly.

🔗 Related Topics (MCQs)