Fundamentals Multiprotocol Label Switching MPLS III



Similar documents
Introduction to MPLS-based VPNs

Introducing Basic MPLS Concepts

Virtual Private LAN Service on Cisco Catalyst 6500/6800 Supervisor Engine 2T

Implementing Cisco Service Provider Next-Generation Edge Network Services **Part of the CCNP Service Provider track**

MPLS VPN Services. PW, VPLS and BGP MPLS/IP VPNs

For internal circulation of BSNLonly

MP PLS VPN MPLS VPN. Prepared by Eng. Hussein M. Harb

MPLS Implementation MPLS VPN

Cisco Implementing Cisco Service Provider Next-Generation Egde Network Services. Version: 4.1

VPLS Technology White Paper HUAWEI TECHNOLOGIES CO., LTD. Issue 01. Date

DD2491 p MPLS/BGP VPNs. Olof Hagsand KTH CSC

Kingston University London

Expert Reference Series of White Papers. An Overview of MPLS VPNs: Overlay; Layer 3; and PseudoWire

PRASAD ATHUKURI Sreekavitha engineering info technology,kammam

L2 VPNs. Pseudowires. Virtual Private LAN Services. Metro/Carrier Ethernet.

MPLS-based Virtual Private Network (MPLS VPN) The VPN usually belongs to one company and has several sites interconnected across the common service

IP/MPLS-Based VPNs Layer-3 vs. Layer-2

Implementing Cisco MPLS

RFC 2547bis: BGP/MPLS VPN Fundamentals

INTRODUCTION TO L2VPNS

How To Make A Network Secure

IPv6 over MPLS VPN. Contents. Prerequisites. Document ID: Requirements

IMPLEMENTING CISCO MPLS V3.0 (MPLS)

MPLS-based Layer 3 VPNs

How Routers Forward Packets

MPLS Layer 2 VPNs Functional and Performance Testing Sample Test Plans

MPLS L2VPN (VLL) Technology White Paper

IMPLEMENTING CISCO MPLS V2.3 (MPLS)

Example: Advertised Distance (AD) Example: Feasible Distance (FD) Example: Successor and Feasible Successor Example: Successor and Feasible Successor

AMPLS - Advanced Implementing and Troubleshooting MPLS VPN Networks v4.0

Testing Edge Services: VPLS over MPLS

Department of Communications and Networking. S /3133 Networking Technology, Laboratory course A/B

MPLS Concepts. Overview. Objectives

MPLS VPN Implementation

MPLS VPN over mgre. Finding Feature Information. Prerequisites for MPLS VPN over mgre

MikroTik RouterOS Introduction to MPLS. Prague MUM Czech Republic 2009

MPLS Applications. Karel Pouzar CCIE#20198, CCSI#31414

DD2491 p BGP-MPLS VPNs. Olof Hagsand KTH/CSC

Tackling the Challenges of MPLS VPN Testing. Todd Law Product Manager Advanced Networks Division

Introduction Inter-AS L3VPN

- Multiprotocol Label Switching -

IPv6 over IPv4/MPLS Networks: The 6PE approach

Cisco Exam CCIE Service Provider Written Exam Version: 7.0 [ Total Questions: 107 ]

MPLS VPN. Agenda. MP-BGP VPN Overview MPLS VPN Architecture MPLS VPN Basic VPNs MPLS VPN Complex VPNs MPLS VPN Configuration (Cisco) L86 - MPLS VPN

Network Virtualization with the Cisco Catalyst 6500/6800 Supervisor Engine 2T

Computer Network Architectures and Multimedia. Guy Leduc. Chapter 2 MPLS networks. Chapter 2: MPLS

Using OSPF in an MPLS VPN Environment

MPLS VPN Security BRKSEC-2145

VPN Technologies A Comparison

Table of Contents. Cisco Configuring a Basic MPLS VPN

Multiprotocol Label Switching Load Balancing

VPN taxonomy. János Mohácsi NIIF/HUNGARNET tf-ngn meeting April 2005

SEC , Cisco Systems, Inc. All rights reserved.

Network Virtualization and Data Center Networks DC Virtualization Basics Part 3. Qin Yin Fall Semester 2013

White Paper. Cisco MPLS based VPNs: Equivalent to the security of Frame Relay and ATM. March 30, 2001

How To Understand The Benefits Of An Mpls Network

MPLS L3 VPN Supporting VoIP, Multicast, and Inter-Provider Solutions

Notice the router names, as these are often used in MPLS terminology. The Customer Edge router a router that directly connects to a customer network.

MPLS. Cisco MPLS. Cisco Router Challenge 227. MPLS Introduction. The most up-to-date version of this test is at:

Cisco Configuring Basic MPLS Using OSPF

Virtual Private Networks. Juha Heinänen Song Networks

Implementing MPLS VPNs over IP Tunnels

Configuring a Basic MPLS VPN

Frame Mode MPLS Implementation

Implementing MPLS VPNs over IP Tunnels on Cisco IOS XR Software

Lab 4.2 Challenge Lab: Implementing MPLS VPNs

Enterprise Network Simulation Using MPLS- BGP

MPLS Security Considerations

Data Networking and Architecture. Delegates should have some basic knowledge of Internet Protocol and Data Networking principles.

OVERLAYING VIRTUALIZED LAYER 2 NETWORKS OVER LAYER 3 NETWORKS

Exam Name: BGP + MPLS Exam Exam Type Cisco Case Studies: 3 Exam Code: Total Questions: 401

