Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN...

69
Virtual Private Networks Rafael Sebastian Departament de tecnologies de la Informació i les Comunicaciones Universitat Pompeu Fabra Design of Telecommunication Infrastructures 2008-2009

Transcript of Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN...

Page 1: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Virtual Private Networks

Rafael SebastianDepartament de tecnologies de la Informació i les Comunicaciones

Universitat Pompeu Fabra

Design of Telecommunication

Infrastructures

2008-2009

Page 2: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Differentiate between VPN types

Differences between overlay VPN and

peer-to-peer VPN

Major technologies supporting overlay and

peer-to-peer VPNs

2008/2009 VPN – Rafael Sebastian 2

Goals of the section

Page 3: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Overlay VPNs

Peer-to-peer VPNs

Overlay vs P2P VPNs

Review Questions

2008/2009 VPN – Rafael Sebastian 3

Table of Contents

Page 4: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Point-to-Point Connections

Virtual Private Networks

VPN Routing

Tunneling Protocols

2008/2009 VPN – Rafael Sebastian 4

Overlay VPNs

Page 5: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Point-to-Point connection or leased lines are not

VPNs

Guaranteed bandwidth and privacy through the

service

They are more expensive (no statistical multiplexing)

Customers are fully unaware of the infrastructure

behind

2008/2009 VPN – Rafael Sebastian 5

Point-to-Point Connections

OV

ER

LA

Y V

PN

s-

Intr

o

Dedicated lines

Packet switching

Page 6: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

CLI 2

VPN R

CLI 2

VPN R

CLI 2

VPN G

CLI 2

VPN G

CLI 1

VPN B

CLI 1

VPN B

Alternative to point-to-point connections same benefits

less cost

Uses a public shared infrastructure but with the

benefits of a private network

2008/2009 VPN – Rafael Sebastian 6

Virtual Private Networks

PE

PE

PE

PE

PECE

CE

CE

CE

CE

CE

OV

ER

LA

Y V

PN

s-

VP

Ns

Page 7: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Share the infrastructure

with other users

Share the infrastructure

for other services

Simpler to manage and

maintain2008/2009 VPN – Rafael Sebastian 7

Virtual Private Networks

OV

ER

LA

Y V

PN

s-

VP

Ns

VPN

Security

Performance

ScalabilityQoS

Price

Page 8: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Depending on the termination Overlay VPN (Based on CE)

Peer-to-peer VPN (Based on PE)

OSI Layer Level VPN Layer 2

VPN Layer 3

Service provider technology network IP, IP/MPLS, ATM, Frame Relay, SONET/SDH, X.25

Tunnel technology used IPSec, L2TP, PPTP, MPLS-LSP, ATM-VP/VC, Frame

Relay VC, PPP/Dial-up

Topology of the network Full-Mesh, Partial Mesh, Hub-and-spoke

2008/2009 VPN – Rafael Sebastian 8

Classification of VPNs

OV

ER

LA

Y V

PN

s-

VP

Ns

Page 9: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Full-Mesh

2008/2009 VPN – Rafael Sebastian 9

Network Topologies

OV

ER

LA

Y V

PN

s-

VP

Ns

Hub-and-SpokePartial-Mesh

VC1

VC2VC3

VC4

VC1

VC2

Optimal routing

Redundancy

Scalability

Cost

Cost Cost

Redundancy

Redundant

Page 10: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Topology dictated by business problem

Overall categories:

Topologies influenced by the overlay VPN model

Logical and VC dependent topologies

Extranet topologies, any-to-any vs. central services

Topology as a function of security requirements

Special purpose topologies, VPDN

2008/2009 VPN – Rafael Sebastian 10

Which topology should I

use?

OV

ER

LA

Y V

PN

s-

VP

Ns

Page 11: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 11

VPN Technologies – L1

OV

ER

LA

Y V

PN

s-

VP

Ns

Layer 1Physical layer VPNs

(SONET, E1/T1, ISDN)

STM-4 (622,08 Mb/s)

Barcelona Tarragona

60 Km

REP

STM-1

ISDN

SONET

Connection Oriented

Page 12: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 12

