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

Authentication Header (AH) Protocol

AH's role in providing integrity and authentication without encryption for IP packets.

Authentication Header (AH) Protocol

What you'll learn: How the IPsec Authentication Header protocol ensures IP packet integrity and authenticity without providing encryption.

What Is AH?

The Authentication Header (AH) is one of two core IPsec protocols (alongside ESP, which you'll learn later). AH provides data integrity and origin authentication for IP packets, but notably does not encrypt the payload. Think of it as a tamper-evident seal on a glass bottle—you can still see the contents, but you'll know if someone has opened or modified it.

AH inserts an additional header between the IP header and the payload, containing a cryptographic hash (called an Integrity Check Value or ICV) that covers almost the entire packet. This hash acts as a digital fingerprint: any change to the packet's data invalidates it.

How AH Works

When a packet is sent with AH protection:

  1. Hashing: AH computes a cryptographic hash of the packet contents using a shared secret key
  2. Header insertion: The hash is placed in the AH header along with metadata
  3. Verification: The receiver recomputes the hash and compares it—if they match, the packet is authentic and unmodified

Key Characteristics

  • No confidentiality: Anyone can read the packet contents (no encryption)
  • Strong integrity: Any bit-level modification is detectable
  • Authentication: Proves the sender possesses the shared secret key
  • Anti-replay protection: Sequence numbers prevent attackers from capturing and replaying old packets

Why Use AH Instead of Encryption?

In some scenarios, integrity matters more than secrecy—for example, routing updates or public announcements where the content isn't secret but tampering would be catastrophic.

Key Takeaway: AH provides integrity and authentication for IP packets using cryptographic hashing, ensuring data hasn't been tampered with, but offers no encryption—the data remains visible in transit.