Internet Protocol Authentication Header (original) (raw)

Last Updated : 29 Apr, 2026

The Authentication Header (AH) is a security protocol used within the IPsec suite. Its main purpose is to ensure that the message is not modified during transmission and that the data is coming from the expected source.

Functions

The AH format consists of the following fields:

mac_header

2. Payload Length (8 bits)

3. Reserved (16 bits)

4. Security Parameters Index (SPI) (32 bits)

5. Sequence Number (32 bits)

6. Authentication Data (variable length, multiple of 32 bits)

Authentication Header works in IPsec to ensure the packet is authentic and not modified during transmission.

The Authentication Header is inserted between the original IP header and the transport layer header (TCP/UDP).

The entire original IP packet (original IP header + data) is authenticated. A new outer IP header is added and the Authentication Header is placed between the new IP header and the original IP packet.