Policy determines which packets receive protection, bypass it, or are discarded. Security associations record the parameters for protected traffic. Internet Key Exchange version 2 (IKEv2) commonly authenticates peers and establishes and renews the keys and associations.
Key points
Traffic protectionEncapsulating Security Payload (ESP) can provide confidentiality, integrity, and data-origin authentication. Authentication Header (AH) provides integrity and data-origin authentication without encryption; both support replay protection.
Operating modesTransport mode protects traffic without adding an outer IP header; ESP leaves the original IP header outside its protection. Tunnel mode encapsulates the original packet inside a new outer packet.
Operational dependenciesPeer credentials, current cryptographic settings, traffic selectors, routing, packet-size overhead, and tested key renewal determine whether the intended protection works.
Important limitationProtection ends at the IPsec endpoints and applies only to selected traffic. Compromised hosts, excessive reachability, and malicious activity inside an authenticated connection remain possible.