Module 5
Module 5
Module 5
MODULE 5
Course Outcomes
• Define cryptography and its principles
• Transport mode
• Tunnel mode
Transport Mode:
• Transport mode provides protection primarily for upper-layer
protocols. That is, transport mode protection extends to the
payload of an IP packet.
• Examples include a TCP or UDP segment or an ICMP packet, all
of which operate directly above IP in a host protocol stack.
Typically, transport mode is used for end to- end communication
between two hosts (e.g., a client and a server, or two
workstations).
• When a host runs AH or ESP over IPv4, the payload is the data
that normally follow the IP header. For IPv6, the payload is the
data that normally follow both the IP header and any IPv6
extensions headers that are present, with the possible exception
of the destination options header, which may be included in the
protection.
• ESP in transport mode encrypts and optionally authenticates the
IP payload but not the IP header. AH in transport mode
authenticates the IP payload and selected portions of the IP
header.
Tunnel Mode
• Tunnel mode provides protection to the entire IP packet.
• To achieve this, after the AH or ESP fields are added to the
IP packet, the entire packet plus security fields is treated as
the payload of new outer IP packet with a new outer IP
header.
• The entire original, inner, packet travels through a tunnel
from one point of an IP network to another; no routers along
the way are able to examine the inner IP header.
• the original packet is encapsulated, the new, larger packet
may have totally different source and destination addresses,
adding to the security.
• Tunnel mode is used when one or both ends of a security
association (SA) are a security gateway, such as a firewall
or router that implements IPsec
Security association (SA)
• An association is a one-way logical connection between a
sender and a receiver that affords security services to the
traffic carried on it.
• With the help of the defined IPsec protocols, SAs offer data
protection for unidirectional traffic.