Understanding MPLS

BRKMPL - 1101

Khurram Waheed Systems Engineer

#clmel Session Goals

• Understand the problems MPLS is addressing • Understand major MPLS technology components • Understand typical MPLS applications • Understand benefits of deploying MPLS

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Agenda

• Introduction • MPLS Basics • MPLS Layer-3 VPNs • MPLS Layer-2 VPNs • MPLS Traffic Engineering • Summary

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Introduction Why Multi-Protocol Label Switching?

• SP/Carrier perspective – Reduce costs (CAPEX/OPEX); consolidate networks and maximise utilisation of resources. – Consolidated network for multiple Layer-2/3 services over same infrastructure – Support increasingly stringent SLAs (Voice + Video etc.) • Enterprise/end-user perspective – Campus/LAN – Need for network segmentation (users, applications, etc.)

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public What is MPLS? Brief Summary • It’s all about labels … • Use the best of both worlds – Layer-2: efficient forwarding and traffic engineering – Layer-3: flexible and scalable • MPLS forwarding plane – Use of labels for forwarding Layer-2/3 data traffic – Labeled packets are switched; instead of routed • Leverage layer-2 forwarding efficiency • MPLS control/signalling plane – Use of existing IP control protocols extensions + new protocols to exchange label information • Leverage layer-3 control protocol flexibility and scalability

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Basics Topics Basics of MPLS Signalling and Forwarding • MPLS Reference Architecture Service (Clients) • MPLS Labels Layer-3 VPNs Layer-2 VPNs • MPLS Signalling and Forwarding

Operations Transport

IP/MPLS (LDP/RSVP-TE/BGP)

MPLS Forwarding

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Reference Architecture Different Types of Nodes in an MPLS Network • P (Provider) router – Label switching router (LSR) MPLS Domain – Switches MPLS-labeled packets P P • PE (Provider Edge) router CE PE PE CE – Edge router (LER) – Imposes and removes MPLS labels CE CE • CE () router PE P P – Connects customer network to PE MPLS network Label switched traffic

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Labels Label Definition and Encapsulation • 4 Bytes (32Bits) in size MPLS Label 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 • Labels used for making TC S forwarding decision Label # – 20bits TTL-8bits TC = Traffic Class: 3 Bits; S = Bottom of Stack; TTL = Time to Live • Multiple labels can be used for MPLS packet encapsulation MPLS Label Encapsulation – Creation of a label stack LAN MAC Label Header MAC Header Label Layer 3 Packet • Outer label always used for switching MPLS packets in MPLS Label Stack network LAN MAC Label Header MAC Header Label Label S Layer 3 Packet

• Remaining inner labels used for Bottom of Stack Bit Set services (VPNs etc.)

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Basic MPLS Forwarding Operations How Labels are being used to establish End-to-End Connectivity • Label imposition (PUSH) Label Imposition Label Disposition Label Swap Label Swap – By ingress PE router; classify and label packets (Push) (PoP) – Based on Forwarding Equivalence Class (FEC)

L1 L1 L2 L2 L3 L2 • Label swapping or switching L2/L3 (SWAP) Packet P P – By P router; forward packets using labels; CE PE PE CE indicates service class & destination • Label disposition (POP) CE CE – By egress PE router; remove label and forward original packet to destination CE PE P P PE

Traffic Flow

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Path (LSP) Setup and Traffic Forwarding Overview • IGP (OSPF/ISIS) – Learns MPLS Loopback Interfaces (loopback0 IP MPLS etc.) Destination address based Label based

Forwarding Forwarding table learned Forwarding table learned • LSP signalling from control plane from control plane – Either LDP or RSVP TTL support TTL support – Leverages IP routing (RIB from IGP) OSPF, IS-IS, BGP Control Plane OSPF, IS-IS, BGP LDP, RSVP • Exchange of labels Packet IP Header One or more labels – Label bindings Encapsulation – Downstream MPLS node advertises what label to use QoS 8 bit TOS field in IP header 3 bit TC field in label • MPLS forwarding OAM IP ping, traceroute MPLS OAM – MPLS Forwarding table (FIB)

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Path (LSP) Setup Signalling Options

• LDP signalling LDP RSVP – Leverages existing routing (RIB) LSP or TE Tunnel Forwarding path LSP • RSVP signalling Primary and, optionally, backup Based on TE topology – Aka MPLS RSVP/TE database Forwarding Based on IP routing database Shortest-path and/or other – Enables enhanced capabilities, such as Fast Calculation Shortest-Path based Re-Route (FRR) constraints (CSPF calculation)

Packet Single label One or two labels Encapsulation

Initiated by head-end node towards tail-end node By each node independently Uses routing protocol Signalling Uses existing routing extensions/information protocols/information Supports bandwidth reservation Supports link/node protection

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public IP Packet Forwarding Example Basic IP Packet Forwarding

• IP routing information exchanged Forwarding Table Address Forwarding Table Forwarding Table I/F between nodes Prefix Address Address I/F I/F – Via IGP (e.g., OSFP, IS-IS) Prefix Prefix 128.89 0 128.89 128.89 1 0 171.69 1

171.69 1 171.69 1 … • Packets being forwarded based … … on destination IP address R3 128.89 – Lookup in routing table (RIB) 0 R1 R2 0 128.89.25.4 Data 1 128.89.25.4 Data 1 128.89.25.4 Data 128.89.25.4 Data

