Professional Documents
Culture Documents
Introduction
Introduction to MPLS
Peter J. Welcher
ISCW Exam Certification Guide
Morgan and Lovering
Various Cisco White Papers
The term Frame Mode MPLS denotes the use of MPLS with Ethernet-
encapsulated or other frame-based encapsulated interfaces.
It does not include ATM-encapsulated interfaces.
ATM uses cell mode MPLS
ATM MPLS has a unique set of requirements due to its fixed cell
length
Partial Mesh
Allows for the cost effectiveness of hub and spoke, but also allows
critical sites to have point-to-point connections
Full Mesh
Need advantages of point-to-point links throughout topology
Circuits = n (n-1) / 2
n = number of sites
435 circuits = 30 (30-1)/2
Less latency
More control
Better performance
MPLS network:
Converges dynamically
Supports multiple routing protocols
Honors QoS traffic tags and policies
MPLS requires only a single connection to providers MPLS network.
Traditional Routing
Router receives packet
Makes a forwarding decision based on Layer 3 information
Destination address matches longest match prefix entry in the
routing table
Layer 2 encapsulation is determined
Layer 2 address (eg ARP) is resolved
Performs a path switch
Dispatches the packet to the next-hop router
Process repeats itself Every router along the path examines the
packet.
Rick Graziani graziani@cabrillo.edu 17
MPLS Features
MPLS
Only one examination of the packet
Only one assignment to the FEC
This is done at the MPLS ingress node
FEC
Encoded as a short, fixed-length value known as a label.
FEC is all packets to which a specific label is attached.
Could be based on:
Destination address
Egress LSR
CoS (Class of Service)
Label Switch Path (LSP)
The path through one or more LSRs at one level of the hierarchy followed
by a packet in a particular path.
Rick Graziani graziani@cabrillo.edu 19
MPLS Features
Field Description
20-bit label The actual label. Values 0 to 15 are reserved.
3-bit experimental (EXP) Undefined in the RFC. Used by Cisco to define a class of
field service (CoS) (IP precedence).
1-bit bottom-of-stack MPLS allows multiple labels to be inserted. The bottom-
indicator of-stack bit determines if this label is the last label in the
packet. If this bit is set (1), the setting indicates that this
label is the last label.
8-bit Time to Live (TTL) Has the same purpose as the TTL field in the IP header.
field
In most cases only one label is assigned to a packet. There are some
instances where more than one label is used:
MPLS VPNs: Multiprotocol BGP (MP-BGP) is used to propagate a
second label that identifies the VPN in addition to the label that is
propagated by Label Distribution Protocol (LDP) to identify the path.
MPLS Traffic Engineering (MPLS TE): Uses Resource
Reservation Protocol (RSVP) to establish label switched path (LSP)
tunnels. RSVP propagates labels that are used to identify the
tunnel LSP. This label is in addition to the label that is propagated
by LDP to identify the underlying LSP.
MPLS VPNs combined with MPLS TE: Three or more labels are
used to identify the VPN, tunnel LSP, and the underlying LSP.
A label does not contain any information about the Layer 3 protocol
that is being carried in a packet.
This lack of information means that the identity of the network layer
protocol must be inferable from the value of the label.
However for Layer-2 protocols that have TYPE or PID fields new
values indicate the MPLS-enabled Layer-3 protocol.
Unlabeled IP unicast: PID = 0x0800 identifies that the frame
payload is a classic unicast IP packet.
Labeled IP unicast: PID = 0x8847 identifies that the frame payload
is a unicast IP packet with at least one label preceding the IP
header.
Labeled IP multicast: PID = 0x8848 identifies that the frame
payload is a multicast IP packet with at least one label preceding
the IP header.
Rick Graziani graziani@cabrillo.edu 23
MPLS
Features
Note: The type or protocol ID field indicates as MPLS enabled layer-3 protocol.
ATM MPLS Cell Header GFC VPI VCI PTI CLP HEC DATA
Label
R5 MPLS Switched
94
R4 MPLS Switched
94
17
R3 MPLS Switched
17
5 R1 Layer 3 Routed
Process switching
Each packet processed individually
Full routing table lookup performed on each packet
Slowest and most resource-intensive method of packet forwarding
Fast-Switching Cache
Cache-driven switching
First packet is process switched and an entry place in
fast-switching cache
Packets with the same destination IP address bypass
routing table using fast-switching cache. (Ages out after
60 seconds)
Control plane
Routing updates
routing protocols database from other routers
Incoming IP Packet
IP forwarding table (FIB)
Note: Label allocation, label imposing, label swapping, and label popping usually
happen in the service provider network, not the customer (enterprise) network.
Customer routers never see a label.
0 128.89
0
1
You Can Reach 128.89 Thru
Me
You Can Reach 128.89 and 1
171.69 Thru Me
0 128.89
0
1
Label Distribution
Use Label 7 for 171.69
Protocol 171.69
0 128.89
0
1
128.89.25.4 Data
9 128.89.25.4 Data
1
Egress LSR
1 0 1 0 1
0
2
Use label 4 for Use label implicit-null
FEC 171.68/16 for FEC 171.68/16
171.68.44/24
Egress LSR
1 0 1 0
Label = 4 IP packet
D=171.68.10.15
IP packet IP packet
IP packet D=171.68.10.1 171.68.44/24
D=171.68.10.15
D=171.68.10.1 5
5
171.68.10/24
A B C D
A label is removed on the router that is located before the last hop
within an MPLS domain (the penultimate router).