VPN Technologies – L2

OV

ER

LA

Y V

PN

s-

VP

Ns

Layer 2Link layer VPNs

(Frame Relay, X.25, ATM)

X.25

Frame Relay

Connection Oriented

Page 13: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 13

VPN Technologies – L3

OV

ER

LA

Y V

PN

s-

VP

Ns

Layer 3Network layer VPNs

(IPSEC, GRE, VPDN)

Connection Oriented

Home

Gateway

Corporate

Network

Network

Access

Server

PSTN/ISDN

Service Provide

IP Backbone

L2F/L2TP

IP over PPP

Page 14: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 14

VPN Routing -Point-to-point network

OV

ER

LA

Y V

PN

s–

VP

N R

OU

TIG

10.1.0.010.2.0.0

10.3.0.0R1 R2R1 R2

Page 15: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

VCs

2008/2009 VPN – Rafael Sebastian 15

VPN network

OV

ER

LA

Y V

PN

s–

VP

N R

OU

TIG

10.1.0.010.2.0.0

10.3.0.0R1 R2R1 R2

There is no service provider infrastructure showing up on the customer

routers R1 and R2!!

R1 and R2 are on a private and isolated connection

Page 16: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

High-Level knowledge of public network

security

Tunneling is resource-intensive

Packet handling = CPU power

Tunnels look “short”, but they aren't!

Beware of false routing decisions!

And routing loops

e.g. For IP-in-IP

Check your Max. MTU before tunneling

Tunnel Issues

OV

ER

LA

Y V

PN

s–

VP

N R

OU

TIG

Page 17: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Unexpected Routing Paths

Fast EthernetFast Ethernet

Gigabit Ethernet

Tunnel ADSL 1 Mega

Option 2: 1 hop, 100 Mbps

Option 1: 3 hops, 100 Mbps

10.1.0.1 10.1.0.2

DWDM networks

OV

ER

LA

Y V

PN

s–

VP

N R

OU

TIG

Page 18: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Tunnels & routing

Problem: Routing decisions are orthogonal

to tunneling!

Routing loops: You take the routing decision

twice!

Shortest path: “shortest” is not always best!

Solution: Fool the routing algorithm

Give unattractive metrics to tunnels

Prevent duplicate routing

...or simply use more intelligent protocols

OV

ER

LA

Y V

PN

s–

VP

N R

OU

TIG

Page 19: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 19

Virtual Private Dial-up Network

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

VPN Remote User Requirements

User Authentication

Address Management

Data Encryption

Multiprotocol Support

Page 20: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 20

Encapsulation vs. Tunneling

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Encapsulation Tunneling

One or more protocol are stacked

but there is only one instance to

one layer inside a block

One or more protocol layers are

repeated, so that a virtual topology

is created on top of the physical

topology [Yuan]

There is a fixed encapsulation

ordering

Any layer can encapsulate any

other (Ethernet over TCP possible)

Page 21: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 21

Encapsulation over WAN

ApplicationHTTP

TCP

IP

Server

Transport

Data Link

Network

IPIP

HDLC

IEEE

802.3 IEEE

802.5V.35

Physical

Application

Transport

Data Link

Network

Physical

Data Link

Network

Physical

Data Link

Network

Physical

IEEE

802.5

IEEE

802.3

LAN

Ethernet

LAN

Token Ring

WAN

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Page 22: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 22

Tunneling DSL

IP

ATM

AAL5

LLC/VCMux

PPPoA

PPP

DSL

Adaptation

Layers

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Transport

Data Link

Network

Physical

Data Link

Server

DSL

LAN

Token Ring

WAN

ATM

AAL5

DSL

Transport

Physical

Data Link

Carrier Protocol(Tunnel Protocol)

Passenger Protocol(Encapsulated Protocol)

Roles ?

Page 23: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Access of mobile users, home workers, remote offices

Use of Layer 2 protocols (based on PPP)

PPTP: Point-to-Point Tunneling Protocol

L2TP: Layer 2 Tunneling Protocol (RFC 2661)

L2F: Layer 2 Forwarding (RFC 2341)

