Skip to content
IPsec Encapsulating Security Payload, or xfrm-ESP, path

IPsec Encapsulating Security Payload, or xfrm-ESP, path

oneuptime.com May 11, 2026

The Encapsulating Security Payload (ESP, Header = 50) is the workhorse of IPsec security for IPv6. It can provide confidentiality (encryption), data origin authentication, connectionless integrity, anti-replay protection, and limited traffic flow confidentiality, depending on the SA and algorithms in use. ESP is more widely used than AH because it can provide both encryption and integrity in one protocol, and it is compatible with NAT traversal (unlike AH).

Unlike AH, ESP is compatible with NAT using NAT-T (UDP port 4500 encapsulation):

ESP is the standard choice for IPv6 IPsec deployments, typically providing encryption, integrity, and anti-replay protection in transport or tunnel mode. Combined mode ciphers like AES-GCM provide both encryption and authentication efficiently in a single pass. ESP's compatibility with NAT traversal makes it practical in mixed environments, unlike AH which breaks when source or destination addresses are translated. For most VPN and secure communication needs, ESP with AES-GCM is a recommended modern configuration.

@nawazdhandala • Mar 20, 2026 •

All our blog posts are open source. Found a typo, want to add more detail, or have a better explanation? Anyone can contribute and make this post better for everyone.

Extracted Entities