SlideShare una empresa de Scribd logo
1 de 142
1© 2001, Cisco Systems, Inc.
Course Number
Presentation_ID
MPLS VPN TOIMPLS VPN TOI
eosborne@cisco.comeosborne@cisco.com
2
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• How MPLS VPN works
• What Code Is MPLS VPN In?
• Platform Issues in Implementation
• Lab Demo - config
3
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
How MPLS-VPN WorksHow MPLS-VPN Works
• Concepts and goals
• Terminology
• Connection model
• Forwarding
• Mechanisms
• Topologies
• Scaling
• Configuration
4
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPNMPLS-VPN
What is a VPN ?What is a VPN ?
• An IP network infrastructure delivering
private network services over a public
infrastructure
Use a layer 3 backbone
Scalability, easy provisioning
Global as well as non-unique private address
space
QoS
Controlled access
Easy configuration for customers
5
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
VPN Models - The Overlay modelVPN Models - The Overlay model
• Private trunks over a TELCO/SP shared
infrastructure
Leased/Dialup lines
FR/ATM circuits
IP (GRE) tunnelling
• Transparency between provider and
customer networks
• Optimal routing requires full mesh over
over backbone
6
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
VPN Models - The Peer modelVPN Models - The Peer model
• Both provider and customer network use
same network protocol
• CE and PE routers have a routing
adjacency at each site
• All provider routers hold the full routing
information about all customer networks
• Private addresses are not allowed
• May use the virtual router capability
Multiple routing and forwarding tables
based on Customer Networks
7
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
VPN Models - MPLS-VPN:VPN Models - MPLS-VPN:
The True Peer modelThe True Peer model
• Same as Peer model BUT !!!
• Provider Edge routers receive and hold
routing information only about VPNs
directly connected
• Reduces the amount of routing
information a PE router will store
• Routing information is proportional to the
number of VPNs a router is attached to
• MPLS is used within the backbone to
switch packets (no need of full routing)
8
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• Concepts and goals
• Terminology
• Connection model
• Forwarding
• Mechanisms
• Topologies
• Scaling
• Configuration
9
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPN TerminologyMPLS-VPN Terminology
• Provider Network (P-Network)
The backbone under control of a Service
Provider
• Customer Network (C-Network)
Network under customer control
• CE router
Customer Edge router. Part of the C-
network and
interfaces to a PE router
10
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPN TerminologyMPLS-VPN Terminology
• Site
Set of (sub)networks part of the C-
network and co-located
A site is connected to the VPN backbone
through one or more PE/CE links
• PE router
Provider Edge router. Part of the P-
Network and interfaces to CE routers
• P router
Provider (core) router, without knowledge
of VPN
11
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPN TerminologyMPLS-VPN Terminology
• Border router
Provider Edge router interfacing to other
provider networks
• Extended Community
BGP attribute used to identify a Route-
origin, Route-target
• Site of Origin Identifier (SOO)
64 bits identifying routers where the route
has been originated
12
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPN TerminologyMPLS-VPN Terminology
• Route-Target
64 bits identifying routers that should
receive the route
• Route Distinguisher
Attributes of each route used to uniquely
identify prefixes among VPNs (64 bits)
VRF based (not VPN based)
• VPN-IPv4 addresses
Address including the 64 bits Route
Distinguisher and the 32 bits IP address
13
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPN TerminologyMPLS-VPN Terminology
• VRF
VPN Routing and Forwarding Instance
Routing table and FIB table
Populated by routing protocol contexts
• VPN-Aware network
A provider backbone where MPLS-VPN is
deployed
14
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• Concepts and goals
• Terminology
• Connection model
• Forwarding
• Mechanisms
• Topologies
• Scaling
• Configuration
15
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
• A VPN is a collection of sites sharing
a common routing information
(routing table)
• A site can be part of different VPNs
• A VPN has to be seen as a community
of interest (or Closed User Group)
• Multiple Routing/Forwarding
instances (VRF) on PE routers
16
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
• A site belonging to different VPNs may or MAY
NOT be used as a transit point between VPNs
• If two or more VPNs have a common site, address
space must be unique among these VPNs
Site-1
Site-3
Site-4
Site-2
VPN-A
VPN-C
VPN-B
17
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
• The VPN backbone is composed by MPLS LSRs
PE routers (edge LSRs)
P routers (core LSRs)
• PE routers are faced to CE routers and distribute
VPN information through
MP-BGP to other PE routers
VPN-IPv4 addresses, Extended Community,
Label
• P routers do not run BGP and do not have any
VPN knowledge
18
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
VPN_A
VPN_A
VPN_B
10.3.0.0
10.1.0.0
11.5.0.0
P P
PP PE
PE CE
CE
CE
VPN_A
VPN_B
VPN_B
10.1.0.0
10.2.0.0
11.6.0.0
CE
PE
PECE
CE
VPN_A
10.2.0.0
CE
iBGP sessions
• P routers (LSRs) are in the core of the MPLS
cloud
• PE routers use MPLS with the core and plain IP
with CE routers
• P and PE routers share a common IGP
• PE router are MP-iBGP fully meshed
19
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
• PE and CE routers exchange routing
information through:
EBGP, OSPF, RIPv2, Static routing
• CE router run standard routing software
PE
CE
C
E
Site-2
Site-1
EBGP,OSPF, RIPv2,Static
20
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
• PE routers maintain separate routing tables
The global routing table
With all PE and P routes
Populated by the VPN backbone IGP (ISIS or OSPF)
VRF (VPN Routing and Forwarding)
Routing and Forwarding table associated with one or more
directly connected sites (CEs)
VRF are associated to (sub/virtual/tunnel)interfaces
Interfaces may share the same VRF if the connected sites may
share the same routing information
PE
CE
C
E
Site-2
Site-1
VPN Backbone IGP (OSPF, ISIS)
EBGP,OSPF, RIPv2,Static
21
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
• Different site sharing the same routing
information, may share the same VRF
• Interfaces connecting these sites will use
the same VRF
• Sites belonging to the same VPN may
share same VRF
PE
CE
C
E
Site-2
Site-1
22
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
• The routes the PE receives from CE routers
are installed in the appropriate VRF
• The routes the PE receives through the
backbone IGP are installed in the global
routing table
• By using separate VRFs, addresses need NOT
to be unique among VPNs
PE
CE
C
E
Site-2
Site-1
VPN Backbone IGPEBGP,OSPF, RIPv2,Static
23
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
• The Global Routing Table is populated by
IGP protocols.
• In PE routers it may contain the BGP
Internet routes (standard BGP-4 routes)
• BGP-4 (IPv4) routes go into global routing
table
• MP-BGP (VPN-IPv4) routes go into VRFs
24
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
PE
VPN Backbone IGP
iBGP session
PE
P P
P P
• PE and P routers share a common IGP (ISIS or
OSPF)
• PEs establish MP-iBGP sessions between them
• PEs use MP-BGP to exchange routing information
related to the connected sites and VPNs
VPN-IPv4 addresses, Extended Community, Label
25
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
MP-BGP UpdateMP-BGP Update
• VPN-IPV4 address
Route Distinguisher
64 bits
Makes the IPv4 route globally unique
RD is configured in the PE for each VRF
RD may or may not be related to a site or a VPN
IPv4 address (32bits)
• Extended Community attribute (64 bits)
Site of Origin (SOO): identifies the originating site
Route-target (RT): identifies the set of sites the
route has to be advertised to
26
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
MP-BGP UpdateMP-BGP Update
Any other standard BGP attribute
Local Preference
MED
Next-hop
AS_PATH
Standard Community
...
A Label identifying:
The outgoing interface
The VRF where a lookup has to be done (aggregate
label)
The BGP label will be the second label in the label
stack of packets travelling in the core
27
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
MP-BGP Update - Extended communityMP-BGP Update - Extended community
• BGP extended community attribute
Structured, to support multiple
applications
64 bits for increased range
• General form
<16bits type>:<ASN>:<32 bit number>
Registered AS number
<16bits type>:<IP address>:<16 bit number>
Registered IP address
28
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
MP-BGP Update - Extended communityMP-BGP Update - Extended community
• The Extended Community is used to:
Identify one or more routers where the route
has
been originated (site)
Site of Origin (SOO)
Selects sites which should receive the route
Route-Target
29
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
MP-BGP UpdateMP-BGP Update
• The Label can be assigned only by the router which
address is the Next-Hop attribute
PE routers re-write the Next-Hop with their own
address (loopback interface address)
“Next-Hop-Self” BGP command towards iBGP
neighbors
Loopback addresses are advertised into the
backbone IGP
• PE addresses used as BGP Next-Hop must be
uniquely known in the backbone IGP
No summarisation of loopback addresses in the
core
30
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
PE-1
VPN Backbone IGP
PE-2
P P
P P
PE routers receive IPv4 updates (EBGP, RIPv2, Static)
PE routers translate into VPN-IPv4
Assign a SOO and RT based on configuration
Re-write Next-Hop attribute
Assign a label based on VRF and/or interface
Send MP-iBGP update to all PE neighbors
BGP,RIPv2 update
for Net1,Next-
Hop=CE-1
VPN-IPv4 update:
RD:Net1, Next-
hop=PE-1
SOO=Site1,
RT=Green,
Label=(intCE1)
CE-1
Site-2
VPN-IPv4 update is
translated into IPv4 address
(Net1) put into VRF green
since RT=Green and
advertised to CE-2
Site-1
CE-2
31
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
Receiving PEs translate to IPv4
Insert the route into the VRF identified by the
RT attribute (based on PE configuration)
The label associated to the VPN-IPv4 address will be set on
packet forwarded towards the destination
PE-1
VPN Backbone IGP
PE-2
P P
P P
BGP,OSPF, RIPv2
update for Net1
Next-Hop=CE-1
VPN-IPv4 update:
RD:Net1, Next-
hop=PE-1
SOO=Site1,
RT=Green,
Label=(intCE1)
CE-1
Site-2
VPN-IPv4 update is
translated into IPv4 address
(Net1) put into VRF green
since RT=Green and
advertised to CE-2
Site-1
CE-2
32
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Connection ModelMPLS VPN Connection Model
• Route distribution to sites is driven by the Site
of Origin (SOO) and Route-target attributes
BGP Extended Community attribute
• A route is installed in the site VRF
corresponding to the Route-target attribute
Driven by PE configuration
• A PE which connects sites belonging to
multiple VPNs will install the route into the site
VRF if the Route-target attribute contains one or
more VPNs to which the site is associated
33
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• Concepts and goals
• Terminology
• Connection model
• Forwarding
• Mechanisms
• Topologies
• Scaling
• Configuration
34
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS ForwardingMPLS Forwarding
Packet forwardingPacket forwarding
• PE and P routers have BGP next-hop
reachability through the backbone IGP
• Labels are distributed through LDP (hop-by-
hop) corresponding to BGP Next-Hops
• Label Stack is used for packet forwarding
Top label indicates BGP Next-Hop (interior
label)
Second level label indicates outgoing interface
or VRF (exterior label)
35
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS ForwardingMPLS Forwarding
Packet forwardingPacket forwarding
• MPLS nodes forward packets based on
the top label
• P routers do not have BGP (nor VPN)
knowledge
No VPN routing information
No Internet routing information
36
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS ForwardingMPLS Forwarding
Penultimate Hop PoppingPenultimate Hop Popping
• The upstream LDP peer of the BGP next-hop (PE
router) will pop the first level label
The penultimate hop will pop the label
• Requested through LDP
• The egress PE router will forward the packet
based on the second level label which gives the
outgoing interface (and VPN)
37
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS ForwardingMPLS Forwarding
MPLS Forwarding - Penultimate Hop PoppingMPLS Forwarding - Penultimate Hop Popping
PE2
PE1
CE1
CE2
P1 P2
IGP
Label(PE2)
VPN LabelIP
packet
PE1 receives IP packet
Lookup is done on site VRF
BGP route with Next-Hop and
Label is found
BGP next-hop (PE2) is
reachable
through IGP route with
associated label
IGP
Label(PE2)
VPN LabelIP
packet
P routers switch the
packets based on the
IGP label (label on top
of the stack)
VPN Label
IP
packet
Penultimate Hop
Popping
P2 is the penultimate
hop for the BGP next-
hop
P2 remove the top
label
This has been
requested through
LDP by PE2
IP
packet
PE2 receives the packets
with the label
corresponding to the
outgoing interface (VRF)
One single lookup
Label is popped and
packet sent to IP
neighborIP
packet
CE3
38
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
T1 T7
T2 T8
T3 T9
T4 T7
T5 TB
T6 TB
T7 T8
MPLS VPNMPLS VPN
ForwardingForwarding
VPN_A
VPN_A
VPN_B
10.3.0.0
10.1.0.0
11.5.0.0
P P
PP PE
CE
CE
CE
Data
<RD_B,10.1> , iBGP next hop PE1
<RD_B,10.2> , iBGP next hop PE2
<RD_B,10.3> , iBGP next hop PE3
<RD_A,11.6> , iBGP next hop PE1
<RD_A,10.1> , iBGP next hop PE4
<RD_A,10.4> , iBGP next hop PE4
<RD_A,10.2> , iBGP next hop PE2
<RD_B,10.2> , iBGP NH= PE2 , T2 T8
• Ingress PE receives normal IP
Packets from CE router
• PE router does “IP Longest Match”
from VPN_B FIBVPN_B FIB , find iBGP next
hop PE2PE2 and impose a stack of
labels:
DataT8T2
VPN_A
VPN_B
VPN_B
10.1.0.0
10.2.0.0
11.6.0.0
CE
PE1
PE2CE
CE
VPN_A
10.2.0.0
CE
39
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPNMPLS VPN
ForwardingForwarding
VPN_A
VPN_A
VPN_B
10.3.0.0
10.1.0.0
11.5.0.0
P P
PP PE
CE
CE
CE
T7
T8
T9
Ta
Tb
Tu
Tw
Tx
Ty
Tz
T8, TA
T2 DataT8Data
T2 DataTB
outin /
• All Subsequent P routers do switch the packet
Solely on Interior Label
• Egress PE router, removes Interior Label
• Egress PE uses Exterior Label to select which VPN/CE
to forward the packet to.
VPN_A
VPN_B
VPN_B
10.1.0.0
10.2.0.0
11.6.0.0
CE
PE1
PE2CE
CE
VPN_A
10.2.0.0
CE T2 DataData
TAT2
40
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• Concepts and goals
• Terminology
• Connection model
• Forwarding
• Mechanisms
• Topologies
• Scaling
• Configuration
41
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN mechanismsMPLS VPN mechanisms
VRF and Multiple Routing InstancesVRF and Multiple Routing Instances
• VRF: VPN Routing and Forwarding
Instance
VRF Routing Protocol Context
VRF Routing Tables
VRF CEF Forwarding Tables
42
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN mechanismsMPLS VPN mechanisms
VRF and Multiple Routing InstancesVRF and Multiple Routing Instances
• VPN aware Routing Protocols
• Select/Install routes in appropriate routing
table
• Per-instance router variables
• Not necessarily per-instance routing
processes
• eBGP, OSPF, RIPv2, Static
43
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN mechanismsMPLS VPN mechanisms
VRF and Multiple Routing InstancesVRF and Multiple Routing Instances
• VRF Routing table contains routes which
should be available to a particular set of
sites
• Analogous to standard IOS routing table,
supports the same set of mechanisms
• Interfaces (sites) are assigned to VRFs
One VRF per interface (sub-interface,
tunnel or virtual-template)
Possible many interfaces per VRF
44
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN mechanismsMPLS VPN mechanisms
VRF and Multiple Routing InstancesVRF and Multiple Routing Instances
StaticBGP RIPRouting
processe
s
Routing
contexts
VRF Routing tables
VRF Forwarding
tables
• Routing processes run within
specific routing contexts
• Populate specific VPN routing
table and FIBs (VRF)
• Interfaces are assigned to VRFs
45
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN mechanismsMPLS VPN mechanisms
VRF and Multiple Routing InstancesVRF and Multiple Routing Instances
Site-1 Site-2 Site-3 Site-4
Logical view
Routing view
VRF
for site-1
Site-1
routes
Site-2
routes
VRF
for site-4
Site-3
routes
Site-4
routes
VRF
for site-2
Site-1
routes
Site-2
routes
Site-3
routes
VRF
for site-3
Site-2
routes
Site-3
routes
Site-4
routes
Site-1
Site-3
Site-4
Site-2
VPN-A
VPN-C
VPN-B
PE PE
PP
Multihop MP-iBGP
46
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• Concepts and goals
• Terminology
• Connection model
• Forwarding
• Mechanisms
• Topologies
• Scaling
• BGP-4 Enhancements
Cap. Negotiation, MPLS, Route Refresh,
ORF
• Configuration
47
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN TopologiesMPLS VPN Topologies
VPN_A
VPN_A
VPN_B
10.3.0.0
10.1.0.0
11.5.0.0
P P
PP PE
PE CE
CE
CE
VPN_A
VPN_B
VPN_B
10.1.0.0
10.2.0.0
11.6.0.0
CE
PE
PECE
CE
VPN_A
10.2.0.0
CE
• VPN-IPv4 address are propagated together with the associated
label in BGP Multiprotocol extension
• Extended Community attribute (route-target) is associated to
each VPN-IPv4 address, to populate the site VRF
iBGP sessions
48
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN TopologiesMPLS VPN Topologies
VPN sites with optimal intra-VPN routingVPN sites with optimal intra-VPN routing
• Each site has full routing knowledge of all other
sites (of same VPN)
• Each CE announces his own address space
• MP-BGP VPN-IPv4 updates are propagated
between PEs
• Routing is optimal in the backbone
Each route has the BGP Next-Hop closest to the
destination
• No site is used as central point for connectivity
49
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN TopologiesMPLS VPN Topologies
VPN sites with optimal intra-VPN routingVPN sites with optimal intra-VPN routing
Site-1
VRF
for site-1
N1,NH=C
E1
N2,NH=P
E2
N3,NH=P
E3
PE1
PE3
PE2
N1
Site-3
N3
N2
VPN-IPv4 updates exchanged
between PEs
RD:N1, NH=PE1,Label=IntCE1,
RT=Blue
RD:N2, NH=PE2,Label=IntCE2,
RT=Blue
RD:N3, NH=PE3,Label=IntCE3,
RT=Blue
IntC
E1
IntCE3
N1
NH=CE1
Routing Table on
CE1
N1, Local
N2, PE1
N3, PE1
EBGP/RIP/Static
VRF
for site-3
N1,NH=P
E1
N2,NH=P
E2
N3,NH=C
E3
Routing Table on
CE3
N1, PE3
N2, PE3
N3, Local
N3
NH=CE3
EBGP/RIP/Static
Site-2
IntCE2
Routing Table on
CE2
N1,NH=PE2
N2,Local
N3,NH=PE2
N2,NH=CE2
EBGP/RIP/Static
VRF
for site-2
N1,NH=P
E1
N2,NH=C
E2
N3,NH=P
E3
50
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN TopologiesMPLS VPN Topologies
VPN sites with Hub & Spoke routingVPN sites with Hub & Spoke routing
• One central site has full routing knowledge of
all other sites (of same VPN)
Hub-Site
• Other sites will send traffic to Hub-Site for
any destination
Spoke-Sites
• Hub-Site is the central transit point between
Spoke-Sites
Use of central services at Hub-Site
51
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN TopologiesMPLS VPN Topologies
VPN sites with Hub & Spoke routingVPN sites with Hub & Spoke routing
PE2
PE1
PE3
Site-1
N1
N3
VPN-IPv4 updates advertised by PE3
RD:N1, NH=PE3,Label=IntCE3-Spoke,
RT=Spoke
RD:N2, NH=PE3,Label=IntCE3-Spoke,
RT=Spoke
RD:N3, NH=PE3,Label=IntCE3-Spoke,
RT=Spoke
Site-3
Site-2
N2
IntCE3-Spoke
VRF
(Export
RT=Spoke)
N1,NH=CE3-
Spoke
N2,NH=CE3-
Spoke
N3,NH=CE3-
Spoke
CE1
CE3-Spoke
CE2
CE3-Hub
IntCE3-Hub
VRF
(Import
RT=Hub)
N1,NH=PE1
N2,NH=PE2
VPN-IPv4 update advertised by
PE1
RD:N1, NH=PE1,Label=IntCE1,
RT=Hub
VPN-IPv4 update advertised by
PE2
RD:N2, NH=PE2,Label=IntCE2,
RT=Hub
IntCE2 VRF
(Import RT=Spoke)
(Export RT=Hub)
N1,NH=PE3
(imported)
N2,NH=CE2
(exported)
N3,NH=PE3
(imported)
IntCE1 VRF
(Import RT=Spoke)
(Export RT=Hub)
N1,NH=CE1
(exported)
N2,NH=PE3
(imported)
N3,NH=PE3
(imported
BGP/RIPv2
BGP/RIPv2
• Routes are imported/exported into VRFs based
on RT value of the VPN-IPv4 updates
• PE3 uses 2 (sub)interfaces with two different
VRFs
52
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN TopologiesMPLS VPN Topologies
VPN sites with Hub & Spoke routingVPN sites with Hub & Spoke routing
PE2
PE1
PE3
Site-1
N1
N3
Site-3
Site-2
N2
IntCE3-Spoke
VRF
(Export
RT=Spoke)
N1,NH=CE3-
Spoke
N2,NH=CE3-
Spoke
N3,NH=CE3-
Spoke
CE1
CE3-Spoke
CE2
CE3-Hub
IntCE3-Hub
VRF
(Import
RT=Hub)
N1,NH=PE1
N2,NH=PE2
IntCE2 VRF
(Import RT=Spoke)
(Export RT=Hub)
N1,NH=PE3
(imported)
N2,NH=CE2
(exported)
N3,NH=PE3
(imported)
IntCE1 VRF
(Import RT=Spoke)
(Export RT=Hub)
N1,NH=CE1
(exported)
N2,NH=PE3
(imported)
N3,NH=PE3
(imported
BGP/RIPv2
BGP/RIPv2
• Traffic from one spoke to another will travel across
the hub site
• Hub site may host central services
Security, NAT, centralised Internet access
53
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN TopologiesMPLS VPN Topologies
VPN sites with Hub & Spoke routingVPN sites with Hub & Spoke routing
• If PE and Hub-site use BGP the PE should not check
the received AS_PATH
The update the Hub-site advertise contains the VPN
backbone AS number
By configuration the AS_PATH check is disabled
Routing loops are detected through the SOO attribute
• PE and CE routers may use RIPv2 and/or static routing
54
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Internet RoutingMPLS VPN Internet Routing
• In a VPN, sites may need to have Internet
connectivity
• Connectivity to the Internet means:
Being able to reach Internet destinations
Being able to be reachable from any Internet
source
• Security mechanism MUST be used as in
ANY other kind of Internet connectivity
55
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Internet RoutingMPLS VPN Internet Routing
• The Internet routing table is treated
separately
• In the VPN backbone the Internet routes
are in the Global routing table of PE
routers
• Labels are not assigned to external
(BGP) routes
• P routers need not (and will not) run
BGP
56
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPNMPLS VPN Internet routingInternet routing
VRF specific default routeVRF specific default route
• A default route is installed into the site
VRF and pointing to a Internet Gateway
• The default route is NOT part of any
VPN
A single label is used for packets forwarded
according to the default route
The label is the IGP label corresponding to
the IP address of the Internet gateway
Known in the IGP
57
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPNMPLS VPN Internet routingInternet routing
VRF specific default routeVRF specific default route
• PE router originates CE routes for the Internet
Customer (site) routes are known in the site VRF
Not in the global table
The PE/CE interface is NOT known in the global
table. However:
A static route for customer routes and pointing to
the PE/CE interface is installed in the global
table
This static route is redistributed into BGP-4 global
table and advertised to the Internet Gateway
• The Internet gateway knows customer routes and
with the PE address as next-hop
58
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPNMPLS VPN Internet routingInternet routing
VRF specific default routeVRF specific default route
• The Internet Gateway specified in the
default route (into the VRF) need NOT
to be directly connected
• Different Internet gateways can be used
for different VRFs
• Using default route for Internet routing
does NOT allow any other default route
for intra-VPN routing
As in any other routing scheme
59
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPNMPLS VPN Internet routingInternet routing
VRF specific default routeVRF specific default route
PE
PE
Internet
Site-1
PE-IG
Site-2
Network 171.68.0.0/16
Serial0
192.168.1.1
192.168.1.2
ip vrf VPN-A
rd 100:1
route-target both 100:1
!
Interface Serial0
ip address 192.168.10.1 255.255.255.0
ip vrf forwarding VPN-A
!
Router bgp 100
no bgp default ipv4-unicast
network 171.68.0.0 mask 255.255.0.0
neighbor 192.168.1.1 remote 100
neighbor 192.168.1.1 activate
neighbor 192.168.1.1 next-hop-self
neighbor 192.168.1.1 update-source loopback0
!
address-family ipv4 vrf VPN-A
neighbor 192.168.10.2 remote-as 65502
neighbor 192.168.10.2 activate
exit-address-family
!
address-family vpnv4
neighbor 192.168.1.2 activate
exit-address-family
!
ip route 171.68.0.0 255.255.0.0 Serial0
ip route vrf VPN-A 0.0.0.0 0.0.0.0 192.168.1.1 glo
BGP-4
MP-BGP
60
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPNMPLS VPN Internet routingInternet routing
VRF specific default routeVRF specific default route
PE
PE
Internet
Site-1
PE-IG
Site-2
Network 171.68.0.0/16
Serial0
192.168.1.1
192.168.1.2
Site-2 VRF
0.0.0.0/0 192.168.1.1
(global)
Site-1 routes
Site-2 routes
Global Table and LFIB
192.168.1.1/32 Label=3
192.168.1.2/32 Label=5
...
IP packet
D=cisco.c
om
Label = 3
IP packet
D=cisco.c
om
IP packet
D=cisco.c
om
61
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPNMPLS VPN Internet routingInternet routing
VRF specific default routeVRF specific default route
• PE routers need not to hold the Internet
table
• PE routers will use BGP-4 sessions to
originate customer routes
• Packet forwarding is done with a single
label identifying the Internet Gateway IP
address
More labels if Traffic Engineering is used
62
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Internet RoutingMPLS VPN Internet Routing
Separated (sub)interfacesSeparated (sub)interfaces
• If CE wishes to receive and announce
routes from/to the Internet
A dedicated BGP session is used over a
separate (sub) interface
The PE imports CE routes into the global
routing table and advertise them to the
Internet
The interface is not part of any VPN and
does not use any VRF
Default route or Internet routes are exported
to the CE
PE needs to have Internet routing table
63
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Internet RoutingMPLS VPN Internet Routing
Separated (sub)interfacesSeparated (sub)interfaces
• The PE uses separate (sub)interfaces
with the CE
One (sub)interface for VPN routing
associated to a VRF
Can be a tunnel interface
One (sub)interface for Internet routing
Associated to the global routing table
64
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Internet RoutingMPLS VPN Internet Routing
Separated (sub)interfacesSeparated (sub)interfaces
PE
PE
Internet
Site-1
PE-IG
Site-2
Network 171.68.0.0/16
Serial0.1
192.168.1.1
192.168.1.2
ip vrf VPN-A
rd 100:1
route-target both 100:1
!
Interface Serial0
no ip address
!
Interface Serial0.1
ip address 192.168.10.1 255.255.255.0
ip vrf forwarding VPN-A
!
Interface Serial0.2
ip address 171.68.10.1 255.255.255.0
!
Router bgp 100
no bgp default ipv4-unicast
neighbor 192.168.1.1 remote 100
neighbor 192.168.1.1 activate
neighbor 192.168.1.1 next-hop-self
neighbor 192.168.1.1 update-source loopback0
neighbor 171.68.10.2 remote 502
!
address-family ipv4 vrf VPN-A
neighbor 192.168.10.2 remote-as 502
neighbor 192.168.10.2 activate
exit-address-family
!
address-family vpnv4
neighbor 192.168.1.2 activate
exit-address-family
BGP-4
MP-BGP
Serial0.2
BGP-4
65
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN Internet RoutingMPLS VPN Internet Routing
Separated (sub)interfacesSeparated (sub)interfaces
PE
PE
Internet
Site-1
PE-IG
Site-2
Network 171.68.0.0/16
Serial0.1
192.168.1.1
192.168.1.2
Serial0.2
Serial0.1
Serial0.2
CE routing table
Site-2 routes ---->
Serial0.1
Internet routes --->
Serial0.2
IP packet
D=cisco.c
om
PE Global Table
Internet routes --->
192.168.1.1
192.168.1.1, Label=3
Label = 3
IP packet
D=cisco.c
om
IP packet
D=cisco.c
om
66
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• Concepts and goals
• Terminology
• Connection model
• Forwarding
• Mechanisms
• Topologies
• Scaling
• Configuration
67
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
ScalingScaling
• Existing BGP techniques can be used to
scale the route distribution: route
reflectors
• Each edge router needs only the
information for the VPNs it supports
Directly connected VPNs
• RRs are used to distribute VPN routing
information
68
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
ScalingScaling
• Very highly scalable:
Initial VPN release: 1000 VPNs x 1000 sites/VPN =
1,000,000 sites
Architecture supports 100,000+ VPNs, 10,000,000+
sites
BGP “segmentation” through RRs is essential !!!!
• Easy to add new sites
configure the site on the PE
connected to it
the network automagically does the
rest
69
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPNMPLS-VPN
Scaling BGPScaling BGP
VPN_A
VPN_A
VPN_B
10.3.0.0
10.1.0.0
11.5.0.0
P P
PP PE
PE CE
CE
CE
RR RR
Route Reflectors
VPN_A
VPN_B
VPN_B
10.1.0.0
10.2.0.0
11.6.0.0
CE
PE1
PE2CE
CE
VPN_A
10.2.0.0
CE
• Route Reflectors may be partitioned
Each RR store routes for a set of VPNs
• Thus, no BGP router needs to store ALL
VPNs information
• PEs will peer to RRs according to the
VPNs they directly connect
70
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPN ScalingMPLS-VPN Scaling
BGP updates filteringBGP updates filtering
iBGP full mesh between PEs results in flooding
all VPNs routes to all PEs
Scaling problems when large amount of
routes. In addition PEs need only routes for
attached VRFs
Therefore each PE will discard any VPN-IPv4
route that hasn’t a route-target configured to
be imported in any of the attached VRFs
This reduces significantly the amount of
information each PE has to store
Volume of BGP table is equivalent of volume of
attached VRFs (nothing more)
71
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPN ScalingMPLS-VPN Scaling
BGP updates filteringBGP updates filtering
Each VRF has an import and export policy configured
Policies use route-target attribute (extended
community)
PE receives MP-iBGP updates for VPN-IPv4 routes
If route-target is equal to any of the import values
configured in the PE, the update is accepted
Otherwise it is silently discarded
PE
MP-iBGP sessions
VRFs for VPNs
yellow
green
VPN-IPv4 update:
RD:Net1, Next-
hop=PE-X
SOO=Site1,
RT=Green,
Label=XYZ
VPN-IPv4 update:
RD:Net1, Next-
hop=PE-X
SOO=Site1, RT=Red,
Label=XYZ
Import RT=yellow
Import RT=green
72
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPN ScalingMPLS-VPN Scaling
Route RefreshRoute Refresh
Policy may change in the PE if VRF modifications are done
• New VRFs, removal of VRFs
However, the PE may not have stored routing information
which become useful after a change
PE request a re-transmission of updates to neighbors
• Route-Refresh
PE
VPN-IPv4 update:
RD:Net1, Next-
hop=PE-X
SOO=Site1,
RT=Green,
Label=XYZ
VPN-IPv4 update:
RD:Net1, Next-
hop=PE-X
SOO=Site1, RT=Red,
Label=XYZ
Import RT=yellow
Import RT=green
Import RT=red
1. PE doesn’t have red
routes (previously
filtered out)
2. PE issue a Route-
Refresh to all
neighbors in order to
ask for re-transmission
3. Neighbors re-send
updates and “red”
route-target is now
accepted
73
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS-VPN ScalingMPLS-VPN Scaling
Outbound Route Filters - ORFOutbound Route Filters - ORF
PE router will discard update with unused route-
target
Optimisation requires these updates NOT to be sent
Outbound Route Filter (ORF) allows a router to tell
its neighbors which filter to use prior to propagate
BGP updates
PE
VPN-IPv4 update:
RD:Net1, Next-
hop=PE-X
SOO=Site1,
RT=Green,
Label=XYZ
VPN-IPv4 update:
RD:Net1, Next-
hop=PE-X
SOO=Site1, RT=Red,
Label=XYZ
Import RT=yellow
Import RT=green
1. PE doesn’t need
red routes
2. PE issue a ORF
message to all
neighbors in order not
to receive red routes
3. Neighbors
dynamically
configure the
outbound filter and
send updates
accordingly
74
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• Concepts and goals
• Terminology
• Connection model
• Forwarding
• Mechanisms
• Topologies
• Scaling
• BGP-4 Enhancements
Cap. Negotiation, MPLS, Route Refresh,
ORF
• Configuration
75
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN - ConfigurationMPLS VPN - Configuration
• VPN knowledge is on PE routers
• PE router have to be configured for
VRF and Route Distinguisher
VRF import/export policies (based on Route-target)
Routing protocol used with CEs
MP-BGP between PE routers
BGP for Internet routers
With other PE routers
With CE routers
76
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN - ConfigurationMPLS VPN - Configuration
VRF and Route DistinguisherVRF and Route Distinguisher
• RD is configured on PE routers (for each VRF)
• VRFs are associated to RDs in each PE
• Common (good) practice is to use the same
RD for the same VPN in all PEs
But not mandatory
• VRF configuration command
ip vrf <vrf-symbolic-name>
rd <route-distinguisher-value>
route-target import <community>
route-target export <community>
77
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
CLI - VRF configurationCLI - VRF configuration
Site-1 Site-2 Site-3 Site-4
VRF
for site-1
(100:1)
Site-1
routes
Site-2
routes
VRF
for site-4
(100:4)
Site-3
routes
Site-4
routes
VRF
for site-2
(100:2)
Site-1
routes
Site-2
routes
Site-3
routes
VRF
for site-3
(100:3)
Site-2
routes
Site-3
routes
Site-4
routes
PE1 PE2
PP
Multihop MP-iBGP
ip vrf site1
rd 100:1
route-target export
100:1
route-target import
100:1
ip vrf site2
rd 100:2
route-target export
100:2
route-target import
100:2
route-target import
100:1
route-target export
100:1
ip vrf site1
rd 100:1
route-target export
100:1
route-target import
100:1
ip vrf site2
rd 100:2
route-target export
100:2
route-target import
100:2
route-target import
100:1
route-target export
100:1
ip vrf site3
rd 100:3
route-target export 100:2
route-target import 100:2
route-target import 100:3
route-target export 100:3
ip vrf site-4
rd 100:4
route-target export 100:3
route-target import 100:3
ip vrf site3
rd 100:3
route-target export 100:2
route-target import 100:2
route-target import 100:3
route-target export 100:3
ip vrf site-4
rd 100:4
route-target export 100:3
route-target import 100:3
Site-1
Site-3
Site-4
Site-2
VPN-A
VPN-C
VPN-B
78
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN - ConfigurationMPLS VPN - Configuration
PE/CE routing protocolsPE/CE routing protocols
• PE/CE may use BGP, RIPv2 or Static routes
• A routing context is used for each VRF
• Routing contexts are defined within the routing
protocol instance
Address-family router sub-command
Router rip
version 2
address-family ipv4 vrf <vrf-symbolic-name>
…
any common router sub-command
…
79
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN - ConfigurationMPLS VPN - Configuration
PE/CE routing protocolsPE/CE routing protocols
• BGP uses same “address-family” command
Router BGP <asn>
...
address-family ipv4 vrf <vrf-symbolic-name>
…
any common router BGP sub-command
…
• Static routes are configured per VRF
ip route vrf <vrf-symbolic-name> …
80
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN - ConfigurationMPLS VPN - Configuration
PE router commandsPE router commands
• All show commands are VRF based
Show ip route vrf <vrf-symbolic-name> ...
Show ip protocol vrf <vrf-symbolic-name>
Show ip cef <vrf-symbolic-name> …
…
• PING and Telnet commands are VRF based
telnet /vrf <vrf-symbolic-name>
ping vrf <vrf-symbolic-name>
81
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN - ConfigurationMPLS VPN - Configuration
PE/CE routing protocolsPE/CE routing protocols
Site-1 Site-2 Site-3 Site-4
PE1
PE2
PP
Multihop MP-iBGP
Site-1
Site-3
Site-4
Site-2
VPN-A
VPN-C
VPN-B
VRF
for site-1
(100:1)
Site-1
routes
Site-2
routes
VRF
for site-4
(100:4)
Site-3
routes
Site-4
routes
VRF
for site-2
(100:2)
Site-1
routes
Site-2
routes
Site-3
routes
VRF
for site-3
(100:3)
Site-2
routes
Site-3
routes
Site-4
routes
ip vrf site3
rd 100:3
route-target export 100:23
route-target import 100:23
route-target import 100:34
route-target export 100:34
ip vrf site-4
rd 100:4
route-target export 100:34
route-target import 100:34
!
interface Serial4/6
ip vrf forwarding site3
ip address 192.168.73.7
255.255.255.0
encapsulation ppp
!
interface Serial4/7
ip vrf forwarding site4
ip address 192.168.74.7
255.255.255.0
encapsulation ppp
ip vrf site3
rd 100:3
route-target export 100:23
route-target import 100:23
route-target import 100:34
route-target export 100:34
ip vrf site-4
rd 100:4
route-target export 100:34
route-target import 100:34
!
interface Serial4/6
ip vrf forwarding site3
ip address 192.168.73.7
255.255.255.0
encapsulation ppp
!
interface Serial4/7
ip vrf forwarding site4
ip address 192.168.74.7
255.255.255.0
encapsulation ppp
ip vrf site1
rd 100:1
route-target export 100:12
route-target import 100:12
ip vrf site2
rd 100:2
route-target export 100:12
route-target import 100:12
route-target import 100:23
route-target export 100:23
!
interface Serial3/6
ip vrf forwarding site1
ip address 192.168.61.6
255.255.255.0
encapsulation ppp
!
interface Serial3/7
ip vrf forwarding site2
ip address 192.168.62.6
255.255.255.0
encapsulation ppp
ip vrf site1
rd 100:1
route-target export 100:12
route-target import 100:12
ip vrf site2
rd 100:2
route-target export 100:12
route-target import 100:12
route-target import 100:23
route-target export 100:23
!
interface Serial3/6
ip vrf forwarding site1
ip address 192.168.61.6
255.255.255.0
encapsulation ppp
!
interface Serial3/7
ip vrf forwarding site2
ip address 192.168.62.6
255.255.255.0
encapsulation ppp
82
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN - ConfigurationMPLS VPN - Configuration
PE/CE routing protocolsPE/CE routing protocols
Site-1 Site-2 Site-3 Site-4
PE1
PE2
PP
Multihop MP-iBGP
Site-1
Site-3
Site-4
Site-2
VPN-A
VPN-C
VPN-B
VRF
for site-1
(100:1)
Site-1
routes
Site-2
routes
VRF
for site-4
(100:3)
Site-3
routes
Site-4
routes
VRF
for site-2
(100:2)
Site-1
routes
Site-2
routes
Site-3
routes
VRF
for site-3
(100:2)
Site-2
routes
Site-3
routes
Site-4
routes
router bgp 100
no bgp default ipv4-unicast
neighbor 6.6.6.6 remote-as 100
neighbor 6.6.6.6 update-source
Loop0
!
address-family ipv4 vrf site4
neighbor 192.168.74.4 remote-as
65504
neighbor 192.168.74.4 activate
exit-address-family
!
address-family ipv4 vrf site3
neighbor 192.168.73.3 remote-as
65503
neighbor 192.168.73.3 activate
exit-address-family
!
address-family vpnv4
neighbor 6.6.6.6 activate
neighbor 6.6.6.6 next-hop-self
exit-address-family
router bgp 100
no bgp default ipv4-unicast
neighbor 6.6.6.6 remote-as 100
neighbor 6.6.6.6 update-source
Loop0
!
address-family ipv4 vrf site4
neighbor 192.168.74.4 remote-as
65504
neighbor 192.168.74.4 activate
exit-address-family
!
address-family ipv4 vrf site3
neighbor 192.168.73.3 remote-as
65503
neighbor 192.168.73.3 activate
exit-address-family
!
address-family vpnv4
neighbor 6.6.6.6 activate
neighbor 6.6.6.6 next-hop-self
exit-address-family
router bgp 100
no bgp default ipv4-unicast
neighbor 7.7.7.7 remote-as 100
neighbor 7.7.7.7 update-source
Loop0
!
address-family ipv4 vrf site2
neighbor 192.168.62.2 remote-as
65502
neighbor 192.168.62.2 activate
exit-address-family
!
address-family ipv4 vrf site1
neighbor 192.168.61.1 remote-as
65501
neighbor 192.168.61.1 activate
exit-address-family
!
address-family vpnv4
neighbor 7.7.7.7 activate
neighbor 7.7.7.7 next-hop-self
exit-address-family
router bgp 100
no bgp default ipv4-unicast
neighbor 7.7.7.7 remote-as 100
neighbor 7.7.7.7 update-source
Loop0
!
address-family ipv4 vrf site2
neighbor 192.168.62.2 remote-as
65502
neighbor 192.168.62.2 activate
exit-address-family
!
address-family ipv4 vrf site1
neighbor 192.168.61.1 remote-as
65501
neighbor 192.168.61.1 activate
exit-address-family
!
address-family vpnv4
neighbor 7.7.7.7 activate
neighbor 7.7.7.7 next-hop-self
exit-address-family
83
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
SummarySummary
• Supports large scale VPN services
• Increases value add by the VPN Service
Provider
• Decreases Service Provider’s cost of
providing VPN services
• Mechanisms are general enough to enable
VPN Service Provider to support a wide
range of VPN customers
• See RFC2547
84
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
ip vrf odd
rd 100:1
route-target export “Green”
route-target import “Green”
Route TargetRoute Target
PE-1
VPN Backbone IGP
PE-2
P P
P PBGP,RIPv2 update
for Net1,Next-
Hop=CE-1
VPN-IPv4 update:
RD:Net1, Next-hop=PE-
1
SOO=Site1, RT=Green,
Label=(intCE1)
CE-1
Site-2
VPN-IPv4 update is translated
into IPv4 address (Net1) put
into VRF green since
RT=Green and advertised to
CE-2
Site-1
CE-2
Receiving PE is inserting the route into the VRF identified by the
RT attribute (based on PE configuration)
In this example RT = Green.
85
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Inbound FilteringInbound Filtering
• Proprietary feature
VPN-IPv4 update is silently
rejected when it reaches PE since
there isn’t any VRF configured with
import RT = Red.
Automatic (always on) rejection of all prefixes where at least one
route target extended community attribute does not match any of
route targets configured at the PE.
Any VRF configuration change triggers “Route Refresh”
PE creates a union of all configured
RTs and automatically compares all
incoming RTs for non null
intersection
PE
MP-iBGP sessions
VRFs for VPNs
yellow
green
VPN-IPv4 update:
RD:Net1, Next-hop=PE-
X
SOO=Site1, RT=Green,
Label=XYZ
VPN-IPv4 update:
RD:Net1, Next-hop=PE-
X
SOO=Site1, RT=Red,
Label=XYZ
Import RT=yellow
Import RT=green
86
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Route RefreshRoute Refresh
• Based on: draft-chen-bgp-route-refresh-01.txt
• When the inbound policy has been modified, the BGP
speaker sends a Route-Refresh message to its
neighbors
With AFI, Sub-AFI attributes
• Neighbors will re-transmit all routes for that particular
AFI and Sub-AFI
• Routers not refresh capable will reset BGP session
• Used for vpnv4 sessions, for ipv4 sessions manual soft
refresh trigger: clear ip bgp neighbour x.x.x.x soft-in
87
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
• Policy may change in the PE if VRF modifications are done
• New VRFs, removal of VRFs, RT addition or deletion
• However, the PE may not have stored routing information
which become useful after a change
• PE request a re-transmission of updates to neighbors via
Route-Refresh
PE
VPN-IPv4 update:
RD:Net1, Next-hop=PE-
X
SOO=Site1, RT=Green,
Label=XYZ
VPN-IPv4 update:
RD:Net1, Next-hop=PE-
X
SOO=Site1, RT=Red,
Label=XYZ
Import RT=yellow
Import RT=green
Import RT=red
1. PE doesn’t have red
routes (previously filtered
out)
2. PE issue a Route-
Refresh to all neighbors
in order to ask for re-
transmission
3. Neighbors re-send
updates and “red”
route-target is now
accepted
Route Refresh and filteringRoute Refresh and filtering
88
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
• One central site has full routing knowledge of all
other sites (of same VPN)
Hub-Site
• Other sites will send traffic to Hub-Site for any
destination
Spoke-Sites
• Hub-Site is the central transit point between
Spoke-Sites
Use of central services at Hub-Site
Allow ASAllow AS
89
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
PE2
PE1
PE3
Site-1
N1
N3
VPN-IPv4 updates advertised by PE3
RD:N1, NH=PE3,Label=IntCE3-Spoke,
RT=Spoke
RD:N2, NH=PE3,Label=IntCE3-Spoke,
RT=Spoke
RD:N3, NH=PE3,Label=IntCE3-Spoke,
RT=Spoke
Site-3
Site-2
N2
IntCE3-Spoke VRF
(Export RT=Spoke)
N1,NH=CE3-Spoke
N2,NH=CE3-Spoke
N3,NH=CE3-Spoke
CE1
CE3-Spoke
CE2
CE3-Hub
IntCE3-Hub
VRF
(Import
RT=Hub)
N1,NH=PE1
N2,NH=PE2
VPN-IPv4 update advertised by
PE1
RD:N1, NH=PE1,Label=IntCE1,
RT=Hub
VPN-IPv4 update advertised by
PE2
RD:N2, NH=PE2,Label=IntCE2,
RT=Hub
IntCE2 VRF
(Import RT=Spoke)
(Export RT=Hub)
N1,NH=PE3
(imported)
N2,NH=CE2
(exported)
N3,NH=PE3
(imported)
IntCE1 VRF
(Import RT=Spoke)
(Export RT=Hub)
N1,NH=CE1
(exported)
N2,NH=PE3
(imported)
N3,NH=PE3
(imported
BGP/RIPv2
BGP/RIPv2
• Routes are imported/exported into VRFs based on
RT value of the VPN-IPv4 updates
• PE3 uses 2 (sub)interfaces with two different VRFs
Allow ASAllow AS
90
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
PE2
PE1
PE3
Site-1
N1
N3
Site-3
Site-2
N2 IntCE3-Spoke VRF
(Export RT=Spoke)
N1,NH=CE3-Spoke
N2,NH=CE3-Spoke
N3,NH=CE3-Spoke
CE1
CE3-Spoke
CE2
CE3-Hub
IntCE3-Hub
VRF
(Import
RT=Hub)
N1,NH=PE1
N2,NH=PE2
IntCE2 VRF
(Import RT=Spoke)
(Export RT=Hub)
N1,NH=PE3
(imported)
N2,NH=CE2
(exported)
N3,NH=PE3
(imported)
IntCE1 VRF
(Import RT=Spoke)
(Export RT=Hub)
N1,NH=CE1
(exported)
N2,NH=PE3
(imported)
N3,NH=PE3
(imported
BGP/RIPv2
BGP/RIPv2
• Traffic from one spoke to another will travel across
the hub site
• Hub site may host central services
Security, NAT, centralised Internet access
Allow ASAllow AS
91
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
• If PE and Hub-site use BGP the PE should not
check the received AS_PATH
The update the Hub-site advertise contains the
VPN backbone AS number
By configuration the AS_PATH check is disabled
Allow AS
Routing loops are suppressed by the limit of
occurrence of provider ASN in the AS_PATH
Therefore, PE will REJECT the update if its ASN
appears more than 3 times in the AS_PATH 3 is
the default and can be overwritten with <opt>
Allow ASAllow AS
92
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
PE2
PE1
PE3
Site-1
192.168.0.5/32
N3
Site-3
Site-2
N2
CE1
CE3-Spoke
CE2
CE3-Hub
Allow ASAllow AS
ASN: 100
!
address-family ipv4 vrf Hub
neighbor 192.168.73.3 remote-as 250
neighbor 192.168.73.3 activate
neighbor 192.168.74.4 remote-as 250
neighbor 192.168.74.4 activate
neighbor 192.168.74.4 allowas-in <opt>
no auto-summary
no synchronization
exit-address-family
!
eBGP4 update:
192.168.0.5/32
AS_PATH: 100
251
ASN: 251
ASN: 252
ASN: 250
eBGP4 update:
192.168.0.5/32
AS_PATH: 250 100
251
93
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
PE2
PE1
PE3
Site-1
192.168.0.5/32
N3
Site-3
Site-2
N2
CE1
CE3-Spoke
CE2
CE3-Hub
Allow AS with ASN overrideAllow AS with ASN override
ASN: 100
!
address-family ipv4 vrf Hub
neighbor 192.168.73.3 remote-as 250
neighbor 192.168.73.3 activate
neighbor 192.168.74.4 remote-as 250
neighbor 192.168.74.4 activate
neighbor 192.168.74.4 allowas-in <opt>
neighbor 192.168.74.4 as-override
no auto-summary
no synchronization
exit-address-family
ASN: 250
ASN: 250
ASN: 250
eBGP4 update:
192.168.0.5/32
AS_PATH: 100
100
eBGP4 update:
192.168.0.5/32
AS_PATH: 250 100
100
eBGP4 update:
192.168.0.5/32
AS_PATH: 250
VPN-IPv4
RD:192.168.0.5/
32,
AS_PATH: 250
VPN-IPv4
RD:192.168.0.5/32,
AS_PATH: 250 100
100
eBGP4 update:
192.168.0.5/32
AS_PATH: 100 100 100
100
Now the AS_PATH contains four
occurrences of the provider ASN.
This update will not be accepted
anymore if the CE re-advertise it
back to any PE
94
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
When BGP is used between PE and CE routers, the
customer VPN may want to re-use ASN in different
sites
Private ASN procedures already exist in order to strip
the private ASN from the AS_PATH
However, these procedures have following constraints:
Private ASN is stripped if only private ASN are
present in the AS_PATH
Private ASN is stripped if NOT equal to the
neighbouring ASN
Private ASN procedures do NOT allow the re-use of
same ASN in a MPLS-VPN environment
ASN OverrideASN Override
95
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
New procedures have been implemented
in order to re-use the same ASN on all
VPN sites
The procedures allows the use of private
as well as public ASN
Same ASN may be used for all sites,
whatever is their VPN
ASN OverrideASN Override
96
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
• With ASN override configured the PE does following
If the last ASN in the AS_PATH is equal to the
neighbouring one, it is replaced by the provider
ASN
If last ASN has multiple occurrences (due to
AS_PATH prepend) all the occurrences are
replaced with provider-ASN value
After this operation, normal eBGP operation occur:
Provider ASN is added to the AS_PATH
ASN OverrideASN Override
97
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
• ASN override feature is used in
conjunction with SOO in order to
prevent routing loops
In case of multihomed sites
• SOO is not needed for stub sites
Sites connected to a single PE
• Multi-homed sites need to use SOO
ASN OverrideASN Override
98
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
ASN OverrideASN Override
PE-1
CE-1
192.168.0.5/32
PE-2
CE-2
192.168.0.3/32
ASN: 250
ASN: 100
ip vrf odd
rd 100:1
route-target export 100:3
route-target import 100:3
!
interface Serial1
ip vrf forwarding odd
ip address 192.168.73.7 255.255.255.0
!
router bgp 100
no synchronization
no bgp default ipv4-unicast
neighbor 192.168.0.6 remote-as 100
neighbor 192.168.0.6 update-source Loop0
neighbor 192.168.0.6 activate
neighbor 192.168.0.6 next-hop-self
no auto-summary
!
address-family ipv4 vrf odd
neighbor 192.168.73.3 remote-as 250
neighbor 192.168.73.3 activate
neighbor 192.168.73.3 as-override
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor 192.168.0.6 activate
neighbor 192.168.0.6 send-community extended
no auto-summary
exit-address-family
!ASN: 250
99
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
ASN OverrideASN Override
PE-1
CE-1
192.168.0.5/32
PE-2
CE-2
VPN-IPv4 update:
RD:192.168.0.5/3
2
AS_PATH: 250
eBGP4 update:
192.168.0.5/32
AS_PATH:100 100
192.168.0.3/32
ASN: 250 ASN: 250
eBGP4 update:
192.168.0.5/32
AS_PATH: 250
ASN: 100
PE-2 performs following actions:
1- Replace last ASN with its own ASN
2- Update AS_PATH with its own ASN
3- Forward the update to CE-2
00-1#sh ip bgp vpn all
Network Next Hop Metric LocPrf Weight Path
ute Distinguisher: 100:1 (default for vrf odd)
192.168.0.3/32 192.168.0.7 0 0 250 i
192.168.0.5/32 192.168.65.5 0 0 250 i
3640-5#sh ip b
Network Next Hop Metric LocPrf Weight Path
*> 192.168.0.5/32 192.168.73.7 0 100 100 i
*> 192.168.0.3/32 0.0.0.0 0 i
100
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
ASN OverrideASN Override
with AS_PATH prependwith AS_PATH prepend
PE-1
CE-1
192.168.0.5/32
PE-2
CE-2
VPN-IPv4 update:
RD:192.168.0.5/32
AS_PATH: 250 250
250
eBGP4 update:
192.168.0.5/32
AS_PATH:100 100 100
100
192.168.0.3/32
ASN: 250 ASN: 250
eBGP4 update:
192.168.0.5/32
AS_PATH: 250 250
250
ASN: 100
PE-2 performs following actions:
1- Replace all occurrences of last ASN
with its own ASN
2- Update AS_PATH with its own ASN
3- Forward the update to CE-2
0-1#sh ip bgp vpn all
etwork Next Hop Metric LocPrf Weight Path
te Distinguisher: 100:1 (default for vrf odd)
92.168.0.3/32 192.168.0.7 0 0 250 i
92.168.0.5/32 192.168.65.5 0 0 250 250 250 i
3640-5#sh ip b
Network Next Hop Metric LocPrf Weight Path
*> 192.168.0.5/32 192.168.73.7 0 100 100 100
*> 192.168.0.3/32 0.0.0.0 0 i
101
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Site of OriginSite of Origin
• Used to identify the site
• Extended Community type
• Used to prevent loops when AS_PATH cannot be
used
When BGP is used between PE and multihomed
sites
A BGP route is NOT advertised back to the same
site
Even through different PE/CE connections
102
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Site of OriginSite of Origin
• SOO for eBGP learned routes
SOO is configured through a route-map
command
• SOO can be applied to routes learned through a
particular VRF interface (without the use of BGP
between PE and CE)
SOO is then configured on the interface
SOO is propagated into BGP during
redistribution
103
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
PE
CE
Site-1
Site of OriginSite of Origin
ip vrf odd
rd 100:1
route-target export 100:3
route-target import 100:3
!
interface Serial1
ip vrf forwarding odd
ip address 192.168.65.6 255.255.255.0
!
router bgp 100
no synchronization
no bgp default ipv4-unicast
neighbor 192.168.0.7 remote-as 100
neighbor 192.168.0.7 update-source Loop0
neighbor 192.168.0.7 activate
neighbor 192.168.0.7 next-hop-self
no auto-summary
!
address-family ipv4 vrf odd
neighbor 192.168.65.5 remote-as 250
neighbor 192.168.65.5 activate
neighbor 192.168.65.5 route-map setsoo in
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor 192.168.0.7 activate
neighbor 192.168.0.7 send-community extended
no auto-summary
exit-address-family
!
route-map setsoo permit 10
set extcommunity soo 100:65
7200-1#sh ip route vrf odd
C 192.168.65.0/24 is directly connected, Serial2
B 192.168.0.5 [20/0] via 192.168.65.5, 00:08:44, Serial2
7200-1#
7200-1#sh ip bgp vpn all
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf odd)
*> 192.168.0.5/32 192.168.65.5 0 0 250 i
7200-1#sh ip bgp vpn all 192.168.0.5
BGP routing table entry for 100:1:192.168.0.5/32, version 17
Paths: (1 available, best #1)
Advertised to non peer-group peers:
192.168.0.7
250
192.168.65.5 from 192.168.65.5 (192.168.0.5)
Origin IGP, metric 0, localpref 100, valid, external, best
Extended Community: SoO:100:65 RT:100:3
7200-1#
192.168.0.5/32
104
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Site of OriginSite of Origin
PE-1
CE-1 Site-1
SOO=100:65
192.168.0.5/32
PE-2
CE-2
eBGP4 update:
192.168.0.5/32
intCE1
VPN-IPv4 update:
RD:192.168.0.5/32,
Next-hop=PE-1
SOO=100:65,
RT=100:3,
Label=(intCE1)
eBGP4 update:
192.168.0.5/32
PE-2 will not propagate the route
since the update SOO is equal to
the one configured for the site
105
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Selective ExportSelective Export
• PE may have to export VRF routes with different
route-targets
Example: export management routes with
particular RT
• Export command accept route-map
Route-map configured into VRF
Route-map match or deny statements with
extended community list
106
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Selective ExportSelective Export
PE
CE
Site-1
ip vrf odd
rd 100:1
export map RTMAP
route-target import 100:3
!
…
…
!
access-list 10 permit 192.168.0.5 0.0.0.0
access-list 11 permit any
!
route-map RTMAP permit 10
match ip address 10
set extcommunity rt 100:3
!
route-map RTMAP permit 20
match ip address 11
set extcommunity rt 100:4
!
192.168.0.5/32
192.168.50/24
VPN-IPv4
update:
RD:192.168.0.5/
32
RT=100:3
VPN-IPv4 update:
RD:192.168.50.0/
24
RT=100:4
107
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Selective ImportSelective Import
• PE may have to import routes based on other
criteria than only Route-Target
• Import command accept route-map
Route-map configured into VRF
Route-map match or deny statements
108
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Selective ImportSelective Import
PE
CE
Site-1
ip vrf odd
rd 100:1
import map RTMAP
route-target export 100:3
!
…
…
!
access-list 10 permit 192.168.30.0 0.0.0.0
!
route-map RTMAP permit 10
match ip address 10
!
192.168.0.5/32
192.168.50/24
VPN-IPv4 update:
RD:192.168.30.3/3
2
RT=100:3
VPN-IPv4 update:
RD:192.168.30.0/
24
RT=100:4
B 192.168.30.0 [200/0] via 192.168.0.7, 02:17:48
109
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Extended route-mapsExtended route-maps
• Added support for extended communities in route-maps
Route-Map match/set statements:
route-map <Name> permit 10
[no] match extcommunity <1-99>
[no] set extcommunity [rt|soo] <ASN:nn | IP-address:nn>
Defining Extended Community access list:
[no] ip extcommunity-list 1 [permit|deny] [rt|soo] <ASN:nn | IP-address:nn>
110
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Internet routing - VRF specific default routeInternet routing - VRF specific default route
• The PE installs a default route into the site VRF
• PE router originates CE routes for the Internet
• The default route points to the Internet router of
the VPN backbone
Possibility to use different Internet gateways per
VRF
• No VPN default route allowed
111
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
MPLS VPN TopologiesMPLS VPN Topologies
Internet routing - VRF specific default routeInternet routing - VRF specific default route
Site-2
PE
PE
Internet
IP packet
D=cisco.com
Destination
cisco.com is
covered by
the default
route to PE-
IG
Site-1
PE-IG
Site-2 VRF
Site-1 routes
Site-2 routes
0.0.0.0/0 PE-IG
Global routing
table with
Internet routes
Site-1 VRF
Site-1 routes
Site-2 routes
Global routing
table with
Internet routes
Global routing
table with
Internet routes
IP packet
D=cisco.com
Label=PE-
IG
Ip route vrf <Name> 0.0.0.0 0.0.0.0 PE-IG global
112
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Direct Import (RT intersection)Direct Import (RT intersection)
• EBGP received prefixes are now
added to the vrf table in the router
thread itself.
• Requirement to have a non null
intersection between RTs for every
VRF has been removed.
113
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
CE to CE convergenceCE to CE convergence
• New BGP mechanism to be used in order to improve
convergence time between sites
• BGP update origination, validation and advertisement
• Other mechanisms in order to improve import and
export processes
• BGP update next-hop validation (done at scanner on
PE) - scan-time adjustment.
• BGP validates updates by verifying next-hop
reachability (first rule on PATH selection)
• By default the next-hop validation is done once
every 60 seconds
• New command that allows to configure the timer
bgp scan-time <5-60>
114
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
CE to CE convergenceCE to CE convergence
• BGP update advertisement interval (default):
• EBGP updates are propagated once every 30 seconds
• iBGP updates are propagated once every 5 seconds
Default can be changed on a per neighbor basis
neighbor <ip_address> advertisement-interval <0-600>
• BGP import/export process (IBGP learned into vrf on remote
PE)
• By default import/export actions are performed once every
60 seconds
Command to modify the timer: bgp scan-time import <5-60>
Timer is configurable ONLY under address-family vpnv4
115
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
VRF Size Limit/WarningVRF Size Limit/Warning
• New VRF level configuration command:
• (config-vrf)# maximum routes <number> { <warn percent> |
warn-only }
• When <warn-percent> of <number> is reached then a
SYSLOG error message is issued
• If the number of routes in the VRF routing table reaches
<number> then no more routes will be added, a SYSLOG
error message will be issued when an attempt is made to add
a route which is rejected, throttled to one message per-VRF
in 10 minutes.
116
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• How MPLS VPN works
• What Code Is MPLS VPN In?
• Platform Issues in Implementation
• Lab Demo - config
117
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
What Code Is MPLS VPN In?What Code Is MPLS VPN In?
• Introduced in 12.0(5)T and 12.0(9)ST
• Also in 12.1M and derivatves
• 12.0(15)SL, 12.0(17)ST for ESR
118
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• How MPLS VPN works
• What Code Is MPLS VPN In?
• Platform Issues in Implementation
• Lab Demo - config
119
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Things That Make Up MPLS-VPNThings That Make Up MPLS-VPN
• MPLS Forwrding – ENG-59293
• TAG VPN Functional Spec – ENG-
17513
• MPLS VPN on GSR E2 cards – ENG-
59451
…as a reference to a HW implementation
120
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Software-based platformsSoftware-based platforms
• If you are developing a new software-
based platform (like 2600, 3600, 4500,
etc), should be pretty simple
• Concentrate on testing different
packet paths and interface types
121
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Hardware-based platformsHardware-based platforms
• Label Imposition:could be 0, 1, or 2
labels
• Label Exposition: need to deal with
aggregate label, very likely 2 lookups
on the same packet
122
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Label Imposition (Push)Label Imposition (Push)
• CE3<->CE4: PE3 imposes 0 labels, does regular FIB
lookup in VRF table
• CE3->CE1: PE3 imposes 1 label (VPN label), IGP label is
effectively PHP’d
• CE3->CE2: PE3 imposes 2 labels: (IGP label to PE2, VPN
label)
• Explicit-null mitigates PHP
PE1CE1
PE3
CE2
CE3
PE2 P1
CE4
123
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Label Exposition (Pop)Label Exposition (Pop)
• VPN advertises “aggregate label” for
scalability
• Aggregate label leads to 2 lookups on
egress PE (1 LIB, 1 FIB)
• Label lookup turns aggregate label into IP
address within a VRF, IP lookup necessary
to figure out correct L2 encap
124
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Aggregate LabelAggregate Label
1. PE3 does MPLS
lookup on VPN
label, finds
outgoing VRF
2. PE3 does IP lookup
in VRF routing
table, finds L2
encap, sends
packet
PE1CE1
PE3
CE3
CE4
VPN label = 42
IP packet Dst = 3.3.3.3
Label VRF
42 Red
IP Address Port
3.3.3.0/24 POS1/0
125
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
CPU
Considerations
QOS
Considerations
Platform Specific
Considerations
PE Memory
Considerations
Sizing Provider Edge (PE)Sizing Provider Edge (PE)
RoutersRouters
126
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
PE to CE
Connectivity Type
Sizing Provider Edge (PE)Sizing Provider Edge (PE)
CPU ConsiderationsCPU Considerations
STATIC
OSPF
BGP-4
# of provisioned
VRFs
# of VPN
clients/routes
Amount of
provisioned QOS
Several factors determine CPU Usage
# of backbone
BGP peers
Packet forwarding
CEF vs. process
127
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Platform Processor Type Internal Clock
Speed
NPE 225 RM5271 262 MHz
NPE 300 R7000 262 MHz
NPE 400 R7000 350 MHz
RSP 4 R5000 200 MHz
RSP 8 R7000 250 MHz
GRP R5000 200 MHz
Platform Processor TypesPlatform Processor Types
128
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Baseline (No Traffic) CPU ComparisonBaseline (No Traffic) CPU Comparison
Small VPN: 500 VRFs (11 routes per-VRF)Small VPN: 500 VRFs (11 routes per-VRF)
NPE225 – 262 MHz
NPE300 – 262 MHz
NPE400 – 350 MHz
RSP8 – 250 MHz
129
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
# of neighbors and
type of connectivity
Sizing Provider Edge (PE)Sizing Provider Edge (PE)
Memory ConsiderationsMemory Considerations
STATIC
OSPF
BGP-4
# of provisioned
VRFs
# of local VPN
routes
Unique or non-unique
RD allocation ?
Several factors determine Memory Usage
# of backbone
BGP peers (paths)
# of remote VPN
routes
Spread of IP
addressing structure
130
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Sizing Provider Edge (PE)Sizing Provider Edge (PE)
Memory ConsiderationsMemory Considerations
BGP Memory
Several Areas of Memory Usage
Routing Table
MPLS CEF
IDB
131
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Sizing Provider Edge (PE)Sizing Provider Edge (PE)
BGP MemoryBGP Memory
BGP Memory
ndc-brighton# show ip bgp v a s
BGP router identifier 10.3.1.9, local AS number 2
BGP table version is 21, main routing table version 21
1 network entries and 2 paths using 189 bytes of memory
2 BGP path attribute entries using 108 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
1 BGP extended community entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP activity 8/58 prefixes, 8/6 paths, scan interval 15 secs
Mp = (N*128) + (P*60) + (Pa * 24) + (Ec * 24)
Mp = Total memory used by PE in Bytes
N = Number of BGP network entries
P = Number of path entries
Pa = Number of AS_PATH entries
Ec = Number of Extended Community entries
132
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Sizing Provider Edge (PE)Sizing Provider Edge (PE)
Routing Table MemoryRouting Table Memory
Routing Table
Memory
ndc-brighton# show memory summary | include IP: Control Block
0x60567BB0 33184 101 3351584 IP: Control Block
Each VRF consumes :
• 1 IP control block -> 33,184 bytes
• 1 Network Descriptor Block (NDB) per route (64 bytes)
• 1 Routing Descriptor Block (RDB) per path (144 bytes)
ndc-brighton# show ip route vrf testing summary
IP routing table name is testing(1)
Source Networks Subnets Overhead Memory (bytes)
connected 0 1 64 144
External: 0 Internal: 0 Local: 0
internal 1 1164
Total 1 1 64 1308
133
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Sizing Provider Edge (PE)Sizing Provider Edge (PE)
MPLS MemoryMPLS Memory
ndc-brighton# show memory allocating-process total | include TFIB tag_
0x60DC5D54 8101672 125 TFIB tag_rewrite chunk
0x60DC5DB4 4141564 64 TFIB tag_info chunk
0x60DC5DA4 65540 1 TFIB tag_info chunk
0x60DC5D44 65540 1 TFIB tag_rewrite chunk
ndc-brighton# show memory allocating-process total | include TIB
0x60FC7E10 24228 134 TIB entry
MPLS forwarding memory (TFIB) consumes one 'taginfo‘ (64 bytes)
per route, plus one forwarding entry (104 bytes) for each path
MPLS Memory
134
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Sizing Provider Edge (PE)Sizing Provider Edge (PE)
IDB MemoryIDB Memory
IDB Memory
ndc-brighton# show memory summary | include IDB
0x602F88E8 4692 9 42228 *Hardware IDB*
0x602F8904 2576 9 23184 *Software IDB*
Hardware IDB
Software IDB
Interface Description Block
Hardware IDB: 4692 bytes (One per physical interface)
Software IDB: 2576 bytes (One per interface and per sub-interface)
Note: The amount of memory required will differ from platform to platform
135
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
PE VRF Memory SizingPE VRF Memory Sizing
NO VPN routesNO VPN routes
Used Memory
8,187,968 MB
Used Memory
56,243,216 MB
Used Memory
69,631,904 MB
136
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
VPN Memory ComparisonVPN Memory Comparison
137
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
PE Memory Sizing Design RulesPE Memory Sizing Design Rules
• ~ 60-70K per VRF
33K for base VRF control block, other memory
such as CEF, TFIB overhead, IDBs and so on
• ~800-900 bytes per route
(includes CEF, TFIB and RIB Memory in BGP)
• Remember IOS uses memory!
• Remember Internet Routes!
• Remember to leave transient memory
Recommended to leave ~ 20MB free
138
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
PE Memory Sizing DesignPE Memory Sizing Design
ObservationsObservations
• 128 MB platforms are very limited
(NPE 225, 3640 *NOT* suitable for full Internet
table and VPNs!!!)
• 256 MB Minimum recommended on PE
devices
• Limit the number of RDs per VRF in the
same VPN
unless you require iBGP load balancing with RRs
139
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
VRF and Route Limits SummaryVRF and Route Limits Summary
• VRF Limits
Constrained mainly by CPU
Between 500 & 1000 VRFs for static routing (depending on
platform – 10 routes per VRF)
Between 250 & 500 VRFs if using EBGP or RIPv2 (depending on
platform - 500 routes per VRF)
• VPN & Global Route Limits
Constrained mainly by available memory
With 256 MB, 200,000 routes total (IPv4 and VPNv4)
If Internet table is present, this reduces the memory available for
VPNs (Current calculations are near 65 Meg for 100K Internet
routes – with tightly packed attributes)
140
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
AgendaAgenda
• How MPLS VPN works
• What Code Is MPLS VPN In?
• Platform Issues in Implementation
• Lab Demo - config
141
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
Core TopologyCore Topology
S R P 1 2
N 6
O C 1 9 2
N 5
O C 4 8
N 7
O C 3 P O S
N 2
O C 3 P O S
N 3
O C 4 8
N 4
O C 4 8
N 8
O C 1 2
N 1 0 O C 1 2
N 1 1
O C 1 2
N 1 2
O C 1 2
N 1 3
ATM OC12
ATM
OC12
P O S 5 / 0 P O S 0 / 0
P O S 1 / 0 P O S 1 / 0
P O S 2 / 0
G S R 1
G S R 4 G S R 5
G S R 8
G S R 2
P O S 0 / 0
P O S 0 / 0
P O S 0 / 1
G S R 3
G S R 6
G S R 7
P O S 0 / 0
P O S 3 / 0
P O S 2 / 0 P O S 1 / 0
P O S 2 / 1
P O S 1 / 1
P O S 1 / 0
P O S 1 / 1
P O S 1 / 0
t o v p n
t o v p n
142
TOI-VPN
eosborne © 2001, Cisco Systems, Inc.
A S 3 4 0 2
G S R 1V X R 1 5V X R 1 4
V X R 1 3 V X R 1 6
N23
N20
N21
N 2 2
N 2 5
N24 B G P
R I P
A S 6 5 0 0 1
G S R 8
V X R 1 2
V X R 1 1
V X R 1 0
V X R 9
N26
N27
N29N30
N 3 1
N 2 8
O S P F
B G P A S 6 5 5 0 1
VPN toplogyVPN toplogy
NOTES:
-VXR15,16,12,11 are PEs
-VXR14,13,10,9 are CEs
-all CEs have 192.168.1.x as their RID
-GSR6 is VPNv4 RR

Más contenido relacionado

La actualidad más candente

Juniper L2 MPLS VPN
Juniper L2 MPLS VPNJuniper L2 MPLS VPN
Juniper L2 MPLS VPNmehrdad1981
 
Deploy MPLS Traffic Engineering
Deploy MPLS Traffic EngineeringDeploy MPLS Traffic Engineering
Deploy MPLS Traffic EngineeringAPNIC
 
Comparison between traditional vpn and mpls vpn
Comparison between traditional vpn and mpls vpnComparison between traditional vpn and mpls vpn
Comparison between traditional vpn and mpls vpnmmubashirkhan
 
MPLS VPN Per Vrf Traffic
MPLS VPN Per Vrf TrafficMPLS VPN Per Vrf Traffic
MPLS VPN Per Vrf Trafficalco
 
Design And Analysis Of MPLS based VPN
Design And Analysis Of MPLS based VPNDesign And Analysis Of MPLS based VPN
Design And Analysis Of MPLS based VPNgandhimb
 
MPLS + BGP Presentation
MPLS + BGP PresentationMPLS + BGP Presentation
MPLS + BGP PresentationGino McCarty
 
Segment Routing
Segment RoutingSegment Routing
Segment RoutingAPNIC
 
CISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
CISCO Virtual Private LAN Service (VPLS) Technical Deployment OverviewCISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
CISCO Virtual Private LAN Service (VPLS) Technical Deployment OverviewAmeen Wayok
 
Layer-2 VPN
Layer-2 VPNLayer-2 VPN
Layer-2 VPNrosmida
 
Unified MPLS. Построение современных и масштабируемых MPLS-сетей.
Unified MPLS. Построение современных и масштабируемых MPLS-сетей. Unified MPLS. Построение современных и масштабируемых MPLS-сетей.
Unified MPLS. Построение современных и масштабируемых MPLS-сетей. Cisco Russia
 
FreeRangeRouting - A new Quagga fork with more open development
FreeRangeRouting - A new Quagga fork with more open developmentFreeRangeRouting - A new Quagga fork with more open development
FreeRangeRouting - A new Quagga fork with more open developmentAPNIC
 
Presentation 4 for students of professordkinney.com
Presentation 4 for students of professordkinney.comPresentation 4 for students of professordkinney.com
Presentation 4 for students of professordkinney.comArnold Derrick Kinney
 
Ethernet vs-mpls-tp-in-the-access-presentation
Ethernet vs-mpls-tp-in-the-access-presentationEthernet vs-mpls-tp-in-the-access-presentation
Ethernet vs-mpls-tp-in-the-access-presentationNir Cohen
 
Nokia IES Configuration guide
Nokia IES Configuration guideNokia IES Configuration guide
Nokia IES Configuration guideAbel Saduwa
 
Cisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study NotesCisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study NotesDuane Bodle
 

La actualidad más candente (20)

Juniper L2 MPLS VPN
Juniper L2 MPLS VPNJuniper L2 MPLS VPN
Juniper L2 MPLS VPN
 
Mpls
MplsMpls
Mpls
 
Deploy MPLS Traffic Engineering
Deploy MPLS Traffic EngineeringDeploy MPLS Traffic Engineering
Deploy MPLS Traffic Engineering
 
Inter-AS MPLS VPN Deployment
Inter-AS MPLS VPN DeploymentInter-AS MPLS VPN Deployment
Inter-AS MPLS VPN Deployment
 
Comparison between traditional vpn and mpls vpn
Comparison between traditional vpn and mpls vpnComparison between traditional vpn and mpls vpn
Comparison between traditional vpn and mpls vpn
 
Implementing cisco mpls
Implementing cisco mplsImplementing cisco mpls
Implementing cisco mpls
 
MPLS VPN Per Vrf Traffic
MPLS VPN Per Vrf TrafficMPLS VPN Per Vrf Traffic
MPLS VPN Per Vrf Traffic
 
Design And Analysis Of MPLS based VPN
Design And Analysis Of MPLS based VPNDesign And Analysis Of MPLS based VPN
Design And Analysis Of MPLS based VPN
 
MPLS + BGP Presentation
MPLS + BGP PresentationMPLS + BGP Presentation
MPLS + BGP Presentation
 
Mpls101
Mpls101Mpls101
Mpls101
 
Seamless mpls
Seamless mpls Seamless mpls
Seamless mpls
 
Segment Routing
Segment RoutingSegment Routing
Segment Routing
 
CISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
CISCO Virtual Private LAN Service (VPLS) Technical Deployment OverviewCISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
CISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
 
Layer-2 VPN
Layer-2 VPNLayer-2 VPN
Layer-2 VPN
 
Unified MPLS. Построение современных и масштабируемых MPLS-сетей.
Unified MPLS. Построение современных и масштабируемых MPLS-сетей. Unified MPLS. Построение современных и масштабируемых MPLS-сетей.
Unified MPLS. Построение современных и масштабируемых MPLS-сетей.
 
FreeRangeRouting - A new Quagga fork with more open development
FreeRangeRouting - A new Quagga fork with more open developmentFreeRangeRouting - A new Quagga fork with more open development
FreeRangeRouting - A new Quagga fork with more open development
 
Presentation 4 for students of professordkinney.com
Presentation 4 for students of professordkinney.comPresentation 4 for students of professordkinney.com
Presentation 4 for students of professordkinney.com
 
Ethernet vs-mpls-tp-in-the-access-presentation
Ethernet vs-mpls-tp-in-the-access-presentationEthernet vs-mpls-tp-in-the-access-presentation
Ethernet vs-mpls-tp-in-the-access-presentation
 
Nokia IES Configuration guide
Nokia IES Configuration guideNokia IES Configuration guide
Nokia IES Configuration guide
 
Cisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study NotesCisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study Notes
 

Destacado

Philippe Langlois - SCTPscan Finding entry points to SS7 Networks & Telecommu...
Philippe Langlois - SCTPscan Finding entry points to SS7 Networks & Telecommu...Philippe Langlois - SCTPscan Finding entry points to SS7 Networks & Telecommu...
Philippe Langlois - SCTPscan Finding entry points to SS7 Networks & Telecommu...P1Security
 
4G LTE Mobile Broadband Overview
4G LTE Mobile Broadband Overview4G LTE Mobile Broadband Overview
4G LTE Mobile Broadband OverviewSigit Priyanggoro
 
Implementing Internet and MPLS BGP
Implementing Internet and MPLS BGPImplementing Internet and MPLS BGP
Implementing Internet and MPLS BGPPrivate
 
VPN - Virtual Private Network
VPN - Virtual Private NetworkVPN - Virtual Private Network
VPN - Virtual Private NetworkPeter R. Egli
 
PacNOG 18/APNIC Regional Meeting, Guam: APNIC Activities Update
PacNOG 18/APNIC Regional Meeting, Guam: APNIC Activities UpdatePacNOG 18/APNIC Regional Meeting, Guam: APNIC Activities Update
PacNOG 18/APNIC Regional Meeting, Guam: APNIC Activities UpdateAPNIC
 
Mpls Presentation Ine
Mpls Presentation IneMpls Presentation Ine
Mpls Presentation IneAlp isik
 
Wide Area Network
Wide Area NetworkWide Area Network
Wide Area Networkzaisahil
 
Data communications-concepts
Data communications-conceptsData communications-concepts
Data communications-conceptsWBUTTUTORIALS
 
BGP Flowspec (RFC5575) Case study and Discussion
BGP Flowspec (RFC5575) Case study and DiscussionBGP Flowspec (RFC5575) Case study and Discussion
BGP Flowspec (RFC5575) Case study and DiscussionAPNIC
 
Tel ip session1
Tel ip session1Tel ip session1
Tel ip session1firdausi01
 
signal encoding techniques
signal encoding techniquessignal encoding techniques
signal encoding techniquesSrinivasa Rao
 
Circuit Packet
Circuit PacketCircuit Packet
Circuit PacketWaqas !!!!
 
An Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecAn Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecShortestPathFirst
 

Destacado (15)

Philippe Langlois - SCTPscan Finding entry points to SS7 Networks & Telecommu...
Philippe Langlois - SCTPscan Finding entry points to SS7 Networks & Telecommu...Philippe Langlois - SCTPscan Finding entry points to SS7 Networks & Telecommu...
Philippe Langlois - SCTPscan Finding entry points to SS7 Networks & Telecommu...
 
4G LTE Mobile Broadband Overview
4G LTE Mobile Broadband Overview4G LTE Mobile Broadband Overview
4G LTE Mobile Broadband Overview
 
Implementing Internet and MPLS BGP
Implementing Internet and MPLS BGPImplementing Internet and MPLS BGP
Implementing Internet and MPLS BGP
 
VPN - Virtual Private Network
VPN - Virtual Private NetworkVPN - Virtual Private Network
VPN - Virtual Private Network
 
PacNOG 18/APNIC Regional Meeting, Guam: APNIC Activities Update
PacNOG 18/APNIC Regional Meeting, Guam: APNIC Activities UpdatePacNOG 18/APNIC Regional Meeting, Guam: APNIC Activities Update
PacNOG 18/APNIC Regional Meeting, Guam: APNIC Activities Update
 
Mpls Presentation Ine
Mpls Presentation IneMpls Presentation Ine
Mpls Presentation Ine
 
Wide Area Network
Wide Area NetworkWide Area Network
Wide Area Network
 
Data communications-concepts
Data communications-conceptsData communications-concepts
Data communications-concepts
 
BGP Flowspec (RFC5575) Case study and Discussion
BGP Flowspec (RFC5575) Case study and DiscussionBGP Flowspec (RFC5575) Case study and Discussion
BGP Flowspec (RFC5575) Case study and Discussion
 
Tel ip session1
Tel ip session1Tel ip session1
Tel ip session1
 
signal encoding techniques
signal encoding techniquessignal encoding techniques
signal encoding techniques
 
NGN BASICS
NGN BASICSNGN BASICS
NGN BASICS
 
Circuit Packet
Circuit PacketCircuit Packet
Circuit Packet
 
Gsm architecture
Gsm architecture Gsm architecture
Gsm architecture
 
An Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecAn Introduction to BGP Flow Spec
An Introduction to BGP Flow Spec
 

Similar a Mpls vpn toi

Vxlan control plane and routing
Vxlan control plane and routingVxlan control plane and routing
Vxlan control plane and routingWilfredzeng
 
Advanced Topics and Future Directions in MPLS
Advanced Topics and Future Directions in MPLS Advanced Topics and Future Directions in MPLS
Advanced Topics and Future Directions in MPLS Cisco Canada
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
PLNOG14: Evolved Programmable Network, architektura dla sieci operatorskich -...
PLNOG14: Evolved Programmable Network, architektura dla sieci operatorskich -...PLNOG14: Evolved Programmable Network, architektura dla sieci operatorskich -...
PLNOG14: Evolved Programmable Network, architektura dla sieci operatorskich -...PROIDEA
 
evpn_in_service_provider_network-web.pdf
evpn_in_service_provider_network-web.pdfevpn_in_service_provider_network-web.pdf
evpn_in_service_provider_network-web.pdfThanhTrungBui5
 
Cisco Live Milan 2015 - BGP advance
Cisco Live Milan 2015 - BGP advanceCisco Live Milan 2015 - BGP advance
Cisco Live Milan 2015 - BGP advanceBertrand Duvivier
 
Building DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNBuilding DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNCisco Canada
 
CCNA4 Verson6 Chapter3
CCNA4 Verson6 Chapter3CCNA4 Verson6 Chapter3
CCNA4 Verson6 Chapter3Chaing Ravuth
 
ODA000017 MPLS VPN(L3).ppt
ODA000017 MPLS VPN(L3).pptODA000017 MPLS VPN(L3).ppt
ODA000017 MPLS VPN(L3).pptmarwan76
 
CCNA (R & S) Module 02 - Connecting Networks - Chapter 3
CCNA (R & S) Module 02 - Connecting Networks - Chapter 3CCNA (R & S) Module 02 - Connecting Networks - Chapter 3
CCNA (R & S) Module 02 - Connecting Networks - Chapter 3Waqas Ahmed Nawaz
 
MPLS-VPN-Technology.pdf
MPLS-VPN-Technology.pdfMPLS-VPN-Technology.pdf
MPLS-VPN-Technology.pdfHuynh MVT
 
Brkmpl 2333
Brkmpl 2333Brkmpl 2333
Brkmpl 2333ronsito
 
PLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data Center
PLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data CenterPLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data Center
PLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data CenterPROIDEA
 
PLNOG 5: Joerg Ammon - THE VIRTUALIZED SP DATA CENTER
PLNOG 5: Joerg Ammon - THE VIRTUALIZED SP DATA CENTERPLNOG 5: Joerg Ammon - THE VIRTUALIZED SP DATA CENTER
PLNOG 5: Joerg Ammon - THE VIRTUALIZED SP DATA CENTERPROIDEA
 
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...nvirters
 
2pm-Wilson-Wang-5G-Mobile-Platform-with-P4-Enabled-Network-Slicing-and-MEC.pdf
2pm-Wilson-Wang-5G-Mobile-Platform-with-P4-Enabled-Network-Slicing-and-MEC.pdf2pm-Wilson-Wang-5G-Mobile-Platform-with-P4-Enabled-Network-Slicing-and-MEC.pdf
2pm-Wilson-Wang-5G-Mobile-Platform-with-P4-Enabled-Network-Slicing-and-MEC.pdfHngDngc
 
PLNOG 4: Emil Gągała - Deploying Next-Generation Multicast VPN
PLNOG 4: Emil Gągała - Deploying Next-Generation Multicast VPNPLNOG 4: Emil Gągała - Deploying Next-Generation Multicast VPN
PLNOG 4: Emil Gągała - Deploying Next-Generation Multicast VPNPROIDEA
 
CCNA v6.0 ITN - Chapter 06
CCNA v6.0 ITN - Chapter 06CCNA v6.0 ITN - Chapter 06
CCNA v6.0 ITN - Chapter 06Irsandi Hasan
 

Similar a Mpls vpn toi (20)

Vxlan control plane and routing
Vxlan control plane and routingVxlan control plane and routing
Vxlan control plane and routing
 
Advanced Topics and Future Directions in MPLS
Advanced Topics and Future Directions in MPLS Advanced Topics and Future Directions in MPLS
Advanced Topics and Future Directions in MPLS
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
PLNOG14: Evolved Programmable Network, architektura dla sieci operatorskich -...
PLNOG14: Evolved Programmable Network, architektura dla sieci operatorskich -...PLNOG14: Evolved Programmable Network, architektura dla sieci operatorskich -...
PLNOG14: Evolved Programmable Network, architektura dla sieci operatorskich -...
 
evpn_in_service_provider_network-web.pdf
evpn_in_service_provider_network-web.pdfevpn_in_service_provider_network-web.pdf
evpn_in_service_provider_network-web.pdf
 
CCNP Route
CCNP Route CCNP Route
CCNP Route
 
Cisco Live Milan 2015 - BGP advance
Cisco Live Milan 2015 - BGP advanceCisco Live Milan 2015 - BGP advance
Cisco Live Milan 2015 - BGP advance
 
Building DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNBuilding DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPN
 
CCNA4 Verson6 Chapter3
CCNA4 Verson6 Chapter3CCNA4 Verson6 Chapter3
CCNA4 Verson6 Chapter3
 
ODA000017 MPLS VPN(L3).ppt
ODA000017 MPLS VPN(L3).pptODA000017 MPLS VPN(L3).ppt
ODA000017 MPLS VPN(L3).ppt
 
CCNA (R & S) Module 02 - Connecting Networks - Chapter 3
CCNA (R & S) Module 02 - Connecting Networks - Chapter 3CCNA (R & S) Module 02 - Connecting Networks - Chapter 3
CCNA (R & S) Module 02 - Connecting Networks - Chapter 3
 
MPLS-VPN-Technology.pdf
MPLS-VPN-Technology.pdfMPLS-VPN-Technology.pdf
MPLS-VPN-Technology.pdf
 
Brkmpl 2333
Brkmpl 2333Brkmpl 2333
Brkmpl 2333
 
PLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data Center
PLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data CenterPLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data Center
PLNOG 13: Emil Gągała: EVPN – rozwiązanie nie tylko dla Data Center
 
PLNOG 5: Joerg Ammon - THE VIRTUALIZED SP DATA CENTER
PLNOG 5: Joerg Ammon - THE VIRTUALIZED SP DATA CENTERPLNOG 5: Joerg Ammon - THE VIRTUALIZED SP DATA CENTER
PLNOG 5: Joerg Ammon - THE VIRTUALIZED SP DATA CENTER
 
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
 
2pm-Wilson-Wang-5G-Mobile-Platform-with-P4-Enabled-Network-Slicing-and-MEC.pdf
2pm-Wilson-Wang-5G-Mobile-Platform-with-P4-Enabled-Network-Slicing-and-MEC.pdf2pm-Wilson-Wang-5G-Mobile-Platform-with-P4-Enabled-Network-Slicing-and-MEC.pdf
2pm-Wilson-Wang-5G-Mobile-Platform-with-P4-Enabled-Network-Slicing-and-MEC.pdf
 
PLNOG 4: Emil Gągała - Deploying Next-Generation Multicast VPN
PLNOG 4: Emil Gągała - Deploying Next-Generation Multicast VPNPLNOG 4: Emil Gągała - Deploying Next-Generation Multicast VPN
PLNOG 4: Emil Gągała - Deploying Next-Generation Multicast VPN
 
CCNA v6.0 ITN - Chapter 06
CCNA v6.0 ITN - Chapter 06CCNA v6.0 ITN - Chapter 06
CCNA v6.0 ITN - Chapter 06
 
Mpls Services
Mpls ServicesMpls Services
Mpls Services
 

Último

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 

Último (20)

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 

Mpls vpn toi

  • 1. 1© 2001, Cisco Systems, Inc. Course Number Presentation_ID MPLS VPN TOIMPLS VPN TOI eosborne@cisco.comeosborne@cisco.com
  • 2. 2 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • How MPLS VPN works • What Code Is MPLS VPN In? • Platform Issues in Implementation • Lab Demo - config
  • 3. 3 TOI-VPN eosborne © 2001, Cisco Systems, Inc. How MPLS-VPN WorksHow MPLS-VPN Works • Concepts and goals • Terminology • Connection model • Forwarding • Mechanisms • Topologies • Scaling • Configuration
  • 4. 4 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPNMPLS-VPN What is a VPN ?What is a VPN ? • An IP network infrastructure delivering private network services over a public infrastructure Use a layer 3 backbone Scalability, easy provisioning Global as well as non-unique private address space QoS Controlled access Easy configuration for customers
  • 5. 5 TOI-VPN eosborne © 2001, Cisco Systems, Inc. VPN Models - The Overlay modelVPN Models - The Overlay model • Private trunks over a TELCO/SP shared infrastructure Leased/Dialup lines FR/ATM circuits IP (GRE) tunnelling • Transparency between provider and customer networks • Optimal routing requires full mesh over over backbone
  • 6. 6 TOI-VPN eosborne © 2001, Cisco Systems, Inc. VPN Models - The Peer modelVPN Models - The Peer model • Both provider and customer network use same network protocol • CE and PE routers have a routing adjacency at each site • All provider routers hold the full routing information about all customer networks • Private addresses are not allowed • May use the virtual router capability Multiple routing and forwarding tables based on Customer Networks
  • 7. 7 TOI-VPN eosborne © 2001, Cisco Systems, Inc. VPN Models - MPLS-VPN:VPN Models - MPLS-VPN: The True Peer modelThe True Peer model • Same as Peer model BUT !!! • Provider Edge routers receive and hold routing information only about VPNs directly connected • Reduces the amount of routing information a PE router will store • Routing information is proportional to the number of VPNs a router is attached to • MPLS is used within the backbone to switch packets (no need of full routing)
  • 8. 8 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • Concepts and goals • Terminology • Connection model • Forwarding • Mechanisms • Topologies • Scaling • Configuration
  • 9. 9 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPN TerminologyMPLS-VPN Terminology • Provider Network (P-Network) The backbone under control of a Service Provider • Customer Network (C-Network) Network under customer control • CE router Customer Edge router. Part of the C- network and interfaces to a PE router
  • 10. 10 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPN TerminologyMPLS-VPN Terminology • Site Set of (sub)networks part of the C- network and co-located A site is connected to the VPN backbone through one or more PE/CE links • PE router Provider Edge router. Part of the P- Network and interfaces to CE routers • P router Provider (core) router, without knowledge of VPN
  • 11. 11 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPN TerminologyMPLS-VPN Terminology • Border router Provider Edge router interfacing to other provider networks • Extended Community BGP attribute used to identify a Route- origin, Route-target • Site of Origin Identifier (SOO) 64 bits identifying routers where the route has been originated
  • 12. 12 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPN TerminologyMPLS-VPN Terminology • Route-Target 64 bits identifying routers that should receive the route • Route Distinguisher Attributes of each route used to uniquely identify prefixes among VPNs (64 bits) VRF based (not VPN based) • VPN-IPv4 addresses Address including the 64 bits Route Distinguisher and the 32 bits IP address
  • 13. 13 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPN TerminologyMPLS-VPN Terminology • VRF VPN Routing and Forwarding Instance Routing table and FIB table Populated by routing protocol contexts • VPN-Aware network A provider backbone where MPLS-VPN is deployed
  • 14. 14 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • Concepts and goals • Terminology • Connection model • Forwarding • Mechanisms • Topologies • Scaling • Configuration
  • 15. 15 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model • A VPN is a collection of sites sharing a common routing information (routing table) • A site can be part of different VPNs • A VPN has to be seen as a community of interest (or Closed User Group) • Multiple Routing/Forwarding instances (VRF) on PE routers
  • 16. 16 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model • A site belonging to different VPNs may or MAY NOT be used as a transit point between VPNs • If two or more VPNs have a common site, address space must be unique among these VPNs Site-1 Site-3 Site-4 Site-2 VPN-A VPN-C VPN-B
  • 17. 17 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model • The VPN backbone is composed by MPLS LSRs PE routers (edge LSRs) P routers (core LSRs) • PE routers are faced to CE routers and distribute VPN information through MP-BGP to other PE routers VPN-IPv4 addresses, Extended Community, Label • P routers do not run BGP and do not have any VPN knowledge
  • 18. 18 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model VPN_A VPN_A VPN_B 10.3.0.0 10.1.0.0 11.5.0.0 P P PP PE PE CE CE CE VPN_A VPN_B VPN_B 10.1.0.0 10.2.0.0 11.6.0.0 CE PE PECE CE VPN_A 10.2.0.0 CE iBGP sessions • P routers (LSRs) are in the core of the MPLS cloud • PE routers use MPLS with the core and plain IP with CE routers • P and PE routers share a common IGP • PE router are MP-iBGP fully meshed
  • 19. 19 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model • PE and CE routers exchange routing information through: EBGP, OSPF, RIPv2, Static routing • CE router run standard routing software PE CE C E Site-2 Site-1 EBGP,OSPF, RIPv2,Static
  • 20. 20 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model • PE routers maintain separate routing tables The global routing table With all PE and P routes Populated by the VPN backbone IGP (ISIS or OSPF) VRF (VPN Routing and Forwarding) Routing and Forwarding table associated with one or more directly connected sites (CEs) VRF are associated to (sub/virtual/tunnel)interfaces Interfaces may share the same VRF if the connected sites may share the same routing information PE CE C E Site-2 Site-1 VPN Backbone IGP (OSPF, ISIS) EBGP,OSPF, RIPv2,Static
  • 21. 21 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model • Different site sharing the same routing information, may share the same VRF • Interfaces connecting these sites will use the same VRF • Sites belonging to the same VPN may share same VRF PE CE C E Site-2 Site-1
  • 22. 22 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model • The routes the PE receives from CE routers are installed in the appropriate VRF • The routes the PE receives through the backbone IGP are installed in the global routing table • By using separate VRFs, addresses need NOT to be unique among VPNs PE CE C E Site-2 Site-1 VPN Backbone IGPEBGP,OSPF, RIPv2,Static
  • 23. 23 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model • The Global Routing Table is populated by IGP protocols. • In PE routers it may contain the BGP Internet routes (standard BGP-4 routes) • BGP-4 (IPv4) routes go into global routing table • MP-BGP (VPN-IPv4) routes go into VRFs
  • 24. 24 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model PE VPN Backbone IGP iBGP session PE P P P P • PE and P routers share a common IGP (ISIS or OSPF) • PEs establish MP-iBGP sessions between them • PEs use MP-BGP to exchange routing information related to the connected sites and VPNs VPN-IPv4 addresses, Extended Community, Label
  • 25. 25 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model MP-BGP UpdateMP-BGP Update • VPN-IPV4 address Route Distinguisher 64 bits Makes the IPv4 route globally unique RD is configured in the PE for each VRF RD may or may not be related to a site or a VPN IPv4 address (32bits) • Extended Community attribute (64 bits) Site of Origin (SOO): identifies the originating site Route-target (RT): identifies the set of sites the route has to be advertised to
  • 26. 26 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model MP-BGP UpdateMP-BGP Update Any other standard BGP attribute Local Preference MED Next-hop AS_PATH Standard Community ... A Label identifying: The outgoing interface The VRF where a lookup has to be done (aggregate label) The BGP label will be the second label in the label stack of packets travelling in the core
  • 27. 27 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model MP-BGP Update - Extended communityMP-BGP Update - Extended community • BGP extended community attribute Structured, to support multiple applications 64 bits for increased range • General form <16bits type>:<ASN>:<32 bit number> Registered AS number <16bits type>:<IP address>:<16 bit number> Registered IP address
  • 28. 28 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model MP-BGP Update - Extended communityMP-BGP Update - Extended community • The Extended Community is used to: Identify one or more routers where the route has been originated (site) Site of Origin (SOO) Selects sites which should receive the route Route-Target
  • 29. 29 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model MP-BGP UpdateMP-BGP Update • The Label can be assigned only by the router which address is the Next-Hop attribute PE routers re-write the Next-Hop with their own address (loopback interface address) “Next-Hop-Self” BGP command towards iBGP neighbors Loopback addresses are advertised into the backbone IGP • PE addresses used as BGP Next-Hop must be uniquely known in the backbone IGP No summarisation of loopback addresses in the core
  • 30. 30 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model PE-1 VPN Backbone IGP PE-2 P P P P PE routers receive IPv4 updates (EBGP, RIPv2, Static) PE routers translate into VPN-IPv4 Assign a SOO and RT based on configuration Re-write Next-Hop attribute Assign a label based on VRF and/or interface Send MP-iBGP update to all PE neighbors BGP,RIPv2 update for Net1,Next- Hop=CE-1 VPN-IPv4 update: RD:Net1, Next- hop=PE-1 SOO=Site1, RT=Green, Label=(intCE1) CE-1 Site-2 VPN-IPv4 update is translated into IPv4 address (Net1) put into VRF green since RT=Green and advertised to CE-2 Site-1 CE-2
  • 31. 31 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model Receiving PEs translate to IPv4 Insert the route into the VRF identified by the RT attribute (based on PE configuration) The label associated to the VPN-IPv4 address will be set on packet forwarded towards the destination PE-1 VPN Backbone IGP PE-2 P P P P BGP,OSPF, RIPv2 update for Net1 Next-Hop=CE-1 VPN-IPv4 update: RD:Net1, Next- hop=PE-1 SOO=Site1, RT=Green, Label=(intCE1) CE-1 Site-2 VPN-IPv4 update is translated into IPv4 address (Net1) put into VRF green since RT=Green and advertised to CE-2 Site-1 CE-2
  • 32. 32 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Connection ModelMPLS VPN Connection Model • Route distribution to sites is driven by the Site of Origin (SOO) and Route-target attributes BGP Extended Community attribute • A route is installed in the site VRF corresponding to the Route-target attribute Driven by PE configuration • A PE which connects sites belonging to multiple VPNs will install the route into the site VRF if the Route-target attribute contains one or more VPNs to which the site is associated
  • 33. 33 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • Concepts and goals • Terminology • Connection model • Forwarding • Mechanisms • Topologies • Scaling • Configuration
  • 34. 34 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS ForwardingMPLS Forwarding Packet forwardingPacket forwarding • PE and P routers have BGP next-hop reachability through the backbone IGP • Labels are distributed through LDP (hop-by- hop) corresponding to BGP Next-Hops • Label Stack is used for packet forwarding Top label indicates BGP Next-Hop (interior label) Second level label indicates outgoing interface or VRF (exterior label)
  • 35. 35 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS ForwardingMPLS Forwarding Packet forwardingPacket forwarding • MPLS nodes forward packets based on the top label • P routers do not have BGP (nor VPN) knowledge No VPN routing information No Internet routing information
  • 36. 36 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS ForwardingMPLS Forwarding Penultimate Hop PoppingPenultimate Hop Popping • The upstream LDP peer of the BGP next-hop (PE router) will pop the first level label The penultimate hop will pop the label • Requested through LDP • The egress PE router will forward the packet based on the second level label which gives the outgoing interface (and VPN)
  • 37. 37 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS ForwardingMPLS Forwarding MPLS Forwarding - Penultimate Hop PoppingMPLS Forwarding - Penultimate Hop Popping PE2 PE1 CE1 CE2 P1 P2 IGP Label(PE2) VPN LabelIP packet PE1 receives IP packet Lookup is done on site VRF BGP route with Next-Hop and Label is found BGP next-hop (PE2) is reachable through IGP route with associated label IGP Label(PE2) VPN LabelIP packet P routers switch the packets based on the IGP label (label on top of the stack) VPN Label IP packet Penultimate Hop Popping P2 is the penultimate hop for the BGP next- hop P2 remove the top label This has been requested through LDP by PE2 IP packet PE2 receives the packets with the label corresponding to the outgoing interface (VRF) One single lookup Label is popped and packet sent to IP neighborIP packet CE3
  • 38. 38 TOI-VPN eosborne © 2001, Cisco Systems, Inc. T1 T7 T2 T8 T3 T9 T4 T7 T5 TB T6 TB T7 T8 MPLS VPNMPLS VPN ForwardingForwarding VPN_A VPN_A VPN_B 10.3.0.0 10.1.0.0 11.5.0.0 P P PP PE CE CE CE Data <RD_B,10.1> , iBGP next hop PE1 <RD_B,10.2> , iBGP next hop PE2 <RD_B,10.3> , iBGP next hop PE3 <RD_A,11.6> , iBGP next hop PE1 <RD_A,10.1> , iBGP next hop PE4 <RD_A,10.4> , iBGP next hop PE4 <RD_A,10.2> , iBGP next hop PE2 <RD_B,10.2> , iBGP NH= PE2 , T2 T8 • Ingress PE receives normal IP Packets from CE router • PE router does “IP Longest Match” from VPN_B FIBVPN_B FIB , find iBGP next hop PE2PE2 and impose a stack of labels: DataT8T2 VPN_A VPN_B VPN_B 10.1.0.0 10.2.0.0 11.6.0.0 CE PE1 PE2CE CE VPN_A 10.2.0.0 CE
  • 39. 39 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPNMPLS VPN ForwardingForwarding VPN_A VPN_A VPN_B 10.3.0.0 10.1.0.0 11.5.0.0 P P PP PE CE CE CE T7 T8 T9 Ta Tb Tu Tw Tx Ty Tz T8, TA T2 DataT8Data T2 DataTB outin / • All Subsequent P routers do switch the packet Solely on Interior Label • Egress PE router, removes Interior Label • Egress PE uses Exterior Label to select which VPN/CE to forward the packet to. VPN_A VPN_B VPN_B 10.1.0.0 10.2.0.0 11.6.0.0 CE PE1 PE2CE CE VPN_A 10.2.0.0 CE T2 DataData TAT2
  • 40. 40 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • Concepts and goals • Terminology • Connection model • Forwarding • Mechanisms • Topologies • Scaling • Configuration
  • 41. 41 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN mechanismsMPLS VPN mechanisms VRF and Multiple Routing InstancesVRF and Multiple Routing Instances • VRF: VPN Routing and Forwarding Instance VRF Routing Protocol Context VRF Routing Tables VRF CEF Forwarding Tables
  • 42. 42 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN mechanismsMPLS VPN mechanisms VRF and Multiple Routing InstancesVRF and Multiple Routing Instances • VPN aware Routing Protocols • Select/Install routes in appropriate routing table • Per-instance router variables • Not necessarily per-instance routing processes • eBGP, OSPF, RIPv2, Static
  • 43. 43 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN mechanismsMPLS VPN mechanisms VRF and Multiple Routing InstancesVRF and Multiple Routing Instances • VRF Routing table contains routes which should be available to a particular set of sites • Analogous to standard IOS routing table, supports the same set of mechanisms • Interfaces (sites) are assigned to VRFs One VRF per interface (sub-interface, tunnel or virtual-template) Possible many interfaces per VRF
  • 44. 44 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN mechanismsMPLS VPN mechanisms VRF and Multiple Routing InstancesVRF and Multiple Routing Instances StaticBGP RIPRouting processe s Routing contexts VRF Routing tables VRF Forwarding tables • Routing processes run within specific routing contexts • Populate specific VPN routing table and FIBs (VRF) • Interfaces are assigned to VRFs
  • 45. 45 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN mechanismsMPLS VPN mechanisms VRF and Multiple Routing InstancesVRF and Multiple Routing Instances Site-1 Site-2 Site-3 Site-4 Logical view Routing view VRF for site-1 Site-1 routes Site-2 routes VRF for site-4 Site-3 routes Site-4 routes VRF for site-2 Site-1 routes Site-2 routes Site-3 routes VRF for site-3 Site-2 routes Site-3 routes Site-4 routes Site-1 Site-3 Site-4 Site-2 VPN-A VPN-C VPN-B PE PE PP Multihop MP-iBGP
  • 46. 46 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • Concepts and goals • Terminology • Connection model • Forwarding • Mechanisms • Topologies • Scaling • BGP-4 Enhancements Cap. Negotiation, MPLS, Route Refresh, ORF • Configuration
  • 47. 47 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN TopologiesMPLS VPN Topologies VPN_A VPN_A VPN_B 10.3.0.0 10.1.0.0 11.5.0.0 P P PP PE PE CE CE CE VPN_A VPN_B VPN_B 10.1.0.0 10.2.0.0 11.6.0.0 CE PE PECE CE VPN_A 10.2.0.0 CE • VPN-IPv4 address are propagated together with the associated label in BGP Multiprotocol extension • Extended Community attribute (route-target) is associated to each VPN-IPv4 address, to populate the site VRF iBGP sessions
  • 48. 48 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN TopologiesMPLS VPN Topologies VPN sites with optimal intra-VPN routingVPN sites with optimal intra-VPN routing • Each site has full routing knowledge of all other sites (of same VPN) • Each CE announces his own address space • MP-BGP VPN-IPv4 updates are propagated between PEs • Routing is optimal in the backbone Each route has the BGP Next-Hop closest to the destination • No site is used as central point for connectivity
  • 49. 49 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN TopologiesMPLS VPN Topologies VPN sites with optimal intra-VPN routingVPN sites with optimal intra-VPN routing Site-1 VRF for site-1 N1,NH=C E1 N2,NH=P E2 N3,NH=P E3 PE1 PE3 PE2 N1 Site-3 N3 N2 VPN-IPv4 updates exchanged between PEs RD:N1, NH=PE1,Label=IntCE1, RT=Blue RD:N2, NH=PE2,Label=IntCE2, RT=Blue RD:N3, NH=PE3,Label=IntCE3, RT=Blue IntC E1 IntCE3 N1 NH=CE1 Routing Table on CE1 N1, Local N2, PE1 N3, PE1 EBGP/RIP/Static VRF for site-3 N1,NH=P E1 N2,NH=P E2 N3,NH=C E3 Routing Table on CE3 N1, PE3 N2, PE3 N3, Local N3 NH=CE3 EBGP/RIP/Static Site-2 IntCE2 Routing Table on CE2 N1,NH=PE2 N2,Local N3,NH=PE2 N2,NH=CE2 EBGP/RIP/Static VRF for site-2 N1,NH=P E1 N2,NH=C E2 N3,NH=P E3
  • 50. 50 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN TopologiesMPLS VPN Topologies VPN sites with Hub & Spoke routingVPN sites with Hub & Spoke routing • One central site has full routing knowledge of all other sites (of same VPN) Hub-Site • Other sites will send traffic to Hub-Site for any destination Spoke-Sites • Hub-Site is the central transit point between Spoke-Sites Use of central services at Hub-Site
  • 51. 51 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN TopologiesMPLS VPN Topologies VPN sites with Hub & Spoke routingVPN sites with Hub & Spoke routing PE2 PE1 PE3 Site-1 N1 N3 VPN-IPv4 updates advertised by PE3 RD:N1, NH=PE3,Label=IntCE3-Spoke, RT=Spoke RD:N2, NH=PE3,Label=IntCE3-Spoke, RT=Spoke RD:N3, NH=PE3,Label=IntCE3-Spoke, RT=Spoke Site-3 Site-2 N2 IntCE3-Spoke VRF (Export RT=Spoke) N1,NH=CE3- Spoke N2,NH=CE3- Spoke N3,NH=CE3- Spoke CE1 CE3-Spoke CE2 CE3-Hub IntCE3-Hub VRF (Import RT=Hub) N1,NH=PE1 N2,NH=PE2 VPN-IPv4 update advertised by PE1 RD:N1, NH=PE1,Label=IntCE1, RT=Hub VPN-IPv4 update advertised by PE2 RD:N2, NH=PE2,Label=IntCE2, RT=Hub IntCE2 VRF (Import RT=Spoke) (Export RT=Hub) N1,NH=PE3 (imported) N2,NH=CE2 (exported) N3,NH=PE3 (imported) IntCE1 VRF (Import RT=Spoke) (Export RT=Hub) N1,NH=CE1 (exported) N2,NH=PE3 (imported) N3,NH=PE3 (imported BGP/RIPv2 BGP/RIPv2 • Routes are imported/exported into VRFs based on RT value of the VPN-IPv4 updates • PE3 uses 2 (sub)interfaces with two different VRFs
  • 52. 52 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN TopologiesMPLS VPN Topologies VPN sites with Hub & Spoke routingVPN sites with Hub & Spoke routing PE2 PE1 PE3 Site-1 N1 N3 Site-3 Site-2 N2 IntCE3-Spoke VRF (Export RT=Spoke) N1,NH=CE3- Spoke N2,NH=CE3- Spoke N3,NH=CE3- Spoke CE1 CE3-Spoke CE2 CE3-Hub IntCE3-Hub VRF (Import RT=Hub) N1,NH=PE1 N2,NH=PE2 IntCE2 VRF (Import RT=Spoke) (Export RT=Hub) N1,NH=PE3 (imported) N2,NH=CE2 (exported) N3,NH=PE3 (imported) IntCE1 VRF (Import RT=Spoke) (Export RT=Hub) N1,NH=CE1 (exported) N2,NH=PE3 (imported) N3,NH=PE3 (imported BGP/RIPv2 BGP/RIPv2 • Traffic from one spoke to another will travel across the hub site • Hub site may host central services Security, NAT, centralised Internet access
  • 53. 53 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN TopologiesMPLS VPN Topologies VPN sites with Hub & Spoke routingVPN sites with Hub & Spoke routing • If PE and Hub-site use BGP the PE should not check the received AS_PATH The update the Hub-site advertise contains the VPN backbone AS number By configuration the AS_PATH check is disabled Routing loops are detected through the SOO attribute • PE and CE routers may use RIPv2 and/or static routing
  • 54. 54 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Internet RoutingMPLS VPN Internet Routing • In a VPN, sites may need to have Internet connectivity • Connectivity to the Internet means: Being able to reach Internet destinations Being able to be reachable from any Internet source • Security mechanism MUST be used as in ANY other kind of Internet connectivity
  • 55. 55 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Internet RoutingMPLS VPN Internet Routing • The Internet routing table is treated separately • In the VPN backbone the Internet routes are in the Global routing table of PE routers • Labels are not assigned to external (BGP) routes • P routers need not (and will not) run BGP
  • 56. 56 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPNMPLS VPN Internet routingInternet routing VRF specific default routeVRF specific default route • A default route is installed into the site VRF and pointing to a Internet Gateway • The default route is NOT part of any VPN A single label is used for packets forwarded according to the default route The label is the IGP label corresponding to the IP address of the Internet gateway Known in the IGP
  • 57. 57 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPNMPLS VPN Internet routingInternet routing VRF specific default routeVRF specific default route • PE router originates CE routes for the Internet Customer (site) routes are known in the site VRF Not in the global table The PE/CE interface is NOT known in the global table. However: A static route for customer routes and pointing to the PE/CE interface is installed in the global table This static route is redistributed into BGP-4 global table and advertised to the Internet Gateway • The Internet gateway knows customer routes and with the PE address as next-hop
  • 58. 58 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPNMPLS VPN Internet routingInternet routing VRF specific default routeVRF specific default route • The Internet Gateway specified in the default route (into the VRF) need NOT to be directly connected • Different Internet gateways can be used for different VRFs • Using default route for Internet routing does NOT allow any other default route for intra-VPN routing As in any other routing scheme
  • 59. 59 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPNMPLS VPN Internet routingInternet routing VRF specific default routeVRF specific default route PE PE Internet Site-1 PE-IG Site-2 Network 171.68.0.0/16 Serial0 192.168.1.1 192.168.1.2 ip vrf VPN-A rd 100:1 route-target both 100:1 ! Interface Serial0 ip address 192.168.10.1 255.255.255.0 ip vrf forwarding VPN-A ! Router bgp 100 no bgp default ipv4-unicast network 171.68.0.0 mask 255.255.0.0 neighbor 192.168.1.1 remote 100 neighbor 192.168.1.1 activate neighbor 192.168.1.1 next-hop-self neighbor 192.168.1.1 update-source loopback0 ! address-family ipv4 vrf VPN-A neighbor 192.168.10.2 remote-as 65502 neighbor 192.168.10.2 activate exit-address-family ! address-family vpnv4 neighbor 192.168.1.2 activate exit-address-family ! ip route 171.68.0.0 255.255.0.0 Serial0 ip route vrf VPN-A 0.0.0.0 0.0.0.0 192.168.1.1 glo BGP-4 MP-BGP
  • 60. 60 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPNMPLS VPN Internet routingInternet routing VRF specific default routeVRF specific default route PE PE Internet Site-1 PE-IG Site-2 Network 171.68.0.0/16 Serial0 192.168.1.1 192.168.1.2 Site-2 VRF 0.0.0.0/0 192.168.1.1 (global) Site-1 routes Site-2 routes Global Table and LFIB 192.168.1.1/32 Label=3 192.168.1.2/32 Label=5 ... IP packet D=cisco.c om Label = 3 IP packet D=cisco.c om IP packet D=cisco.c om
  • 61. 61 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPNMPLS VPN Internet routingInternet routing VRF specific default routeVRF specific default route • PE routers need not to hold the Internet table • PE routers will use BGP-4 sessions to originate customer routes • Packet forwarding is done with a single label identifying the Internet Gateway IP address More labels if Traffic Engineering is used
  • 62. 62 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Internet RoutingMPLS VPN Internet Routing Separated (sub)interfacesSeparated (sub)interfaces • If CE wishes to receive and announce routes from/to the Internet A dedicated BGP session is used over a separate (sub) interface The PE imports CE routes into the global routing table and advertise them to the Internet The interface is not part of any VPN and does not use any VRF Default route or Internet routes are exported to the CE PE needs to have Internet routing table
  • 63. 63 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Internet RoutingMPLS VPN Internet Routing Separated (sub)interfacesSeparated (sub)interfaces • The PE uses separate (sub)interfaces with the CE One (sub)interface for VPN routing associated to a VRF Can be a tunnel interface One (sub)interface for Internet routing Associated to the global routing table
  • 64. 64 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Internet RoutingMPLS VPN Internet Routing Separated (sub)interfacesSeparated (sub)interfaces PE PE Internet Site-1 PE-IG Site-2 Network 171.68.0.0/16 Serial0.1 192.168.1.1 192.168.1.2 ip vrf VPN-A rd 100:1 route-target both 100:1 ! Interface Serial0 no ip address ! Interface Serial0.1 ip address 192.168.10.1 255.255.255.0 ip vrf forwarding VPN-A ! Interface Serial0.2 ip address 171.68.10.1 255.255.255.0 ! Router bgp 100 no bgp default ipv4-unicast neighbor 192.168.1.1 remote 100 neighbor 192.168.1.1 activate neighbor 192.168.1.1 next-hop-self neighbor 192.168.1.1 update-source loopback0 neighbor 171.68.10.2 remote 502 ! address-family ipv4 vrf VPN-A neighbor 192.168.10.2 remote-as 502 neighbor 192.168.10.2 activate exit-address-family ! address-family vpnv4 neighbor 192.168.1.2 activate exit-address-family BGP-4 MP-BGP Serial0.2 BGP-4
  • 65. 65 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN Internet RoutingMPLS VPN Internet Routing Separated (sub)interfacesSeparated (sub)interfaces PE PE Internet Site-1 PE-IG Site-2 Network 171.68.0.0/16 Serial0.1 192.168.1.1 192.168.1.2 Serial0.2 Serial0.1 Serial0.2 CE routing table Site-2 routes ----> Serial0.1 Internet routes ---> Serial0.2 IP packet D=cisco.c om PE Global Table Internet routes ---> 192.168.1.1 192.168.1.1, Label=3 Label = 3 IP packet D=cisco.c om IP packet D=cisco.c om
  • 66. 66 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • Concepts and goals • Terminology • Connection model • Forwarding • Mechanisms • Topologies • Scaling • Configuration
  • 67. 67 TOI-VPN eosborne © 2001, Cisco Systems, Inc. ScalingScaling • Existing BGP techniques can be used to scale the route distribution: route reflectors • Each edge router needs only the information for the VPNs it supports Directly connected VPNs • RRs are used to distribute VPN routing information
  • 68. 68 TOI-VPN eosborne © 2001, Cisco Systems, Inc. ScalingScaling • Very highly scalable: Initial VPN release: 1000 VPNs x 1000 sites/VPN = 1,000,000 sites Architecture supports 100,000+ VPNs, 10,000,000+ sites BGP “segmentation” through RRs is essential !!!! • Easy to add new sites configure the site on the PE connected to it the network automagically does the rest
  • 69. 69 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPNMPLS-VPN Scaling BGPScaling BGP VPN_A VPN_A VPN_B 10.3.0.0 10.1.0.0 11.5.0.0 P P PP PE PE CE CE CE RR RR Route Reflectors VPN_A VPN_B VPN_B 10.1.0.0 10.2.0.0 11.6.0.0 CE PE1 PE2CE CE VPN_A 10.2.0.0 CE • Route Reflectors may be partitioned Each RR store routes for a set of VPNs • Thus, no BGP router needs to store ALL VPNs information • PEs will peer to RRs according to the VPNs they directly connect
  • 70. 70 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPN ScalingMPLS-VPN Scaling BGP updates filteringBGP updates filtering iBGP full mesh between PEs results in flooding all VPNs routes to all PEs Scaling problems when large amount of routes. In addition PEs need only routes for attached VRFs Therefore each PE will discard any VPN-IPv4 route that hasn’t a route-target configured to be imported in any of the attached VRFs This reduces significantly the amount of information each PE has to store Volume of BGP table is equivalent of volume of attached VRFs (nothing more)
  • 71. 71 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPN ScalingMPLS-VPN Scaling BGP updates filteringBGP updates filtering Each VRF has an import and export policy configured Policies use route-target attribute (extended community) PE receives MP-iBGP updates for VPN-IPv4 routes If route-target is equal to any of the import values configured in the PE, the update is accepted Otherwise it is silently discarded PE MP-iBGP sessions VRFs for VPNs yellow green VPN-IPv4 update: RD:Net1, Next- hop=PE-X SOO=Site1, RT=Green, Label=XYZ VPN-IPv4 update: RD:Net1, Next- hop=PE-X SOO=Site1, RT=Red, Label=XYZ Import RT=yellow Import RT=green
  • 72. 72 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPN ScalingMPLS-VPN Scaling Route RefreshRoute Refresh Policy may change in the PE if VRF modifications are done • New VRFs, removal of VRFs However, the PE may not have stored routing information which become useful after a change PE request a re-transmission of updates to neighbors • Route-Refresh PE VPN-IPv4 update: RD:Net1, Next- hop=PE-X SOO=Site1, RT=Green, Label=XYZ VPN-IPv4 update: RD:Net1, Next- hop=PE-X SOO=Site1, RT=Red, Label=XYZ Import RT=yellow Import RT=green Import RT=red 1. PE doesn’t have red routes (previously filtered out) 2. PE issue a Route- Refresh to all neighbors in order to ask for re-transmission 3. Neighbors re-send updates and “red” route-target is now accepted
  • 73. 73 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS-VPN ScalingMPLS-VPN Scaling Outbound Route Filters - ORFOutbound Route Filters - ORF PE router will discard update with unused route- target Optimisation requires these updates NOT to be sent Outbound Route Filter (ORF) allows a router to tell its neighbors which filter to use prior to propagate BGP updates PE VPN-IPv4 update: RD:Net1, Next- hop=PE-X SOO=Site1, RT=Green, Label=XYZ VPN-IPv4 update: RD:Net1, Next- hop=PE-X SOO=Site1, RT=Red, Label=XYZ Import RT=yellow Import RT=green 1. PE doesn’t need red routes 2. PE issue a ORF message to all neighbors in order not to receive red routes 3. Neighbors dynamically configure the outbound filter and send updates accordingly
  • 74. 74 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • Concepts and goals • Terminology • Connection model • Forwarding • Mechanisms • Topologies • Scaling • BGP-4 Enhancements Cap. Negotiation, MPLS, Route Refresh, ORF • Configuration
  • 75. 75 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN - ConfigurationMPLS VPN - Configuration • VPN knowledge is on PE routers • PE router have to be configured for VRF and Route Distinguisher VRF import/export policies (based on Route-target) Routing protocol used with CEs MP-BGP between PE routers BGP for Internet routers With other PE routers With CE routers
  • 76. 76 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN - ConfigurationMPLS VPN - Configuration VRF and Route DistinguisherVRF and Route Distinguisher • RD is configured on PE routers (for each VRF) • VRFs are associated to RDs in each PE • Common (good) practice is to use the same RD for the same VPN in all PEs But not mandatory • VRF configuration command ip vrf <vrf-symbolic-name> rd <route-distinguisher-value> route-target import <community> route-target export <community>
  • 77. 77 TOI-VPN eosborne © 2001, Cisco Systems, Inc. CLI - VRF configurationCLI - VRF configuration Site-1 Site-2 Site-3 Site-4 VRF for site-1 (100:1) Site-1 routes Site-2 routes VRF for site-4 (100:4) Site-3 routes Site-4 routes VRF for site-2 (100:2) Site-1 routes Site-2 routes Site-3 routes VRF for site-3 (100:3) Site-2 routes Site-3 routes Site-4 routes PE1 PE2 PP Multihop MP-iBGP ip vrf site1 rd 100:1 route-target export 100:1 route-target import 100:1 ip vrf site2 rd 100:2 route-target export 100:2 route-target import 100:2 route-target import 100:1 route-target export 100:1 ip vrf site1 rd 100:1 route-target export 100:1 route-target import 100:1 ip vrf site2 rd 100:2 route-target export 100:2 route-target import 100:2 route-target import 100:1 route-target export 100:1 ip vrf site3 rd 100:3 route-target export 100:2 route-target import 100:2 route-target import 100:3 route-target export 100:3 ip vrf site-4 rd 100:4 route-target export 100:3 route-target import 100:3 ip vrf site3 rd 100:3 route-target export 100:2 route-target import 100:2 route-target import 100:3 route-target export 100:3 ip vrf site-4 rd 100:4 route-target export 100:3 route-target import 100:3 Site-1 Site-3 Site-4 Site-2 VPN-A VPN-C VPN-B
  • 78. 78 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN - ConfigurationMPLS VPN - Configuration PE/CE routing protocolsPE/CE routing protocols • PE/CE may use BGP, RIPv2 or Static routes • A routing context is used for each VRF • Routing contexts are defined within the routing protocol instance Address-family router sub-command Router rip version 2 address-family ipv4 vrf <vrf-symbolic-name> … any common router sub-command …
  • 79. 79 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN - ConfigurationMPLS VPN - Configuration PE/CE routing protocolsPE/CE routing protocols • BGP uses same “address-family” command Router BGP <asn> ... address-family ipv4 vrf <vrf-symbolic-name> … any common router BGP sub-command … • Static routes are configured per VRF ip route vrf <vrf-symbolic-name> …
  • 80. 80 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN - ConfigurationMPLS VPN - Configuration PE router commandsPE router commands • All show commands are VRF based Show ip route vrf <vrf-symbolic-name> ... Show ip protocol vrf <vrf-symbolic-name> Show ip cef <vrf-symbolic-name> … … • PING and Telnet commands are VRF based telnet /vrf <vrf-symbolic-name> ping vrf <vrf-symbolic-name>
  • 81. 81 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN - ConfigurationMPLS VPN - Configuration PE/CE routing protocolsPE/CE routing protocols Site-1 Site-2 Site-3 Site-4 PE1 PE2 PP Multihop MP-iBGP Site-1 Site-3 Site-4 Site-2 VPN-A VPN-C VPN-B VRF for site-1 (100:1) Site-1 routes Site-2 routes VRF for site-4 (100:4) Site-3 routes Site-4 routes VRF for site-2 (100:2) Site-1 routes Site-2 routes Site-3 routes VRF for site-3 (100:3) Site-2 routes Site-3 routes Site-4 routes ip vrf site3 rd 100:3 route-target export 100:23 route-target import 100:23 route-target import 100:34 route-target export 100:34 ip vrf site-4 rd 100:4 route-target export 100:34 route-target import 100:34 ! interface Serial4/6 ip vrf forwarding site3 ip address 192.168.73.7 255.255.255.0 encapsulation ppp ! interface Serial4/7 ip vrf forwarding site4 ip address 192.168.74.7 255.255.255.0 encapsulation ppp ip vrf site3 rd 100:3 route-target export 100:23 route-target import 100:23 route-target import 100:34 route-target export 100:34 ip vrf site-4 rd 100:4 route-target export 100:34 route-target import 100:34 ! interface Serial4/6 ip vrf forwarding site3 ip address 192.168.73.7 255.255.255.0 encapsulation ppp ! interface Serial4/7 ip vrf forwarding site4 ip address 192.168.74.7 255.255.255.0 encapsulation ppp ip vrf site1 rd 100:1 route-target export 100:12 route-target import 100:12 ip vrf site2 rd 100:2 route-target export 100:12 route-target import 100:12 route-target import 100:23 route-target export 100:23 ! interface Serial3/6 ip vrf forwarding site1 ip address 192.168.61.6 255.255.255.0 encapsulation ppp ! interface Serial3/7 ip vrf forwarding site2 ip address 192.168.62.6 255.255.255.0 encapsulation ppp ip vrf site1 rd 100:1 route-target export 100:12 route-target import 100:12 ip vrf site2 rd 100:2 route-target export 100:12 route-target import 100:12 route-target import 100:23 route-target export 100:23 ! interface Serial3/6 ip vrf forwarding site1 ip address 192.168.61.6 255.255.255.0 encapsulation ppp ! interface Serial3/7 ip vrf forwarding site2 ip address 192.168.62.6 255.255.255.0 encapsulation ppp
  • 82. 82 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN - ConfigurationMPLS VPN - Configuration PE/CE routing protocolsPE/CE routing protocols Site-1 Site-2 Site-3 Site-4 PE1 PE2 PP Multihop MP-iBGP Site-1 Site-3 Site-4 Site-2 VPN-A VPN-C VPN-B VRF for site-1 (100:1) Site-1 routes Site-2 routes VRF for site-4 (100:3) Site-3 routes Site-4 routes VRF for site-2 (100:2) Site-1 routes Site-2 routes Site-3 routes VRF for site-3 (100:2) Site-2 routes Site-3 routes Site-4 routes router bgp 100 no bgp default ipv4-unicast neighbor 6.6.6.6 remote-as 100 neighbor 6.6.6.6 update-source Loop0 ! address-family ipv4 vrf site4 neighbor 192.168.74.4 remote-as 65504 neighbor 192.168.74.4 activate exit-address-family ! address-family ipv4 vrf site3 neighbor 192.168.73.3 remote-as 65503 neighbor 192.168.73.3 activate exit-address-family ! address-family vpnv4 neighbor 6.6.6.6 activate neighbor 6.6.6.6 next-hop-self exit-address-family router bgp 100 no bgp default ipv4-unicast neighbor 6.6.6.6 remote-as 100 neighbor 6.6.6.6 update-source Loop0 ! address-family ipv4 vrf site4 neighbor 192.168.74.4 remote-as 65504 neighbor 192.168.74.4 activate exit-address-family ! address-family ipv4 vrf site3 neighbor 192.168.73.3 remote-as 65503 neighbor 192.168.73.3 activate exit-address-family ! address-family vpnv4 neighbor 6.6.6.6 activate neighbor 6.6.6.6 next-hop-self exit-address-family router bgp 100 no bgp default ipv4-unicast neighbor 7.7.7.7 remote-as 100 neighbor 7.7.7.7 update-source Loop0 ! address-family ipv4 vrf site2 neighbor 192.168.62.2 remote-as 65502 neighbor 192.168.62.2 activate exit-address-family ! address-family ipv4 vrf site1 neighbor 192.168.61.1 remote-as 65501 neighbor 192.168.61.1 activate exit-address-family ! address-family vpnv4 neighbor 7.7.7.7 activate neighbor 7.7.7.7 next-hop-self exit-address-family router bgp 100 no bgp default ipv4-unicast neighbor 7.7.7.7 remote-as 100 neighbor 7.7.7.7 update-source Loop0 ! address-family ipv4 vrf site2 neighbor 192.168.62.2 remote-as 65502 neighbor 192.168.62.2 activate exit-address-family ! address-family ipv4 vrf site1 neighbor 192.168.61.1 remote-as 65501 neighbor 192.168.61.1 activate exit-address-family ! address-family vpnv4 neighbor 7.7.7.7 activate neighbor 7.7.7.7 next-hop-self exit-address-family
  • 83. 83 TOI-VPN eosborne © 2001, Cisco Systems, Inc. SummarySummary • Supports large scale VPN services • Increases value add by the VPN Service Provider • Decreases Service Provider’s cost of providing VPN services • Mechanisms are general enough to enable VPN Service Provider to support a wide range of VPN customers • See RFC2547
  • 84. 84 TOI-VPN eosborne © 2001, Cisco Systems, Inc. ip vrf odd rd 100:1 route-target export “Green” route-target import “Green” Route TargetRoute Target PE-1 VPN Backbone IGP PE-2 P P P PBGP,RIPv2 update for Net1,Next- Hop=CE-1 VPN-IPv4 update: RD:Net1, Next-hop=PE- 1 SOO=Site1, RT=Green, Label=(intCE1) CE-1 Site-2 VPN-IPv4 update is translated into IPv4 address (Net1) put into VRF green since RT=Green and advertised to CE-2 Site-1 CE-2 Receiving PE is inserting the route into the VRF identified by the RT attribute (based on PE configuration) In this example RT = Green.
  • 85. 85 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Inbound FilteringInbound Filtering • Proprietary feature VPN-IPv4 update is silently rejected when it reaches PE since there isn’t any VRF configured with import RT = Red. Automatic (always on) rejection of all prefixes where at least one route target extended community attribute does not match any of route targets configured at the PE. Any VRF configuration change triggers “Route Refresh” PE creates a union of all configured RTs and automatically compares all incoming RTs for non null intersection PE MP-iBGP sessions VRFs for VPNs yellow green VPN-IPv4 update: RD:Net1, Next-hop=PE- X SOO=Site1, RT=Green, Label=XYZ VPN-IPv4 update: RD:Net1, Next-hop=PE- X SOO=Site1, RT=Red, Label=XYZ Import RT=yellow Import RT=green
  • 86. 86 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Route RefreshRoute Refresh • Based on: draft-chen-bgp-route-refresh-01.txt • When the inbound policy has been modified, the BGP speaker sends a Route-Refresh message to its neighbors With AFI, Sub-AFI attributes • Neighbors will re-transmit all routes for that particular AFI and Sub-AFI • Routers not refresh capable will reset BGP session • Used for vpnv4 sessions, for ipv4 sessions manual soft refresh trigger: clear ip bgp neighbour x.x.x.x soft-in
  • 87. 87 TOI-VPN eosborne © 2001, Cisco Systems, Inc. • Policy may change in the PE if VRF modifications are done • New VRFs, removal of VRFs, RT addition or deletion • However, the PE may not have stored routing information which become useful after a change • PE request a re-transmission of updates to neighbors via Route-Refresh PE VPN-IPv4 update: RD:Net1, Next-hop=PE- X SOO=Site1, RT=Green, Label=XYZ VPN-IPv4 update: RD:Net1, Next-hop=PE- X SOO=Site1, RT=Red, Label=XYZ Import RT=yellow Import RT=green Import RT=red 1. PE doesn’t have red routes (previously filtered out) 2. PE issue a Route- Refresh to all neighbors in order to ask for re- transmission 3. Neighbors re-send updates and “red” route-target is now accepted Route Refresh and filteringRoute Refresh and filtering
  • 88. 88 TOI-VPN eosborne © 2001, Cisco Systems, Inc. • One central site has full routing knowledge of all other sites (of same VPN) Hub-Site • Other sites will send traffic to Hub-Site for any destination Spoke-Sites • Hub-Site is the central transit point between Spoke-Sites Use of central services at Hub-Site Allow ASAllow AS
  • 89. 89 TOI-VPN eosborne © 2001, Cisco Systems, Inc. PE2 PE1 PE3 Site-1 N1 N3 VPN-IPv4 updates advertised by PE3 RD:N1, NH=PE3,Label=IntCE3-Spoke, RT=Spoke RD:N2, NH=PE3,Label=IntCE3-Spoke, RT=Spoke RD:N3, NH=PE3,Label=IntCE3-Spoke, RT=Spoke Site-3 Site-2 N2 IntCE3-Spoke VRF (Export RT=Spoke) N1,NH=CE3-Spoke N2,NH=CE3-Spoke N3,NH=CE3-Spoke CE1 CE3-Spoke CE2 CE3-Hub IntCE3-Hub VRF (Import RT=Hub) N1,NH=PE1 N2,NH=PE2 VPN-IPv4 update advertised by PE1 RD:N1, NH=PE1,Label=IntCE1, RT=Hub VPN-IPv4 update advertised by PE2 RD:N2, NH=PE2,Label=IntCE2, RT=Hub IntCE2 VRF (Import RT=Spoke) (Export RT=Hub) N1,NH=PE3 (imported) N2,NH=CE2 (exported) N3,NH=PE3 (imported) IntCE1 VRF (Import RT=Spoke) (Export RT=Hub) N1,NH=CE1 (exported) N2,NH=PE3 (imported) N3,NH=PE3 (imported BGP/RIPv2 BGP/RIPv2 • Routes are imported/exported into VRFs based on RT value of the VPN-IPv4 updates • PE3 uses 2 (sub)interfaces with two different VRFs Allow ASAllow AS
  • 90. 90 TOI-VPN eosborne © 2001, Cisco Systems, Inc. PE2 PE1 PE3 Site-1 N1 N3 Site-3 Site-2 N2 IntCE3-Spoke VRF (Export RT=Spoke) N1,NH=CE3-Spoke N2,NH=CE3-Spoke N3,NH=CE3-Spoke CE1 CE3-Spoke CE2 CE3-Hub IntCE3-Hub VRF (Import RT=Hub) N1,NH=PE1 N2,NH=PE2 IntCE2 VRF (Import RT=Spoke) (Export RT=Hub) N1,NH=PE3 (imported) N2,NH=CE2 (exported) N3,NH=PE3 (imported) IntCE1 VRF (Import RT=Spoke) (Export RT=Hub) N1,NH=CE1 (exported) N2,NH=PE3 (imported) N3,NH=PE3 (imported BGP/RIPv2 BGP/RIPv2 • Traffic from one spoke to another will travel across the hub site • Hub site may host central services Security, NAT, centralised Internet access Allow ASAllow AS
  • 91. 91 TOI-VPN eosborne © 2001, Cisco Systems, Inc. • If PE and Hub-site use BGP the PE should not check the received AS_PATH The update the Hub-site advertise contains the VPN backbone AS number By configuration the AS_PATH check is disabled Allow AS Routing loops are suppressed by the limit of occurrence of provider ASN in the AS_PATH Therefore, PE will REJECT the update if its ASN appears more than 3 times in the AS_PATH 3 is the default and can be overwritten with <opt> Allow ASAllow AS
  • 92. 92 TOI-VPN eosborne © 2001, Cisco Systems, Inc. PE2 PE1 PE3 Site-1 192.168.0.5/32 N3 Site-3 Site-2 N2 CE1 CE3-Spoke CE2 CE3-Hub Allow ASAllow AS ASN: 100 ! address-family ipv4 vrf Hub neighbor 192.168.73.3 remote-as 250 neighbor 192.168.73.3 activate neighbor 192.168.74.4 remote-as 250 neighbor 192.168.74.4 activate neighbor 192.168.74.4 allowas-in <opt> no auto-summary no synchronization exit-address-family ! eBGP4 update: 192.168.0.5/32 AS_PATH: 100 251 ASN: 251 ASN: 252 ASN: 250 eBGP4 update: 192.168.0.5/32 AS_PATH: 250 100 251
  • 93. 93 TOI-VPN eosborne © 2001, Cisco Systems, Inc. PE2 PE1 PE3 Site-1 192.168.0.5/32 N3 Site-3 Site-2 N2 CE1 CE3-Spoke CE2 CE3-Hub Allow AS with ASN overrideAllow AS with ASN override ASN: 100 ! address-family ipv4 vrf Hub neighbor 192.168.73.3 remote-as 250 neighbor 192.168.73.3 activate neighbor 192.168.74.4 remote-as 250 neighbor 192.168.74.4 activate neighbor 192.168.74.4 allowas-in <opt> neighbor 192.168.74.4 as-override no auto-summary no synchronization exit-address-family ASN: 250 ASN: 250 ASN: 250 eBGP4 update: 192.168.0.5/32 AS_PATH: 100 100 eBGP4 update: 192.168.0.5/32 AS_PATH: 250 100 100 eBGP4 update: 192.168.0.5/32 AS_PATH: 250 VPN-IPv4 RD:192.168.0.5/ 32, AS_PATH: 250 VPN-IPv4 RD:192.168.0.5/32, AS_PATH: 250 100 100 eBGP4 update: 192.168.0.5/32 AS_PATH: 100 100 100 100 Now the AS_PATH contains four occurrences of the provider ASN. This update will not be accepted anymore if the CE re-advertise it back to any PE
  • 94. 94 TOI-VPN eosborne © 2001, Cisco Systems, Inc. When BGP is used between PE and CE routers, the customer VPN may want to re-use ASN in different sites Private ASN procedures already exist in order to strip the private ASN from the AS_PATH However, these procedures have following constraints: Private ASN is stripped if only private ASN are present in the AS_PATH Private ASN is stripped if NOT equal to the neighbouring ASN Private ASN procedures do NOT allow the re-use of same ASN in a MPLS-VPN environment ASN OverrideASN Override
  • 95. 95 TOI-VPN eosborne © 2001, Cisco Systems, Inc. New procedures have been implemented in order to re-use the same ASN on all VPN sites The procedures allows the use of private as well as public ASN Same ASN may be used for all sites, whatever is their VPN ASN OverrideASN Override
  • 96. 96 TOI-VPN eosborne © 2001, Cisco Systems, Inc. • With ASN override configured the PE does following If the last ASN in the AS_PATH is equal to the neighbouring one, it is replaced by the provider ASN If last ASN has multiple occurrences (due to AS_PATH prepend) all the occurrences are replaced with provider-ASN value After this operation, normal eBGP operation occur: Provider ASN is added to the AS_PATH ASN OverrideASN Override
  • 97. 97 TOI-VPN eosborne © 2001, Cisco Systems, Inc. • ASN override feature is used in conjunction with SOO in order to prevent routing loops In case of multihomed sites • SOO is not needed for stub sites Sites connected to a single PE • Multi-homed sites need to use SOO ASN OverrideASN Override
  • 98. 98 TOI-VPN eosborne © 2001, Cisco Systems, Inc. ASN OverrideASN Override PE-1 CE-1 192.168.0.5/32 PE-2 CE-2 192.168.0.3/32 ASN: 250 ASN: 100 ip vrf odd rd 100:1 route-target export 100:3 route-target import 100:3 ! interface Serial1 ip vrf forwarding odd ip address 192.168.73.7 255.255.255.0 ! router bgp 100 no synchronization no bgp default ipv4-unicast neighbor 192.168.0.6 remote-as 100 neighbor 192.168.0.6 update-source Loop0 neighbor 192.168.0.6 activate neighbor 192.168.0.6 next-hop-self no auto-summary ! address-family ipv4 vrf odd neighbor 192.168.73.3 remote-as 250 neighbor 192.168.73.3 activate neighbor 192.168.73.3 as-override no auto-summary no synchronization exit-address-family ! address-family vpnv4 neighbor 192.168.0.6 activate neighbor 192.168.0.6 send-community extended no auto-summary exit-address-family !ASN: 250
  • 99. 99 TOI-VPN eosborne © 2001, Cisco Systems, Inc. ASN OverrideASN Override PE-1 CE-1 192.168.0.5/32 PE-2 CE-2 VPN-IPv4 update: RD:192.168.0.5/3 2 AS_PATH: 250 eBGP4 update: 192.168.0.5/32 AS_PATH:100 100 192.168.0.3/32 ASN: 250 ASN: 250 eBGP4 update: 192.168.0.5/32 AS_PATH: 250 ASN: 100 PE-2 performs following actions: 1- Replace last ASN with its own ASN 2- Update AS_PATH with its own ASN 3- Forward the update to CE-2 00-1#sh ip bgp vpn all Network Next Hop Metric LocPrf Weight Path ute Distinguisher: 100:1 (default for vrf odd) 192.168.0.3/32 192.168.0.7 0 0 250 i 192.168.0.5/32 192.168.65.5 0 0 250 i 3640-5#sh ip b Network Next Hop Metric LocPrf Weight Path *> 192.168.0.5/32 192.168.73.7 0 100 100 i *> 192.168.0.3/32 0.0.0.0 0 i
  • 100. 100 TOI-VPN eosborne © 2001, Cisco Systems, Inc. ASN OverrideASN Override with AS_PATH prependwith AS_PATH prepend PE-1 CE-1 192.168.0.5/32 PE-2 CE-2 VPN-IPv4 update: RD:192.168.0.5/32 AS_PATH: 250 250 250 eBGP4 update: 192.168.0.5/32 AS_PATH:100 100 100 100 192.168.0.3/32 ASN: 250 ASN: 250 eBGP4 update: 192.168.0.5/32 AS_PATH: 250 250 250 ASN: 100 PE-2 performs following actions: 1- Replace all occurrences of last ASN with its own ASN 2- Update AS_PATH with its own ASN 3- Forward the update to CE-2 0-1#sh ip bgp vpn all etwork Next Hop Metric LocPrf Weight Path te Distinguisher: 100:1 (default for vrf odd) 92.168.0.3/32 192.168.0.7 0 0 250 i 92.168.0.5/32 192.168.65.5 0 0 250 250 250 i 3640-5#sh ip b Network Next Hop Metric LocPrf Weight Path *> 192.168.0.5/32 192.168.73.7 0 100 100 100 *> 192.168.0.3/32 0.0.0.0 0 i
  • 101. 101 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Site of OriginSite of Origin • Used to identify the site • Extended Community type • Used to prevent loops when AS_PATH cannot be used When BGP is used between PE and multihomed sites A BGP route is NOT advertised back to the same site Even through different PE/CE connections
  • 102. 102 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Site of OriginSite of Origin • SOO for eBGP learned routes SOO is configured through a route-map command • SOO can be applied to routes learned through a particular VRF interface (without the use of BGP between PE and CE) SOO is then configured on the interface SOO is propagated into BGP during redistribution
  • 103. 103 TOI-VPN eosborne © 2001, Cisco Systems, Inc. PE CE Site-1 Site of OriginSite of Origin ip vrf odd rd 100:1 route-target export 100:3 route-target import 100:3 ! interface Serial1 ip vrf forwarding odd ip address 192.168.65.6 255.255.255.0 ! router bgp 100 no synchronization no bgp default ipv4-unicast neighbor 192.168.0.7 remote-as 100 neighbor 192.168.0.7 update-source Loop0 neighbor 192.168.0.7 activate neighbor 192.168.0.7 next-hop-self no auto-summary ! address-family ipv4 vrf odd neighbor 192.168.65.5 remote-as 250 neighbor 192.168.65.5 activate neighbor 192.168.65.5 route-map setsoo in no auto-summary no synchronization exit-address-family ! address-family vpnv4 neighbor 192.168.0.7 activate neighbor 192.168.0.7 send-community extended no auto-summary exit-address-family ! route-map setsoo permit 10 set extcommunity soo 100:65 7200-1#sh ip route vrf odd C 192.168.65.0/24 is directly connected, Serial2 B 192.168.0.5 [20/0] via 192.168.65.5, 00:08:44, Serial2 7200-1# 7200-1#sh ip bgp vpn all Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 100:1 (default for vrf odd) *> 192.168.0.5/32 192.168.65.5 0 0 250 i 7200-1#sh ip bgp vpn all 192.168.0.5 BGP routing table entry for 100:1:192.168.0.5/32, version 17 Paths: (1 available, best #1) Advertised to non peer-group peers: 192.168.0.7 250 192.168.65.5 from 192.168.65.5 (192.168.0.5) Origin IGP, metric 0, localpref 100, valid, external, best Extended Community: SoO:100:65 RT:100:3 7200-1# 192.168.0.5/32
  • 104. 104 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Site of OriginSite of Origin PE-1 CE-1 Site-1 SOO=100:65 192.168.0.5/32 PE-2 CE-2 eBGP4 update: 192.168.0.5/32 intCE1 VPN-IPv4 update: RD:192.168.0.5/32, Next-hop=PE-1 SOO=100:65, RT=100:3, Label=(intCE1) eBGP4 update: 192.168.0.5/32 PE-2 will not propagate the route since the update SOO is equal to the one configured for the site
  • 105. 105 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Selective ExportSelective Export • PE may have to export VRF routes with different route-targets Example: export management routes with particular RT • Export command accept route-map Route-map configured into VRF Route-map match or deny statements with extended community list
  • 106. 106 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Selective ExportSelective Export PE CE Site-1 ip vrf odd rd 100:1 export map RTMAP route-target import 100:3 ! … … ! access-list 10 permit 192.168.0.5 0.0.0.0 access-list 11 permit any ! route-map RTMAP permit 10 match ip address 10 set extcommunity rt 100:3 ! route-map RTMAP permit 20 match ip address 11 set extcommunity rt 100:4 ! 192.168.0.5/32 192.168.50/24 VPN-IPv4 update: RD:192.168.0.5/ 32 RT=100:3 VPN-IPv4 update: RD:192.168.50.0/ 24 RT=100:4
  • 107. 107 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Selective ImportSelective Import • PE may have to import routes based on other criteria than only Route-Target • Import command accept route-map Route-map configured into VRF Route-map match or deny statements
  • 108. 108 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Selective ImportSelective Import PE CE Site-1 ip vrf odd rd 100:1 import map RTMAP route-target export 100:3 ! … … ! access-list 10 permit 192.168.30.0 0.0.0.0 ! route-map RTMAP permit 10 match ip address 10 ! 192.168.0.5/32 192.168.50/24 VPN-IPv4 update: RD:192.168.30.3/3 2 RT=100:3 VPN-IPv4 update: RD:192.168.30.0/ 24 RT=100:4 B 192.168.30.0 [200/0] via 192.168.0.7, 02:17:48
  • 109. 109 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Extended route-mapsExtended route-maps • Added support for extended communities in route-maps Route-Map match/set statements: route-map <Name> permit 10 [no] match extcommunity <1-99> [no] set extcommunity [rt|soo] <ASN:nn | IP-address:nn> Defining Extended Community access list: [no] ip extcommunity-list 1 [permit|deny] [rt|soo] <ASN:nn | IP-address:nn>
  • 110. 110 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Internet routing - VRF specific default routeInternet routing - VRF specific default route • The PE installs a default route into the site VRF • PE router originates CE routes for the Internet • The default route points to the Internet router of the VPN backbone Possibility to use different Internet gateways per VRF • No VPN default route allowed
  • 111. 111 TOI-VPN eosborne © 2001, Cisco Systems, Inc. MPLS VPN TopologiesMPLS VPN Topologies Internet routing - VRF specific default routeInternet routing - VRF specific default route Site-2 PE PE Internet IP packet D=cisco.com Destination cisco.com is covered by the default route to PE- IG Site-1 PE-IG Site-2 VRF Site-1 routes Site-2 routes 0.0.0.0/0 PE-IG Global routing table with Internet routes Site-1 VRF Site-1 routes Site-2 routes Global routing table with Internet routes Global routing table with Internet routes IP packet D=cisco.com Label=PE- IG Ip route vrf <Name> 0.0.0.0 0.0.0.0 PE-IG global
  • 112. 112 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Direct Import (RT intersection)Direct Import (RT intersection) • EBGP received prefixes are now added to the vrf table in the router thread itself. • Requirement to have a non null intersection between RTs for every VRF has been removed.
  • 113. 113 TOI-VPN eosborne © 2001, Cisco Systems, Inc. CE to CE convergenceCE to CE convergence • New BGP mechanism to be used in order to improve convergence time between sites • BGP update origination, validation and advertisement • Other mechanisms in order to improve import and export processes • BGP update next-hop validation (done at scanner on PE) - scan-time adjustment. • BGP validates updates by verifying next-hop reachability (first rule on PATH selection) • By default the next-hop validation is done once every 60 seconds • New command that allows to configure the timer bgp scan-time <5-60>
  • 114. 114 TOI-VPN eosborne © 2001, Cisco Systems, Inc. CE to CE convergenceCE to CE convergence • BGP update advertisement interval (default): • EBGP updates are propagated once every 30 seconds • iBGP updates are propagated once every 5 seconds Default can be changed on a per neighbor basis neighbor <ip_address> advertisement-interval <0-600> • BGP import/export process (IBGP learned into vrf on remote PE) • By default import/export actions are performed once every 60 seconds Command to modify the timer: bgp scan-time import <5-60> Timer is configurable ONLY under address-family vpnv4
  • 115. 115 TOI-VPN eosborne © 2001, Cisco Systems, Inc. VRF Size Limit/WarningVRF Size Limit/Warning • New VRF level configuration command: • (config-vrf)# maximum routes <number> { <warn percent> | warn-only } • When <warn-percent> of <number> is reached then a SYSLOG error message is issued • If the number of routes in the VRF routing table reaches <number> then no more routes will be added, a SYSLOG error message will be issued when an attempt is made to add a route which is rejected, throttled to one message per-VRF in 10 minutes.
  • 116. 116 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • How MPLS VPN works • What Code Is MPLS VPN In? • Platform Issues in Implementation • Lab Demo - config
  • 117. 117 TOI-VPN eosborne © 2001, Cisco Systems, Inc. What Code Is MPLS VPN In?What Code Is MPLS VPN In? • Introduced in 12.0(5)T and 12.0(9)ST • Also in 12.1M and derivatves • 12.0(15)SL, 12.0(17)ST for ESR
  • 118. 118 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • How MPLS VPN works • What Code Is MPLS VPN In? • Platform Issues in Implementation • Lab Demo - config
  • 119. 119 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Things That Make Up MPLS-VPNThings That Make Up MPLS-VPN • MPLS Forwrding – ENG-59293 • TAG VPN Functional Spec – ENG- 17513 • MPLS VPN on GSR E2 cards – ENG- 59451 …as a reference to a HW implementation
  • 120. 120 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Software-based platformsSoftware-based platforms • If you are developing a new software- based platform (like 2600, 3600, 4500, etc), should be pretty simple • Concentrate on testing different packet paths and interface types
  • 121. 121 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Hardware-based platformsHardware-based platforms • Label Imposition:could be 0, 1, or 2 labels • Label Exposition: need to deal with aggregate label, very likely 2 lookups on the same packet
  • 122. 122 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Label Imposition (Push)Label Imposition (Push) • CE3<->CE4: PE3 imposes 0 labels, does regular FIB lookup in VRF table • CE3->CE1: PE3 imposes 1 label (VPN label), IGP label is effectively PHP’d • CE3->CE2: PE3 imposes 2 labels: (IGP label to PE2, VPN label) • Explicit-null mitigates PHP PE1CE1 PE3 CE2 CE3 PE2 P1 CE4
  • 123. 123 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Label Exposition (Pop)Label Exposition (Pop) • VPN advertises “aggregate label” for scalability • Aggregate label leads to 2 lookups on egress PE (1 LIB, 1 FIB) • Label lookup turns aggregate label into IP address within a VRF, IP lookup necessary to figure out correct L2 encap
  • 124. 124 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Aggregate LabelAggregate Label 1. PE3 does MPLS lookup on VPN label, finds outgoing VRF 2. PE3 does IP lookup in VRF routing table, finds L2 encap, sends packet PE1CE1 PE3 CE3 CE4 VPN label = 42 IP packet Dst = 3.3.3.3 Label VRF 42 Red IP Address Port 3.3.3.0/24 POS1/0
  • 125. 125 TOI-VPN eosborne © 2001, Cisco Systems, Inc. CPU Considerations QOS Considerations Platform Specific Considerations PE Memory Considerations Sizing Provider Edge (PE)Sizing Provider Edge (PE) RoutersRouters
  • 126. 126 TOI-VPN eosborne © 2001, Cisco Systems, Inc. PE to CE Connectivity Type Sizing Provider Edge (PE)Sizing Provider Edge (PE) CPU ConsiderationsCPU Considerations STATIC OSPF BGP-4 # of provisioned VRFs # of VPN clients/routes Amount of provisioned QOS Several factors determine CPU Usage # of backbone BGP peers Packet forwarding CEF vs. process
  • 127. 127 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Platform Processor Type Internal Clock Speed NPE 225 RM5271 262 MHz NPE 300 R7000 262 MHz NPE 400 R7000 350 MHz RSP 4 R5000 200 MHz RSP 8 R7000 250 MHz GRP R5000 200 MHz Platform Processor TypesPlatform Processor Types
  • 128. 128 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Baseline (No Traffic) CPU ComparisonBaseline (No Traffic) CPU Comparison Small VPN: 500 VRFs (11 routes per-VRF)Small VPN: 500 VRFs (11 routes per-VRF) NPE225 – 262 MHz NPE300 – 262 MHz NPE400 – 350 MHz RSP8 – 250 MHz
  • 129. 129 TOI-VPN eosborne © 2001, Cisco Systems, Inc. # of neighbors and type of connectivity Sizing Provider Edge (PE)Sizing Provider Edge (PE) Memory ConsiderationsMemory Considerations STATIC OSPF BGP-4 # of provisioned VRFs # of local VPN routes Unique or non-unique RD allocation ? Several factors determine Memory Usage # of backbone BGP peers (paths) # of remote VPN routes Spread of IP addressing structure
  • 130. 130 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Sizing Provider Edge (PE)Sizing Provider Edge (PE) Memory ConsiderationsMemory Considerations BGP Memory Several Areas of Memory Usage Routing Table MPLS CEF IDB
  • 131. 131 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Sizing Provider Edge (PE)Sizing Provider Edge (PE) BGP MemoryBGP Memory BGP Memory ndc-brighton# show ip bgp v a s BGP router identifier 10.3.1.9, local AS number 2 BGP table version is 21, main routing table version 21 1 network entries and 2 paths using 189 bytes of memory 2 BGP path attribute entries using 108 bytes of memory 2 BGP AS-PATH entries using 48 bytes of memory 1 BGP extended community entries using 24 bytes of memory 0 BGP route-map cache entries using 0 bytes of memory 0 BGP filter-list cache entries using 0 bytes of memory BGP activity 8/58 prefixes, 8/6 paths, scan interval 15 secs Mp = (N*128) + (P*60) + (Pa * 24) + (Ec * 24) Mp = Total memory used by PE in Bytes N = Number of BGP network entries P = Number of path entries Pa = Number of AS_PATH entries Ec = Number of Extended Community entries
  • 132. 132 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Sizing Provider Edge (PE)Sizing Provider Edge (PE) Routing Table MemoryRouting Table Memory Routing Table Memory ndc-brighton# show memory summary | include IP: Control Block 0x60567BB0 33184 101 3351584 IP: Control Block Each VRF consumes : • 1 IP control block -> 33,184 bytes • 1 Network Descriptor Block (NDB) per route (64 bytes) • 1 Routing Descriptor Block (RDB) per path (144 bytes) ndc-brighton# show ip route vrf testing summary IP routing table name is testing(1) Source Networks Subnets Overhead Memory (bytes) connected 0 1 64 144 External: 0 Internal: 0 Local: 0 internal 1 1164 Total 1 1 64 1308
  • 133. 133 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Sizing Provider Edge (PE)Sizing Provider Edge (PE) MPLS MemoryMPLS Memory ndc-brighton# show memory allocating-process total | include TFIB tag_ 0x60DC5D54 8101672 125 TFIB tag_rewrite chunk 0x60DC5DB4 4141564 64 TFIB tag_info chunk 0x60DC5DA4 65540 1 TFIB tag_info chunk 0x60DC5D44 65540 1 TFIB tag_rewrite chunk ndc-brighton# show memory allocating-process total | include TIB 0x60FC7E10 24228 134 TIB entry MPLS forwarding memory (TFIB) consumes one 'taginfo‘ (64 bytes) per route, plus one forwarding entry (104 bytes) for each path MPLS Memory
  • 134. 134 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Sizing Provider Edge (PE)Sizing Provider Edge (PE) IDB MemoryIDB Memory IDB Memory ndc-brighton# show memory summary | include IDB 0x602F88E8 4692 9 42228 *Hardware IDB* 0x602F8904 2576 9 23184 *Software IDB* Hardware IDB Software IDB Interface Description Block Hardware IDB: 4692 bytes (One per physical interface) Software IDB: 2576 bytes (One per interface and per sub-interface) Note: The amount of memory required will differ from platform to platform
  • 135. 135 TOI-VPN eosborne © 2001, Cisco Systems, Inc. PE VRF Memory SizingPE VRF Memory Sizing NO VPN routesNO VPN routes Used Memory 8,187,968 MB Used Memory 56,243,216 MB Used Memory 69,631,904 MB
  • 136. 136 TOI-VPN eosborne © 2001, Cisco Systems, Inc. VPN Memory ComparisonVPN Memory Comparison
  • 137. 137 TOI-VPN eosborne © 2001, Cisco Systems, Inc. PE Memory Sizing Design RulesPE Memory Sizing Design Rules • ~ 60-70K per VRF 33K for base VRF control block, other memory such as CEF, TFIB overhead, IDBs and so on • ~800-900 bytes per route (includes CEF, TFIB and RIB Memory in BGP) • Remember IOS uses memory! • Remember Internet Routes! • Remember to leave transient memory Recommended to leave ~ 20MB free
  • 138. 138 TOI-VPN eosborne © 2001, Cisco Systems, Inc. PE Memory Sizing DesignPE Memory Sizing Design ObservationsObservations • 128 MB platforms are very limited (NPE 225, 3640 *NOT* suitable for full Internet table and VPNs!!!) • 256 MB Minimum recommended on PE devices • Limit the number of RDs per VRF in the same VPN unless you require iBGP load balancing with RRs
  • 139. 139 TOI-VPN eosborne © 2001, Cisco Systems, Inc. VRF and Route Limits SummaryVRF and Route Limits Summary • VRF Limits Constrained mainly by CPU Between 500 & 1000 VRFs for static routing (depending on platform – 10 routes per VRF) Between 250 & 500 VRFs if using EBGP or RIPv2 (depending on platform - 500 routes per VRF) • VPN & Global Route Limits Constrained mainly by available memory With 256 MB, 200,000 routes total (IPv4 and VPNv4) If Internet table is present, this reduces the memory available for VPNs (Current calculations are near 65 Meg for 100K Internet routes – with tightly packed attributes)
  • 140. 140 TOI-VPN eosborne © 2001, Cisco Systems, Inc. AgendaAgenda • How MPLS VPN works • What Code Is MPLS VPN In? • Platform Issues in Implementation • Lab Demo - config
  • 141. 141 TOI-VPN eosborne © 2001, Cisco Systems, Inc. Core TopologyCore Topology S R P 1 2 N 6 O C 1 9 2 N 5 O C 4 8 N 7 O C 3 P O S N 2 O C 3 P O S N 3 O C 4 8 N 4 O C 4 8 N 8 O C 1 2 N 1 0 O C 1 2 N 1 1 O C 1 2 N 1 2 O C 1 2 N 1 3 ATM OC12 ATM OC12 P O S 5 / 0 P O S 0 / 0 P O S 1 / 0 P O S 1 / 0 P O S 2 / 0 G S R 1 G S R 4 G S R 5 G S R 8 G S R 2 P O S 0 / 0 P O S 0 / 0 P O S 0 / 1 G S R 3 G S R 6 G S R 7 P O S 0 / 0 P O S 3 / 0 P O S 2 / 0 P O S 1 / 0 P O S 2 / 1 P O S 1 / 1 P O S 1 / 0 P O S 1 / 1 P O S 1 / 0 t o v p n t o v p n
  • 142. 142 TOI-VPN eosborne © 2001, Cisco Systems, Inc. A S 3 4 0 2 G S R 1V X R 1 5V X R 1 4 V X R 1 3 V X R 1 6 N23 N20 N21 N 2 2 N 2 5 N24 B G P R I P A S 6 5 0 0 1 G S R 8 V X R 1 2 V X R 1 1 V X R 1 0 V X R 9 N26 N27 N29N30 N 3 1 N 2 8 O S P F B G P A S 6 5 5 0 1 VPN toplogyVPN toplogy NOTES: -VXR15,16,12,11 are PEs -VXR14,13,10,9 are CEs -all CEs have 192.168.1.x as their RID -GSR6 is VPNv4 RR

Notas del editor

  1. PE to CE connectivity type – Overhead associated with RIP V2, BGP-4 and OSPF. Number of neighbors ? Timer adjustment consumes more CPU # of provisioned VRFs – the more VRFs, the more FIB, RIB structures to deal with – IP Background process # of VPN clients/routes – more routes, more scanning (for example BGP scanner) # of backbone peers – more peers, more updates/keepalives etc, more sessions to maintain Packet forwarding - process switching takes more CPU due to lookup etc. CEF builds cache based on topology
  2. Should mention here that the ESR (10000) and the OSR (7690) will also support PE functionality but are not included at this point. Should also note the GRP-2 (1Ghz processor)
  3. Should mention here that the ESR (10000) and the OSR (7690) will also support PE functionality but are not included at this point. Should also note the GRP-2 (1Ghz processor)
  4. Just the base VRFs (no interfaces defined) ================================================= gig-7200-7&amp;gt;show mem all tot Head Total(b) Used(b) Free(b) Lowest(b) Largest(b) Processor 61D419A0 229369440 56215976 173153464 172002680 172346860 I/O 20000000 33554448 264432 33290016 33290016 33289532 I/O-2 F800000 8388624 5110000 3278624 3278624 3278268 Allocator PC Summary for: Processor PC Total Count Name 0x605FAA18 33261228 1001 IP: Control Block 0x60E0EEB4 8503196 258 IP mtrie node 0x6060F5E8 3900000 1000 Exec 0x60273238 1937580 2 RMON packet pool 0x60DFF2CC 1117116 1001 FIB: Control Block 0x604F017C 829752 108 Interrupt Stack 0x6048A350 466440 762 *Packet Header* 0x60E0EDA0 404904 12 FIB one path ch 0x60793ABC 393240 6 BGP (0) update 0x604AAB10 360860 15 Normal 0x60631E9C 352080 2000 VPN ecomm list 0x6133754C 284716 1 CCSWVOFR 0x60632B88 208060 1000 VPN record 0x60793210 196620 3 IPv4 Unicast path-chunk 0x607AE058 196620 3 IPv4 Unicast net-chunk(8) 0x604B0478 168128 1 IDB List Element Chunks 0x604D8A98 167472 1255 Watched Boolean 0x60DFF948 131116 1 Init PC Total Count Name 0x60632134 124048 1000 VPN Target VPN hash ent 0x60793924 118320 4 BGP (0) attr 0x604508D4 74520 18 TTY data 0x60EE13F4 72216 2 XTagATM VC chunk 0x604AABA4 70720 26 Normal With 1000 sub ifs. ==================== gig-7200-7#show mem all tot Head Total(b) Used(b) Free(b) Lowest(b) Largest(b) Processor 61D419A0 229369440 77907700 151461740 150266496 150388188 I/O 20000000 33554432 493564 33060868 32796144 32583228 I/O-2 F800000 8388624 5110000 3278624 3278624 3278268 Allocator PC Summary for: Processor PC Total Count Name 0x605FAA18 33261228 1001 IP: Control Block 0x60EF9B64 12152000 1000 Exec 0x60E0EEB4 8503164 258 IP mtrie node 0x6060F5E8 7800000 2000 IP Background 0x60494F4C 2548000 1000 *Software IDB* 0x60273238 1937580 2 RMON packet pool 0x605FE778 1376340 21 IP subnet NDB e 0x60DFF2CC 1117116 1001 FIB: Control Block 0x604F017C 829752 108 Interrupt Stack 0x605F9FDC 591420 1004 IDB: IP Routing 0x6048A350 579564 947 *Packet Header* 0x60E0EDA0 404904 12 FIB one path ch 0x60793ABC 393240 6 BGP (0) update 0x604AAB10 360860 15 Normal 0x60631E9C 352084 2000 VPN ecomm list 0x6133754C 284716 1 CCSWVOFR 0x60632B88 208116 1000 VPN record 0x60793210 196620 3 IPv4 Unicast path-chunk PC Total Count Name 0x607AE058 196620 3 IPv4 Unicast net-chunk(8) 0x604B0478 168128 1 IDB List Element Chunks 0x604D8A98 167472 1255 Watched Boolean 0x60B23518 149344 1004 SWIDB_SB: LLC2 Info 0x60987DBC 133140 1004 SWIDB_SB: NETBIOS Info 0x60DFF948 131116 1 Init 0x60632134 124116 1000 VPN Target VPN hash ent 0x60793924 118320 4 BGP (0) attr 0x606B9960 108692 1003 DSS-SB 0x60567888 84984 1005 ARP Input 0x60649460 84844 1003 CDP sw subblock
  5. we should caution that these results are from the lab and in the real world the BGP memory requirement will be higher due to an increase in the number of attributes NPE400 -&amp;gt; 1500 small VPNs with statics. 400 medium VPNs with statics. 500 eBGP medium. RSP4/8 -&amp;gt; 1000 small VPNs with statics. 200 medium VPNs with statics. 250 eBGP medium.