Octet

Why is IKEv2 better than IKEv1? Give concrete differences.

Show the answer

Say this first

IKEv2 does the job in four messages instead of six plus three. NAT traversal and dead peer detection are built in instead of bolted on. It has cookies against DoS floods, EAP for remote-access user authentication, asymmetric authentication (each side may use a different method), reliable request-response exchanges, and traffic selector narrowing. Lifetimes are not negotiated, each peer rekeys on its own timer, which removes a class of mismatches.

Go deeper

TopicIKEv1IKEv2
Messages to the first IPsec SA9 (main + quick) or 6 (aggressive + quick)4
NAT traversalextension, RFC 3947built in
Dead peer detectionextension, RFC 3706built in liveness check
Remote-access user authXAUTH, vendor extensionEAP, standard
Authentication methodsame on both sidescan differ per side
DoS protectionnonecookies
Lifetimesproposed in negotiationlocal only
Selector mismatchfailsresponder can narrow
MobilitynoneMOBIKE (RFC 4555)

Both use UDP 500 and 4500. They are different protocols: a v1 peer and a v2 peer cannot form a tunnel with each other, so both ends must be configured for the same version.

Traps

  • Saying IKEv2 is "IKEv1 with stronger ciphers". The ciphers are the same; the protocol design is what changed.
How did you do?Book 8.5 Example Systems