Used over IP networks

2008/2009 VPN – Rafael Sebastian 23

Virtual Private Dial-up Network

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Home Gateway

Corporate

Network(NAS)

Service Provider (POP)

L2F/L2TP

(Dial-up, ISDN)

Page 24: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Client-initiated VPN

Known as “voluntary mode”

Point-to-point connection

End-to-LAN established

VPN Gateway aggregates traffic

Used in remote access VPN

2008/2009 VPN – Rafael Sebastian 24

Who starts the tunnel? (I)

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

PPPIPSec

Client-initiated tunnelUser

Corp. Network

LAN

Page 25: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Network Access Server (NAS)-initiated

VPN

Known as “compulsory mode”

User aggregation possible

Multiple VPNs per user possible

2008/2009 VPN – Rafael Sebastian 25

Who starts the tunnel? (II)

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

PPPIPSec, L2TP

NAS-initiated tunnelUser

Corp. Network

LAN

Page 26: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

1. Describe virtual private networks.

2. Define the major VPN topologies.

2008/2009 VPN – Rafael Sebastian 26

Short Questions

RE

VIE

W Q

UE

ST

ION

S

Page 27: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

1. VPNs emerged as a technology to replace ___________.

A. Point-to-point connections

B. Overlays

C. Tag-switched VPNs

D. Full-mesh topologies

2. Which of the following is not an overlay VPN topology?A. Full-mesh

B. Partial-mesh

C. Hub-and-spoke

D. Peer-to-peer

3. Which of the following topologies is usually used by financial

organizations?A. Full-mesh

B. Partial-mesh

C. Hub-and-spoke

D. Peer-to-peer

2008/2009 VPN – Rafael Sebastian 27

Test Questions

RE

VIE

W Q

UE

ST

ION

S

Page 28: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

4. If optimal routing is desired in a VPN topology, which of the

following topologies is the best?A. Full-mesh

B. Partial-mesh

C. Hub-and-spoke

D. None of the above

5. In an overlay VPN, a customer router ___________ aware of

the service provider infrastructure.A. Is

B. Is not

6. In which of the following VPN methods is it the most difficult to

implement proper security?A. Simple VPN

B. Overlay

C. Peer-to-peer

D. None of the above

2008/2009 VPN – Rafael Sebastian 28

Test Questions

RE

VIE

W Q

UE

ST

ION

S

Page 29: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

7. In a peer-to-peer VPN, a customer router ___________ aware

of the service provider infrastructure.A. Is

B. Is not

8. Which of the following peer-to-peer VPN methods has the most

security problems associated with it?A. Dedicated router

B. Shared router

9. A peer-to-peer VPN offers the same optimal traffic flow as a

___________ topology?A. Full-mesh

B. Partial-mesh

C. Hub-and-spoke

D. None of the above

2008/2009 VPN – Rafael Sebastian 29

Test Questions

RE

VIE

W Q

UE

ST

ION

S

Page 30: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

IP over everything

30

Point-to Point Protocol (PPP)REVIEW

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

Medio RFC Año

X.25 877, 1356 1983

Ethernet 894 1984

802.x 1042 1988

FDDI 1188, 1390 1990

PPP 1171, 1340, 1332, 1661-1663 1990

Frame Relay 1490 1993

ATM 1483, 1577 1994

Page 31: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Link layer protocol widely used in the Internet for, Dedicated lines, point-to-point

Analogical and digital connections (ISDN)

High speed connection over SONET/SDH

It is able to work in asynchronous and synchronous mode

Multiprotocol, it is able to transport several network protocols simultaneously

31

Point-to Point Protocol (PPP)REVIEW

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

8 bits 12 bits 24 bits 40 bits Variable 16-32 bits

Flag Address Control Protocol Information FCS

[RFC 1661, RFC 2153]

Page 32: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 32

PPP ComponentsREVIEW

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Authentication

Synchronous and Asynchronous

Network

Layer

Link

Layer

Physical

Layer

Protocols

Phase: “Link Establishment”:

LCP listening mode (C023h LCP)

Negotiation of extra options (C023h LCP)

Check link quality (C025h Link Quality Report)

