Beruflich Dokumente
Kultur Dokumente
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 1
• Introduction
Name, Location and Current profile
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 2
Agenda
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 3
Business Drivers for MPLS
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 5
Customer Requirements
IP Intranet IP Extranet
Remote
Offices Customers
Suppliers
Partners
Telecommuters
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. Mobile Users 6
Service Provider Requirements
Private
Content Voice Networks
Problem:
How to Build a Network
that Can Deliver these Hosting
Services and SLAs
Value-Added
IP Services Managed
Intranets Multimedia
Service Portfolio
Revenue: Transport Growth: IP Connection Profit: IP VAS
Frame Relay, ATM, Internet, Intranet, Hosting, Voice,
Managed Services Extranet Video, ASP’s
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 7
The Barriers
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 9
MPLS Basics
• Traditional routing
Each router holds entire routing table and forwards to next
hop (destination based routing)
• MPLS combines L3 routing with label swapping and
forwarding
• MPLS Forwarding
Label imposed once at ingress router
All forwarding decisions then made on label only – no
routing table lookups
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 10
MPLS Capabilities
RSVP
IP Multicast IP CoS
IP/ATM Integration Traffic Engineering
VPN’s
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 12
Traditional IP over ATM
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 13
IP+ATM Integration
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 14
Traffic Engineering
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 15
MPLS VPNs
Connection-Oriented
VPN Topology
• Private, connectionless IP
VPNs
VPN A
VPN B
VPN C
• Outstanding scalability VPN C VPN B
• Customer IP VPN A
addressing freedom VPN A
and extranets
VPN A
• Simplified VPN Provisioning Connectionless VPN B VPN C
VPN C VPN B
VPN Topology
• Support over any access or VPN A
backbone technology VPN A
VPN B
VPN C VPN C
VPN B
VPN A
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 16
MPLS VPNs
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 17
MPLS end to end class of service
• Core LSR
WRED (sets drop
policy for congestion CPE
management) Technologies
WFQ/MDRR (queuing
policies)
Fast MPLS switching
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 20
MPLS concepts
• MPLS allows:
Packet classification only where the packet enters the
network
The packet classification is encoded as a label
In the core, packets are forwarded without having to re-
classify them
No further packet analysis
Label swapping
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 21
MPLS Components
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 22
MPLS Components
CE PE P PE CE
LSR LSR
ELSR ELSR
ELSR ELSR
LSR LSR
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 23
Functional Components
• Forwarding component:
uses label information carried in a packet and label binding
information maintained by a Label Switching Router to
forward the packet
• Control component:
responsible for maintaining correct label binding
information among Label Switching Routers
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 24
Forwarding Component
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 25
Forwarding Component
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 26
Forwarding Component
• Forwarding algorithm:
Extract label from a packet
Find an entry in the LFIB with the INCOMING LABEL equal
to the label in the packet
Replace the label in the packet with the OUTGOING LABEL
(from the found entry)
Send the packet on the outgoing interface (from the found
entry)
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 27
Forwarding Component
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 28
Label Header (Shim)
Bit 1 2 3 4 5 6 7 8
Label
EXP S 1
TTL 2
Byte
3
Label Label Value (20 bits)
EXP Class of Service (3 bits) 4
S Bottom of Stack (1 bit)
TTL Time to Live
•Can be used over Ethernet, 802.3, or PPP links
•Require 2 new Ethertypes/PPP PIDs
•One for unicast, one for multicast
•Four octets per label in stack
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 29
Label Encapsulation
Subsequent cells
ATM Header Data
Label
C
GFC VPI VCI PTI CLP HEC IP Header Data E
ATM label switching
L
Subsequent cells GFC VPI VCI PTI CLP HEC Data L
Label
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 30
Control Component
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 31
MPLS Forwarding Decisions
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 32
Basic MPLS Forwarding
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 34
MPLS: Forwarding
Existing routing protocols (e.g. OSPF, IGRP) establish routes
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 35
MPLS: Forwarding
Label Distribution Protocol (e.g., LDP) establishes label to
routes mappings
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 36
MPLS: Forwarding
Label Distribution Protocol (e.g., LDP) creates LFIB entries on
LSRs
IN OUT I/F MAC
16 32 S0/0 aa-00-bb IN OUT I/F MAC
18 27 S0/1 aa-00-cc POP 32 E0/0 aa-00-bb
POP 27 E0/1 aa-00-cc
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 37
MPLS: Forwarding
Ingress edge LSR receives packet, performs Layer 3 value-added
services, and “label” packets
IN OUT I/F MAC
16 32 S0/0 aa-00-bb IN OUT I/F MAC
18 27 S0/1 aa-00-cc POP 32 E0/0 aa-00-bb
POP 27 E0/1 aa-00-cc
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 38
MPLS: Forwarding
LSRs forward labelled packets using label swapping
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 39
MPLS: Forwarding
Edge LSR at egress removes remaining label* and delivers
packet
IN OUT I/F MAC
16 32 S0/0 aa-00-bb IN OUT I/F MAC
18 27 S0/1 aa-00-cc POP 32 E0/0 aa-00-bb
POP 27 E0/1 aa-00-cc
* Pentulimate hop popping actually occurs. There may may not necessarily be a label in the
packet at the ultimate or egress LSR.
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 40
Traditional Routing
Route Distribution
171.69 1 171.69 2
… … … … … …
1 0
128.89
0
1
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 41
Traditional Routing
Packet Routing
171.69 1 171.69 2
… … … … … …
1 0
128.89
0
1
171.69 1 171.69 2
… … … … … …
1 0
128.89
0
1
171.69
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 43
Frame Based MPLS
Assigning Labels
36 171.69 1 29 29 171.69 2 22
… … … … … …
1 0
128.89
0
1
Pop Label for 128.89
Use Label 27 for 128.89 2
Use Label 29 for 171.69
171.69
Unsolicited
Use Label 22 for 171.69
Downstream
Label Allocation
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 44
Frame Based MPLS
Packet Forwarding
36 171.69 1 29 29 171.69 2 22
… … … … … …
1 0
128.89
0
1
Data 128.89.25.4
Data 128.89.25.4
Data 128.89.25.4 27
2 Penultimate Hop
Data 171.69.21.7 29
(Pop the label)
Data 128.89.25.4 171.69
Data 171.69.21.7 Data 171.69.21.7 22
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 45
Basic Application – Hierarchical
Routing
Interior
Routers
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 48
Internet Scalability
In Address Out Out In Address Out Out In Address Out Out
Label Prefix I/F Label Label Prefix I/F Label Label Prefix I/F Label
150.10.1.2 1 17 17 150.10.1.2 2 22
… … … … … …
1
0 128.89
0
1 136.50
156.50
Loopback 150.10.1.1 EBGP 119.10
I can reach… 2
128.89,136.50 EBGP
156.50,119.10 171.69
via the BGP next hop 127.18
150.10.1.1 using only 204.162
label 16! Loopback 150.10.1.2
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 49
Basic Application – IP+ATM
• Key differences:
Label set up: LDP vs ATM Forum Signaling
Label granularity: Per-prefix
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 51
MPLS and ATM
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 52
Label Distribution for ATM
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 53
Cell Based MPLS
Assigning Labels
… … 30 171.69 2 16 … …
1 0
128.89
0
1
Downstream 171.69
On demand Need a Label for 128.89
Label Allocation
Need a Label for 171.69
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 54
Cell Based ATM MPLS
Forwarding Cells
Label
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 55
Cell Based ATM MPLS
Multiple Labels (1)
In In Address Out Out
I/F Label Prefix I/F Label
1 5 128.89 0 3
2 8 128.89 0 3
Cells … … … … …
5
Packet 5 Help!
5
5 1
0
128.89
Packet 8 2 3 3 3 3 3 3
8
8 8
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 56
Cell Based ATM MPLS
Multiple Labels (2)
In In Address Out Out
I/F Label Prefix I/F Label
1 5 128.89 0 3
2 8 128.89 0 7
Cells … … … … …
5
Packet 5 Cool!
5
5 1
0
128.89
Packet 8 2 7 3 7 3 7 3
8
8 8
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 57
VC Merge
In In Address Out Out
I/F Label Prefix I/F Label
1 5 128.89 0 3
2 8 128.89 0 3
Cells … … … … …
5
Packet 5
5
5 1
0
128.89
Packet 8 2 3 3 3 3 3 3
8
8 8
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 58
VC Merge
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 59
MPLS: Another View
IP Routing
MPLS Signalling
Labels on Layer 2
MPLS Stack
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 60
MPLS and ATM Services
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 61
MPLS is an ATM Control Stack
L2 VCs
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 64
Advanced MPLS
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 65
Benefits of MPLS
MPLS Training - Basics © 2003 Cisco Systems, Inc. All rights reserved. 66
67