Course contentsShow
← Security
Lesson 474 of 3,05211. Network Security - VPNs and TunnelingFree lesson

IPsec Architecture and Protocol Suite

Understanding IPsec components: AH, ESP, IKE, and how they work together to secure IP traffic.

IPsec Architecture and Protocol Suite

What you'll learn: How IPsec's key components—AH, ESP, and IKE—work together to create secure, encrypted tunnels for IP traffic.

What Is IPsec?

IPsec (Internet Protocol Security) isn't a single protocol—it's a suite of protocols that work together to secure network communications at the IP layer. Think of it like a security system for a building: you need locks (encryption), alarms (integrity checks), and a key management system (authentication). IPsec provides all three.

The Three Core Components

1. Authentication Header (AH) AH ensures the packet hasn't been tampered with and verifies the sender's identity. It provides integrity and authentication but does not encrypt the payload. Like a tamper-evident seal on a clear package—you can see the contents, but you'll know if someone opened it.

2. Encapsulating Security Payload (ESP) ESP provides confidentiality (encryption), integrity, and authentication. It encrypts the packet payload so eavesdroppers can't read it. This is the most commonly used IPsec protocol because it offers comprehensive protection—like putting your package in an opaque, sealed box.

3. Internet Key Exchange (IKE) IKE is the negotiation and key management protocol. Before AH or ESP can secure traffic, both sides need to agree on encryption algorithms, exchange keys, and authenticate each other. IKE handles this setup automatically. It runs in two phases: Phase 1 establishes a secure channel, Phase 2 negotiates the actual IPsec parameters.

How They Work Together

When you establish an IPsec VPN, IKE first creates a secure management connection, then negotiates which protection (AH or ESP) to use. Once agreed, ESP (typically) encrypts and authenticates your traffic automatically. The protocols operate transparently—applications don't need to know IPsec exists.

Key Takeaway: IPsec combines AH (integrity/authentication), ESP (encryption/integrity/authentication), and IKE (key negotiation) to create a complete, automated security framework for IP traffic—making it the foundation of most enterprise VPNs.