Network layer configuration (C0__h NCP)

Link establishment

LCP finish

Phase: Authentication

(C021h PAP) or

(C223h CHAP)

Phase: Network layer

Page 33: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Password Authentication Protocol (PAP)

33

PPP Authentication (I)REVIEW

• Passwords are sent in clear text

• No Authentication fail control

• Not secure enough

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

Central Router

(HQ)

Hostname: santacruzPassword: boardwalk

Remote Router

(Santa Cruz)

Hostname: santacruzPassword: boardwalk

Accept/Reject

“Santacruz boardwalk”

PAP (two ways)

Page 34: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Challenge Handshake Authentication

Protocol (CHAP)

34

PPP Authentication (II)REVIEW

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

• Passwords are sent over the network

• Passwords agreed a priori

• Initial password check followed by periodic checks

Central Router

(HQ)

Hostname: santacruzPassword: boardwalk

Remote Router

(Santa Cruz)

Hostname: santacruzPassword: boardwalk

Response

Challenge

CHAP (three ways)

Accept/Reject

Page 35: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Challenge Handshake Authentication

Protocol (CHAP)

35

PPP Authentication (III)REVIEW

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

Page 36: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Point-to-Point Tunneling Protocol (PPTP) Mainly implemented and used by Microsoft

Extension of PPP

Allows tunneling of PPP datagrams over IP networks

Easy to use and to implement

Use of 2 connections Control connection

Tunnel connection

36

Point-to Point Tunneling

Protocol (PPTP) - L2 VPNs

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

IP

Header

GRE

Header

PPP

Header

PPP Payload

(IP / IPX Datagram,..)

[RFC 2637]

Encrypted

PPP frame

Page 37: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Features:

Compression

Encryption

User Authentication

Data delivery

Point-to-Point Tunneling Protocol (PPTP) Protocol

implemented by

Uses Generic Routing Encapsulation (GRE) PPP frames

PPTP-Access-Concentrator (PAC) and PPTP-Network-

Server (PNS)

Many sessions multiplexed on a single tunnel

37

Point-to Point Tunneling

Protocol (PPTP) - L2 VPNs

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

Page 38: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

PPTP Phase 1

LCP used to initiate connection (MPPE,MPPC)

PPTP Phase 2

Authentication to server (MS-CHAP, PAP, EAP,..)

PPTP Phase 3

Callback functions (Callback Control Protocol)

PPTP Phase 4

Protocols negotiated in Phase 1 invoked and setup

of PPP connection

2008/2009 VPN – Rafael Sebastian 38

PPTP Phases

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Page 39: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

PPTP Access Concentrator (PAC)

Device terminating remote access session

In PPTP is the remote user

Establishes secure connection to a server and tunnels data

PPTP Network Server (PNS)

Terminates tunnel from the PAC

Takes packets from pack, verifies and

decrypts

2008/2009 VPN – Rafael Sebastian 39

PPTP Components

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Page 40: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

GRE encapsulates packets inside IP

tunnels

It is an stateless protocol

Sequencing of packets

Useful for some higher-layer protocols

Priority policies

Traffic policies

2008/2009 VPN – Rafael Sebastian 40

Generic Routing EncapsulationREVIEW

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Page 41: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 41

Generic Routing EncapsulationREVIEW

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

IPv6 Payload

UDP Payload

RADIUS

GRE Payload

IPv4 Payload

Eth Payload

Application

Transport

Network

Encapsul

Network

Ethernet

Phys Payload Physical

RA

DIU

S

IPv6IPv4

Page 42: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Control connection (TCP)

Establishing, maintaining and tear down tunnel

Connection established from PAC or PNS

Message types: (1) Control and (2) Management

Set-up control connection:

(1) Start-Control-Connection-Request / (2) -Reply

Collision can be produced higher IP address wins

Maintain connection:

(1) Echo –Request / (2) –Reply

Terminating connection:

(1) Stop-Control-Connection-Request / (2) -Reply

2008/2009 VPN – Rafael Sebastian 42

PPTP Operation

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Page 43: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Tunnel Connection (GRE)

