Deploying IP MPLS VPNs
Deploying IP MPLS VPNs
BRKMPL-2102
Rajiv Asati
Distinguished Engineer
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 1
Abstract
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
Other MPLS-Related Sessions
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Agenda
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Prerequisites Reference
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Terminology Reference
MPLS-VPN Services
Best Practices
Conclusion
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
MPLS-VPN Technology
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
MPLS-VPN Technology
MPLS VPN Connection Model
P P
CE CE
PE PE
MPLS Backbone
P P
CE
CE
MP-iBGP Session
PE Routers P Routers
Sit at the Edge Sit inside the network
Use MPLS with P routers Forward packets by looking
Uses IP with CE routers at labels
Distributes VPN information P and PE routers share a
through MP-BGP to other PE common IGP
routers
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
MPLS-VPN Technology
Separate Routing Tables at PE
CE2
VPN 2
PE
CE1 MPLS Backbone IGP (OSPF, ISIS)
VPN 1
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
MPLS-VPN Technology
Virtual Routing and Forwarding Instance (1)
CE2
VPN 2 VRF Green
PE
CE1 MPLS Backbone IGP (OSPF, ISIS)
VPN 1 Ser0/0
VRF Blue
PE(conf)#interface Ser0/0
PE(conf)#ip vrf forwarding blue
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
MPLS-VPN Technology
Virtual Routing and Forwarding Instance (2)
CE2
VPN 2
PE
EBGP, OSPF, RIPv2, Static
CE1 MPLS Backbone IGP (OSPF, ISIS)
VPN 1
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
MPLS-VPN Technology: Control Plane
The Control Plane for MPLS VPN Is Multi-Protocol BGP
1:1 10.1.1.0
RD IPv4 Route-Target Label
VPNv4
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
MPLS VPN Control Plane
MP-BGP Update Components: RD and VPNv4 Address
1:1 10.1.1.0
RD IPv4 Route-Target Label
VPNv4
advertisements
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
MPLS VPN Control Plane
MP-BGP Update Components: Label
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
MPLS VPN Control Plane:
Putting It All Together
MP-iBGP Update:
RD:10.1.1.0
Site 1 3 Next-Hop=PE-1 Site 2
RT=1:2, Label=100
10.1.1.0/24 CE1
2 P P
CE2
10.1.1.0/24
Next-Hop=CE-1
P P
1 PE1 PE2
MPLS Backbone
MPLS Backbone
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
MPLS-VPN Forwarding Plane
Review
Site 1 Site 2
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
MPLS-VPN Forwarding Plane
Packet Forwarding
Site 1 Site 2
CE1
10.1.1.0/24 CE2
P3 P4
PE1 PE2
10.1.1.1 10.1.1.1 IP Packet
100 10.1.1.1 P1 P2
IP Packet
PE2 imposes two labels (MPLS headers) for each packet going to
the VPN destination 10.1.1.1.
Outer label is LDP learned; Corresponds derived from an IGP route
Inner label is learned via MP-BGP; corresponds to the VPN address
PE1 recovers the IP packet (from the received MPLS packet) and
forwards it to CE1.
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
MPLS-VPN Technology: Forwarding Plane
MPLS Packet Capture Reference
This capture
might be helpful
if you never
captured an
MPLS packet
before.
Ethernet Header
Outer Label
Inner Label
IP Packet
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Agenda
MPLS-VPN Services
Best Practices
Conclusion
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
MPLS VPN Sample Configuration (IOS) Reference
PE1 s1 PE1
Se0
router ospf 1
network 130.130.1.0 0.0.0.3 area 0
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
MPLS VPN Sample Configuration (IOS) Reference
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
MPLS VPN Sample Configuration (IOS) Reference
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
MPLS VPN Sample Configuration (IOS) Reference
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
MPLS VPN Sample Configuration (IOS) Reference
192.168.10.2 PE1
192.168.10.1
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
MPLS VPN Sample Configuration (IOS) Reference
router bgp 1
PE-CE Routing: BGP vrf VPN-A
rd 1:1
address-family ipv4 unicast
redistribute connected
Site 1
CE1 !
neighbor 192.168.10.2
10.1.1.0/24 PE1 remote-as 2
address-family ipv4 unicast
192.168.10.2 PE1 route-policy raj-temp in
!
192.168.10.1
!
!
!
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Agenda
Route Advertisement
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
MPLS VPN Services:
1. Loadsharing for the VPN Traffic: Cases
RR
1 CE 2 PEs
PE11
Traffic Flow
2 CEs 2 PEs
RR
PE11
CE1
PE2 CE2
171.68.2.0/24 CE2
PE12
Site B
Site A MPLS Backbone
Traffic Flow
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
MPLS VPN Services:
1. Loadsharing for the VPN Traffic: Deployment
ip vrf green
1 2 router bgp 1
rd 300:11
RR address-family ipv4 vrf green
route-target both 1:1
PE11 maximum-paths eibgp 2
CE1 CE2
PE2
171.68.2.0/24
PE12
Site A MPLS Backbone Site B
1 ip vrf green
rd 300:12 ip vrf green
route-target both 1:1 1 rd 300:13
route-target both 1:1
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
MPLS VPN Services:
1. VPN Fast Convergence—PE-CE Link Failure
Traffic Is RR VPN Traffic
Dropped
by PE11 PE11 Redirected VPN Traffic
‗BGP Local Convergence‘ feature helps PE11 to minimize the traffic loss
from sec to msec, during local PE-CE link failure
PE11 immediately reprograms the forwarding entry with the alternate BGP best path (which
is via PE12)
PE11 redirects the CE1 bound traffic to PE12 (with the right label)
In parallel, PE11 sends the ‗BGP withdraw message‘ to RR/PE2, which
will run the bestpath algorithm and removes the path learned via PE11,
and then adjust their forwarding entries via PE12
This feature is independent of whether multipath is enabled on PE2
or not, however, dependent on VPN site multihoming
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Agenda
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
MPLS-VPN Services:
2. Hub and Spoke Service
PE-Hub
Eth0/0
Spoke B PE-SB
CE-SB CE-Hub
MPLS VPN Backbone
171.68.2.0/24
ip vrf green-spoke2
description VRF for SPOKE B
rd 300:112
route-target export 1:1
route-target import 2:2
Note: OnlyBRKMPL-2102
VRF Configuration IsCisco
© 2011 Shown HereAll rights reserved.
and/or its affiliates. Cisco Public 41
Import and Export RT
Values Must Be Different
MPLS-VPN Services:
2. Hub and Spoke Service: Configuration – Option#2
ip vrf green-spoke1
description VRF for SPOKE A
rd 300:111
route-target export 1:1
ip vrf HUB-IN
route-target import 2:2
description VRF for traffic from HUB
Spoke A PE-SA rd 300:11
CE-SA route-target import 1:1
171.68.1.0/24
Eth0/0.1
PE-Hub Eth0/0.2
Spoke B PE-SB
CE-SB CE-Hub
MPLS VPN Backbone
171.68.2.0/24
ip vrf HUB-OUT
description VRF for traffic to HUB
ip vrf green-spoke2 rd 300:12
description VRF for SPOKE B route-target export 2:2
rd 300:112
route-target export 1:1
route-target import 2:2
Note: OnlyBRKMPL-2102
VRF Configuration IsCisco
© 2011 Shown HereAll rights reserved.
and/or its affiliates. Cisco Public 42
MPLS-VPN Services:
2. Hub and Spoke Service: Configuration – Option#2
* Only If Hub and Spoke Sites Use the Same BGP ASN
** Configuration for This Is Shown on the Next Slide
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
MPLS-VPN Services:
2. Hub and Spoke Service: Configuration – Option#2
router bgp <ASN>
ip vrf green-spoke1
address-family ipv4 vrf HUB-IN
description VRF for SPOKE A neighbor <CE> as-override
rd 300:111
route-target export 1:1
route-target import 2:2 ip vrf HUB-IN
description VRF for traffic from HUB
Spoke A PE-SA rd 300:11
CE-SA route-target import 1:1
171.68.1.0/24
Eth0/0.1
PE-Hub Eth0/0.2
Spoke B PE-SB
CE-SB CE-Hub
MPLS VPN Backbone
171.68.2.0/24
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
MPLS-VPN Services:
2. Hub and Spoke Service: Control Plane (Option#2)
VRF FIB and LFIB
Destination NextHop Label MPLS Backbone
171.68.0.0/16 PE-Hub 35 FIB—IP Forwarding Table
171.68.1.0/24 CE-SA LFIB—MPLS Forwarding Table
MP-iBGP Update
VRF FIB and LFIB VRF HUB-IN
171.68.0.0/16 PE-Hub 35 171.68.0.0/16
171.68.2.0/24 CE-SB Label 35 PE-Hub VRF HUB-OUT
PE-SB Route-Target 2:2
Spoke B VRF HUB-OUT FIB CE-Hub
MP-iBGP Update Destination NextHop
171.68.2.0/24 CE-SB 171.68.2.0/24 171.68.0.0/16 CE-H1
Label 50
Route-Target 1:1
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
MPLS-VPN Services:
2. Hub and Spoke Service: Forwarding Plane (Option#2)
VRF HUB-IN
CE-Hub
Spoke B PE-Hub
VRF HUB-OUT
CE-SB PE-SB L1 35 171.68.1.1
171.68.1.1
171.68.2.0/24
171.68.1.1
CE-SA2 PE-SA
CE-SA3
Half-duplex VRF is the answer
Uses two VRFs on the PE (spoke) router :
A VRF for spoke->hub communication (e.g. upstream)
A VRF for spoke<-hub communication (e.g. downstream)
Note: 12.2(33) SRE Supports Any Interface Type (Eth, Ser, POS, Virtual-Access, etc.)
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
MPLS-VPN Services:
2. Hub and Spoke Service: Half-Duplex VRF
ip vrf green-up ip vrf green-down
description VRF - upstream traffic description VRF - downstream traffic
rd 300:111 rd 300:112
route-target import 2:2 route-target export 1:1
ip vrf HUB-IN
description VRF for traffic from HUB
rd 300:11
Spoke A route-target import 1:1
CE-SA
171.68.1.0/24 S
Hub Site
w GE0/0 MPLS Backbone
PE-SA
PE-Hub
Spoke B CE-Hub
Interface GigEthernet 0/0
ip vrf HUB-OUT
171.68.2.0/24 ip address 172.18.13.1 255.255.255.0
description VRF for traffic to HUB
ip vrf forward green-up downstream green-down
CE-SB .. rd 300:12
route-target export 2:2
1. PE-SA installs the Spoke routes only in downstream VRF i.e. green-down
2. PE-SA installs the Hub routes only in upstream VRF i.e. green-up
3. PE-SA forwards the incoming IP traffic (from Spokes) using upstream VRF i.e. green-up routing table.
4. PE-SABRKMPL-2102
forwards the incoming MPLS
© 2011 Cisco traffic
and/or its affiliates. (from
All rights Hub) using
reserved. downstream VRF i.e. green-down routing table
Cisco Public 48
Agenda
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
MPLS-VPN Services
3. Extranet VPN – Simple Extranet
192.6.0.0/16
MPLS Backbone
VPN_A Site#2
VPN_A Site#1
71.8.0.0/16 PE1 PE2
P 180.1.0.0/16
VPN_B Site#1
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
MPLS-VPN Services
4. Internet Access: Design Options
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
MPLS-VPN Services
4. Internet Access: Design Options
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
MPLS-VPN Services: Internet Access
4.1 Option#1: VRF Specific Default Route
P
PE1 192.168.1.1
PE1#
ip vrf VPN-A
Internet GW
rd 100:1
route-target both 100:1
Interface Serial0
ip address 192.168.10.1 255.255.255.0 A default route, pointing to the
ip vrf forwarding VPN-A ASBR, is installed into the site
Router bgp 100 VRF at each PE
no bgp default ipv4-unicast
redistribute static
neighbor 192.168.1.1 remote 100 The static route, pointing to the
neighbor 192.168.1.1 activate VRF interface, is installed in the
neighbor 192.168.1.1 next-hop-self
neighbor 192.168.1.1 update-source loopback0 global routing table and
redistributed into BGP
ip route vrf VPN-A 0.0.0.0 0.0.0.0 192.168.1.1 global
ip route 71.8.0.0 255.255.0.0 Serial0
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
MPLS-VPN Services: Internet Access
4.1 Option#1: VRF Specific Default Route
(Forwarding)
Site1 MPLS Backbone
IP Packet
IP Packet Internet
71.8.0.0/16 5.1.1.1 MPLS Packet
30 5.1.1.1 5.1.1.1 (5.1.0.0/16)
S0 PE1 PE2
71.8.1.1 P 71.8.1.1 IP Packet
192.168.1.2 S0
192.168.1.1
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
MPLS-VPN Services: Internet Access
4.2 Option#2: Separate PE-CE Subinterfaces
Site1
71.8.0.0/16 MPLS Backbone
iBGP Internet
Internet
CE1
Se0.2
PE1 PE2
Se0.1 192.168.1.2 P
192.168.1.1
ip vrf VPN-A
rd 100:1 Internet GW
route-target both 100:1
Pros Cons
PE1 Global Table and FIB
Internet Routes 192.168.1.1 1. CE is dual-homed and can 1. PE to Hold Full Internet Routes
192.168.1.1 Label=30 perform Optimal Routing or default route via the Internet
GW
2. Traffic Separation Done
by CE . BGP Complexities Introduced at
CE; CE1 May Need to Aggregate
to Avoid AS_PATH Looping
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
MPLS-VPN Services: Internet Access
4.3 Option#3: Extranet with Internet-VRF
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
MPLS-VPN Services: Internet Access
4.4 Option#4: Using VRF-Aware NAT
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Agenda
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
MPLS-VPN Services:
5. VRF-Aware NAT Services: Internet Access
CE1
10.1.1.0/24 MPLS Backbone
Green VPN Site PE-ASBR Internet
PE11 .1 217.34.42.2
P
PE12
CE2
10.1.1.0/24 IP NAT Inside
Blue VPN Site
IP NAT Outside
http://www.cisco.com/en/US/partner/tech/tk648/tk361/technologies_tech_note09186a0080093fca.shtml
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
Agenda
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
MPLS VPN Service
6. VRF-Selection: Based on Source IP Address Reference
RR VPN Brown
Global Interface VRF Interfaces 33.3.0.0/16
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
MPLS VPN Service
7. Remote Access Service: IPSec to MPLS VPN Reference
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Agenda
http://www.cisco.com/en/US/docs/ios/interface/configuration/guide/ir_mplsvpnomgre.html
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
MPLS-VPN Services:
10. Providing MPLS/VPN over IP Transport Reference
PE1 PE2
CE1 CE2
GRE/IP Tunnel
IP
VRF VRF
IP Header
GRE Header
VPN Label
Egress PE2 decapsulates, and uses VPN label to forward packet to CE2
Source -- http://www.cisco.com/en/US/docs/ios/interface/configuration/guide/ir_mplsvpnomgre.html
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
Agenda
v4 and v6 PE PE v4 and v6
VPN A VPN A
CE
P P CE
MPLS/VPN
VPN A v4 and v6 Network
CE P P v6 Only VPN B
PE PE
VPN B v6 Only CE
iBGP Sessions in VPNv4 and
BRKMPL-2102 CE VPNv6 Address-Families
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
PE#
!
MPLS-VPN Services: vrf definition v2
rd 2:2
!
11. IPv6 VPN Service address-family ipv4
route-target export 1:2
route-target import 1:2
exit-address-family
!
address-family ipv6
route-target export 2:2
route-target import 2:2
exit-address-family
!
!
router bgp 1
!
address-family vpnv4
neighbor 10.13.1.21 activate
neighbor 10.13.1.21 send-community both
exit-address-family
!
address-family vpnv6
neighbor 10.13.1.21 activate
neighbor 10.13.1.21 send-community both
exit-address-family
!
address-family ipv4 vrf v2
exit-address-family
!
v4 and v6 address-family ipv6 vrf v2
PE PE
neighbor 200::2v4remote-as
and v6 30000
VPN A neighbor 200::2 activate VPN A
CE exit-address-family
P P ! CE
MPLS/VPN
VPN A v4 and v6 Network
CE P P v6 Only VPN B
PE PE
VPN B v6 Only CE
iBGP Sessions in VPNv4 and
BRKMPL-2102 CE
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public
VPNv6 Address-Families 84
Agenda
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
MPLS-VPN Services:
12. Providing Multi-VRF CE Service
One Deployment Model—Extending MPLS/VPN to CE
ip vrf green
rd 3000:111
route-target both 3000:1
ip vrf blue
Campus rd 3000:222
route-target both 3000:2
ip vrf red
rd 3000:333
route-target both 3000:3
Vrf Campus
Green SubInterface
Link * MPLS
Vrf Green
Network Vrf Green
Vrf
Red Vrf Red PE
Multi-VRF PE Router
CE Router
Vrf Red
ip vrf green
rd 3000:111
ip vrf blue
rd 3000:222
Ip vrf red
rd 3000:333
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Best Practices (1)
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Best Practices (2)
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
Agenda
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Conclusion
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Q&A
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
Meet the Expert
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Recommended Reading
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
Visit the Cisco Store for
Related Titles
http://theciscostores.com
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
Thank you.
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
Additional Slides
Advanced MPLS VPN Topics
Inter-AS and CsC
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
Agenda
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
What Is Inter-AS?
Provider X Provider Y
RR1 RR2
ASBR1 ASBR2
MP-iBGP Update: ???
PE-1 AS #1 AS #2
Problem: PE2
BGP, OSPF, RIPv2
149.27.2.0/24, NH=CE-1 How Do Provider
CE-1
X and Provider Y CE2
Exchange VPN
VPN-A VPN-A
149.27.2.0/24 Routes?
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 102
Inter-AS Deployment Scenarios
Following Options/Scenarios
for Deploying Inter-AS:
ASBR1 ASBR2
1. Back-to-Back VRFs
(Option A)
AS #1 (Option B) AS #2
PE1 3. Multihop MP-eBGP Between RRs PE2
(Option C)
CE1 CE2
4. Non-VPN Transit Provider
VPN-A VPN-A
Each Option Is Covered in Additional Slides
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
Scenario 1: Back-to-Back VRF
Control Plane
VPN-B VPN-B
10.1.1.0/24
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
Scenario 1: Back-to-Back VRF
Forwarding Plane
ASBR-1 ASBR-2 92 10.1.1.1 P2
30 29 10.1.1.1
P1
10.1.1.1 20 92 10.1.1.1
PE-1 PE-2
IP Packets
Between ASBRs
CE-2 CE-3 10.1.1.1
10.1.1.1
VPN-B
10.1.1.0/24 VPN-B
Pros Cons
Per-customer QoS is possible Not scalable. # of interface on both
ASBRs is directly proportional to #VRF.
It is simple and elegant since no need
to load the Inter-AS code (but still not No end-to-end MPLS
widely deployed) Unnecessary memory consumed in
RIB/(L)FIB
Dual-homing of ASBR makes
provisioning worse
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Cisco IOS Configuration
Scenario 1: Back-to-Back VRF Between ASBRs
ASBR1 ASBR2
1.1.1.0/30
Note: ASBR Must Already Have MP-iBGP Session with iBGP Neighbors such as RRs or PEs
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
Scenario 2: MP-eBGP Between ASBRs
to Exchange VPNv4 Routes
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Scenario 2: MP-eBGP bet ASBRs
for VPN Control Plane
ASBR-1 ASBR-2
MP-iBGP Update: MP-iBGP Update:
RD:1:27:10.1.1.0/24, RD:1:27:10.1.1.0/24,
NH=PE-1 NH=ASBR-2
RT=1:1, Label=(40) MP-eBGP Update: RT=1:1, Label=(30)
RD:1:27:10.1.1.0/24,
NH=ASBR-1
PE-1 RT=1:1, Label=(20) PE-2
VPN-B
10.1.1.0/24 VPN-B
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
Scenario 2: MP-eBGP Bet ASBRs
for VPN Forwarding Plane
30 40 10.1.1.1 30 10.1.1.1
P2
ASBR-1 ASBR-2
20 10.1.1.1 20 30 10.1.1.1
40 10.1.1.1
VPN-B
10.1.1.0/24 VPN-B
Pros Cons
More scalable Automatic route filtering must
Only one interface between be disabled
ASBRs routers But we can apply BGP filtering
No VRF configuration on ASBR.
Less memory consumption (no RIB/FIB memory) ASBRs are still required to hold
MPLS label switching between providers VPN routes
Still simple, more scalable & works today
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 109
Cisco IOS Configuration
Scenario 2: External MP-BGP Between ASBRs for
VPN
MP-eBGP for
ASBR1 ASBR2
VPNv4
1.1.1.0/30
Label Exchange
AS #1 Between ASBRs AS #2
Using MP-eBGP
PE1 PE2
Note: ASBR Must Already Have MP-iBGP Session with iBGP Neighbors such as RRs or PEs
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 110
Scenario 3: Multihop MP-eBGP Between
RRs to Exchange VPNv4 Routes
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 111
Scenario 3: Multihop MP-eBGP Between
RRs for VPN Routes: Control Plane
VPN-v4 Update:
RD:1:27:10.1.1.0/24,
RR-1 NH=PE-1 RR-2
RT=1:1, Label=(90)
VPN-v4 Update: VPN-v4 Update:
RD:1:27:10.1.1.0/24, RD:1:27:10.1.1.0/24,
NH=PE-1 NH=PE-1
ASBR-1 ASBR-2 RT=1:1, Label=(90)
RT=1:1, Label=(90)
AS#1 AS#2
IGP+LDP:
PE-1 IP-v4 Update: PE-2
Network=PE-1 IGP+LDP:
NH=PE-1 Network=PE-1 Network=PE-1
Label=(40) NH=ASBR-1 NH=ASBR-2 BGP, OSPF, RIPv2
BGP, OSPF, RIPv2 Label=(20) Label=(30) 10.1.1.0/24,NH=PE-2
CE-2
10.1.1.0/24,NH=CE-2
VPN-B CE-3
10.1.1.0/24 VPN-B
RR-1
RR-2
P1 P2
40 90 10.1.1.1
ASBR-2
30 90 10.1.1.1
90 10.1.1.1 ASBR-1
50 90 10.1.1.1
PE-1
20 90 10.1.1.1
PE-2
10.1.1.1
CE-2 CE-3 10.1.1.1
VPN-B
10.1.1.0/24 VPN-B
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 114
Cisco IOS Configuration
Scenario 3: Multihop MP-eBGP Between RRs for VPN
Multihop MP-eBGP RR-2
RR-1
for VPNv4 with Next-
Hop-Unchange
PE1
ASBR-1 ASBR-2
PE2
AS #1 AS #2
CE-1 CE-2
eBGP IPv4 + Labels
router ospf x
VPN-A VPN-A
router bgp x redistribute bgp 1 subnets
neighbor <RR-x> remote-as x !
neighbor <RR-x> ebgp-multihop router bgp x
neighbor <RR-x> update loopback 0 neighbor < ASBR-x > remote-as x
! !
address-family vpnv4 address-family ipv4
neighbor <RR-x> activate Network <PEx> mask 255.255.255.255
neighbor <RR-x> send-com extended Network <RRx> mask 255.255.255.255
neighbor <RR-x> next-hop-unchanged neighbor < ASBR-x > activate
neighbor < ASBR-x > send-label
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 116
Scenario 4: Non-VPN Transit Provider
CE-3
VPN-B
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 117
Route-Target Rewrite at ASBR
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 118
Inter-AS Deployment Guidelines
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 119
Agenda
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 120
MPLS/VPN Networks Without CsC
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 121
CsC Deployment Model
MP-iBGP for VPNv4
P1
PE1
IGP+LDP PE2
IGP+LDP
Full-Mesh iBGP
ISP PoP for External Routes ISP PoP
Site-1 Site-2
Internal Routes =
IGP Routes C1
ASBR-1 ASBR-2 Internal Routes =
IGP Routes
R1 R2
Internet
ISP Customers =
External Routes
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 122
Benefits of CsC
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 123
What Do I Need to Enable CsC?
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 124
CsC Deployment Models
P1
PE1
IGP+LDP
PE2
IGP+LDP
Internal Routes
= IGP Routes ASBR-2 C1
ASBR-1
Internal Routes =
R2 IGP Routes
Internet R1
ISP Customers =
External Routes
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 125
CsC Deployment Models
P1
IGP+LDP,
PE1 Net=PE-1, IGP+LDP,
PE2
Label = Pop Net=PE-1,
Label = 16
Carrier’s Core
30.1.61.25/32,
NH=CE-1, Label = 50 30.1.61.25/32,
NH=PE-2, Label = 52
CE-1
CE-2
MP-iBGP Update:
ISP PoP 1:1:10.1.1.0/24, RT=1:1 IGP+LDP,
NH =30.1.61.25/32, Label = 90 ISP PoP 30.1.61.25/32
Site-1
Site-2 NH=CE-2, Label=60
IGP+LDP
30.1.61.25/32,Label = Pop
ASBR_PE-1 ASBR_PE-2
30.1.61.25/32 C1
10.1.1.0/24, NH
=ASBR_PE-2 IGP+LDP,
10.1.1.0/24, NH=R1 30.1.61.25/32
Network =
R2 NH=C1, Label=70
10.1.1.0/24 R1
VPN Site-1
VPN Site-2
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 127
CsC: ISP Sites Are Running MPLS-VPN
Hierarchical MPLS-VPN Forwarding Plane
P1
51 90 10.1.1.1
PE1 16 51 90 10.1.1.1
PE2
Carrier’s Core
50 90 10.1.1.1
52 90 10.1.1.1
CE-1 CE-2
Network = R1 R2
10.1.1.0/24
VPN Site-1
VPN Site-2
BRKMPL-2102 © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Public 128