Implementing MPLS VPN in Provider's IP Backbone Luyuan Fang AT&T

Cisco Exam Implementing Cisco Service Provider Next-Generation Egde Network Services Version: 7.0 [ Total Questions: 126 ]

Building VPNs. Nam-Kee Tan. With IPSec and MPLS. McGraw-Hill CCIE #4307 S&

ICTTEN6172A Design and configure an IP- MPLS network with virtual private network tunnelling

Why Is MPLS VPN Security Important?

Layer 3 Multiprotocol Label Switching Virtual Private Network

Investigation of different VPN Solutions And Comparison of MPLS, IPSec and SSL based VPN Solutions (Study Thesis)

WAN Topologies MPLS. 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr Cisco Systems, Inc. All rights reserved.

MPLS Concepts. MPLS Concepts

HP Networking BGP and MPLS technology training

Virtual Leased Lines - Martini

ISTANBUL. 1.1 MPLS overview. Alcatel Certified Business Network Specialist Part 2

MPLS VPN Security in Service Provider Networks. Peter Tomsu Michael Behringer Monique Morrow

ETHERNET VPN (EVPN) NEXT-GENERATION VPN FOR ETHERNET SERVICES

MPLS VPN Route Target Rewrite

Virtual Private LAN Service

What Is a Virtual Private Network?

AT&T Managed IP Network Service (MIPNS) MPLS Private Network Transport Technical Configuration Guide Version 1.0

Designing and Developing Scalable IP Networks

MPLS in Private Networks Is It a Good Idea?

MPLS Virtual Private Networks

SBSCET, Firozpur (Punjab), India

APRICOT 2012 MPLS WORKSHOP L2VPN

IMPLEMENTING CISCO IP ROUTING V2.0 (ROUTE)

Expert Reference Series of White Papers. Cisco Service Provider Next Generation Networks

Demonstrating the high performance and feature richness of the compact MX Series

Routing Issues in deploying MPLS VPNs. Mukhtiar Shaikh Moiz Moizuddin

Transcription:

Fundamentals Multiprotocol Label Switching MPLS III Design of Telecommunication Infrastructures 2008-2009 Rafael Sebastian Departament de tecnologies de la Informació i les Comunicaciones Universitat Pompeu Fabra

Table of Contents MPLS VPN Basics AoTM VPLS Test Questions 2008/2009 MPLS III Raf ael Sebastian 2

Goals of the section The operation of MPLS VPN What RDs and RTs are The role of Multiprotocol BGP in MPLS VPN networks The packet forwarding through the MPLS VPN network The operation of PE-CE routing protocols and their specifics for MPLS VPNs 2008/2009 MPLS III Raf ael Sebastian 3

MPLS VPN Architecture of MPLS VPN BGP Review Packet Forwarding PE-CE Protocols Topologies in MPLS VPNs Review Questions 2008/2009 MPLS III Raf ael Sebastian 4

VPN Facts Review MPLS VPN Architecture VPN emulates a virtual private network over a common infrastructure They provide Layer 2 or 3 communications All customer inside the VPN must have connectivity Connectivity to other VPN might be required Connectivity to the Internet is desired 2008/2009 MPLS III Raf ael Sebastian 5

MPLS VPN Architecture Customer 1 C VPN MPLS VPN Terminology Review Service Provider P VPN Customer 1 C C Site A CE PE1 P PE2 MPLS-VPN CE Site B C 2008/2009 MPLS IiI Raf ael Sebastian 6

MPLS VPN Review MPLS VPN Architecture If P would forward looking at IP address Addresses in customers cannot be private (possible overlap) P and PE must have complete routing tables large routing table for many customers If that s the case: Use of ibgp mandatory in all P-routers If P have a separate routing table/customer? One routing process/vpn at each P (not scalable) P cannot distinguish between VPN SOLUTION P uses Labels P completely unaware of VPNs 2008/2009 MPLS III Raf ael Sebastian 7

MPLS VPN Architecture VPN A Site 1 CE VRFs PE Router MPLS VPN model Review Data Labels PE Router MPLS Backbone VRF VPN A Site 2 CE VPN B Site 1 VPN B Site 2 CE CE 2008/2009 MPLS III Raf ael Sebastian 8

Virtual Routing Forwarding MPLS VPN Architecture A virtual routing/forwarding (VRF) is a VPN routing and forwarding instance A PE router has a VRF instance for each attached VPN PE Router VRF Routing Table for VPN A Per customer Routing table Global IP Routing Table VRF interface are unambiguously identified VRF Routing Table for VPN B 2008/2009 MPLS III Raf ael Sebastian 9

Route Distinguisher - RD MPLS VPN Architecture VPN prefixes carried into MPLS by MP-BGP Prefixes across ISP must be unique (no overlap) In case same prefixes are in different customers Use of RD Unique ID (64-bit field) Now prefixes = IPv4 + RD = vpnv4 MP-BGP carries vpnv4 prefixes between PEs RD (e.g. 1:1:10.100.1.0/24) Option 1: ASN:nn (ASN = Autonomous system) Option 2 IP-address:nn 2008/2009 MPLS III Raf ael Sebastian 10

Route Targets - RT MPLS VPN Architecture What if I want to communicate two different VPNs? RD will not match!! not sharing routes RT routes that should be imported from MP-BGP into the VRF Exporting an RT Export vpnv4 routes with the RT on the PE from VRF Import an RT Received vpn4 route from MP-BGP imported by VRF 2008/2009 MPLS III Raf ael Sebastian 11

