Ip Sec
Ip Sec
SP D SP D
SA
IP sec IP sec
SA D SA D
IPSec Protocols
• The protocols used to provide security are the
Authentication Header (AH) and Encapsulating
Security Payload (ESP)
• Each protocol can be used in one of two modes
– Transport mode – used to protect upper layer payloads
of an IP packet (tcp, udp)
– Tunnel mode – used to protect an entire IP packet
including its payload (VPN)
• Transport mode is used as an SA between two
hosts
• Tunnel mode is used as an SA between two
gateways or a host and gateway
IPSec Protocols
• Transport Mode (upper level protocols)
IP IP se c P ayload
Pro te cte d
O ute r
IP se c Inne r IP P ayload
IP
Pro te cte d
IPSec Protocols
• AH is used to provide
– Connectionless integrity and data origin
authentication (integrity)
– Optional anti-replay service
• ESP is used to provide
– Confidentiality and (integrity) connectionless
integrity and data origin authentication
– Connectionless integrity and data origin
authentication (integrity)
– Limited traffic flow confidentiality
– Optional anti-replay service
IPSec Protocols
• Integrity Algorithm (AH, ESP)
– Hashed Message Authentication Code (160 bit key)
• Confidentiality Algorithm (ESP)
– AES CBC mode (128 bit key – 256 bit key)
• Transport Mode Protection
• AH - Integrity
– Immutable sections of the IP header, the AH header,
and the upper level data
• ESP - Integrity
– The ESP header, the upper level data, and the ESP
trailer
• ESP – Confidentiality
– The upper level data, and the ESP trailer
IPSec Protocols
• Transport Mode (AH)
IP U p p e r L e ve l
AH
H eader D a ta
In te g ri ty & A u th e n ti ca ti o n
In te g ri ty & A u th e n ti ca ti o n
IPSec Protocols
• Tunnel Mode Protection
• AH - Integrity
– Immutable sections of the outer IP header, the
AH header, and the entire inner IP packet
• ESP - Integrity
– The ESP header, the entire inner IP packet, and
the ESP trailer
• ESP – Confidentiality
– The entire inner IP packet, and the ESP trailer
IPSec Protocols
• Tunnel Mode (AH)
O u te r U p p e r L e ve l
AH In n e r IP
IP D a ta
In te g ri ty & A u th e n ti ca ti o n
In te g ri ty & A u th e n ti ca ti o n