What Is IPsec?
13,643 Total views across this article’s versions; includes the historical baseline where available.
This document is a comprehensive, high-level overview of what IPsec is and how it works.
IPsec is a flexible network security framework that may be applied to a number of different use case scenarios. In spite of its ubiquity, IPsec has got to be one of the most confusing standards in IT Security.
IPsec is confusing because it is defined by a large group of intertwined standards, protocols, and frameworks. No single document explains IPsec down to every detail. There are literally hundreds of documents that describe portions of IPsec processes and functions (though the vast majority of them are outdated). The purpose of this document is to distill down relevant IPsec specifications into a simple overview, eloquently capturing the essence and most salient points of what IPsec is and how it works.
Contents
- IPsec Overview
- Why IPsec Matters
- IPSec Process Flow
- Implementation
- IPsec Modes
- Security Associations (SAs)
- IKE: Internet Key Exchange (IKE)
- IPsec Cryptography
- Diagrams
IPsec Overview
Internet Protocol Security (IPsec) protects selected IPv4 or IPv6 traffic at the IP layer. It can be used between hosts, between security gateways, or between a host and a gateway. Its protection ends at those IPsec endpoints; it is not necessarily end-to-end between the applications.
The architecture combines security policy, Security Associations (SAs), key management and packet-protection protocols. AH means Authentication Header; ESP means Encapsulating Security Payload. IPsec directly handles IP packets, but another encapsulation such as GRE can carry non-IP payloads inside traffic protected by IPsec. RFC 4301.
Why IPsec Matters
IPsec can provide confidentiality, integrity, data-origin authentication and replay protection without requiring each application to implement those services. The selected service depends on policy, mode, algorithms and peer configuration; encapsulation alone is not encryption.
IPv6 requirements have changed over time. RFC 8504 (2019), Section 13 retains the recommendation that IPv6 nodes SHOULD support the IPsec architecture, rather than the earlier blanket implementation mandate. An IPv6 node implementing that architecture must implement ESP and may implement AH. Neither IPv6 support nor IPsec implementation means all traffic is automatically encrypted.
IPsec Process Flow
A simplified IKEv2/IPsec exchange is:
- Local policy identifies traffic requiring protection and an appropriate peer.
- IKE_SA_INIT negotiates IKE algorithms and exchanges nonces and public DH values. These initial messages are not encrypted.
- IKE_AUTH authenticates the exchange and normally establishes the first Child SA: a pair of unidirectional IPsec SAs. Its protected payload uses keys derived from the initial exchange.
- The peers protect matching traffic with ESP or AH according to the negotiated SAs and local policy.
- CREATE_CHILD_SA can establish additional Child SAs or rekey existing SAs; INFORMATIONAL exchanges handle management operations.
These are protocol exchanges, not four nested IPsec/IKE negotiation phases or a succession of three physical tunnels. RFC 7296, Section 1.
Implementation
The Security Policy Database (SPD) determines whether matching traffic is discarded, bypasses IPsec, or requires protection. The Security Association Database (SAD) holds active SA state. Peer authentication and authorization also constrain which traffic a peer may carry.
IKE normally establishes the keys and parameters. ESP can use authenticated encryption, such as AES-GCM or ChaCha20-Poly1305, or separate encryption and integrity algorithms. AH supplies integrity without encryption. A bare SHA hash is not interchangeable with a keyed HMAC. RFC 4301, Section 4.4.
Modes
The first question to ask is which mode makes sense for a particular scenario. IPsec has two (2): Transport and Tunnel.
Transport Mode
Transport mode inserts AH or ESP into the IP packet without adding a new tunnel IP header. ESP can encrypt the upper-layer header and payload, but does not authenticate the outer IP header. AH authenticates selected IP-header fields and the payload, without encrypting either.
NAT traversal for ESP can be used in transport mode subject to protocol and implementation constraints, including address and transport-checksum handling. It is not limited to IKEv2: RFC 3948 covers UDP-encapsulated ESP negotiated by IKEv1 or IKEv2. IKEv2-specific details appear in RFC 7296, Sections 2.23 and 2.23.1.
Tunnel Mode
Tunnel mode carries an inner IP packet inside a new outer IP packet. ESP with encryption protects the inner packet’s header and payload; AH tunnel mode authenticates the inner packet but does not encrypt it. Thus, tunnel mode alone does not imply confidentiality.
Gateway-to-gateway and remote-access VPNs commonly use tunnel mode. UDP-encapsulated ESP can traverse NAT in this mode as well as in supported transport-mode configurations. RFC 4301; RFC 3948.
Security Associations (SAs)
An IPsec Security Association is the state describing one direction of protected traffic using AH or ESP. It records the applicable algorithms, keys, sequence-number state, lifetimes and other parameters. Bidirectional traffic normally uses two SAs; applying both AH and ESP requires separate SAs for the two protocols.
An IKE SA is different: it protects a bidirectional IKE conversation that can manage multiple Child SAs. Calling an IPsec SA unidirectional describes the protected data flow, not a one-way broadcast or a non-negotiable contract. RFC 4301, Section 4.1; RFC 7296.
Inside a Security Association
An SA contains more than its lookup identifiers. The Security Parameters Index (SPI), protocol and, where needed, destination address help the receiver identify the relevant SA; implementations can use a narrower lookup where their SPI allocation permits it.
SA state includes the AH or ESP protocol, transport or tunnel mode, algorithms and keys, sequence-number and anti-replay state, lifetime limits and relevant tunnel information. The SPI is not a secret key. One SA does not simultaneously designate both AH and ESP. RFC 4301, Sections 4.1 and 4.4.2.
Why SAs Are Important
SA state tells the sender how to protect a packet and the receiver how to verify and process it. The state remains relevant throughout the SA’s lifetime, not just during setup. Policy also determines which traffic the peer is authorized to send.
Negotiating Consensus (IPsec SA Exchange)
During IKE negotiation, the initiator offers acceptable proposals and the responder selects an acceptable combination or rejects the exchange. Traffic selectors can be narrowed within the rules of the protocol and local policy. The messages form request/response exchanges; an SA is not broadcast as a take-it-or-leave-it one-way message.
The peers derive keys rather than sending plaintext traffic keys in an initial advertisement. Re-establishment and rekeying have defined rules for fresh nonces, key derivation and SA identifiers. RFC 7296, Sections 2.7–2.9 and 2.17.
Initial Negotiation
The initial IKE_SA_INIT request and response exchange proposals, nonces and DH public values. They establish shared keying material used to protect later IKE payloads. Authentication of the exchange follows in IKE_AUTH; merely completing unauthenticated DH does not yet establish the intended peer’s identity. RFC 7296, Section 1.2.
Authentication and Child SAs
IKE_AUTH authenticates the peers and normally establishes the first pair of IPsec SAs. Later CREATE_CHILD_SA exchanges can create or replace Child SAs. Manual configuration of IPsec SAs is a separate key-management option, not IKEv2’s second phase, and has important limitations for replay protection and nonce/counter-based algorithms. RFC 7296; RFC 8221, Section 3.
IKE: Internet Key Exchange
Internet Key Exchange authenticates peers and establishes and maintains SAs. In an IKEv2/IPsec VPN, IKEv2 is the control protocol while ESP or AH carries the protected user traffic. IKEv2 alone is not a general-purpose data tunnel.
The historical IKEv1 specification combined ISAKMP with selected ideas from Oakley and SKEME. IKEv2 is a successor protocol with its own specification, not a runtime call chain that invokes three independent protocols. RFC 2409; RFC 7296.
IKEv2
IKEv2 was first specified in RFC 4306 (2005). RFC 7296 (2014) is its base Internet Standard, with separate extensions and updates. RFC 5282, RFC 5998, RFC 6989, RFC 7427 and RFC 7670 address particular extensions or requirements; RFC 8247 supplies algorithm guidance. They are not a substitute list for the base protocol.
IKEv1’s Main/Aggressive/Quick modes and Phase 1/Phase 2 names should not be used as if they were IKEv2 message types. IKEv1 was formally deprecated by RFC 9395 (2023).
IKE_SA_INIT and IKE_AUTH
The initial IKEv2 exchanges negotiate algorithms, perform DH, authenticate the exchange and normally create the first Child SA. IKE_SA_INIT establishes keying material; IKE_AUTH proves the relevant identities using the configured authentication method, such as a signature or pre-shared key. EAP can introduce additional authentication exchanges.
IKE traffic keys and Child-SA traffic keys are derived for different purposes. No rule requires a generic SHA hash, a Kerberos exchange, or a pre-shared X.509 key as part of every handshake. RFC 7296, Sections 1.2 and 2.14–2.16.
CREATE_CHILD_SA
CREATE_CHILD_SA can create a new Child SA pair or rekey an existing Child SA. A similar exchange can rekey the IKE SA itself. The request and response are protected by the existing IKE SA. For Child SAs they include fresh nonces and may include a fresh DH exchange.
Each IPsec direction has its own SA and keying material. These are not necessarily separate user-visible tunnels. RFC 7296, Section 1.3.
Child SAs and Forward Secrecy
Forward secrecy protects past traffic against later compromise of long-term authentication secrets, assuming the required temporary secrets are erased and the algorithms remain secure. IKEv2’s initial DH exchange supplies this protection against long-term-key compromise.
The first Child SA derives from that initial exchange. A later CREATE_CHILD_SA exchange can add fresh DH input for stronger independence from earlier IKE keying material. Even without that additional DH exchange, new nonces feed the derivation: the protocol does not simply reuse the same encryption key. A new Child SA does not require regenerating all initial IKE keys. RFC 7296, Sections 2.12 and 2.17.
IKE and IPsec Security Associations
The usual sequence is IKE_SA_INIT, then IKE_AUTH, followed by optional CREATE_CHILD_SA and INFORMATIONAL exchanges. The IKE SA is bidirectional. An ESP or AH Child SA normally represents a pair of unidirectional IPsec SAs. There is no separate four-stage sequence interleaving an IPsec Phase 1, IKE Phase 1, IKE Phase 2 and IPsec Phase 2. RFC 7296, Section 1.
ISAKMP
ISAKMP defined a framework and message formats for negotiating and managing SAs. IKEv1 specified a particular use of that framework with key-exchange and authentication techniques. ISAKMP did not independently generate a script of packet transformations at IKEv2 runtime. RFC 2409, Section 2.
Oakley + SKEME Methodology
Oakley and SKEME supplied ideas used in the design of IKEv1; they are not successive mandatory stages inside IKEv2. The historical design combined authenticated key agreement, cookies and key derivation.
IKEv1 Aggressive Mode could expose identities and, with password-derived pre-shared keys, authentication material useful for offline guessing. It did not simply transmit the PSK itself in plaintext. The relevant migration is to IKEv2, whose exchange structure differs. RFC 2409, Section 5.4; RFC 9395.
Oakley
Oakley, a historical key-determination protocol used in the development of IKEv1, is described in RFC 2412. Oakley describes authenticated DH key determination, including modular-exponentiation and elliptic-curve groups. It is not limited to 1024-bit keys, and its historical definition should not be described as an EAP-based IKEv2 component. RFC 2412.
SKEME
SKEME is a historical secure key-exchange design referenced by IKEv1. RFC 2409 describes adopting its ideas for authentication and key refresh. That design lineage does not mean IKEv2 invokes SKEME as a separate protocol, or that all of SKEME’s optional properties automatically apply to an IKEv2 deployment. RFC 2409.
IPsec Cryptography
Key exchange, peer authentication, traffic encryption and packet integrity have different algorithm requirements. ESP can use AES-GCM or ChaCha20-Poly1305 as AEAD constructions, or separate encryption and integrity transforms. AH provides integrity, not encryption.
RFC 8221 (2017) specifies implementation requirements and usage guidance for ESP/AH; RFC 8247 (2017) addresses IKEv2. Later updates such as RFC 9395 (2023) also matter. A required-to-implement algorithm is not necessarily a deployment’s preferred choice.
Authentication Header (AH)
AH provides integrity and data-origin authentication for its protected bytes, and supports anti-replay processing. It authenticates the payload and selected IP-header fields. Fields that legitimately change in transit are handled according to RFC 4302; it is not correct to say every header bit is protected unchanged.
AH uses a keyed integrity algorithm, often an HMAC. Its own Integrity Check Value (ICV) field is set to zero for the calculation, so there is no circular hash of the transmitted tag into itself. Anti-replay uses a sequence number and the receiver’s sliding window; the receiver does not set a replay bit to acknowledge the packet. AH supplies no confidentiality. RFC 4302, Sections 2.5 and 3.3–3.4.
NAT Not Available with AH
Ordinary NAT changes addresses that AH protects, so it breaks AH validation. RFC 3948’s UDP encapsulation is for ESP and explicitly excludes AH because of this incompatibility. Simply placing UDP in front of AH does not make it a standard NAT-T packet. RFC 3948, Section 1.
AH Process Flow
- Select the outbound AH SA and assign the packet’s sequence number.
- Insert AH after the appropriate IP header(s); normalize the fields specified by RFC 4302 and zero the ICV field for calculation.
- Calculate the keyed integrity value and place it in AH.
- The receiver finds the inbound SA, checks sequence/replay state as applicable, and verifies the ICV before accepting protected data.
The receiver maintains its replay state locally; AH does not add an acknowledgement exchange. RFC 4302, Section 3.
AH in Transport Mode
AH transport mode places AH before the upper-layer protocol. It protects the payload and the immutable or predictable portions of the IP header. The original arrow below needs that qualification: mutable fields and the zeroed ICV are exceptions.
Original illustration — see correction above
Schematic only: the full-width arrow does not mean every IP-header bit is authenticated as transmitted.
AH in Tunnel Mode
AH tunnel mode protects the entire inner IP packet and selected fields of the new outer IP header. The outer header’s mutable-field exceptions still apply; no bytes are encrypted by AH.
Original illustration — see correction above
The inner IP packet is authenticated, not encrypted. The outer-header coverage has the RFC 4302 mutable-field exceptions.
Encapsulating Security Payload (ESP)
ESP supports confidentiality, integrity, data-origin authentication, anti-replay and limited traffic-flow confidentiality. Integrity-only ESP is also supported: ESP does not always encrypt.
With encryption enabled, transport mode covers the upper-layer payload and trailer, while tunnel mode covers the entire inner IP packet and trailer. The outer IP header remains outside ESP’s integrity protection. Padding and tunneling can conceal some traffic characteristics, but do not defeat all traffic analysis. RFC 4303.
ESP Encryption/Authentication Process Flow
Select an ESP SA, assign a sequence number and apply its specified encryption/integrity construction. With separate encryption and integrity, the integrity calculation covers the ESP header and protected ciphertext/trailer, not the outer IP header or the integrity tag itself. AEAD uses the construction’s specified associated-data and nonce rules.
The receiver verifies integrity and replay state as required before delivering accepted plaintext. HMAC-SHA-1 is not a universal current default: algorithm requirements are dated, and modern guidance includes SHA-2 and AEAD choices. RFC 4303; RFC 8221.
ESP in Transport Mode
With encryption enabled, ESP transport mode encrypts the upper-layer header, data and ESP trailer. The ESP header is authenticated but not encrypted; the outer IP header is neither encrypted nor authenticated by ESP. Explicit IV/nonce fields depend on the selected algorithm.
Original illustration — see correction above
This simplified drawing omits algorithm-specific IV/nonce detail. ESP integrity excludes its own tag and the outer IP header.
ESP in Tunnel Mode
With encryption enabled, ESP tunnel mode encrypts the inner IP header, upper-layer header, data and ESP trailer. The new outer IP header and ESP header remain visible. ESP integrity covers its defined header/payload/trailer bytes, not the outer IP header or its own tag.
Original illustration — see correction above
The inner packet is encrypted in this configuration. The outer header remains outside ESP protection.
AH vs. ESP: Which One Should I Use?
Use the required protection and deployment constraints to choose:
- For confidentiality plus integrity, use an appropriate authenticated ESP configuration.
- For integrity without confidentiality, ESP also supports integrity-only service; AH is not the only choice.
- For standard NAT traversal, use UDP-encapsulated ESP in an appropriate transport or tunnel configuration.
- AH adds integrity coverage for selected outer-IP fields, with the associated NAT limitations.
Adding AH to ESP is not automatically stronger or necessary. RFC 8221, Section 4 does not recommend that combination as the general way to provide authenticated encryption.
Authentication (AH vs. ESP)
The key distinction is coverage. AH covers payload plus immutable/predictable IP-header fields; ESP covers its own defined fields and payload. An original IP header is inside ESP’s coverage when carried as the inner packet of tunnel mode. Neither protocol authenticates every mutable outer-header bit. RFC 4302; RFC 4303.
Applying Both AH and ESP Together
AH and ESP can be applied through separate SAs, but the ordering and mode of each application determine the result. Their combination adds headers and processing and must be analyzed as a specific construction. ESP with suitable AEAD normally supplies confidentiality and integrity without a separate AH layer. RFC 4301, Section 4.1; RFC 8221, Section 4.
The Case for AH
AH’s distinguishing feature is coverage of selected IP-header fields. It does not gain a special advantage by hashing its own transmitted tag: its ICV field is zeroed for calculation. The original full-width arrow below is only schematic.
Original illustration — see correction above
Apply the mutable-field and zeroed-ICV exceptions described above.
The Case for ESP
ESP can provide both confidentiality and integrity while leaving the outer IP header outside its integrity coverage. This makes UDP-encapsulated ESP compatible with NAT changes to the outer addressing. Choosing ESP does not mean sacrificing strong message integrity.
Original illustration — see correction above
The ESP header is integrity-protected but not encrypted. Its tag and the outer IP header are outside the integrity calculation.
The Case for Both
A specific deployment can apply AH outside ESP when selected outer-header integrity is required and NAT is not changing those fields. This is not a general upgrade over authenticated ESP, and each protocol uses its own SA. The original transport-mode drawing below needs the AH mutable-field qualification; the corrected diagram section gives an explicit packet order.
Original illustration — see correction above
Historical combined-protocol illustration. Full-width AH coverage still excludes or normalizes fields as required by RFC 4302.
NAT-T via UDP Header
NAT-T carries ESP inside UDP. A tunnel-mode example is:
Outer IP | UDP | ESP header | {Inner IP | TCP | Data | ESP trailer} | ESP tag
Braces mark the encrypted portion for this example. UDP/outer-IP headers are outside ESP integrity. IKE and encapsulated ESP ordinarily use UDP port 4500 after NAT is detected; UDP-encapsulated IKE is distinguished by a four-byte non-ESP marker. ESP does not carry that marker. Transport-mode ESP NAT traversal is also specified, with additional address/checksum considerations. RFC 3948; RFC 7296, Section 2.23.
Original illustration — see correction above
This tunnel-mode ESP drawing is schematic; an explicit IV/nonce may also be present depending on the transform.
Cryptographic Algorithms for AH and ESP
AH is Authentication Header, not Authorization Header, and has no encryption algorithm. ESP supports encryption and integrity transforms. ChaCha20 alone encrypts; Poly1305 alone authenticates; the specified ChaCha20-Poly1305 combination is AEAD.
RFC 8221 (2017) explicitly lists ENCR_CHACHA20_POLY1305 as SHOULD implement and AES-GCM-16 as MUST implement. It lists 3DES as SHOULD NOT, not as an unqualified current alternative. RFC 7634 defines the ChaCha20-Poly1305 use. See the dated algorithm tables for conditions and the distinction between implementation requirements and operational policy.
Encryption (ESP) + Authentication (AH and ESP)
RFC 8221 requires encryption to be authenticated. ESP can supply both services using AEAD or separate encryption and integrity algorithms. A separate AH layer is not required for ESP integrity. The RFC also describes ESP encryption with AH authentication, but does not recommend it as the general approach.
ESP protects an inner IP header when that header is part of the tunnel payload. The claim that ESP never protects an IP header is therefore incorrect. RFC 8221, Section 4; RFC 4303.
Diffie-Hellman (D-H)
DH is key agreement, not payload encryption. The peers exchange public values, calculate a shared secret locally and derive keys from it. Without authentication, an attacker can substitute its own exchange. Authenticated ephemeral DH with suitable secret deletion can provide forward secrecy.
Groups specify mathematical parameters, not a fixed menu of 24 encryption algorithms. Finite-field and elliptic-curve parameter sizes measure different constructions and should not be compared as equivalent key strengths. RFC 6989; RFC 7748; RFC 7296, Section 2.12.
Diagrams
These layouts use a simple IPv4/TCP example. AH and ESP are IP protocols, not TCP wrappers around the tunnel. IPv6 extension-header placement and algorithm-specific IVs add details not shown here. IPsec remains an IP-layer service; carrying another encapsulation inside it does not turn IPsec itself into Ethernet bridging.
In the layouts below, braces mark the bytes encrypted by ESP when confidentiality is enabled. ESP integrity covers its specified header and protected payload/trailer, not the surrounding IP/UDP headers or its own tag. AH coverage has the mutable-field and zeroed-ICV exceptions from RFC 4302.
The original images remain available beneath each corrected explanation. Their arrows and labels are not substitutes for RFC 4302, RFC 4303 or RFC 3948.
Authentication (AH Only)
AH supplies authentication/integrity without encryption. The correct protocol name is Authentication Header.
Normal TCP/IP Packet
An ordinary IP packet carrying TCP; no IPsec protection is shown.
IP | TCP | Data
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
Authentication Header (AH) | TCP | Transport Mode
AH transport mode: payload and selected IP-header fields are authenticated; nothing is encrypted.
IP | AH | TCP | Data
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
Authentication Header (AH) | TCP | Tunnel Mode
AH tunnel mode: the inner packet is authenticated, with selected outer-header coverage; nothing is encrypted.
Outer IP | AH | Inner IP | TCP | Data
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
Historical UDP/AH Illustration — Not Standard NAT-T
The original UDP/AH drawing is not a NAT-T format defined by RFC 3948. That specification encapsulates ESP, excludes AH, and does not resolve AH address protection by simply adding a UDP header.
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
Encryption and Authentication (ESP Only)
The following examples show ESP with encryption and integrity enabled. Integrity-only ESP is also possible.
ESP | Transport Mode
ESP transport mode with confidentiality and integrity. The ESP header is outside the encrypted portion.
IP | ESP header | {TCP | Data | ESP trailer} | ESP tag
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
ESP | Tunnel Mode
ESP tunnel mode with confidentiality and integrity. The inner IP header belongs inside the encrypted portion.
Outer IP | ESP header | {Inner IP | TCP | Data | ESP trailer} | ESP tag
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
UDP Encapsulation of ESP | Tunnel Mode
Standard UDP-encapsulated ESP, shown in tunnel mode. Outer IP and UDP remain outside ESP integrity.
Outer IP | UDP | ESP header | {Inner IP | TCP | Data | ESP trailer} | ESP tag
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
Authentication and Encryption (AH + ESP)
These are examples of applying separate AH and ESP SAs. Their ordering matters; combining them is not required for authenticated ESP.
AH and ESP | TCP | Transport Mode
An example with AH outside transport-mode ESP. AH and ESP use separate SAs; AH protects selected IP fields and the following ESP packet.
IP | AH | ESP header | {TCP | Data | ESP trailer} | ESP tag
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
AH and ESP | TCP | Tunnel Mode
An example with AH applied outside an ESP tunnel. The original image below places the inner IP header before ESP and outside encryption; that does not represent this construction.
Outer IP | AH | ESP header | {Inner IP | TCP | Data | ESP trailer} | ESP tag
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
Historical UDP/AH/ESP Illustration — Not Standard NAT-T
The original combined UDP/AH/ESP drawing is not the RFC 3948 NAT-T layout. For that mechanism, UDP is followed by ESP. Other nested security constructions require their own complete analysis; this drawing does not establish their correctness.
Original illustration — see correction above
Original illustration retained for comparison. Use the explanation and corrected layout above; all AH coverage is subject to RFC 4302 exceptions.
Footnotes
- IKEv2’s base specification is RFC 7296; its extensions and algorithm guidance are separate documents.
- Historical IKEv1 Aggressive Mode with a weak PSK can expose material for offline password guessing, rather than sending the PSK itself in plaintext. IKEv1 is deprecated by RFC 9395.
- AEAD means authenticated encryption with associated data, not a guarantee of one computational round.
- RFC 7634 defines ChaCha20-Poly1305 for IKE and IPsec; RFC 8221 explicitly lists it for ESP.
- RFC 8221 (2017) classified 3DES as SHOULD NOT. The dated table is not a complete current cipher policy.
- RFC 8439 updates RFC 7539’s description of ChaCha20 and Poly1305.