Exporting and Importing RTs MPLS VPN Architecture VPN A Site 1 CE Import 1:1 Export 1:1 Export 1:200 VRF Routing Table for VPN A VPNV4 Routes RT : 1:1 1:200 VPNV4 Routes RT : 1:1 PE PE VPN B Site 1 PE PE CE VRF Routing Table for VPN B VPNV4 Routes RT : 1:2 VPNV4 Routes RT : 1: 100 PE PE PE VPNV4 Routes RT : 1:2 PE 2008/2009 MPLS III Raf ael Sebastian 12

Extranet Example with RTs MPLS VPN Architecture CE1 Cust-1 Site A Import 1:1 Export 1:1 Import 100:1 Export 100:1 CE2 Cust 2 Site A PE2 Import 1:2 Export 1:2 Import 100:1 Export 100:1 Import 1:1 Export 1:1 CE3 Cust 1 Site B PE1 PE4 PE3 Import 1:2 Export 1:2 CE4 Cust-2 Site B 2008/2009 MPLS III Raf ael Sebastian 13

VPNv4 Route Propagation MPLS VPN Architecture C VPN 1 IGP or ebgp Exchanging IPv4 Routes ibgp Exchanging VPNv4 Routes and Labels IGP or ebgp Exchanging IPv4 Routes VPN 1 C C CE PE PE MPLS VPN Network CE C Site A Site B Prefixes are transported inside MPLS Network BGP 2008/2009 MPLS III Raf ael Sebastian 14

MPLS VPN Architecture VPN 1 C C VPNv4 Route Propagation In detail Site A CE IPv4 route is redistributed into MP-BGP. RD is added to IPv4 route to make it a VPNv4 route. RTs are added. IGP or ebgp advertises IPv4 route. PE IPv4 route is inserted into VRF routing table ibgp advertises VPNv4 route with MPLS label and RTs PE MPLS VPN Network RTs indicate to which VRF the route is imported. RD is removed from VPNv4 route. IGP or ebgp advertises IPv4 route. IPv4 route is inserted into VRF routing table CE VPN 1 Site B C C 2008/2009 MPLS III Raf ael Sebastian 15

Packet forwarding MPLS VPN Architecture How does the egress PE router know which VRF the packet belongs to? Not in IP Header or Label SOLUTION Use another Label associated to VRF All packets in MPLS VPN have two labels IGP Label (top) and VRF Label (bottom) How egress PE signal ingress PE router the label to use for a VRF prefix? MP-BGP signals VPN labels 2008/2009 MPLS III Raf ael Sebastian 16

Packet forwarding MPLS VPN Architecture In Summary VRF-to-VRF traffic has two labels in the MPLS VPN Top label is the IGP label distributed by LDP or RSVP for TE between all P and PE routers P routers use the IGP label to forward the packet to the correct egress PE router Bottom label is the VPN label that is advertised by MP-iBGP from PE to PE Egress PE router uses the VPN label to forward the IP packet to the correct CE router 2008/2009 MPLS III Raf ael Sebastian 17

BGP Review MPLS VPN BGP BGPv4 is an established inter-domain routing protocol ebgp used to peer with other ISPs ibgp run inside the ISP core Enabled to enforce policies ibgp is the best option to vpnv4 prefixes between PE routers 2008/2009 MPLS III Raf ael Sebastian 18

BGP Multiprotocol MPLS VPN BGP Original definition (RFC 1771) For carrying IPv4 prefixes Extended (RFC 2858) Multiprotocol Ext. Negotiation: Routers capabilities exchanged sydney-ce#show ip bgp neighbors BGP neighbor is 10.10.4.1, remote AS 1, external link BGP version 4, remote router ID 10.200.254.5 BGP state = Established, up for 00:00:37 Last read 00:00:30, hold time is 180, keepalive interval is 60 seconds Neighbor capabilities: Route refresh: advertised and received(new) Address family IPv4 Unicast: advertised and received ipv4 MPLS Label capability: advertised and received 2008/2009 MPLS III Raf ael Sebastian 19

BGP Extended Community RT MPLS VPN BGP The extended community is a optional BGP attribute (required for MPLS VPN) Indicates to BGP speakers (PE routers) if the route should be imported into a VRF london#show ip bgp vpnv4 all BGP table version is 31, local router ID is 10.200.254.2 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP,? - incomplete Network Next Hop Metric LocPrf Weight Path Route Distinguisher: 1:1 (default for vrf cust-one) *> 10.10.2.0/24 0.0.0.0 0 32768? *> 10.10.100.1/32 10.10.2.1 0 0 65001 i *> 10.99.1.1/32 0.0.0.0 0 32768? Route Distinguisher: 2:2 (default for vrf cust-two) *> 10.140.1.1/32 0.0.0.0 0 32768? 2008/2009 MPLS III Raf ael Sebastian 20

BGP carrying the label MPLS VPN BGP BGP advertises the vpnv4 prefixes in the MPLS VPN network PE Routers needs a new label to forward VPN traffic to the correct CE router The label is simply piggybacked along with the vpnv4 prefix and advertised by BGP 2008/2009 MPLS III Raf ael Sebastian 21

