You are on page 1of 34

INTERNET SECURITY

Layers Security
 Network Layer
 Transport Layer
 Application Layer
Network Layer
 IP Security (IPSec) is a collection of protocols
designed by the Internet Engineering Task Force
(IETF) to provide security for a packet at the
network layer
 IPSec helps create authenticated and confidential
packets for the IP layer.
Topics Discussed in the Section
✓ Two Modes
✓ Two Security Protocols
✓ Services Provided by IPSec
✓ Security Association
✓ Internet Key Exchange (IKE)
✓ Virtual Private Network (VPN)

4 TCP/IP Protocol Suite


Figure 30.1 IPSec in transport mode

5 TCP/IP Protocol Suite


Note

IPSec in transport mode does not protect


the IP header;
it only protects the information coming from
the transport layer.

6 TCP/IP Protocol Suite


Figure 30.2 Transport mode in Action

7 TCP/IP Protocol Suite


Figure 30.3 IPSec in tunnel mode

8 TCP/IP Protocol Suite


Figure 30.4 Tunnel-mode in action

Tunnel

9 TCP/IP Protocol Suite


Note

IPSec in tunnel mode protects the original


IP header.

10 TCP/IP Protocol Suite


Figure 30.5 Transport mode versus tunnel mode

11 TCP/IP Protocol Suite


 Two Security Protocols
 IPSec defines two protocols the Authentication
Header (AH) Protocol and the Encapsulating
Security Payload (ESP) Protocol
to provide authentication and/or encryption for
packets at the IP level
Authentication Header (AH)
 The Authentication Header (AH) Protocol is designed to
authenticate the source host and to ensure the integrity of
the payload carried in the IP packet
 The protocol uses a hash function and a symmetric (secret)
key to create a message digest; the digest is inserted in
the authentication header
 The AH is then placed in the appropriate location, based
on the mode (transport or tunnel)
Note

The AH protocol provides source


authentication and data integrity,
but not privacy.

14
Encapsulating Security Payload (ESP)
 Encapsulating Security Payload(ESP), that provides
source authentication, integrity, and confidentiality
 ESP adds a header and trailer
16 TCP/IP Protocol Suite
Security Association
 IPSec requires a logical relationship, called a
Security Association (SA), between two hosts.
 there are two Security Associations (SAs) between
Alice and Bob; one outbound SA and one inbound
SA. Each of them stores the value of the key in a
variable and the name of the
encryption/decryption algorithm in another
 A Security Association is a contract between two
parties; it creates a secure channel between them
Figure 30.8 Simple SA
Internet Key Exchange (IKE)
 The Internet Key Exchange (IKE) is a protocol
designed to create both inbound and outbound
Security Associations
Virtual private network

From From
From R1 to R2 R1 to R2 From
100 to 200 100 to 200
TRANSPORT LAYER SECURITY

Two protocols are dominant today for providing


security at the transport layer: the Secure Sockets
Layer (SSL) protocol and the Transport Layer
Security (TLS) protocol. The latter is actually an
IETF version of the former. We discuss SSL in this
section; TLS is very similar. Figure 30.15 shows the
position of SSL and TLS in the Internet model.
Figure 30.15 Location of SSL and TSL in the Internet mode
Figure 30.19 Four SSL protocols

23 TCP/IP Protocol Suite


 The Record Protocol is the carrier. It carries messages
from three other protocols as well as the data coming
from the application layer. Messages from the Record
Protocol are payloads to the transport layer, normally
TCP.
 The Handshake Protocol provides security parameters
for the Record Protocol. It establishes a cipher set and
provides keys and security parameters. It also
authenticates the server to the client and the client to the
server if needed.
 The ChangeCipherSpec Protocol is used for signaling
the readiness of cryptographic secrets.
 The Alert Protocol is used to report abnormal conditions
30-3 APPLICATION LAYER SECURITY

Usually we have two protocols providing security


services for e-mails: Pretty Good Privacy (PGP) and
Secure/Multipurpose Internet Mail Extension
(S/MIME).

25
Note

In e-mail security, the sender of the


message needs to include the name
or identifiers of the algorithms
used in the message.
Note

In e-mail security, the encryption/decryption


is done using a symmetric-key algorithm,
but the secret key to decrypt the message
is
encrypted with the public key of the
receiver and is sent with the message.
PGP at the sender site
PGP at the receiver site
30-4 FIREWALLS

All previous security measures cannot prevent Eve


from sending a harmful message to a system. To
control access to a system we need firewalls. A
firewall is a device (usually a router or a computer)
installed between the internal network of an
organization and the rest of the Internet. It is
designed to forward some packets and filter (not
forward) others. Figure 30.32 shows a firewall.

30
Figure 30.32 Firewall

31
Figure 30.33 Packet-filter firewall

32
Figure 30.34 Proxy firewall

Errors

All HTTP
packets
Accepted
packets

33
Note

A proxy firewall filters at the


application layer.

34

You might also like