Title: IP Security
1Chapter 6
2Outline
- Internetworking and Internet Protocols (Appendix
6A) - IP Security Overview
- IP Security Architecture
- Authentication Header
- Encapsulating Security Payload
- Combinations of Security Associations
- Key Management
3TCP/IP Example
4IPv4 Header
5IPv6 Header
6IP Security Overview
- We have considered some application specific
security mechanisms - eg. S/MIME, PGP, Kerberos, SSL/HTTPS
- However there are security concerns that cut
across protocol layers - Would like security implemented by the network
for all applications
7IP 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.
8IP Security Overview
- In general IP Security mechanisms provides
- authentication
- confidentiality
- key management
- It is applicable to use over LANs, across public
private WANs, for the Internet
9IP 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
10IP Security Scenario
11IP 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 - A routing update is not forged
12IP Security Architecture
- IPSec documents
- RFC 2401 An overview of security architecture
- RFC 2402 Description of a packet encryption
extension to IPv4 and IPv6 - RFC 2406 Description of a packet emcryption
extension to IPv4 and IPv6 - RFC 2408 Specification of key managament
capabilities
13IPSec Document Overview
14IPSec Services
- Access Control
- Connectionless integrity
- Data origin authentication
- Rejection of replayed packets
- Confidentiality (encryption)
- Limited traffic flow confidentiallity
15Security Associations(SA)
- A one-way relationship between sender receiver
that affords security for traffic flow - Defined by 3 parameters
- Security Parameters Index (SPI)
- IP Destination Address
- Security Protocol Identifier
- Has a number of other parameters
- seq no, AH EH info, lifetime etc
- Have a database of Security Associations
16Transport 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
ESP with authentication Encrypts IP payload and any IPv6 extesion header. Authenticates IP payload but no IP header Encrypts inner IP packet. Authenticates inner IP packet.
17Authentication Header (AH)
- provides support for data integrity
authentication of IP packets - end system/router can authenticate user/app
- prevents address spoofing attacks by tracking
sequence numbers - based on use of a MAC
- HMAC-MD5-96 or HMAC-SHA-1-96
- parties must share a secret key
18Authentication Header
19End-to-end versus End-to-Intermediate
Authentication
20Before applying AH
21Transport Mode (AH Authentication)
22Tunnel Mode (AH Authentication)
23Encapsulating Security Payload (ESP)
- provides message content confidentiality
limited traffic flow confidentiality - can optionally provide the same authentication
services as AH - supports range of ciphers, modes, padding
- incl. DES, Triple-DES, RC5, IDEA, CAST etc
- CBC most common
- pad to meet blocksize, for traffic flow
24Encapsulating Security Payload
25Encryption and Authentication Algorithms
- Encryption
- Three-key triple DES
- RC5
- IDEA
- Three-key triple IDEA
- CAST
- Blowfish
- Authentication
- HMAC-MD5-96
- HMAC-SHA-1-96
26ESP Encryption and Authentication
27ESP Encryption and Authentication
28Transport vs Tunnel Mode ESP
- transport mode is used to encrypt optionally
authenticate IP data - data protected but header left in clear
- can do traffic analysis but is efficient
- good for ESP host to host traffic
- tunnel mode encrypts entire IP packet
- add new header for next hop
- good for VPNs, gateway to gateway security
29Combinations of Security Associations
30Combinations of Security Associations
31Combinations of Security Associations
32Combinations of Security Associations
33Key Management
- Two types
- Manual
- Automated
- Oakley Key Determination Protocol
- Internet Security Association and Key Management
Protocol (ISAKMP)
34Oakley
- Three authentication methods
- Digital signatures
- Public-key encryption
- Symmetric-key encryption
35ISAKMP
36Recommended Reading
- Comer, D. Internetworking with TCP/IP, Volume I
Principles, Protocols and Architecture. Prentic
Hall, 1995 - Stevens, W. TCP/IP Illustrated, Volume 1 The
Protocols. Addison-Wesley, 1994