BGP label advertisement MPLS VPN BGP sydney#show ip bgp vpnv4 rd 1:1 labels Network Next Hop In label/out label Route Distinguisher: 1:1 (cust-one) 10.10.2.0/24 10.200.254.2 29/36 10.10.4.0/24 0.0.0.0 26/nolabel 10.10.4.2/32 0.0.0.0 37/nolabel 10.10.100.1/32 10.200.254.2 32/35 10.10.100.3/32 10.10.4.2 38/exp-null 10.88.1.1/32 10.200.254.2 34/34 10.99.1.1/32 10.200.254.2 28/33 10.99.1.2/32 0.0.0.0 27/nolabel 10.200.200.1/32 10.200.254.2 30/32 NOTE: Each vpnv4 prefix is assigned a unique MPLS label 2008/2009 MPLS III Raf ael Sebastian 22

Route Reflectors RRs MPLS VPN BGP Review Note An RR is a BGP speaker that reflects routes from other BGP speakers ibgp requires a full-mesh topology RR reflects BGP routes but not forward traffic RR1 Is RR for Odd VRFs Allows RT 1:1 1:3 1:5 Denies RT 1:2 1:4 RR1 RR2 RR2 Is RR for Even VRFs Allows RT 1:2 1:4 Denies RT 1:1 1:3 1:5 VRF 1 (RT 1:1) VRF 1 (RT 1:1) VRF 2 (RT 1:1) ibgp VRF 2 (RT 1:1) VRF 3 (RT 1:3) VRF 3 (RT 1:3) VRF 4 (RT 1:4) VRF 5 (RT 1:5) PE1 MPLS VPN AS 1 PE2 VRF 4 (RT 1:4) VRF 5 (RT 1:5) 2008/2009 MPLS III Raf ael Sebastian 23

MPLS VPN Packet Forwarding VRF cust-one RD 1:1 CE 10.10.100.1/32 VRF cust-one Packet Forwarding Loopback 0 10.200.254.2/32 VRF Egress PE MP-iBGP Update VPNv4 Route 1:1:10.10.100.1/32 Label 30 LDP Label Binding: Label Implicit-null 10.200.254.2/32 LDP Label Binding Label 33 10.200.254.2/32 P MPLS-VPN P LDP Label Binding Label 16 10.200.254.2/32 Ingress PE VRF IGP LDP MP-iBGP CE VRF cust-one Route Update 10.10.100.1/32 Route Update 10.200.254.2/32 Route Update 10.200.254.2/32 Route Update 10.200.254.1/32 Route Update 10.10.100.1/32 2008/2009 MPLS III Raf ael Sebastian 24

MPLS VPN Packet Forwarding Packet Forwarding IPv4 CE 10.10.100.1/32 VRF cust-one VRF Egress PE 30 IPv4 P 33 30 IPv4 MPLS-VPN P 16 30 IPv4 Ingress PE VRF IPv4 IGP LDP MP-iBGP CE VRF cust-one 2008/2009 MPLS III Raf ael Sebastian 25

PE-CE Routing Protocols MPLS VPN PE-CE Protocols Routing is necessary between the PE and CE Static routing OSPF EIGRP IS-IS ebgp 2008/2009 MPLS III Raf ael Sebastian 26

Static Routing PE-CE MPLS VPN PE-CE Protocols It is the simplest but it is tedious Redistribution of static routes (as vpnv4) into BGP All PE learn them VPN 1 Static IPv4 Routes ibgp Exchanging VPNv4 Routes and Labels C CE PE PE C MPLS VPN Network 2008/2009 MPLS III Raf ael Sebastian 27

Static Routing PE-CE MPLS VPN PE-CE Protocols Used in environments where a customer site has a single connection to P-network and uses a single IP prefix Recommended in environments where the Service Provider needs tight control (some Central Services) Use default routes on CE routers in combination with static routes on PE routers Note: static routes increase the management burden on Service Provider 2008/2009 MPLS III Raf ael Sebastian 28

MPLS VPN PE-CE Protocols Dynamic Routing PE-CE OSPF Customer routes from PE to PE OSPF is redistributed into ibgp and vice versa on the PE routers Use in cases where every CE router needs to know all of the routes VPN 1 OSPF Routes ibgp Exchanging VPNv4 Routes and Labels OSPF External Routes VPN 1 C CE PE PE MPLS VPN Network CE 2008/2009 MPLS III Raf ael Sebastian 29

MPLS VPN PE-CE Protocols Dynamic Routing PE-CE OSPF redistribution SOLUTION BUT from PE to customer OSPF routes are marked as External worse metric!! Routes are advertised as Summary routes (LSA Type 3). i.e inter-area routes This is not the normal way of working 2008/2009 MPLS III Raf ael Sebastian 30

MPLS VPN PE-CE Protocols Dynamic Routing PE-CE OSPF redistribution VPN Red Network X LSA Type 1, 2 or 3 Area 0 MPLS VPN Super Backbone PE Vpnv4 Route PE Network X LSA Type 3 Area 0 VPN Red PE VPN Red Network X LSA Type 3 Area 0 Area 3 Area 4 2008/2009 MPLS III Raf ael Sebastian 31

MPLS VPN PE-CE Protocols Dynamic Routing PE-CE OSPF OSPF Metric Propagation Redistribution from OSPF MP-BGP on the PE OSPF Metric used to set BGP MED (external metric) BGP MED also use to redistribute MP-BGP OSPF BGP Extended Communities for OSPF Router type, Area number, OSPF Router ID Domain ID, 2008/2009 MPLS III Raf ael Sebastian 32

MPLS VPN PE-CE Protocols Dynamic Routing PE-CE Recommendations RIPv2, OSPF and Exterior BGP are supported Use RIP for stub sites and when convergence is not an issue Use OSPF only as an exception Very large customer network Migrating existing large OSPF customer Use ebgp in complex PE-CE routing scenarios Many routes exchanged between PE and CE Multi-homed sites No redistribution involved 2008/2009 MPLS III Raf ael Sebastian 33

