Sie sind auf Seite 1von 13

Computer Networks

Virtual Private Networks (VPNs) (8.6.3, 8.6.1)


David Wetherall (djw@uw.edu) Professor of Computer Science & Engineering

Topic
Virtual Private Networks (VPNs)
Run as closed networks on Internet Use IPSEC to secure messages
Internet

Computer Networks

Motivation
The best part of IP connectivity
You can send to any other host

The worst part of IP connectivity


Any host can send packets to you! Theres nasty stuff out there
Internet

Computer Networks

Motivation (2)
Often desirable to separate network from the Internet, e.g., a company
Private network with leased lines Physically separated from Internet
Leased line Site A
No way in!
Computer Networks

Site C Site B
4

Motivation (3)
Idea: Use the public Internet instead of leased lines cheaper!
Logically separated from Internet This is a Virtual Private Network (VPN)
Virtual link Site A
Maybe
Computer Networks

Site C Internet Site B


5

Goal and Threat Model


Goal is to keep a logical network (VPN) separate from the Internet while using it for connectivity
Threat is Trudy may access VPN and intercept or tamper with messages
Ideal
Computer Networks

Tunneling
How can we build a virtual link? With tunneling!
Hosts in private network send to each other normally To cross virtual link (tunnel), endpoints encapsulate packet
Tunnel endpoint Tunnel endpoint Virtual link or tunnel

Private Network A
Computer Networks

Public Internet

Private Network B
7

Tunneling (2)
Tunnel endpoints encapsulate IP packets (IP in IP)
Add/modify outer IP header for delivery to remote endpoint
App TCP IP 802.11 App Tunnel Endpoint IP IP IP Many Routers! Tunnel Endpoint IP IP IP TCP IP 802.11

802.11 Ethernet

Ethernet 802.11

Private Network A
Computer Networks

Public Internet

Private Network B
8

Tunneling (3)
Simplest encapsulation wraps packet with another IP header
Outer (tunnel) IP header has tunnel endpoints as source/destination Inner packet has private network IP addresses as source/destination
Outer (Tunnel) IP
IP
Computer Networks

Inner packet
TCP HTTP
9

IP

Tunneling (4)
Tunneling alone is not secure
No confidentiality, integrity/ authenticity Trudy can read, inject her own messages We require cryptographic protections!

IPSEC (IP Security) is often used to secure VPN tunnels


Computer Networks 10

IPSEC (IP Security)


Longstanding effort to secure the IP layer
Adds confidentiality, integrity/authenticity

IPSEC operation:
Keys are set up for communicating host pairs Communication becomes more connection-oriented Header and trailer added to protect IP packets
Tunnel Mode
Computer Networks 11

Takeaways
VPNs are useful for building networks on top of the Internet
Virtual links encapsulate packets Alters IP connectivity for hosts

VPNs need crypto to secure messages


Typically IPSEC is used for confidentiality, integrity/authenticity
Computer Networks 12

END
2013 D. Wetherall
Slide material from: TANENBAUM, ANDREW S.; WETHERALL, DAVID J., COMPUTER NETWORKS, 5th Edition, 2011. Electronically reproduced by permission of Pearson Education, Inc., Upper Saddle River, New Jersey
Computer Networks 13

Das könnte Ihnen auch gefallen