Carries all user PPP packets

Negotiates: PAC address, encryption & compression

Setup tunnel connection:

(1)Outgoing-Call –Request (2)–Reply

(3)Incoming-Call –Request (4)–Reply,(5)-Connected

Encapsulating payload:

Enhance GRE used to encapsulate PPP

GRE encapsulate into IP

Enhanced GRE sliding window for flow control2008/2009 VPN – Rafael Sebastian 43

PPTP Operation

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Page 44: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 44

PPTP operation

PPTP Control Channel / TCP

Remote PC

with PAC

PPP (1)

GRE Tunnel

PPP (2)

IP Datagram Exchange

IP

Data channel

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Internet

Integrated NAS

PNSISP NAS

LAN

Control channel

Page 45: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Fragmentation problems

MTU PPP (1532 Bytes) + GRE header (16 bytes) + IP header (20-60 bytes) = 1608 bytes + L2 Hdr

If > 1500 Maybe fragment = decrypt

Security Concerns (PACPNS)

No protection for IP, GRE and PPP header

Weak encryption

Address Translation issues

NAT or PAT problems may arise

2008/2009 VPN – Rafael Sebastian 45

Issues with PPTP

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Page 46: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Layer 2 Forwarding (L2F)

Developed by CISCO

Allows multiple tunnels and multiple connections on

every tunnel

Tunneling PPP and SLIP frames

Supports UDP, Frame Relay, X.25

46

Layer 2 Forwarding (L2F) L2 VPNs

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

Page 47: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Establishing connection:

1. Remote user initiates PPP connection to ISP

2. ISP undertakes authentication via CHAP or PAP

3. No tunnel exists:

Tunnel will be created

Tunnel exists:

New multiplex ID will be allocated -> notification to home

gateway

Home gateway accepts or declines new connection

47

Layer 2 Forwarding (L2F) L2 VPNs

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

Page 48: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Layer 2 Tunneling Protocol (L2TP)

Combines best features of L2F and PPTP

Uses UDP

Can be transported over Frame Relay, ATM, X.25

Allows multiple tunnels with multiple sessions inside

every tunnel

Commonly used with IPSec L2TP/IPSec

48

Layer 2 Tunneling Protocol

(L2TP) - L2 VPNs

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

IP

Header

UDP

Header

L2TP

Header

PPP

Header

PPP Payload

(IP / IPX Datagram,..)

[RFC 2661]

PPP frame

L2TP frame

UDP message

Page 49: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Structure of L2TP/IPSec

49

L2TP/IPSec - L2 VPNs

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

IP

Header

UDP

Header

L2TP

Header

PPP

Header

PPP Payload

(IP / IPX Datagram,..)

IP

Header

IPSec

ESP he

UDP

Header

L2TP

Header

PPP

Header

PPP Payload