MPLS VPN Topologies MPLS VPN Topologies Overlapping Central Site Hub-and-Spoke 2008/2009 MPLS III Raf ael Sebastian 34

MPLS VPN Topologies MPLS VPN Topologies Overlapping scenario Can be chosen for security reason Companies where central sites participate in corporate network and in an extranet Company with several security conscious departments that exchange data between their servers 2008/2009 MPLS III Raf ael Sebastian 35

MPLS VPN Topologies CE1 Site-A RD 1:1 MPLS VPN Topologies Overlapping scenario PE1 Export with RT 100:101 Import with RT 100:101 PE1 AS 1 PE3 Import with RT 100:101 100:102 Site AB CE2 Site-B PE3 CE3 PE3 Export with RT 100:101 100:102 PE2 RD 1:2 PE2 Export with RT 100:102 Import with RT 100:102 RD 1:3 2008/2009 MPLS III Raf ael Sebastian 36

MPLS VPN Topologies MPLS VPN Topologies Central Site Clients need access to central servers Servers can communicate with each other Clients can communicate with all servers, but not with each other Companies where central sites participate in corporate network and in an extranet Company with several security conscious departments that exchange data between their servers 2008/2009 MPLS III Raf ael Sebastian 37

MPLS VPN Topologies CE1 Cust-1 RD 100:101 MPLS VPN Topologies Central Site PE1 Export with RT 100:101 100:303 Import with RT 100:101 100:203 PE1 AS 1 PE3 Import with RT 100:303 Central Site Server CE2 Cust-2 PE3 PE3 Export with RT 100:203 CE3 PE2 RD 100:102 PE2 Export with RT 100:102 100:303 Import with RT 100:102 100:203 RD 100:103 2008/2009 MPLS III Raf ael Sebastian 38

MPLS VPN Topologies MPLS VPN Topologies Hub-and-Spoke scenario One central site has full routing knowledge of all other sites of the same VPN Hub-Site Other sites will send traffic to the Hub-Site for any destination Spoke-Sites The Hub-Site is the central transit point between Spoke-Sites 2008/2009 MPLS III Raf ael Sebastian 39

MPLS VPN Topologies CE1 Cust-1 AS65001 MPLS VPN Topologies Hub-and-Spoke PE1 Export with RT 100:100 Import with RT 100:101 Spoke-to-hub RT: 100:100 Hub-to-spoke RT: 100:101 PE1 AS 1 PE3 Import with RT 100:100 Cust-1 AS65003 CE3-H Hub CE2 Cust-1 AS 65002 PE2 PE3 CE3-S Spoke PE2 Export with RT 100:100 Import with RT 100:101 PE3 Export with RT 100:101 Hub Site 2008/2009 MPLS III Raf ael Sebastian 40

MPLS VPN - Internet MPLS VPN Topologies Access Internet routing done via BGP table of the ISP Global routing tables used for Internet routes By default VRF and global routing separated Internet in a VPN All Internet routes in VRFs Bad decision Huge number of routes If all customers access same Internet VRF Risk 2008/2009 MPLS III Raf ael Sebastian 41

MPLS VPN - Internet MPLS VPN Topologies Access Internet access through Global Routing PE-CE link for VPN traffic using VRF PE-CE link for Internet using global routing To avoid using two links Sub-interfaces GRE tunnel for the Internet link default route 2008/2009 MPLS III Raf ael Sebastian 42

MPLS VPN - Internet MPLS VPN Topologies Access Internet access through Static Routing Forwarding Internet traffic to ISP gateway Gateway known by all P routers through global routing tables PE router use ibgp to peer ISP gateway 2008/2009 MPLS III Raf ael Sebastian 43

MPLS VPN Review Questions Review Questions 1. What is a route distinguisher? 2. How is a packet that is coming from the CE router identified as to which VRF it belongs? 3. What is the purpose of RTs? What is an RR group? 4. When would you use different route distinguishers for routes of the same VPN? 5. Why do MPLS VPN packets have two MPLS labels? 2008/2009 MPLS III Raf ael Sebastian 44

MPLS VPN Review Test Test Questions 1. How many bits long is a route distinguisher? A. 16 B. 32 C. 48 D. 64 2. Which of the following protocols is used to propagate VPN labels between edge routers? A. TDP B. LDP C. Standard BGP with extended communities D. MP-BGP 3. To have a single router appear as many routers, which of the following mechanisms is used? A. RD B. VPNv4 C. VPN D. VRF 2008/2009 MPLS III Raf ael Sebastian 45

MPLS VPN Review Test Test Questions 4. In Multi-Protocol BGP (MP-BGP), neighbors need to be. A. Configured B. Activated C. Sent standard communities D. Configured with VDP 5. Which of the following mechanisms keeps overlapping addresses from doing so in MP-BGP? A. RD B. VPNv4 C. VPN D. VRF 6. Which of the following is not a component of a VRF? A. VRF-specific routes B. CEF C. Global routing table D. None of the above 2008/2009 MPLS III Raf ael Sebastian 46

MPLS VPN Review Test Test Questions 7. MPLS VPNs offer security as traditional overlay VPNs. A. The same B. Worse C. Better D. None of the above 8. P routers knowledge of a customer s VPN routes. A. Do have B. Do not have 9. A(n) imposes the VPN label. A. LSR B. LSP C. Edge-LSR D. None of the above 2008/2009 MPLS III Raf ael Sebastian 47