171.69 R4

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Path (LSP) Setup Step 1: IP Routing (IGP) Convergence • Exchange of IP routes – OSPF, IS-IS, etc. Forwarding Table Forwarding Table Forwarding Table In Address Out Out In Address Out Out In Address Out Out Label Prefix I’face Label Label Prefix I’face Label Label Prefix I’face Label 128.89 1 128.89 0 128.89 0 • Establish IP reachability 171.69 1 171.69 1 … … … … … …

R3 0 128.89 0 R1 1 R2

You Can Reach 128.89 Thru Me You Can Reach 128.89 and 1 171.69 Thru Me

Routing Updates You Can Reach 171.69 Thru Me R4 (OSPF, EIGRP, …) 171.69

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Path (LSP) Setup Step 2A: Assign Local Labels • Each MPLS node assigns a local

label to each route in local routing Forwarding Table Forwarding Table Forwarding Table table In Address Out Out In Address Out Out In Address Out Out Label Prefix I’face Label Label Prefix I’face Label Label Prefix I’face Label – In label - 128.89 1 20 128.89 0 30 128.89 0 - - 171.69 1 21 171.69 1 … … … … … … … … … … … …

R3 0 128.89 0 1 0 R1 R2

1

R4 171.69

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Path (LSP) Setup Step 2B: Assign Remote Labels • Local label mapping are sent to In Address Out Out In Address Out Out In Address Out Out connected nodes Label Prefix I’face Label Label Prefix I’face Label Label Prefix I’face Label - 128.89 1 20 20 128.89 0 30 30 128.89 0 - • Receiving nodes update - 171.69 1 21 21 171.69 1 36 forwarding table … … … … … … … … … … … …

– Out label R3 128.89 R2 0 R1 1 0

Use Label 30 for 128.89 Use Label 20 for 128.89 and 1 Use Label 21 for 171.69

Label Distribution Use Label 36 for 171.69 R4 Protocol (LDP) 171.69 (Downstream Allocation)

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Traffic Forwarding Hop-by-Hop Traffic Forwarding Using Labels • Ingress PE node adds label to In Address Out Out In Address Out Out In Address Out Out packet (push) Label Prefix I’face Label Label Prefix I’face Label Label Prefix I’face Label – Via forwarding table - 128.89 1 20 20 128.89 0 30 30 128.89 0 - - 171.69 1 21 21 171.69 1 36 • Downstream node use label for … … … … … … … … … … … …

forwarding decision (swap) R3 0 128.89 0 – Outgoing interface R1 R2 128.89.25.4 Data 1 – Out label 30 128.89.25.4 Data 1 • Egress PE removes label and 128.89.25.4 Data 20 128.89.25.4 Data forwards original packet (pop) Forwarding based on Label R4 171.69

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Penultimate Hop Popping Forwarding Efficiency Gains with PHP • Downstream node signals POP label (Implicit NULL) In Address Out Out In Address Out Out In Address Out Out Label Prefix I’face Label Label Prefix I’face Label Label Prefix I’face Label • Last LSR (P) removes outer label - 128.89 1 20 20 128.89 0 POP POP 128.89 0 - before sending to LER (PE) R3 0 128.89 • Improves LER (PE) performance by 0 R1 R2 not performing multiple label lookups 128.89.25.4 Data 1 to forward to final packet POP 128.89.25.4 Data 128.89.25.4 Data 20 128.89.25.4 Data • Explicit-NULL can be used for QoS requirements Outer label removed (PHP) Implicit-NULL signaled (POP)

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Summary…So Far... Key Takeaways • MPLS networks consist of PE routers at in/egress and P routers in core • Traffic is encapsulated with label(s) at ingress (PE router) • Labels are removed at egress (PE router) • MPLS forwarding operations include label imposition (PUSH), swapping (SWAP), and disposition (POP) • Penultimate Hop Popping (PHP) is used to improve LER performance. • LDP and/or RSVP can be used for signalling label mapping information to set up an end-to-end Label Switched Path (LSP)

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Virtual Private Networks MPLS Virtual Private Networks Topics • Definition of MPLS VPN service Service (Clients) • Basic MPLS VPN deployment scenario Layer-3 VPNs Layer-2 VPNs

• Technology options Transport

 IP/MPLS (LDP/RSVP-TE/BGP)

 MPLS Forwarding

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public What is a Virtual Private Network? Definition • Set of sites which communicate with each other – Typically over a shared public or private network infrastructure • Defined by a set of administrative policies – Policies established by VPN customers themselves (DIY) – Policies implemented by VPN service provider (managed/unmanaged) • Different inter-site connectivity schemes possible – Full mesh, partial mesh, hub-and-spoke, etc. • VPN sites may be either within the same or in different organisations – VPN can be either intranet (same org) or extranet (multiple orgs)

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS VPN Example Basic Building Blocks • VPN policies PE-CE VPN Signalling PE-CE – Configured on PE routers (manual operation) Link Link

• VPN signalling PE P VPN P PE – Between PEs CE CE – Exchange of VPN policies VPN VPN Policy Policy

VPN VPN • VPN traffic forwarding Policy Policy – Additional VPN-related MPLS label CE CE PE PE encapsulation P P • PE-CE link – Connects customer network to MPLS network;

