Escolar Documentos
Profissional Documentos
Cultura Documentos
MPLS Concepts
Objectives
Upon completion of this chapter, you will be
able to perform the following tasks:
Identify the drawbacks of traditional IP routing
Describe basic MPLS concepts and LSR types.
Understand how different MPLS applications
can coexist on the same platform using the
same underlying technology.
List the standard bodies that are working on
MPLS technology and the relationship between
Tag Switching and MPLS.
2001, Cisco Systems, Inc.
MPLS v1.02-2
Drawbacks of
Traditional IP Routing
2001, Cisco Systems, Inc.
MPLS v1.02-3
Objectives
Upon completion of this section, you will
be able to identify the drawbacks of
traditional IP routing.
MPLS v1.02-4
Traditional IP Forwarding
Traditional IP forwarding is based on the
following:
Routing protocols are used to distribute
Layer 3 routing information.
Forwarding is based on the destination
address only.
Routing lookups are performed on
every hop.
MPLS v1.02-5
Traditional IP Forwarding
(cont.)
10.1.1.1
10.1.1.1
10
.1 .
1.1
Up
da
te:
Routing
lookup
1
.1.
8
1
.
.0/
10
0
.
0 .0
1
:
ate
d
Up
10
.0 .
0.0
/8
Routing
lookup
Routing
lookup
MPLS v1.02-6
IP over ATM
10.1.1.1
10.1.1.1
10.1.1.1
10.1.1.1
10.1.1.1
10
. 1.
1 .1
10.1.1.1
10.1.1.1
10
. 1.
1 .1
MPLS v1.02-7
Large Site A
Large Site B
Backup
OC48 link
Small Site C
Most traffic goes between large sites A and B and uses only the
primary link.
Destination-based routing does not provide any mechanism for load
balancing across unequal paths.
Policy-based routing can be used to forward packets based on
other parameters, but this is not a scalable solution.
2001, Cisco Systems, Inc.
MPLS v1.02-8
Summary
MPLS v1.02-9
Review Questions
List major drawbacks of traditional IP
routing.
Based on what information do routers
forward IP packets?
What mechanism can be used to forward
packets based on other parameters?
Why is this mechanism not suitable for large
networks?
MPLS v1.02-10
MPLS v1.02-11
Objectives
Upon completion of this section, you will be
able to perform the following tasks:
Describe MPLS architecture.
Describe the MPLS approach to IP routing.
Describe the difference between data plane and
control plane in MPLS.
Describe the difference between packet-mode
and cell-mode MPLS.
List Label Switch Router (LSR) types.
Describe LSR architecture.
2001, Cisco Systems, Inc.
MPLS v1.02-12
MPLS v1.02-13
MPLS Example
10.1.1.1
10.1.1.1
L=
2
Label removal
and
routing lookup
L=23
25
L=
Routing lookup
and
label assignment
10.0.0.0/8 L=25
Label
swapping
L=25 L=23
MPLS v1.02-14
L=17
L=23
L=25
10.1.1.1
MPLS v1.02-15
Large Site A
Large Site B
Secondary
OC48 link
Small Site C
MPLS v1.02-16
MPLS Architecture
MPLS has two major components:
Control planeexchanges Layer 3 routing information
and labels
Data planeforwards packets based on labels
Control plane contains complex mechanisms to exchange
routing information, such as Open Shortest Path First
(OSPF), Enhanced Interior Gateway Routing Protocol
(EIGRP), Intermediate System-to-Intermediate System (IS-IS),
and BGP, and to exchange labels, such as Tag Distribution
Protocol (TDP), label distribution protocol (LDP), BGP, and
Resource Reservation Protocol (RSVP).
Data plane has a simple forwarding engine.
Control plane maintains contents of the label-switching table
(label information base, or LIB).
2001, Cisco Systems, Inc.
MPLS v1.02-17
MPLS Architecture
Control Plane
OSPF: 10.0.0.0/8
LDP: 10.0.0.0/8
Label 17
OSPF
LDP
OSPF: 10.0.0.0/8
LDP: 10.0.0.0/8
Label 40
Data Plane
Labeled packet
Label 17
LFIB
4017
Labeled packet
Label 40
MPLS v1.02-18
MPLS v1.02-19
Label Format
LABEL
0
EXP S
19 20
22 23 24
TTL
31
MPLS v1.02-20
Frame-Mode MPLS
Frame
Header
Layer 2
IP Header
Payload
Layer 3
Routing
lookup and
label
assignment
Frame
Header
Layer 2
Label
Layer 2
IP Header
Payload
Layer 3
MPLS v1.02-21
Cell_Mode MPLS
Frame
Header
IP Header
Layer 2
Frame
Header
Layer 2
Payload
Layer 3
Label
IP Header
Layer 2
Payload
Layer 3
Cell 1
ATM
ATM Adaptation
Label
Header Layer 5 (AAL5) Header
Layer 2
Cell 2
ATM
Header
Layer 2
IP Header
Payload
Layer 3
Payload
MPLS v1.02-22
L=23
20.1.1.1
L=25
L=31
Edge
LSR
L=43
10.1.1.1
20.1.1.1
LSR
MPLS v1.02-23
20.1.1.1
L=1/3
L=1/6
ATM
Edge
LSR
L=1/3
L=1/6
L=1/3
L=1/6
L=1/5
L=1/5
L=1/5
L=1/9
L=1/9
L=1/9
10.1.1.1
20.1.1.1
ATM
LSR
MPLS v1.02-24
Architecture of LSRs
LSRs, regardless of the type, perform the
following three functions:
Exchange routing information
Exchange labels
Forward packets (LSRs and edge LSRs) or
cells (ATM LSRs and ATM edge LSRs)
MPLS v1.02-25
Architecture of LSRs
LSR
Exchange of
routing information
Control Plane
Routing Protocol
IP Routing Table
Exchange of
labels
Incoming
labeled packets
Data Plane
Label Forwarding Table
Outgoing
labeled packets
MPLS v1.02-26
Control Plane
Routing Protocol
IP Routing Table
Exchange of
labels
Incoming
IP packets
Incoming
labeled packets
Data Plane
IP Forwarding Table
Label Forwarding Table
Outgoing
IP packets
Outgoing
labeled packets
MPLS v1.02-27
Summary
After completing this section, you should be
able to perform the following tasks:
Describe MPLS architecture.
Describe MPLS approach to IP routing.
Describe the difference between data plane and
control plane in MPLS.
Describe the difference between packet-mode
and cell-mode MPLS.
List Label Switch Router (LSR) types.
Describe LSR architecture.
2001, Cisco Systems, Inc.
MPLS v1.02-28
Review Questions
What are the major drawbacks of traditional IP
forwarding and how does MPLS solve them?
What functions does an LSR perform?
List the types of LSRs.
Name the two modes of MPLS.
Explain the difference between an LSR and an
Edge LSR.
Explain the difference between an LSR and an
ATM LSR.
2001, Cisco Systems, Inc.
MPLS v1.02-29
MPLS v1.02-30
Objectives
Upon completion of this section, you will
be able to perform the following tasks:
Describe the format of MPLS label.
Explain the concept of the MPLS Label
Stack.
Describe the way MPLS labels are used in
Packet-mode and ATM environment.
MPLS v1.02-31
EXP S
19 20
TTL
22 23 24
31
MPLS v1.02-32
MPLS Labels
Labels are inserted between the Layer 2
(frame) header and the Layer 3 (packet) header.
There can be more than one label
(label stack).
The bottom-of-stack bit indicates if the label is
the last label in the label stack.
The TTL field is used to prevent indefinite
looping of packets.
Experimental bits are usually used to carry the
IP precedence value.
MPLS v1.02-33
IP Header
Payload
PID=MPLS-IP
S=0
S=0
S=1
MPLS v1.02-34
MPLS v1.02-35
MPLS Forwarding
An LSR can perform the following
functions:
Insert (impose) a label or a stack of labels on
ingress.
Swap a label with a next-hop label or a stack
of labels in the core.
Remove (pop) a label on egress.
MPLS v1.02-36
MPLS Forwarding
(Frame-Mode)
MPLS Domain
10.1.1.1
23
10.1.1.1
25
10.1.1.1
10.1.1.1
IP Lookup
10.0.0.0/8 label 23
IP Lookup
10.0.0.0/8 label 25
IP Lookup
10.0.0.0/8 next hop
LFIB
label 18 label 23
LFIB
label 23 label 25
LFIB
label 25 pop
MPLS v1.02-37
MPLS Forwarding
(Cell-Mode)
MPLS Domain
10.1.1.1
10.1.1.1
IP Lookup
10.0.0.0/8 label 1/3
IP Lookup
10.0.0.0/8 label 1/5
IP Lookup
10.0.0.0/8 Next hop
LFIB
label 8 label 1/3
LFIB
label 1/3 label 1/5
LFIB
label 1/5 pop
Labels (VPI/VCI) are imposed during the IP lookup process on ingress ATM edge LSRs.
Packets are segmented into cells.
ATM LSRs in the core swap labels based on the contents of the ATM switching table.
ATM LSRs cannot forward IP packets.
On egress ATM edge LSRs the labels are removed (cells are reassembled into packets)
and a routing lookup is used to forward packets.
2001, Cisco Systems, Inc.
MPLS v1.02-38
Summary
After completing this section, you should
be able to perform the following tasks:
Describe the format of MPLS label.
Explain the concept of the MPLS Label
Stack.
Describe the way MPLS labels are used in
Packet-mode and ATM environment.
MPLS v1.02-39
Review Questions
What fields does a label have?
How does a receiving router know if the
packet is labeled or not?
How does a receiving router know if there is
another label?
Why is more than one label needed?
What are the major differences between
frame-mode and cell-mode MPLS?
MPLS v1.02-40
MPLS Applications
MPLS v1.02-41
Objectives
Upon completion of this section, you will
be able to perform the following tasks:
Identify various MPLS applications.
Describe the overall structure of each MPLS
application.
Explain the interactions between several
MPLS applications running on the same
platform.
MPLS v1.02-42
MPLS Applications
MPLS is already used in many different applications:
Unicast IP routing
Multicast IP routing
Traffic Engineering (MPLS TE)
QoS
Virtual private networks (MPLS VPN)
MPLS v1.02-43
Unicast IP Routing
Two mechanisms are needed on the control
plane:
IP routing protocol (OSPF, IS-IS, EIGRP, ...)
Label distribution protocol (LDP or TDP)
A routing protocol carries the information about
the reachability of networks.
The label distribution protocol binds labels to
networks learned via a routing protocol.
The forwarding equivalence class (FEC) is
equal to a destination network, stored in the IP
routing table.
2001, Cisco Systems, Inc.
MPLS v1.02-44
Multicast IP Routing
A dedicated protocol is not needed to support
multicast traffic across an MPLS domain.
Protocol Independent Multicast (PIM) version
2 with extensions for MPLS is used to
propagate routing information as well as
labels.
FEC is equal to a destination multicast
address, stored in the multicast routing table.
MPLS v1.02-45
MPLS TE
MPLS traffic engineering requires OSPF or IS
IS with extensions for MPLS TE as the IGP.
OSPF and IS-IS with extensions hold the
entire topology in their databases.
OSPF and IS-IS should also have some
additional information about network
resources and constraints.
RSVP or CR-LDP is used to establish traffic
engineering tunnels (TE tunnels) and
propagate labels.
2001, Cisco Systems, Inc.
MPLS v1.02-46
Quality of Service
MPLS v1.02-47
MPLS v1.02-48
Multicast
IP Routing
MPLS Traffic
Engineering
Any IGP
Unicast IP
routing table
Multicast
IP routing table
LDP or TDP
PIM version 2
Quality of Service
MPLS/VPN
OSPF or IS-IS
Any IGP
Any IGP
Unicast IP
routing table
Unicast IP
routing table
Unicast IP
routing tables
LDP or TDP
LDP
LDP
RSVP
BGP
Data Plane
Label forwarding table
MPLS v1.02-49
Summary
After completing this section, you should
be able to perform the following tasks:
Identify various MPLS applications.
Describe the overall structure of each MPLS
application.
Explain the interactions between several
MPLS applications running on the same
platform.
MPLS v1.02-50
Review Questions
Where is MPLS used today?
Where can MPLS potentially be used in the
future?
What do the different applications of MPLS
have in common?
What are the differences between the various
applications of MPLS?
MPLS v1.02-51
MPLS v1.02-52
Objectives
Upon completion of this section, you will
be able to perform the following tasks:
Explain the differences between Tag
Switching and MPLS.
List the IETF standards defining MPLS.
MPLS v1.02-53
MPLS Standardization
MPLS functionality has been available in Cisco routers
since Cisco IOS Release 11.1CT. It was called tag
switching, and the switching part is equal to
standard MPLS.
The only difference between MPLS and tag switching is in
the label distribution protocol:
Cisco proprietary implementation uses TDP.
IETF specifies LDP as the standard label distribution
protocol.
Although TDP and LDP are also functionally equivalent,
they are not compatible.
They can, however, coexist in an MPLS domain as long
as any two peers are using the same protocol.
2001, Cisco Systems, Inc.
MPLS v1.02-54
MPLS Standards
MPLS is basically a standardized version of
tag switching.
The following are just some of the many
drafts defining MPLS:
draft-ietf-mpls-arch
draft-ietf-mpls-label-encaps
draft-ietf-mpls-ldp
Many other drafts can be found at
http://www.ietf.org/html.charters/mpls-chart
er.html
2001, Cisco Systems, Inc.
MPLS v1.02-55
MPLS v1.02-56
TDP
TDP
TDP
&
LDP
TDP
TDP
LDP
LDP
LDP
LDP
TDP
TDP to LDP
MPLS v1.02-57
MPLS Implementation
MPLS is enabled per interface by enabling
one or both distribution protocols.
The moment LDP or TDP is enabled, a
router will try to find neighbors through the
interface and establish a TDP or LDP
session.
TDP is the default label distribution
protocol.
2001, Cisco Systems, Inc.
MPLS v1.02-58
Summary
After completing this section, you should
be able to perform the following tasks:
Explain the differences between Tag
Switching and MPLS.
List the IETF standards defining MPLS.
MPLS v1.02-59
Review Questions
What is the difference between Tag Switching
and MPLS on the data plane?
What is the difference between Tag Switching
and MPLS on the control plane?
How can Tag Switching and MPLS be
combined?
Which label switching mechanism is the default
switching mechanism on Cisco routers?
MPLS v1.02-60
Summary
After completing this chapter, you should
be able to perform the following tasks:
Identify the drawbacks of traditional IP routing.
Describe basic MPLS concepts and LSR types.
Describe how different MPLS applications can
coexist on the same platform using the same
underlying technology.
List the standard bodies that are working on
MPLS technology and the relationship between
Tag Switching and MPLS.
2001, Cisco Systems, Inc.
MPLS v1.02-61
www.cisco.com
Chapter#-62