MPLS VPN Review Test Test Questions 10. What types of routes are in the PE router s global routing table? A. Customer routes B. Service provider routes C. Customer and service provider routes D. None of the above 11. What types of routes are in the PE router s VRF for a particular customer? A. Customer routes B. Service provider routes C. Customer and service provider routes D. None of the above 12. MP-BGP within an AS is called. A. MP-BGP B. MP-IBGP C. MP-EBGP D. MP-MBGP 2008/2009 MPLS III Raf ael Sebastian 48

Table of Contents MPLS VPN Basics AToM VPLS Test Questions 2008/2009 MPLS III Raf ael Sebastian 49

Goals of the section The purpose and architecture of AToM The Layer 2 encapsulation types that can be carried across the MPLS backbone How to implement Ethernet over MPLS 2008/2009 MPLS III Raf ael Sebastian 50

AToM Understanding the need for AToM Transporting Layer 2 Frames AToM Architecture Transported Layer 2 Protocol Review Questions 2008/2009 MPLS III Raf ael Sebastian 51

AToM Need for AToM Motivation MPLS VPN work over shared MPLS services Legacy leased lines, ATM and F/R still in use AToM Limited to Layer 2 point-to-point services: Virtual Private Wire Service (VPWS) Intelligence limited to the PE (edge technology) Core MPLS P routers do not need extra conf. Allows MPLS VPN (L3VPN) with legacy technologies (L2VPN) using the same infrastructure Customers have full control of their network 2008/2009 MPLS III Raf ael Sebastian 52

AToM Transporting L2 Frames Transporting Layer 2 Frames Transporting L2 frames by: Carry traffic across MPLS backbone (AToM) Carry traffic across IP backbone (L2TPv3) AToM based on pseudowires Connection PE-PE emulating a wire Use tunneling pseudowires CE CE PE P P PE Emulated Tunnel 2008/2009 MPLS III Raf ael Sebastian 53

AToM Architecture AToM Architecture Core (PE-PE): Common MPLS infrastructure with LDP or RSVP Border (PE-CE): Attachment circuits (AC) AC can be F/R, ATM, HDLC, PPP, Ethernet LSPs: Defined for each direction Tunnels Inside each tunnel Several pseudowires Use of additional labels to identify pseudowires Several pseudowires multiplexed in a tunnel Labels: 1 for tunnel + 1 for pseudowire 2008/2009 MPLS III Raf ael Sebastian 54

AToM Architecture Data Plane of AToM Tunnel Label Label 121 Label 88 VC Label Label 33 Label 33 Label 33 L2 Frame L2 Frame L2 Frame L2 Frame L2 Frame CE1 CE2 Attachment Circuit (AC) PE1 P P PE2 Emulated Tunnel Attachment Circuit (AC) 2008/2009 MPLS III Raf ael Sebastian 55

AToM Architecture Signaling the pseudowires Label 33 (Targeted LDP) PW ID FEC TLV CE1 Attachment Circuit (AC) VC ID 100 VC ID 100 LDP LDP LDP Label 121 Label 88 Label 3 PE1 P P PE2 LSP LSP CE2 Attachment Circuit (AC) 2008/2009 MPLS III Raf ael Sebastian 56

AToM Trasported L2 Protocols Ethernet over MPLS EoMPLS AToM solution for Ethernet is strictly point-topoint Equivalent to LAN-to-LAN bridging over pointto-point WANs VLAN header can be carried over the MPLS network transparently LAN-like solution over MPLS VPLS Two modes can be signaled: Port mode VLAN mode 2008/2009 MPLS III Raf ael Sebastian 57

AToM Trasported L2 Protocols Scenarios Simple Ethernet EoMPLS CE1 Loopback 0 10.200.254.1/32 Loopback 0 10.200.200.2/32 LDP LDP LDP Loopback 0 10.200.254.4/32 CE2 Port or Trunk FastEth 9/0/0 VCID 2000 Label 23 Label 35 L2 Frame PE1 P P PE2 PE1#show mpls l2transport vc 2000 detail Local interface: Fa9/0/0 up, line protocol up, Ethernet up Destination address: 10.200.254.4, VC ID: 2000, VC status: up Preferred path: not configured Default path: active Tunnel label: 23, next hop 10.200.200.2 Output interface: Et0/0/0, imposed label stack {23 35} Create time: 00:02:26, last status change time: 00:02:26 Signaling protocol: LDP, peer 10.200.254.4:0 up MPLS VC labels: local 25, remote 35 Group ID: local 0, remote 0 MTU: local 1500, remote 1500 FastEth 4/1/0 VCID 2000 Label? Label25 L2 Frame 2008/2009 MPLS III Raf ael Sebastian 58

AToM Trasported L2 Protocols Scenarios VLAN Ethernet EoMPLS CE1 Loopback 0 10.200.254.1/32 Loopback 0 10.200.200.2/32 LDP LDP LDP Loopback 0 10.200.254.4/32 CE2 802.1Q Port PE1 P P PE2 FastEth 9/0/0.1 VCID 2000 FastEth 9/0/0.2 VCID 2001 FastEth 4/1/0.1 VCID 2000 FastEth 4/1/0.2 VCID 2001 PE1#show mpls l2transport vc Local intf Local circuit Dest address VC ID Status ------------- ----------------------- ------------------ ---------- ---------- Fa9/0/0.1 Eth VLAN 100 10.200.254.4 2000 UP Fa9/0/0.2 Eth VLAN 200 10.200.254.4 2001 UP 2008/2009 MPLS III Raf ael Sebastian 59