either layer-2 or layer-3 Label Switched Traffic

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS VPN Models Technology Options

• MPLS Layer-3 VPNs MPLS VPN Models – Peering relationship between CE and PE

• MPLS Layer-2 VPNs MPLS Layer-2 VPNs MPLS Layer-3 VPNs – Interconnect of layer-2 Attachment Circuits (ACs) • CE connected to PE via IP-based Point-to-Point Multi-Point connection (over any layer-2 type) Layer-2 VPNs Layer-2 VPNs – Static routing – PE-CE routing protocol; eBGP, • CE connected to • CE connected to OSPF, IS-IS PE via p2p L2 PE via connection (FR, connection • CE routing has peering relationship ATM) (VLAN) with PE router; PE routers are part of customer routing • CEs peer with • CEs peer with each other (IP each other via • PE routers maintain customer- routing) via p2p fully/partial mesh specific routing tables and layer-2 VPN Layer-2 VPN exchange customer=specific connection connection routing information • CE-CE routing; no • CE-CE routing; SP involvement no SP involvement

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public

26 MPLS Layer-3 Virtual Private Networks MPLS Layer-3 Virtual Private Networks Topics • Technology components Service (Clients) • VPN control plane mechanisms Layer-3 VPNs Layer-2 VPNs • VPN forwarding plane • Deployment use cases Transport – Business VPN services – Network segmentation  IP/MPLS (LDP/RSVP-TE/BGP) – Data Centre access  MPLS Forwarding

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Layer-3 VPN Overview Technology Components • VPN policies – Separation of customer routing via virtual VPN routing table (VRF) – In PE router, customer interfaces are connected to VRFs • VPN signalling – Between PE routers: customer routes exchanged via BGP (MP-iBGP) • VPN traffic forwarding – Separation of customer VPN traffic via additional VPN label – VPN label used by receiving PE to identify VPN routing table • PE-CE link – Can be any type of layer-2 connection (e.g., FR, Ethernet) – CE configured to route IP traffic to/from adjacent PE router – Variety of routing options; static routes, eBGP, OSPF, IS-IS

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Virtual Routing and Forwarding Instance - VRF Virtual Routing Table and Forwarding Separate to Customer Traffic • Logical routing context within the same PE device • Unique to a VPN • Allows for customer overlapping IP addresses • Deployment use cases – Business VPN services – Network segmentation – Data Centre access

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public VPN Route Distribution Exchange of VPN Policies among PE Routers • Full mesh of BGP sessions BGP Route Reflector among all PE routers PE-CE PE-CE Link Link – BGP Route Reflector

PE P P PE • Multi-Protocol BGP extensions CE CE

