📝 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.
📝 All IKE Internet Key Exchange protocol MCQs
Q1. What is the primary purpose of the IKE protocol in IPsec?
📖 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?
📖 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?
📖 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?
📖 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 . Which inference best explains the subsequent behavior of the initiator?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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?
📖 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 value of 33 and a of 34. Which IKE version is most likely in use?
📖 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?
📖 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.