AToM Trasported L2 Protocols Dot1q Tunneling over AToM QinQ Double tagging (QinQ) VLAN in VLAN Many VLANs customer on 1 VLAN provider CE1 Tunnel Label VC Label Trunk Port Customer VLANs 1-50 PE1 802.1Q Tunnel Port VLAN 800 PE2 Control Word VLAN 800 VLAN 1-50 L2 Eth 2008/2009 MPLS III Raf ael Sebastian 60

Table of Contents MPLS VPN Basics AoTM VPLS Test Questions 2008/2009 MPLS III Raf ael Sebastian 61

Goals of the section Explain what VPLS stands for Explain how VPLS emulates an Ethernet switched network over MPLS 2008/2009 MPLS III Raf ael Sebastian 62

VPLS Need for VPLS VPLS Architecture VPLS Forwarding H-VPLS Review Questions 2008/2009 MPLS III Raf ael Sebastian 63

AToM Need for VPLS Introduction to VPLS VPLS emulates LAN segment across MPLS backbone using PW Each LAN is completely separated Spanning Tree Protocol (STP) Option 1: end at PE Option 2: crosses MPLS Backbone (virtual switch) Topology point-to-multipoint Ethernet features: MAC Address learning, broadcast, multicast 2008/2009 MPLS III Raf ael Sebastian 64

AToM Need for VPLS Why deploy VPLS? Feature Point-to-multipoint multiprotocol services Benefits MPLS is only focused in IP. AToM can carry L2 frames (EoMPLS) butonly delivers point-to-point services MPLS core network emulates a flat LAN segment Extends Ethernet broadcast capability across WAN Point to Multipoint Connectivity Multipoint plug-and-play Provisioning Overcomes distance limitations of Ethernetswitched networks Offer Virtual Private LAN Services Formerly called Transparent LAN Services (TLS) Connects each customer site to many or all other customer sites A single CE-PE link transmits Ethernet packets to multiple remote CE routers Fewer connections required to get full connectivity among customer sites Adding, removing or relocating a CE router requires configuring only the directly attached PE router 2008/2009 MPLS III Raf ael Sebastian 65

AToM Architecture VPLS: Logical Bridge Rome Metro Site CE PE Barcelona Metro Site PE Pseudowire VPLS PE Paris Metro Site 2008/2009 MPLS III Raf ael Sebastian 66

AToM Architecture VPLS Characteristics Forwarding of Ethernet frames Forwarding of unicast frames with an unknown destination MAC address Replication of broadcast and multicast frames to more than one port Loop prevention (split horizon) Dynamic learning of MAC addresses MAC address aging 2008/2009 MPLS III Raf ael Sebastian 67

AToM Architecture VPLS Characteristics Flooding / Forwarding: MAC table instances per customer and per customer VLAN (similar to L3-VRF) for each PE Address Learning / Aging: Self Learn Source MAC to port associations Refresh MAC timers with incoming frames Loop Prevention: Create partial or full-mesh of EoMPLS VCs per VPLS Use split horizon concepts to prevent loops Announce EoMPLS VPLS VC tunnels 2008/2009 MPLS III Raf ael Sebastian 68

AToM Architecture Split horizon Review 2008/2009 MPLS III Raf ael Sebastian 69

AToM Forwarding VPLS Signaling Full-mesh of pseudowires between PE s for each VPLS instance PE neighbors must be defined Targeted sessions established VC & PW If VPLS assigned to VLAN on PE Local VC ID assigned to VPLS instance 2008/2009 MPLS III Raf ael Sebastian 70

AToM Forwarding Example VPLS Signaling 12 vfi cust-one manual vpn id 1 neighbor 10.100.100.1 encapsulation mpls neighbor 10.100.100.3 encapsulation mpls interface Vlan111 xconnect vfi cust-one cust-one CE2 12 vfi cust-one manual vpn id 1 neighbor 10.100.100.1 encapsulation mpls neighbor 10.100.100.2 encapsulation mpls interface Vlan111 xconnect vfi cust-one cust-one CE1 Loop back 0 10.100.100.1/32 VPLS-PE-2 Loop back 0 10.100.100.2/32 CE3 cust-one Barcelona Metro Site VPLS-PE-1 Pseudowire VPLS-PE-3 Loop back 0 10.100.100.3/32 Paris Metro Site 2008/2009 MPLS III Raf ael Sebastian 71

AToM Forwarding Example VPLS Signaling VPLS-PE-1#show mpls l2transport vc 1 detail Local interface: VFI cust-one up Destination address: 10.100.100.2, VC ID: 1, VC status: up Tunnel label: 17, next hop point2point Output interface: PO5/1, imposed label stack {17 18} Signaling protocol: LDP, peer 10.100.100.2:0 up MPLS VC labels: local 16, remote 18 Local interface: VFI cust-one up Destination address: 10.100.100.3, VC ID: 1, VC status: up Tunnel label: 18, next hop point2point Output interface: PO5/1, imposed label stack {18 16} Signaling protocol: LDP, peer 10.100.100.3:0 up MPLS VC labels: local 17, remote 16 VPLS-PE-2 Loop back 0 10.100.100.2/32 VPLS-PE-1 Loop back 0 10.100.100.1/32 VPLS-PE-3 Loop back 0 10.100.100.3/32 2008/2009 MPLS III Raf ael Sebastian 72

