Encapsulating Security Payload (original) (raw)

Last Updated : 10 Apr, 2026

Encapsulating Security Payload (ESP) is a security protocol of IPsec that provides confidentiality, integrity, and authentication for data transmitted over a network. It encrypts the data being sent so that unauthorized users cannot read or modify it during transmission. It is widely used in Virtual Private Networks (VPNs) to ensure secure communication over an insecure network.

Components

According to the diagram, ESP contains the following components:

Security-Parameter

Working

Modes in ESP

Encapsulating Security Payload supports two modes:

1. Tunnel Mode:

In this mode, the entire original IP packet (header + payload) is encrypted and encapsulated inside a new packet with a new outer IP header, providing higher security.

2. Transport Mode:

In this mode, only the payload of the IP packet is encrypted, while the original IP header remains visible.

Advantages

Disadvantages