L3VPN
L3VPN
L3VPN
Valerio Martini
This tutorial is licensed under the Creative Commons
creativecommons.org/licenses/by-nc-sa/3.0/
http://www.ist-nobel.org/Nobel2/servlet/Nobel2.Main
Summary
What is a VPN?
MPLS VPN (RFC4364). A choice
Private Instances of routing (VRFs Table)
Multi Protocol BGP
A MPLS Tunnel
A quick view on:
VPN Multi Domain
VPN QoS and Scalability
valerio.martini@sssup.it
What is a VPN ?
A Virtual Private Network (VPN) is a private data network that
makes use of the public telecommunication infrastructure,
maintaining privacy and reservation through the use of
tunneling protocols
Layer3 VPNs (L3VPN) are based on IP/MPLS networks (cfr. RFC4364 BGP
MPLS/IP VPN)
L3 VPN connectivity is provided across Service Providers networks
L3 VPNs are based on IP address scheme and the relevant virtual connectivity is
based on the use of ad hoc forwarding table called VRF (VPN Routing and
Forwarding tables)
Backbone Routers (P-Routers) are unaware of the tunnel and VRF tables but are
aware of tunneling protocols
Service Provider routers (PE-Routers) are outsourced to corporate network WANs
(Sites) to establish L3 VPN
valerio.martini@sssup.it
VPN Terminology
VPN 1
VPN 2
VPN 3
VPN 3
FE
P
Provider Router
PE
Provider Edge Router
VPN 1
FE
CE
Customer Edge Router
GE
VPN 1
VPN 3
Backbone
Backbone
GE
VPN 2
valerio.martini@sssup.it
VPN Terminology
WAN of a corporate network (Site)
consists of a network systems
placed in geographic proximity
VPN 1
VPN 2
VPN 3
VPN 3
FE
VPN area
Different Customer Sites
Backbone
VPN 1
FE
GE
VPN 1
VPN 3
Backbone
Backbone
GE
VPN 2
valerio.martini@sssup.it
VPN Terminology
VPN 1
VPN 2
VPN 3
VPN 3
FE
End System
An Attachment Circuit is usually
considered as a Data Link e.g., a
Fast Ethernet (FE) or GE Gigabit
Ethernet
VPN 1
FE
GE
VPN 1
VPN 3
Backbone
Backbone
GE
VPN 2
valerio.martini@sssup.it
VPN Taxonomy
A brief classification :
Type of customer side Virtual Tunnel
Layer 2 VPNs provide Layer 2 connectivity e.g., Native Ethernet LAN
Layer 3 VPNs provide Layer 3 connectivity e.g., based on Access IP Router
CE-based :
PE-based :
valerio.martini@sssup.it
valerio.martini@sssup.it
CE Vs PE Based
Type of endpoint (Location) of the tunnel
its endpoint
Routers maintenance
Routing Protocols configuration
VRFs configuration
its own security
valerio.martini@sssup.it
Service providers that offer Layer 3 VPN services can take advantage of new,
advanced features
L3 VPN services allow businesses to outsource their current network core using a private IP-based
service offering from an SP.
the most common deployment is an any-to-any topology where any customer device can connect
directly to the L3 VPN.
Enterprise traffic entering the SP domain is then routed based on the information in the VRF table
and encapsulated with MPLS labels to ensure proper tunneling and de-multiplexing through the
core.
The main three steps for the establishment of a VPN over an IP/MPLS
backbone:
1.
2.
3.
valerio.martini@sssup.it
10
valerio.martini@sssup.it
11
VPN 3
FE
FE
FE - 1
Key
FE - 2
VPN 1
VPN 2
VPN 3
VPN 1
VPN 3
Firewall
IPMPLS
MPLS
IP
Backbone
Backbone
FE
FE
VPN 1
FE
FE
VPN 2
valerio.martini@sssup.it
12
CE
Routing Tables
CE
Routing Tables
MPLS
MPLS
OSPF
OSPF
RSVP
RSVP
BGP-MP
BGP-MP
Backbone
Backbone
Enterprises
CE
Routing Tables
OSPF
Domain
VRF
table
for
VPN
1
VRF
table
for
VPN
2
VRF
table
For
VPN
3
valerio.martini@sssup.it
13
Customer
Network
IP pkt
Customer
Network
Customer
Network
Label MPLS
Label VPN
IP pkt
Backbone
IP MPLS
IP pkt
1.
Identify VPN
VRFs Tables
2.
Select VRF
entry for
this VPN
5.
Send out
3.
Attach
MPLS
label info
4.
Attach VPN
label info
Label MPLS
Label VPN
IP pkt
valerio.martini@sssup.it
14
PE DECOMPOSES
the packets
Label VPN
Label VPN
IP
IP
IP
IP
IP
IP
VPN Site
VPN Site
IPMPLS
MPLS
IP
Backbone
Backbone
valerio.martini@sssup.it
15
Routers PE Configuration
<routing-instances>
<routing-instances>
<instance>
<instance>
<name>
<name>
vpn-ABC
vpn-ABC
</name>
</name>
<instance-type>
<instance-type>
VRF
VRF
</instance-type>
</instance-type>
<interface>
<interface>
fe-0/3/1.0
fe-0/3/1.0
</interface>
</interface>
<route-distinguisher>
<route-distinguisher>
2.2.2.2:RD
2.2.2.2:RD
</route-distinguisher>
</route-distinguisher>
</instance>
</instance>
</routing-instances>
</routing-instances>
IPMPLS
MPLS
IP
Backbone
Backbone
FIRST
the name of routing instance
SECOND
the type of routing instance
THIRD
the name of Juniper physical interface
FOURTH
the VPN IPv4 family Address
valerio.martini@sssup.it
16
VPN 3
FE
FE
FE - 1
Key
FE - 2
VPN 1
VPN 2
VPN 3
VPN 1
VPN 3
Firewall
IPMPLS
MPLS
IP
Backbone
Backbone
FE
FE
VPN 1
FE
FE
VPN 2
valerio.martini@sssup.it
17
RouterId = 2.2.2.2
BGP
Group A-B-C
Neighbour 1.1.1.1
Neighbour 3.3.3.3
Config
Routers PE Configuration
RouterId = 1.1.1.1
BGP
Group A-B-C
Neighbour 2.2.2.2
Neighbour 3.3.3.3
<bgp>
<bgp>
<local-address>
<local-address>
2.2.2.2
2.2.2.2
</local-address>
</local-address>
<local-as>
<local-as>
AS
AS
</local-as>
</local-as>
<group>
<group>
<name>1-2-3</name>
<name>1-2-3</name>
<type>internal</type>
<type>internal</type>
<neighbor>
<neighbor>
<name>Edge-1</name>
<name>Edge-1</name>
<local-address>1.1.1.1</local-address>
<local-address>1.1.1.1</local-address>
<name>Edge-3</name>
<name>Edge-3</name>
<local-address>3.3.3.3</local-address>
<local-address>3.3.3.3</local-address>
This tutorial is licensed under the Creative Commons
creativecommons.org/licenses/by-nc-sa/3.0/
VRFs Tables
are
EXCHANGED
FIRST
the name of the Local Address of PE
RouterId = 3.3.3.3
BGP
Group A-B-C
Neighbour 2.2.2.2
Neighbour 1.1.1.1
SECOND
the Autonomous System
THIRD
the name of BGP group
FOURTH
the List of the neighbors
valerio.martini@sssup.it
18
RouterId = 2.2.2.2
BGP
Group A-B-C
Neighbour 1.1.1.1
Neighbour 3.3.3.3
Config
Routers Route-Reflector
Route REFLECTOR
RouterId = 1.1.1.1
BGP
Group A-B-C
Neighbour 2.2.2.2
Neighbour 3.3.3.3
RR is a Designated Router
VRFs Tables
are
EXCHANGED
Route
REFLECTOR
RouterId = 3.3.3.3
BGP
Group A-B-C
Neighbour 2.2.2.2
Neighbour 1.1.1.1
valerio.martini@sssup.it
19
VPN 3
FE
FE
FE - 1
Key
FE - 2
VPN 1
VPN 2
VPN 3
VPN 1
VPN 3
Firewall
IPMPLS
MPLS
IP
Backbone
Backbone
FE
FE
VPN 1
FE
FE
VPN 2
valerio.martini@sssup.it
20
VPN Site
Routers PE Configuration
VPN Site
<mpls>
<mpls>
<label-switched-path>
<label-switched-path>
<name>
<name>
to-A
CR 2
to-A
</name>
</name>
Core Router
<to>
CR 1
<to>
1.1.1.1
1.1.1.1
</to>
</to>
The FIRST
<bandwidth>
the name of the LSP
<bandwidth>
30m
30m
The SECOND
</bandwidth>
</bandwidth>
the Destination of LSP (EGRESS ROUTER)
<install>
<install>
10.20.12.0/24<active/>
The THIRD
10.20.12.0/24<active/>
the bandwidth reserved
</install>
</install>
</label-switched-path>
</label-switched-path>
The FOURTH
</mpls>
set of IP activated
</mpls>
This tutorial is licensed under the Creative the
Commons
creativecommons.org/licenses/by-nc-sa/3.0/
CR 3
VPN Site
valerio.martini@sssup.it
21
Benefits
RFC4364 defines an emerging standard commonly named
MPLS VPN or more exactly BGP/MPLS IP VPN
valerio.martini@sssup.it
22
Drawback
RFC4364 defines an emerging standard commonly named
MPLS VPN or more exactly BGP/MPLS IP VPN
valerio.martini@sssup.it
23
VPN Multi-Domain
Two sites of a VPN are connected to a different AUTONOMUS SYSTEM (AS)
AS 2
VRF-to-VRF
EBGP (External BGP)
IPMPLS
MPLS
IP
Directly
Connection
Backbone
Backbone
AS 1
AS 3
Between PE
External BGP
Protocol
IPMPLS
MPLS
IP
Backbone
Backbone
IPMPLS
MPLS
IP
Backbone
Backbone
valerio.martini@sssup.it
24
valerio.martini@sssup.it
25
References
IANA Consideration (Internet Assigned Number Authority)
IANA has created a new registry for the Route Distinguisher Type Field
Rosen, E., Rekhter, Y., BGP/MPLS IP Virtual Private Network, RFC 4364
Mertz, C., The Latest in Virtual Private Network, Part I&II,
IEEE Internet
Computing, June 2004; available at http://computer.org/internet
Daugherty, B., and Mertz, C., Multiprotocol Label Switching And IP, Part I,
IEEE Internet Computing, June 2005; available at http://computer.org/internet
JUNOS software documentation for M-series and T-series platforms,
available at http://www.juniper.net/techpubs
valerio.martini@sssup.it
26