AToM Forwarding Tunneling L2 Protocols It is possible to tunnel L2 protocols Protocols transparently tunnel without PE participating (e.g. STP, VTP, CDP) CE1 VPLS-PE-1 CE1#show cdp neighbors Device ID Local Intrfce Holdtme Capability Platform Port ID VPLS-PE-1 Fas 2/2 175 R S I WS-C6506 Fas 4/2 CE2 TUNNELED CONFIGURATION ON CE1 CE3 CE1#show cdp neighbors Device ID Local Intrfce Holdtme Capability Platform Port ID CE3 Fas 2/2 146 S I C2950-2 Fas 0/9 CE2 Fas 2/2 150 R C10720 Fas 2/6 CDP = Cisco Discovery Protocol 2008/2009 MPLS III Raf ael Sebastian 73

AToM H-VPLS Hierarchical VPLS H-VPLS The PE routers are no longer directly attached to the customer equipment Hierarchy introduced by adding another layer in the access layer toward the CE H-VPLS types H-VPLS with dot1q tunneling in the access layer H-VPLS with MPLS in the access layer 2008/2009 MPLS III Raf ael Sebastian 74

AToM H-VPLS Hierarchical VPLS H-VPLS 2008/2009 MPLS III Raf ael Sebastian 75

AToM H-VPLS H-VPLS with dot1q H-VPLS cust-one VLANs 200-250 CE2 cust-one VLAN 111 dot1qtunnel Loop back 0 10.100.100.2/32 cust-one CE1 VPLS-PE-2 CE3 Barcelona Metro Site VPLS-PE-1 Loop back 0 10.100.100.1/32 VPLS-PE-3 Loop back 0 10.100.100.3/32 Paris Metro Site 2008/2009 MPLS III Raf ael Sebastian 76

AToM H-VPLS H-VPLS with MPLS H-VPLS 2008/2009 MPLS III Raf ael Sebastian 77

VPLS Review Questions Review Questions 1. How many labels are used to forward VPLS traffic, and what is the use of each of those labels? 2. Which Layer 2 control protocols can be tunneled across the VPLS network? (name at least 2) 3. Why do the PE routers need to be in a full mesh of pseudowires in VPLS? 4. Name the six functions that VPLS performs in emulating an Ethernet switch. 5. In which two ways can H-VPLS be implemented? 6. Are there any differences in the encapsulation of Ethernet frames across the packet network between VPLS and Any Transport over MPLS (AToM)? 2008/2009 MPLS III Raf ael Sebastian 78

2008/2009 MPLS III Raf ael Sebastian 79

MPLS VPN Review Questions Review Questions 1. What is a route distinguisher? 2. How is a packet that is coming from the CE router identified as to which VRF it belongs? 3. What is the purpose of RTs? What is an RR group? 4. When would you use different route distinguishers for routes of the same VPN? 5. Why do MPLS VPN packets have two MPLS labels? 2008/2009 MPLS III Raf ael Sebastian 80

MPLS VPN Review Test Test Questions 1. How many bits long is a route distinguisher? A. 16 B. 32 C. 48 D. 64 2. Which of the following protocols is used to propagate VPN labels between edge routers? A. TDP B. LDP C. Standard BGP with extended communities D. MP-BGP 3. To have a single router appear as many routers, which of the following mechanisms is used? A. RD B. VPNv4 C. VPN D. VRF 2008/2009 MPLS III Raf ael Sebastian 81

MPLS VPN Review Test Test Questions 4. In Multi-Protocol BGP (MP-BGP), neighbors need to be. A. Configured B. Activated C. Sent standard communities D. Configured with VDP 5. Which of the following mechanisms keeps overlapping addresses from doing so in MP-BGP? A. RD B. VPNv4 C. VPN D. VRF 6. Which of the following is not a component of a VRF? A. VRF-specific routes B. CEF C. Global routing table D. None of the above 2008/2009 MPLS III Raf ael Sebastian 82

MPLS VPN Review Test Test Questions 7. MPLS VPNs offer security as traditional overlay VPNs. A. The same B. Worse C. Better D. None of the above 8. P routers knowledge of a customer s VPN routes. A. Do have B. Do not have 9. A(n) imposes the VPN label. A. LSR B. LSP C. Edge-LSR D. None of the above 2008/2009 MPLS III Raf ael Sebastian 83

MPLS VPN Review Test Test Questions 10. What types of routes are in the PE router s global routing table? A. Customer routes B. Service provider routes C. Customer and service provider routes D. None of the above 11. What types of routes are in the PE router s VRF for a particular customer? A. Customer routes B. Service provider routes C. Customer and service provider routes D. None of the above 12. MP-BGP within an AS is called. A. MP-BGP B. MP-IBGP C. MP-EBGP D. MP-MBGP 2008/2009 MPLS III Raf ael Sebastian 84

VPLS Review Questions Review Questions 1. How many labels are used to forward VPLS traffic, and what is the use of each of those labels? 2. Which Layer 2 control protocols can be tunneled across the VPLS network? (name at least 2) 3. Why do the PE routers need to be in a full mesh of pseudowires in VPLS? 4. Name the six functions that VPLS performs in emulating an Ethernet switch. 5. In which two ways can H-VPLS be implemented? 6. Are there any differences in the encapsulation of Ethernet frames across the packet network between VPLS and Any Transport over MPLS (AToM)? 2008/2009 MPLS III Raf ael Sebastian 85