VRF VRF (MP-iBGP) to carry VPN policies Blue VPN BlueVPN Policy Policy`

Green VPN Green VPN Policy Policy • PE-CE routing options CE VRF VRF CE – Static routes – eBGP PE P P PE – OSPF – IS-IS

Label Switched Traffic

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public VPN Control Plane Processing VRF Parameters Make customer routes unique: • Route Distinguisher (RD): 8-byte field, VRF parameters; unique value to make VPN IP routes unique • VPNv4 address: RD + VPN IP prefix Selective distribute VPN routes: • Route Target (RT): 8-byte field, VRF parameter, unique value to define the import/export rules for VPNv4 routes • MP-iBGP: advertises VPNv4 prefixes + labels

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public VPN Control Plane Processing Exchange of VPN Policies among PE Routers 1. CE1 redistribute IPv4 route to PE1 BGP advertisement: via eBGP VPN-IPv4 Addr = RD:16.1/16 BGP Next-Hop = PE1 2. PE1 allocates VPN label for prefix Route Target = 100:1 Label=42 learnt from CE1 to create unique eBGP: eBGP: VPNv4 route 16.1/16 16.1/16 IP Subnet IP Subnet 3. PE1 redistributes VPNv4 route into PE1 P P PE2 MP-iBGP, it sets itself as a next hop CE1 Blue VPN CE2 and relays VPN site routes to PE2

4. PE2 receives VPNv4 route and, via ipVRFvrfparameters:blue-vpn NameRD 1:100 = blue-vpn processing in local VRF (blue), it RDroute = 1:100-target export 1:100 Importroute-target Route import-Target 1:100 = 100:1 redistributes original IPv4 route to Export Route-Target = 100:1 CE2

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public VPN Forwarding Plane Processing Forwarding of Layer-3 MPLS VPN Packets

1. CE2 forwards IPv4 packet to PE2 2. PE2 imposes pre-allocated VPN label to IPv4 packet received from CE2 IPv4 VPNv4 IPv4 IGP VPNv4 IPv4 IGP VPNv4 IPv4 IPv4 . Learned via MP-IBGP Label Label B Label Label A Label IPv4 IPv4 3. PE2 also imposes outer IGP label ‘A’ Packet Packet (learned via LDP) and forwards labeled PE1 P1 Blue VPN P2 PE2 CE1 CE2 packet to P2 4. P2 router swaps outer IGP label and forward label packet to P1. A>B VRFip vrfparameters:blue-vpn NameRD 1:100 = blue-vpn 5. P1 router strips outer IGP label ‘B’ (PHP) RDroute = 1:100-target export 1:100 and forwards packet to PE1 Importroute-target Route import-Target 1:100 = 1:100 Export Route-Target = 1:100 6. Router PE1 strips VPN label and forwards IPv4 packet to CE1

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Service Provider Deployment Scenario MPLS Layer-3 VPNs for offering Layer-3 Business VPN Services

• Deployment Use Case Managed VPN Service – Delivery of IP VPN services to business Unmanaged VPN Service customers Edge Core Core Edge • Benefits CPE VPN CPE – Leverage same network for multiple services and customers (CAPEX) • Highly scalable – Service enablement only requires edge node Network Segment CPE Edge Core configuration (OPEX) MPLS Node CE PE P – Different IP connectivity can be easily configured; e.g., full/partial mesh Typical Platforms ASR1K ASR9K CRS-3 ISR/G2 7600 GSR ASR901 ASR1K ASR9K ASR903 ME3800X

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Enterprise Deployment Scenario MPLS Layer-3 VPNs for Implementing Network Segmentation

• Deployment Use Case MPLS VPNs for L3 Network Segmentation – Segmentation of enterprise network to provide selective connectivity for specific user groups and organisations Edge Core Core Edge Access VPN Access • Benefits – Network segmentation only requires edge node configuration Network Segment Access Edge Core – Flexible routing; different IP connectivity can be easily configured; e.g., full/partial mesh MPLS Node CE PE P

Typical Platforms ASR1K 7600 CRS-1 ISR/G2 ASR1K GSR ASR9K 7600 6500

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Data Centre Deployment Scenario MPLS Layer-3 VPNs for Segmented L3 Data Centre Access and Interconnect • Deployment Use Case MPLS VPNs terminating on DC aggregation

– Segmented WAN Layer-3 at Data Centre edge MPLS VPNs – Layer-3 segmentation in Data Centre at DC edge

Access Core Core Top Of Rack Distribution Edge • Benefits – Only single Data Centre edge node needed for Data Centre segmented layer-3 access – Enables VLAN/Layer-2 scale (> 4K) Network Segment Distribution Core Edge

MPLS Node CE or PE P or CE PE

Typical Platforms N7K N7K ASR9K 6500 6500 7600

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Layer-2 Virtual Private Networks MPLS Layer-2 Virtual Private Networks Topics • L2VPN Technology Options • P2P VPWS services (PWs) – Overview & Technology Basics Layer-3 VPNs Layer-2 VPNs – VPN control plane  – VPN forwarding plane Transport • MP2MP VPLS services – Overview & Technology Basics  IP/MPLS (LDP/RSVP-TE/BGP) – VPN control plane – VPN forwarding plane  MPLS Forwarding • Deployment use cases – L2 Business VPN services – Data Centre Interconnect

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Layer-2 Virtual Private Networks Technology Options • VPWS services MPLS Layer-2 VPNs – Point-to-point – Referred to as Pseudowires (PWs)* Point-to-Point Multipoint-to-Multipoint • VPLS services Layer-2 VPNs (PWs) Layer-2 VPNs (VPLS) – Multipoint-to-Multipoint • CE connected to PE • CE connected to PE via via p2p L2 connection Ethernet connection (e.g., FR, ATM) (VLAN) • CEs peer with each • CEs peer with each other (IP routing) via other via fully/partial p2p layer-2 VPN mesh Layer-2 VPN connection connection • CE-CE routing; no • CE-CE routing; no MPLS network MPLS network involvement involvement

* Used to be referred to as Any Transport over MPLS or AToM as well.

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Virtual Private Wire Services (VPWS) Overview of Pseudowire (PW) Architecture

• Based on IETF’s Pseudo-Wire (PW) Reference Model • Enables transport of any Layer-2 traffic over MPLS • Includes additional VC label encapsulation and translation of L2 packets – Ethernet, ATM, FR, or PPP • PE-CE link is referred to as Attachment Circuit (AC) • Support for L2 interworking • PWs are bi-directional

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public VPWS Control Plane Processing Signalling of a new Pseudowire

1. New Virtual Circuit (VC) cross-connect connects customer L2 interface (AC) to new PW via VC ID and remote PE ID

2. New targeted LDP session between PE1 3 Label Mapping Messages and PE2 is established, in case one 4 4 2 does not already exist LDP session PE1 P P PE2 CE1 CE2 3. PE binds VC label with customer layer-2 Layer-2 Layer-2 interface and sends label-mapping to 1 1 remote PE

4. Remote PE receives LDP label binding Emulated Layer-2 Service message and matches VC ID with local configured VC cross-connect

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public VPWS Forwarding Plane Processing Forwarding of Layer-2 traffic over Pseudowire

1. CE2 forwards L2 packet to PE2. 2. PE2 pushes VC (inner) label to L2 packet received from CE2 VC Tunnel VC Tunnel VC – Optionally, a control word is added as well (not L2 Label L2 Label B Label L2 Label A Label L2 L2 shown) Layer-2 P1 P2 Layer-2 3. PE2 pushed outer (Tunnel) label and CE1Packet PE1 PE2Packet CE2 forwards packet to P2 4. P2 and P1 forward packet using outer (tunnel) label (swap) 5. Router PE2 pops Tunnel label and, based on VC label, L2 packet is forwarded to customer interface to CE1, after VC label is removed – In case control word is used, new layer-2 header is generated first

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Virtual Private LAN Service Overview of VPLS Architecture • Architecture for Ethernet Multipoint Attachment Attachment Services over MPLS Circuit Circuit (AC) (AC)

• VPLS network acts like a virtual PE P P PE switch that emulates conventional L2 CE1 CE2 Layer- Layer- bridge 2 2

• Fully meshed or Hub-Spoke CE3 CE4 topologies supported Layer- Layer- 2 PE P P PE 2 • PE-CE link is referred to as Attachment Circuit (AC) – Always Ethernet Emulated Virtual Switch Label Switched Traffic Pseudo-Wire

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Virtual Private LAN Service (VPLS) Technology Components • VPN policies – Virtual Switching Instance or VSI – One or more customer interfaces are connected to VSI – One or more PWs for interconnection with related VSI instances on remote PE • VPN signalling – Full mesh of targeted LDP* (VC exchange) and/or BGP sessions (discovery and VC exchange) – Virtual Connection (VC)-label negotiation, withdrawal, error notification • VPN traffic forwarding – 1 VC label used for encapsulation + 1 (IGP) label for forwarding – Inner de-multiplexer (VC) label: identifies VSI – Outer tunnel (IGP) label: to get from ingress to egress PE using MPLS LSP • PE-CE link – Referred to as Attachment Circuit (AC) – Ethernet VCs are either port mode or VLAN ID

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public VPLS Forwarding Plane Processing Forwarding of Layer-2 Traffic over VPLS Network MAC learning: VSI Tunnel VSI Tunnel VSI L2 Label L2 Label B Label L2 Label A Label L2 L2 • For new L2 packets

• VSI forwarding table updated PE P P PE CE1 CE2 • Packets flooded to all PEs over PWs Layer- Layer- 2 2 Layer-2 Packet Forwarding: CE3 CE4 • For L2 packets with known Layer- Layer- destination MAC addresses 2 PE P P PE 2

• Lookup in VSI forwarding table Emulated Virtual Switch

• L2 packet forwarded onto PWs to Label Switched Traffic remote PE/VSI Full Mesh of Pseudo-Wires

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Service Provider Deployment Scenario PWs for offering Layer-2 Business VPN Services (VPWS) • Deployment Use Case Layer-2 VPN Service – Delivery of E-LINE services to business customers MPLS Edge Core Core Edge NID Network NID • Benefits Ethernet Ethernet – Leverage same network for xconnect xconnect multiple services and customers (CAPEX) Network Segment NID * Edge Core • Highly scalable MPLS Node CE U-PE P

– Service enablement only requires Typical Platforms M3400 ME3800X CRS-1 edge node configuration (OPEX) ASR901 ASR903 GSR ASR9K ASR9K

* NID : Network Interface Device

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Data Centre Deployment Scenario PWs for offering Layer-2 Business VPN Services (VPWS) DC Edge • Deployment Use Case Core Core Edge – E-LAN services for Data Centre Data Centre Data Centre interconnect DC Edge Edge Data Centre • Benefits DC Edge – Single WAN uplink to connect to Ethernet Ethernet multiple Core Core Edge Data Centres – Easy implementation of segmented layer-2 traffic between Data Network Segment DC Edge Core Edge Centres MPLS Node CE P PE

Typical Platforms ASR9K CRS-1 ASR9K 7600 GSR 7600 6500 ASR9K

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Summary Layer 2 VPN Technology Components • L2VPNs enable transport of any Layer-2 traffic over MPLS network • L2 packets encapsulated into additional VC label • Both LDP and BGP can be used for L2VPN signalling • PWs suited for implementing transparent point-to-point connectivity between Layer-2 circuits (E-LINE services) • VPLS suited for implementing transparent point-to-multipoint connectivity between Ethernet links/sites (E-LAN services) • Typical applications of L2VPNs are layer-2 business VPN services and Data Centre interconnect

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Traffic Engineering MPLS Traffic Engineering Topics

• What is MPLS TE Service (Clients)

• The problem MPLS TE solves Layer-3 VPNs Layer-2 VPNs • MPLS TE Signalling and Path Computation Transport • MPLS-TE Fast Re-Route (FRR)  IP/MPLS (LDP/RSVP-TE/BGP)

 MPLS Forwarding

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Why MPLS Traffic Engineering? Drivers for MPLS Traffic Management • Need for better utilisation of available network bandwidth – Optimise traffic distribution throughout network – Network capacity management • Protection against link and node failures – Fast rerouting around failures to minimise (service) traffic loss – Optimise aggregate availability of network • Delivery of premium services and enhanced SLAs – Ability to support guaranteed high availability and bandwidth for services • Congestion in network due to changing traffic patterns – Optimise high bandwidth traffic flows; streaming video, database backup, etc.

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public The Problem with Shortest-Path Forwarding Alternate Path Under Uitilisation as a result of Least-Cost Routing • Some links are DS3, some are OC-3 Node Next-Hop Cost B B 10 C C 10 • Router A has 40M of traffic for D C 20 router F, 40M of traffic for router E B 20 F B 30 G G B 30 • Massive (44%) packet loss at Router B Router F OC-3 OC-3 router B→router E! Router A Router E DS Router G • Changing to traffic forwarding to 3 OC-3 A->C->D->E won’t help OC-3 DS3

Router C DS3 Router D

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public How MPLS TE Solves the Problem Optimised Path Computation via Additional Cost Metrics • Router A sees all links Node Next-Hop Cost • Router A computes paths on B B 10 C C 10 properties other than just shortest D C 20 cost E B 20 F Tunnel 0 30 – Creation of 2 tunnels G Tunnel 1 30 • No link oversubscribed Router B Router F OC-3 OC-3 Router A Router E DS Router G 3 OC-3 OC-3 DS3

Router C DS3 Router D

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS Traffic Engineering Technology Building Blocks

• Link information Distribution* – ISIS-TE Head end – OSPF-TE IP/MPLS • Path Calculation (CSPF)* – At head-end node • Path Setup (RSVP-TE) • Unidirectional forwarding traffic down Tunnel – Auto-route – Static Mid-point – PBR Tail end – CBTS / PBTS TE LSP – Forwarding Adjacency – Tunnel select

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Distribution of Link Information Additional Metrics for Path Computation

• Additional link characteristics – Interface address

– Neighbour address IP/MPLS – Physical bandwidth – Maximum reservable bandwidth – Unreserved bandwidth (at eight priorities) – TE metric – Administrative group (attribute flags) • IS-IS or OSPF flood link information

• TE nodes build a topology database TE Topology • Not required if using off-line path database computation

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Path Calculation Calculation of Optimal Network Path, Based on Multiple Metrics

Find shortest • TE nodes can perform constraint-based path to R8 with routing 8Mbps IP/MPLS Better Path; Path Optimised • Constraints and topology database as input R1 15 103 to path computation 105 10 R8

10 8 • Shortest-path-first algorithm ignores links 10 not meeting constraints 10 • Tunnel can be signaled once a path is found • Paths are optimised regulary (configurable) TE • If better path available, traffic switched to Topology new path database

• Not required if using offline path n Link with insufficient bandwidth computation n Link with sufficient bandwidth

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public TE Tunnel Signalling End-to-end Signalling of TE Tunnel in MPLS Network

• Tunnel signaled with TE extensions to RSVP

• Soft state maintained with downstream Head end IP/MPLS PATH messages • Soft state maintained with upstream RESV messages L=16 RESV Tail end • New RSVP objects

– LABEL_REQUEST (PATH) PATH – LABEL (RESV)

– EXPLICIT_ROUTE Input Out Label, – RECORD_ROUTE (PATH/RESV) Label Interface TE LSP – SESSION_ATTRIBUTE (PATH) 17 16, 0 • LFIB populated using RSVP labels allocated by RESV messages BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS TE Fast ReRoute (FRR) Implementing Network Failure Protection using MPLS RSVP/TE • Steady state Router A Router B Router D Router E – Primary tunnel: • A → B → D → E – Backup tunnel: • B → C → D (pre-provisioned) • Failure of link between router B and D • Traffic rerouted over backup Router X Router Y tunnel Router C Primary Tunnel

• Recovery time* ~ 50 Backup Tunnel

*Actual Time Varies—Well Below 50 ms in Lab Tests, Can Also Be Higher

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Summary MPLS-TE Technology Components • MPLS-TE is signaled via RSVP • Co-exists with basic MPLS (LDP) • Uses IGP (OSPF/IS-IS) to build topology database • Provides additional control over traffic path (constrained based forwarding – CSPF) • Provides for Dynamic, Explicit or Loose path computation • Provides Fast Re-Route capabilities ( ~<50ms)

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Summary Session Summary Key Takeaways • It’s all about labels … – Label-based forwarding and protocol for label exchange – Best of both worlds … L2 deterministic forwarding and scale/flexible L3 signalling • Key MPLS applications are end-to-end VPN services – Secure and scalable layer 2 and 3 VPN connectivity • MPLS supports advanced traffic engineering capabilities – QoS, bandwidth control, and failure protection • MPLS is a mature technology with widespread deployments – Defacto for most SPs, large enterprises, and increasingly in Data Centres

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Cisco Live Sessions Recommended • Segment Routing and SDN – BRKRST-3370 – Advances In Routing • IPv6 Deployment – BRKSPG-3300 – Service Provider IPv6 Deployment • Cloud Enablement Architecture – BRKSPG-3864 - Cloud Enablement Architecture and NFV Services Delivery

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Q & A Complete Your Online Session Evaluation Give us your feedback and receive a Cisco Live 2015 T-Shirt! Complete your Overall Event Survey and 5 Session Evaluations.

• Directly from your mobile device on the Cisco Live Mobile App • By visiting the Cisco Live Mobile Site http://showcase.genie-connect.com/clmelbourne2015 • Visit any Cisco Live Internet Station located throughout the venue Learn online with Cisco Live! Visit us online after the conference for full T-Shirts can be collected in the World of Solutions access to session videos and on Friday 20 March 12:00pm - 2:00pm presentations. www.CiscoLiveAPAC.com

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Thank you.

References For your reference Technology References only Acronyms Used in MPLS Reference Architecture

Terminology Description AC Attachment Circuit. An AC Is a Point-to-Point, Layer 2 Circuit Between a CE and a PE. AS Autonomous System (a Domain) CoS Class of Service ECMP Equal Cost Multipath IGP Interior Gateway Protocol LAN Local Area Network LDP Label Distribution Protocol, RFC 3036. LER Label Edge Router. An Edge LSR Interconnects MPLS and non-MPLS Domains. LFIB Labeled Forwarding Information Base LSP Label Switched Path LSR Label Switching Router NLRI Network Layer Reachability Information P Router An Interior LSR in the Service Provider's Autonomous System PE Router An LER in the Service Provider Administrative Domain that Interconnects the Customer Network and the Backbone Network. PSN Tunnel Packet Switching Tunnel

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public For your reference Technology References only Acronyms Used in MPLS Reference Architecture

Terminology Description Pseudo-Wire A Pseudo-Wire Is a Bidirectional “Tunnel" Between Two Features on a Switching Path. PLR Point of Local Repair PWE3 Pseudo-Wire End-to-End Emulation QoS Quality of Service RD Route Distinguisher RIB Routing Information Base RR Route Reflector RT Route Target RSVP-TE Resource Reservation Protocol based Traffic Engineering VPN Virtual Private Network VFI Virtual Forwarding Instance VLAN Virtual Local Area Network VPLS Virtual Private LAN Service VPWS Virtual Private WAN Service VRF Virtual Route Forwarding Instance VSI Virtual Switching Instance BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Further Reading MPLS References at Cisco Press and cisco.com • http://www.cisco.com/go/mpls • http://www.ciscopress.com • MPLS and VPN Architectures — Cisco Press® – Jim Guichard, Ivan Papelnjak • Traffic Engineering with MPLS — Cisco Press® – Eric Osborne, Ajay Simha • Layer 2 VPN Architectures — Cisco Press® – Wei Luo, Carlos Pignataro, Dmitry Bokotey, and Anthony Chan • MPLS QoS — Cisco Press ® – Santiago Alvarez

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Label Distribution Protocol Overview • MPLS nodes need to exchange label information with each other – Ingress PE node (Push operation) • Needs to know what label to use for a given FEC to send packet to neighbour – Core P node (Swap operation) • Needs to know what label to use for swap operation for incoming labeled packets – Egress PE node (Pop operation) • Needs to tell upstream neighbour what label to use for specific FEC type LDP used for exchange of label (mapping) information • Label Distribution Protocol (LDP) – Defined in RFC 3035 and RFC3036; updated by RFC5036 – LDP is a superset of the Cisco-specific Tag Distribution Protocol • Note that, in addition LDP, also other protocols are being used for label information exchange BRKMPL– -Will1101 be© 2015discussed Cisco and/or its affiliates. later All rights reserved. Cisco Public Label Distribution Protocol Some More Details • Assigns, distributes, and installs (in forwarding) labels for prefixes advertised by unicast routing protocols – OSPF, IS-IS, EIGRP, etc. • Also used for Pseudowire/PW (VC) signalling – Used for L2VPN control plane signalling • Uses UDP (port 646) for session discovery and TCP (port 646) for exchange of LDP messages • LDP operations – LDP Peer Discovery – LDP Session Establishment – MPLS Label Allocation, Distribution, and Updating MPLS forwarding • Information repositories used by LDP – LIB: Label Information Database (read/write) BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public – RIB: Routing Information Database/routing table (read-only) Label Distribution Protocol Operations Details • LDP startup – Local labels assigned to RIB prefixes MPLS Node A MPLS Node B and stored in LIB LDP Control Plane

– Peer discovery and session setup RIB Session Setup RIB LIB LIB – Exchange of MPLS label bindings Label Binding Exchange • Programming of MPLS forwarding LDP Interactions – Based on LIB info with MPLS – CEF/MFI updates Forwarding MPLS MPLS Forwardin Forwardin g g CEF/MFI CEF/MFI

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Why MPLS QoS The Need for Differentiated Services • Typically different traffic types (packets) sent over MPLS networks – E.g., Web HTTP, VoIP, FTP, etc. • Not all traffic types/flows have the same performance requirements … – Some require low latency to work correctly; e.g., video • MPLS QoS used for traffic prioritisation to guarantee minimal traffic loss and delay for high priority traffic – Involves packet classification and queuing • MPLS leverages mostly existing IP QoS architecture – Based on Differentiated Services (DiffServ) model; defines per-hop behaviour based on IP Type of Service (ToS) field

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS QoS QoS Marking in MPLS Labels

• MPLS label contains 3 TC bits • Used for packet classification and prioritisation – Similar to Type of Service (ToS) field in IP packet (DSCP values) MPLS DiffServ Marking IP DiffServ Marking • DSCP values of IP packet mapped into TC in Traffic Class Bits bits of MPLS label – At ingress PE router TC DSCP • Most providers have defined 3–5 service Layer-2 Header MPLS Header Layer 3 Header classes (TC values) • Different DSCP <-> TC mapping schemes possible – Uniform mode, pipe mode, and short pipe mode

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS QoS Uniform Mode QoS Field Assignments in MPLS Network • LDP startup – Local labels assigned to RIB prefixes and stored in LIB CE CE – Peer discovery and session setup – Exchange of MPLS label bindings PE P P PE • Programming of MPLS forwarding

– Based on LIB info MPLS MPLS – CEF/MFI updates EXP 3 EXP 2 MPLS MPLS MPLS EXP 3 EXP 3 EXP 2

IP DSCP IP IP IP IP IP 3 DSCP DSCP DSCP DSCP DSCP 3 3 3 2 2

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS QoS Pipe Mode QoS Field Assignments in MPLS Network • End-to-end behaviour: – Original IP DSCP is preserved CE CE • At ingress PE: – EXP value set based on ingress classification PE P P PE • EXP changed in the MPLS core MPLS MPLS MPLS – Based on traffic load and congestion EXP 3 EXP 2 EXP 2

MPLS MPLS MPLS MPLS • At egress PE: EXP 3 EXP 3 EXP 3 EXP 2 IP DSCP IP DSCP 3 IP DSCP 3 IP DSCP 3 IP DSCP 3 IP DSCP – EXP value not copied back into IP DSCP value 3 3

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public MPLS QoS Short Pipe Mode QoS Field Assignments in MPLS Network • End-to-end behaviour: – Original IP DSCP is preserved CE CE • At ingress PE: – EXP value set based on ingress classification PE P P PE • EXP changed in the MPLS core MPLS MPLS – Based on traffic load and congestion EXP 3 EXP 2

MPLS MPLS MPLS • At egress PE: EXP 3 EXP 3 EXP 2 IP DSCP IP DSCP 3 IP DSCP 3 IP DSCP 3 IP DSCP 3 IP DSCP – Original IP DSCP value used for QoS processing 3 3

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Service Provider Deployment Scenario Implementing Sub-Second Failure Detection using MPLS-TE FRR

• Deployment Use Case P MPLS P – Implementing sub-second failure protection in PE PE MPLS core network CE CE P P • Benefits – Sub-second failover protection against link failures in core network • Can be less than 50 ms – Predictable traffic flows after core link failures Network Segment CPE Edge Core MPLS Node CE PE P

Typical Platforms ASR1K ASR9K CRS-1 ISR/G2 7600 GSR ASR1K ASR9K ASR903 ME3800X

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public Summary Layer 3 VPN Key Takeaways

• MPLS Layer-3 VPNs provide IP connectivity among CE sites – MPLS VPNs enable full-mesh, hub-and-spoke, and hybrid IP connectivity • CE sites connect to the MPLS network via IP peering across PE-CE links • MPLS Layer-3 VPNs are implemented via VRFs on PE edge nodes – VRFs providing customer routing and forwarding segmentation • BGP used for signalling customer VPN (VPNv4) routes between PE nodes • To ensure traffic separation, customer traffic is encapsulated in an additional VPN label when forwarded in MPLS network • Key applications are layer-3 business VPN services, enterprise network segmentation, and segmented layer-3 Data Centre access

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 81 Advanced Topics For your reference MPLS and IPv6 only IPv6 Support for Native MPLS Deployments and MPLS Layer-3 Services

• IPv6 traffic carried over IPv4 MPLS network IPv6 IPv4 MPLS IPv6

6PE P P 6PE • Encapsulation of IPv6 into IPv4 CE CE LSP (6PE) . Encapsulation of IPv6 into MPLS layer-3 VPN (6VPE) – Translation of IPv6 to IPv4 IPv6 IPv4 MPLS IPv6 at PE edge 6VPE P v6VPN P 6VPE CE CE

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 83 For your reference Label Switched Multicast (LSM) only Point-to-Multipoint MPLS Signalling and Connectivity

• What is Label Switched Multicast? Uni-Directional LSP – MPLS extensions to provide P2MP connectivity MPLS / IP – RSVP extensions and multicast LDP IP/MPLS • Why Label-Switched Multicast? – Enables MPLS capabilities, which can not be applied to IP multicast traffic (e.g., FRR) P2MP or MP2MP LSP Tree • Benefits of Label-Switched Multicast – Efficient IP multicast traffic forwarding Label Switched Multicast (LSM) – Enables MPLS traffic protection and BW control of IP multicast traffic IP/MPLS

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 84 MPLS SNMP MIBs SNMP Management Access to MPLS Resources

• MPLS-LSR-STD-MIB – Provides LSP end-point and LSP cross-connect information • MPLS-LDP-STD-MIB – Provides LDP session configuration and status information – Frequently used: LDP session status Trap notifications • MPLS-L3VPN-STD-MIB – Provides VRF configuration and status information and associated interface mappings – Frequently used: VRF max-route Trap notifications • MPLS-TE-STD-MIB – Provides TE tunnel configuration and status information – Frequently used: TE Tunnel status Trap notifications

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 85 MPLS OAM Tools for Reactive and Proactive Troubleshooting of MPLS Connectivity

• MPLS LSP Ping – Used for testing end-to-end MPLS connectivity similar to IP ping – Can we used to validate reach ability of LDP-signaled LSPs, TE tunnels, and PWs • MPLS LSP Trace – Used for testing hop-by-hop tracing of MPLS path similar to traceroute – Can we used for path tracing LDP-signaled LSPs and TE tunnels • MPLS LSP Multipath (ECMP) Tree Trace – Used to discover of all available equal cost LSP paths between PEs – Unique capability for MPLS OAM; no IP equivalent!

BRKMPL-1101 © 2015 Cisco and/or its affiliates. All rights reserved. Cisco Public 86