Date post: | 20-Jan-2016 |
Category: |
Documents |
Upload: | angelica-annice-morton |
View: | 219 times |
Download: | 3 times |
Henric Johnson 1
Chapter 6Chapter 6
IP Security
Henric Johnson 2
OutlineOutline
• Internetworking and Internet Protocols • IP Security Overview• IP Security Architecture• Authentication Header• Encapsulating Security Payload• Combinations of Security Associations• Key Management
Henric Johnson 3
TCP/IP ExampleTCP/IP Example
Henric Johnson 6
IP Security OverviewIP Security Overview
IPSec is not a single protocol. Instead, IPSec provides a set of security algorithms plus a general framework that allows a pair of communicating entities to use whichever algorithms provide security appropriate for the communication.
Henric Johnson 7
IP Security OverviewIP Security Overview
• Applications of IPSec– Secure branch office connectivity over
the Internet– Secure remote access over the
Internet– Establsihing extranet and intranet
connectivity with partners– Enhancing electronic commerce
security
Henric Johnson 8
IP Security ScenarioIP Security Scenario
Henric Johnson 9
IP Security OverviewIP Security Overview
• Benefits of IPSec– Transparent to applications (below transport
layer (TCP, UDP)– Provide security for individual users
• IPSec can assure that:– A router or neighbor advertisement comes
from an authorized router– A redirect message comes from the router
to which the initial packet was sent
Henric Johnson 11
IPSec Document IPSec Document OverviewOverview
Henric Johnson 12
IPSec ServicesIPSec Services
• Access Control• Connectionless integrity• Data origin authentication• Rejection of replayed packets• Confidentiality (encryption)• Limited traffic flow confidentiallity
Henric Johnson 13
Security Associations Security Associations (SA)(SA)
• A one way relationsship between a sender and a receiver.
• Identified by three parameters:– Security Parameter Index (SPI)– IP Destination address– Security Protocol Identifier
AH and ESP modes of operation
Tunnel mode Transport mode
ModesModes• In tunnel mode an encrypted tunnel
is establish between DTE AND DCE• It create ipsec tunnel between two
ends• Tunnel mode is normally used
between two routers,host and routers or router and host.
• Generally it is not used between two hosts.
ModesModes• The transport mode does not hide
the actual source and destination addresses.
• They are visible in plain text.• In the transport mode Ipsec takes the
transport layer payload, add ipsec heade and encrypt whole thing and then add ip header in not encrypted.
• Transpor mode used between host to host.
Henric Johnson 17
Transport Mode SA
Tunnel Mode SA
AH Authenticates IP payload and selected portions of IP header and IPv6 extension headers
Authenticates entire inner IP packet plus selected portions of outer IP header
ESP Encrypts IP payload and any IPv6 extesion header
Encrypts inner IP packet
Henric Johnson 18
Before applying AHBefore applying AH
Henric Johnson 19
Transport Mode (AH Transport Mode (AH Authentication)Authentication)
Henric Johnson 20
Tunnel Mode (AH Tunnel Mode (AH Authentication)Authentication)
Henric Johnson 21
Authentication HeaderAuthentication Header
• Provides support for data integrity and authentication (MAC code) of IP packets.
• Guards against replay attacks.
Henric Johnson 22
End-to-end versus End-End-to-end versus End-to-Intermediate to-Intermediate AuthenticationAuthentication
Henric Johnson 23
Encapsulating Security Encapsulating Security PayloadPayload
• ESP provides confidentiality services
ESPESP• SPI= 32 Bits field, used for uniquely identify
the SA For traffic to which datagram belong• Sequence number= 32 bit field,to prevent
duplicate packets.• Payload data= transport layer segment or ip
packet (encrypted)• Padding= add padding bits used by
authentication algorithm• Padding length=no of padding bytes• Next header= types of encapsulated data in
payload like 4 for tcp• Authentication data= contain integrity check
value calculated by esp packet minius AH packet. Henric Johnson 24
Henric Johnson 25
Encryption and Encryption and Authentication Authentication
AlgorithmsAlgorithms• Encryption:
– Three-key triple DES– RC5– IDEA– Three-key triple IDEA– CAST– Blowfish
• Authentication:– HMAC-MD5-96– HMAC-SHA-1-96
Henric Johnson 26
ESP Encryption and ESP Encryption and AuthenticationAuthentication
Henric Johnson 27
ESP Encryption and ESP Encryption and AuthenticationAuthentication
Henric Johnson 28
Combinations of Combinations of Security AssociationsSecurity Associations
Henric Johnson 29
Combinations of Combinations of Security AssociationsSecurity Associations
Henric Johnson 30
Combinations of Combinations of Security AssociationsSecurity Associations
Henric Johnson 31
Combinations of Combinations of Security AssociationsSecurity Associations
Henric Johnson 32
Key ManagementKey Management
• Two types:– Manual– Automated
• Diffie hellman• Internet Security Association and Key
Management Protocol (ISAKMP)