Brkccie 3345
Brkccie 3345
Brkccie 3345
Introduction to MPLS
L3VPN Networks
Keith Barker, Scott Morris
• BRKCCIE-3345
Agenda
• MPLS IP Unicast Forwarding
• VRFs
• MPLS L3 VPNs
Tour Guide
• Keith Barker, CCIE #6783, CISSP
• CCIE Route/Switch and Security
• VMware, HP, Juniper, Palo Alto, Check Point
• Twitter: @KeithBarkerCCIE
• YouTube & Facebook: Keith Barker Networking
Tour Guide
• Scott Morris, CCIEx4 #4713, CCDE #2009::13, JNCIEx2
• CCIE Route & Switch, ISP/Dial, Security, Service Provider
• Cisco Certified Design Expert
• Juniper Networks JNCIE-SP #153 and JNCIE-ENT #102
• CISSP, CCNP-V, CCNP-DC and several other
random things!
• Twitting: @ScottMorrisCCIE
Journey
• MPLS IP Unicast Forwarding
• VRFs
• MPLS L3 VPNs
End Goal: Routes and Transit for each customer.
Ingredients in the MPLS L3VPN Recipe
• IGPs
• MPLS
• VRFs
• iBGP
• MP-BGP
• Routers and Administrators that know how the game is played
MPLS Building Blocks
MPLS Vocabulary
L1 L1 L2 L2 L3 L3
L2/L3 Packet
P P
CE PE PE CE
CE CE
PE P P PE
PHP
• PHP – Penultimate Hop Pop
• Next to last LSR, removes top label, so that
egress LSR (PE) doesn’t have to
Label Pushes, Pops and Swaps
Who do we Turn to for Lookups?
• IP Routing protocols populate the Routing Information Base (RIB) –control plane
• RIB populates CEF and its Forwarding Information Base (FIB) – data plane
• IP only packets: Use CEF
• Label Distribution Protocol (LDP) populates the Label Information Base (LIB) –
control plane
• LDP and RIB populate the Label Forwarding Information Base (LFIB) – data plane
• MPLS labeled packets: Use LFIB
• By default all prefixes have labels advertised for them, and all neighbors have labels advertised
to them
• LDP is the default protocol
• Configure per interface
Conditional LDP Advertisements
(config)# no mpls ldp advertise-labels
(config)# mpls ldp advertise-labels
[for (ACL-of-networks)] [to (ACL-peers)
• IGP Routing may disagree with LDP processes – RID must be reachable over
connected interface, unless we use:
• (config-if)# mpls ldp discovery transport-address interface
Other LDP Features
• Security – Computes MD5 Signatures
• (config)# mpls ldp neighbor (ip#) password (pw)
• Slow convergence
• Get rid of RIP IGP is biggest factor in convergence delay
• Route Distinguisher (RD) is added to each route to make it globally unique inside of
MP-BGP
• The route, along with the RD, is the VPNv4 route
• VPNv4 routes are exchanged via iBGP between PE routers
• BGP that supports other address families besides just IPv4 is called multi-protocol
BGP
How the RD is Defined
ip vrf cust1
rd 10:10
route-target export 1.1.1.1:1
route-target import 4.4.4.4:1
interface GigabitEthernet1/0
ip vrf forwarding cust1
ip address 172.16.0.1 255.255.255.252
Route Distinguisher
Viewing Routes in MP-BGP by RD
How do we Deliver the Correct Routes and Traffic for
each customer between their sites?
Import/Export Route Targets
• Export Route Targets identifying VPN membership are added as extended
community values with the customer route when the route is converted into a
VPNv4 route (exported out of the VRF into MP-BGP)
• Each virtual routing table has a set of associated import Route Targets that
select routes to be inserted into the virtual routing table (imported into the VRF
from MP-BGP)
• VRF into BGP (export) – inject the export route target value(s)
• BGP into VRF (import) – only get the routes whose import route target(s) match
the import route targets associated with that VRF
Route Target (Cont.)
• Route Targets are additional attributes attached to VPNv4 BGP routes to
indicate VPN membership
• Extended BGP communities are used to encode these attributes
• Extended communities carry the meaning of the attribute together with its value
• Multiple route targets can be attached to a single route
Secret to Remembering Import/Export
• Export policy means that routes will go from VRF into MP-BGP
• Import policy means that routes will come from the MP-BGP into VRF
• You can have multiple import/export route targets in a VRF
• Import or export policies can be filtered when desired
How the RT is Defined
• R1-PE • R4-PE
ip vrf cust1 ip vrf cust1
rd 10:10 rd 10:10
route-target export 1.1.1.1:1 route-target export 4.4.4.4:1
route-target import 4.4.4.4:1 route-target import 1.1.1.1:1
172.16.129.0/24
Happy User at Cust1 Site A, Sends a Ping to Cust1 Site B address
172.16.129.2 What does R1 do with the inbound packet?
172.16.129.0/24
Ping:
172.16.129.2
Top Label is swapped on each LSR in the path. R3 does PHP on top
label. R4 receives vpn label, removes it, then forwards to cust.
172.16.129.0/24
Ping:
172.16.129.2 Add Top Label 202 Remove
Add Bottom label 408 VPN Label
• You can submit an entry for more than one of your “favorite” speakers
• Don’t forget to follow @CiscoLive and @CiscoPress
• View the official rules at http://bit.ly/CLUSwin
Complete Your Online Session Evaluation
• Give us your feedback to be
entered into a Daily Survey
Drawing. A daily winner
will receive a $750 Amazon
gift card.
• Complete your session surveys
though the Cisco Live mobile
app or your computer on
Cisco Live Connect.
Don’t forget: Cisco Live sessions will be available
for viewing on-demand after the event at
CiscoLive.com/Online
Continue Your Education
• Demos in the Cisco campus
• Walk-in Self-Paced Labs
• Table Topics
• Meet the Engineer 1:1 meetings
• Related sessions
R&S Related Cisco Education Offerings
Course Description Cisco Certification
CCIE R&S Advanced Workshops (CIERS-1 & Expert level trainings including: instructor led workshops, self CCIE® Routing & Switching
CIERS-2) plus assessments, practice labs and CCIE Lab Builder to prepare candidates
Self Assessments, Workbooks & Labs for the CCIE R&S practical exam.
• Implementing Cisco IP Routing v2.0 Professional level instructor led trainings to prepare candidates for the CCNP® Routing & Switching
• Implementing Cisco IP Switched CCNP R&S exams (ROUTE, SWITCH and TSHOOT). Also available in
Networks V2.0 self study eLearning formats with Cisco Learning Labs.
• Troubleshooting and Maintaining
Cisco IP Networks v2.0
Interconnecting Cisco Networking Devices: Configure, implement and troubleshoot local and wide-area IPv4 and IPv6 CCNA® Routing & Switching
Part 2 (or combined) networks. Also available in self study eLearning format with Cisco Learning
Lab.
Interconnecting Cisco Networking Devices: Installation, configuration, and basic support of a branch network. Also CCENT® Routing & Switching
Part 1 available in self study eLearning format with Cisco Learning Lab.
Building Cisco Service Provider Next-Generation The two courses introduce networking technologies and solutions, including OSI CCNA Service Provider®
Networks, Part 1&2 (SPNGN1), (SPNGN2) and TCP/IP models, IPv4/v6, switching, routing, transport types, security, network
management, and Cisco OS (IOS and IOS XR).
Implementing Cisco Service Provider Mobility UMTS The three courses (SPUMTS, SPCDMA, SPLTE) cover knowledge and skills Cisco Service Provider Mobility
Networks (SPUMTS); required to understand products, technologies, and architectures that are found in CDMA to LTE Specialist;
Implementing Cisco Service Provider Mobility CDMA Universal Mobile Telecommunications Systems (UMTS) and Code Division Multiple Cisco Service Provider Mobility UMTS
Networks (SPCDMA); Access (CDMA) packet core networks, plus their migration to Long-Term Evolution to LTE Specialist
Implementing Cisco Service Provider Mobility LTE (LTE) Evolved Packet Systems (EPS), including Evolved Packet Core (EPC) and
Networks (SPLTE) Radio Access Networks (RANs).
Implementing and Maintaining Cisco Technologies Service Provider/Enterprise engineers to implement, verification-test, and optimize Cisco IOS XR Specialist
Using IOS XR (IMTXR) core/edge technologies in a Cisco IOS XR environment.