(IP / IPX Datagram,

IPSec ESP

Trailer

IPSec Auth

Trailer

Page 50: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

50

Example L2TP/IPSec - L2 VPNs

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

2008/2009 VPN – Rafael Sebastian

1. Client Router starts a connection to VPN Server

Negotiation starts (using IKE & VPN Server)

Agreement on: Authentication method, session keys

Certificates exchanges between machines

2. Check certificates using CA and tunnel negotiation

Once tunnel is agreed, negotiate PPP connection

3. VPN Server transmits credentials and authentication

parameters to RADIUS Server

RADIUS Server validates user in the network.

RADIUS sends to NAS the information relative to the new

admitted user

Page 51: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 51

L2TP/IPSec vs. PPTP

PPTP L2TP/IPSec

Data Encryption after PPP connection

establishment

Data encryption begins before

connection is established by

negotiating an IPSec Security

Association (SA)

Use Microsoft Point-to-Point

Encryption (MPPE) stream cipher

using RSA RC-4

(40, 56, 128 Bits)

Use Data Encryption Standard (DES)

or 3-DES block cipher (56 Bits)

Requires only user-level authentication User-level and computer-level

authentication

Still implemented in Windows VPN Client software needed

OV

ER

LA

Y V

PN

s–

TU

NN

EL

ING

Page 52: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Overlay VPNs

Peer-to-peer VPNs

Overlay vs P2P VPNs

Review Questions

2008/2009 VPN – Rafael Sebastian 52

Table of Contents

Page 53: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Customer router peers with a service provider device

instead of with another customer device

With a traditional overlay VPN, the customer and

service provider networks were well isolated from one

another

2008/2009 VPN – Rafael Sebastian 53

Characteristics of P2P VPNs

PE

ER

TO

PE

ER

V

PN

s-

INT

RO

CLI 2

VPN R

CLI 2

VPN R

CLI 2

VPN G

CLI 2

VPN G

CLI 1

VPN B

CLI 1

VPN B

PE

PE

PE

PECE

CE

CE

CE

CE

CE

Page 54: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

The peer-to-peer VPN model was introduced

a few years ago to alleviate the drawbacks of

the overlay VPN model

Benefits:

Optimal routing: To get optimal routing with a

traditional VPN, you need a full-mesh topology

Routing admin: Customer only cares about the

directly connected PE-router

Addition of new sites simpler: Only needs to

change PE-router config, no new VCs required

2008/2009 VPN – Rafael Sebastian 54

Why P2P VPNs?

PE

ER

TO

PE

ER

V

PN

s-

INT

RO

Page 55: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Shared PE-Router

Router shared by several customer

Isolation by using Access Lists

Dedicated PE-Router

Dedicates routers (virtually)

Use of Per-VPN routing tables in PE-router

Any routing protocol netween CE- and PE-

and BGP between PE- an P-routers

2008/2009 VPN – Rafael Sebastian 55

Traditional P2P VPNs

PE

ER

TO

PE

ER

V

PN

s-

INT

RO

Page 56: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Security: Sharing connection with service

provider network

Management: Too many routing protocols

Scalability and complexity are compromised

Constricted IP addresses: Shared address

between service provider and customer

Default routes: Limitation for the use of

several ISPs

2008/2009 VPN – Rafael Sebastian 56

Not only benefits…

PE

ER

TO

PE

ER

V

PN

s-

INT

RO

Page 57: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

coming soon….

2008/2009 VPN – Rafael Sebastian 57

The solution for P2P VPNs

PE

ER

TO

PE

ER

V

PN

s-

INT

RO

Page 58: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Overlay VPNs

Peer-to-peer VPNs

Overlay vs P2P VPNs

Review Questions

2008/2009 VPN – Rafael Sebastian 58

Table of Contents

Page 59: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 59

Comparison of VPNs

OV

ER

LA

Y V

S

PE

ER

TO

PE

ER

VP

Ns

Page 60: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

2008/2009 VPN – Rafael Sebastian 60

Summary technologies

Virtual Network

Virtual Private

Network

OverlayVPN

Layer2 VPNs

X.25 F/R ATM

Layer 3 VPNs

GRE IPSec

P2P VPNs

Sharedrouters

MPLS/VPN

Virtual Dial-up Network

Virtual LANs

OV

ER

LA

Y V

S

PE

ER

TO

PE

ER

VP

Ns

Page 61: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

A Task will be added on the Moodle (16Jan)

Content (3 sections - mandatory)

Description & Operation of L2F

Description & Operation of L2TP

IPSec for L2TP

Presentation per group:

10-12 slides per presentation

15 minutes + questions / group

Each group will present only 1 Section

2008/2009 VPN – Rafael Sebastian 61

Delivery of Presentation

RE

VIE

W Q

UE

ST

ION

S

Page 62: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

Overlay VPNs

Peer-to-peer VPNs

Overlay vs P2P VPNs

Review Questions

2008/2009 VPN – Rafael Sebastian 62

Table of Contents

Page 63: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

3. Describe peer-to-peer VPNs.

4. Compare overlay and peer-to-peer

VPNs.

2008/2009 VPN – Rafael Sebastian 63

Short Questions

RE

VIE

W Q

UE

ST

ION

S

Page 64: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

10. Which of the following overlay VPN topologies is the least

expensive to implement?A. Full-mesh

B. Partial-mesh

C. Hub-and-spoke

D. None of the above

11. IPSec and GRE tunnels are Layer ___________ VPN

technologies?A. 1

B. 2

C. 3

D. 7

12. Which of the following is a Layer 1 VPN technology?A. IPSec

B. Frame Relay

C. GRE

D. ISDN

2008/2009 VPN – Rafael Sebastian 64

Test Questions

RE

VIE

W Q

UE

ST

ION

S

Page 65: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

13. A(n) ___________ is where everyone being connected is part

of the same company or organization.A. Intranet

B. Extranet

C. Combination of intranet and extranet

D. None of the above

14. A(n) ___________ is where sites from different companies or

organizations are connected.A. Intranet

B. Extranet

C. Combination of intranet and extranet

D. None of the above

15. Frame Relay and ATM are Layer _________ VPN

technologies.A. 1 B. 2

C. 3 D. 7

2008/2009 VPN – Rafael Sebastian 65

Test Questions

RE

VIE

W Q

UE

ST

ION

S

Page 66: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

16. Which of the following topologies provides the most

redundancy?A. Full-mesh

B. Partial-mesh

C. Hub-and-spoke

D. None of the above

17. Which of the following peer-to-peer VPN methods is the most

expensive to implement?A. Dedicated router

B. Shared router

18. Which of the following overlay VPN topologies is typically used

by financial organizations?A. Full-mesh

B. Partial-mesh

C. Hub-and-spoke

D. None of the above

2008/2009 VPN – Rafael Sebastian 66

Test Questions

RE

VIE

W Q

UE

ST

ION

S

Page 67: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

19. In a peer-to-peer VPN, the ___________ becomes responsible

for routing protocol convergence.A. Customer

B. Service provider

C. Edge-LSR

D. PE

20. Which of the following are valid peer-to-peer VPN methods?(Choose two.)

A. Dedicated router

B. Full-mesh

C. Partial-mesh

D. Shared router

21. Of the following choices below, only three could be used as

WAN encapsulation methods, as opposed to LAN

encapsulation. Which three are they? (Choose three)A. FDDI B. HDLC C. Frame Relay

D. PPP E. Token Ring F. Ethernet G. VTP

2008/2009 VPN – Rafael Sebastian 67

Test Questions

RE

VIE

W Q

UE

ST

ION

S

Page 68: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

22. What can the network administrator utilize by using PPP (Point

to Point Protocol) as the Layer 2 encapsulation? (Choose three)A. Compression

B. QOS

C. Sliding windows

D. VLAN support

E. Authentication

F. Multilink support

23. Two routers are connected via a PPP connection. Which of the

following are key characteristics of this PPP connection?

(Choose three)A. PPP can be used over analog circuits

B. PPP encapsulates several routed protocols

C. PPP maps Layer 2 to Layer 3 address

D. PPP provides error correction

E. PPP supports IP only

F. PPP provides encryption services

2008/2009 VPN – Rafael Sebastian 68

Test Questions

RE

VIE

W Q

UE

ST

ION

S

Page 69: Virtual Private Networks - · PDF fileFull-Mesh, Partial Mesh, Hub-and-spoke 2008/2009 VPN –Rafael Sebastian 8 Classification of VPNs Y s-s. Full-Mesh ... Frame Relay 1490 1993 ATM

24. In a point to point connection between two TestKing offices, which

PPP subprotocol negotiates authentication options?A. NCP

B. ISDN

C. SLIP

D. LCP

E. DLCI

25. Routers R1 and R2 are connected via a private line using PPP. On

this link, which of the following options lists the steps in PPP

session establishment in the correct order?A. network layer protocol phase, optional authentication phase, link establishment phase

B. link establishment phase, network layer protocol phase, optional authentication phase

C. optional authentication phase, network layer protocol phase, link establishment phase

D. link establishment phase, optional authentication phase, network layer protocol phase

E. network layer protocol phase, link establishment phase, optional authentication phase

F. optional authentication phase, link establishment phase, network layer protocol phase

G. None of the above

2008/2009 VPN – Rafael Sebastian 69

Test Questions

RE

VIE

W Q

UE

ST

ION

S