All specs
RFC 4303RFCMust KnowBack OfficeProduct2005

IP Encapsulating Security Payload

VPN & Tunneling·RFC Editor
WHY YOU NEED THIS

ESP is the workhorse of IPsec — every encrypted VPN tunnel uses it. When your cloud VPN shows 'Phase 2 SA established', that's an ESP SA. Understanding ESP's SPI, sequence numbers, and algorithm negotiation is key to VPN troubleshooting.

What It Defines

Defines ESP — the primary IPsec protocol that provides confidentiality (encryption), data integrity, authentication, and optional anti-replay protection. In tunnel mode, ESP encrypts the entire inner IP packet and appends an ESP header (SPI + sequence number), an IV, encrypted payload, padding, and an ICV (Integrity Check Value). Supports AES-GCM, AES-CBC + HMAC-SHA256, ChaCha20-Poly1305, and other algorithm suites negotiated via IKE. ESP (IP protocol 50) has largely replaced AH because it provides both encryption and authentication.

Canonical (Normative)

Related References

espipsecencryptionvpntunnel
Standards Body
RFC Editor

The canonical publication point for finalized RFCs. If a protocol is standardized as an RFC, the RFC Editor text is the normative final reference. Published by the IETF, IRTF, IAB, and independent stream.

Visit

Related Specs

RFC 4301RFCMust Know

IPsec Architecture

IPsec is the dominant VPN technology for enterprise site-to-site links (AWS VPN, Azure VPN Gateway, on-prem firewalls). Understanding tunnel vs transport mode, SAs, and the SPD is essential for configuring and debugging VPN connectivity.

Back OfficeProductVPN & Tunneling
Details
RFC 4302RFCShould Know

AH

AH is mostly historical — ESP does everything AH does and adds encryption. However, AH appears in legacy configurations and exam material. Understanding why it was replaced helps explain modern IPsec design decisions.

Back OfficeVPN & Tunneling
Details
RFC 7296RFCMust Know

IKEv2

IKEv2 is how IPsec tunnels are established and rekeyed. Every cloud VPN gateway (AWS, GCP, Azure), enterprise firewall, and mobile VPN client uses IKEv2. Phase 1/Phase 2 failures are the #1 VPN debugging scenario.

Back OfficeProductVPN & Tunneling
Details