Bitzu

CPSA ยท Cryptography for testers

IPsec: AH, ESP, modes, IKE and SAs

AH vs ESP, transport vs tunnel mode, IKE and security associations.

Key points

  • IPsec: network-layer IP security.
  • AH: integrity and authentication, no encryption.
  • ESP: confidentiality, integrity, authentication, anti-replay (RFC 4303).
  • Transport mode: protects the payload, keeps the original IP header (host to host).
  • Tunnel mode: new outer IP header around the whole packet (gateways, VPNs).
  • IKE: authenticates peers, negotiates keys; yields one-way SAs with an SPI, so two-way traffic needs a pair.

Source: https://www.rfc-editor.org/rfc/rfc4303

Practice questions

Single choice

Which IPsec protocol can provide confidentiality?

  1. AH
  2. ESP
  3. IKE only
  4. ARP
Show answer

Answer: B. ESP

ESP can encrypt the payload. AH provides integrity and authentication only, and IKE is the negotiation protocol that sets up the keys.

Select all that apply

Which services can ESP provide?

  1. Confidentiality of the payload
  2. Data origin authentication
  3. Anti-replay protection
  4. DNS name resolution
  5. Application-level virus scanning
Show answer

Answer: A. Confidentiality of the payload, B. Data origin authentication, C. Anti-replay protection

ESP can provide confidentiality, origin authentication, integrity and anti-replay. Name resolution and antivirus scanning are unrelated to IPsec.

True or false

AH encrypts the packet payload so it cannot be read on the wire.

Show answer

Answer: False

False. AH authenticates and protects integrity but does not encrypt; the payload stays readable. Use ESP for confidentiality.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module