Professional Documents
Culture Documents
Label Assignment
and Distribution
IP Routing Table
Exchange of
labels
LDP
Incoming
Data Plane Outgoing
IP packets IP packets
IP Forwarding Table
Incoming Outgoing
labeled packets labeled packets
Label Forwarding Table
LIB:
Data Plane
10.1.1.1 FIB: 10.0.0.0/8 1.2.3.4 10.1.1.1
LDP: 10.0.0.0/8, L=5 LIB:10.0.0.0/8 Next-hop L=3, Local L=5 LDP: 10.0.0.0/8, L=3
Data Plane
10.1.1.1 FIB: 10.0.0.0/8 1.2.3.4, L=3 L=3 10.1.1.1
other LSRs.
© 2001, Cisco Systems, Inc. MPLS v1.0—3-13
Building the IP Routing Table
A B C D
FIB on A
Network Next hop Label Routing table of E
Network X
X B — Network Next-hop
E
X C
Routing table of B
Router B assigns label 25 to
Network Next-hop
destination X.
X C
A B C D
Network X
E
Routing table of B
Router B assigns label 25 to
Network Next-hop
destination X.
X C
A B C D
LIB on B
Network LSR label
X local 25
X = 25 X = 25
A B C D
X
= Network X
25
E
LIB on A LIB on C
Network LSR label Network LSR label
X B 25 X B 25
X = 25 X = 25
A B X C D
=
25
FIB on A
Network Next hop Label Network X
X B 25
E LIB on E
Network LSR label
X B 25
LIB on C
Network LSR label
X B 25
local 47
X = 47
A B C D
47
= Router C assigns label
X Network
47 to destination X.X
E
LFIB on C
Label Action Next hop
47 pop D
A B C D
47
=
X Network X
FIB on E
E LIB on E
Network Next hop Label Network LSR label
X C 47 X B 25
C 47
• Every LSR stores received information in its
LIB.
• LSRs that receive their label from their next-
hop LSR will also populate the IP forwarding
© 2001, Cisco Systems, Inc. MPLS v1.0—3-21
Populating LFIB
FIB on B LIB on B
Network Next hop Label Network LSR label
X C 47 X local 25
C 47
X = 47
A B C D
47
LFIB on B
=
X Network X
Label Action Next hop
25 47 C E
LFIB on B
Label Action Next hop
25 75 D
X = 25
A B D
= 25 Network X
X
C
• An LFIB on a router usually does not contain
an incoming interface.
• The same label can be used on any interface—
per-platform label allocation.
• LSR announces a label to adjacent LSR only
once even if there are parallel links between
them.
© 2001, Cisco Systems, Inc. MPLS v1.0—3-24
Benefits and Drawbacks of
Per-Platform Label Allocation
Label for X is announced LFIB on B
only to A. Label Action Next hop
25 75 D
X = 25
AA BB DD
Lab: 47
b : 25 Network
N e tw o rk X
X
La
A third-party router can still send
packets toward network X, even though
the label was not announced to it.
Benefits: Drawbacks:
• Smaller LFIB • Insecure—any
• Quicker label neighbor LSR can send
packets with any label
exchange in the LFIB
© 2001, Cisco Systems, Inc. MPLS v1.0—3-25
Summary of Packet-Mode
MPLS Label Allocation and
Distribution
Packet-mode MPLS label allocation and
distribution follows these rules:
• Every LSR assigns a label for every destination
in the IP routing table.
• Labels are assigned once per LSR (per-
platform).
• Every LSR advertises its label assignments to
all neighbors.
• Every LSR stores all advertised labels in the
LIB.
• Labels received from next-hop LSRs are used to
populate label information in the FIB and the
outgoing label in the LFIB.
© 2001, Cisco Systems, Inc. MPLS v1.0—3-26
Review Questions
A B C D
LIB on B
Network LSR label Network X
X local 25
C 47
E
E 75
LFIB on B
Label Action Next hop
25 47 C
• After the LSRs have exchanged the labels,
LIB, LFIB and FIB data structures are
completely populated.
© 2001, Cisco Systems, Inc. MPLS v1.0—3-30
Link Failure Actions
A B ✖ C D
LIB on B
Network LSR label Network X
X local 25
C 47
E
E 75 • Routing protocol
LFIB on B neighbors and LDP
Label Action Next hop neighbors are lost after
25 47 C
a link failure.
• Entries are removed
from various data
© 2001, Cisco Systems, Inc.
structures. MPLS v1.0—3-31
Routing Protocol
Convergence
A B ✖ C D
LIB on B
Network LSR label Network X
X local 25
C 47
E
E 75 Routing protocols rebuild
LFIB on B the IP routing table and
Label Action Next hop the IP forwarding table.
25 47 C
A B ✖ C D
LIB on B
Network LSR label Network X
X local 25
C 47
E
E 75 The LFIB and labeling
LFIB on B information in the FIB are
Label Action Next hop rebuilt immediately after
25 75 E the routing protocol
convergence, based on
labels stored in the LIB.
© 2001, Cisco Systems, Inc. MPLS v1.0—3-33
MPLS Convergence
After a Link Failure
A B C D
LIB on B
Network LSR label Network X
X local 25
C 47
E
E 75 • Routing protocol
LFIB on B neighbors are
Label Action Next hop discovered after link
25 75 E recovery.
A B C D
LIB on B
Network LSR label Network X
X local 25
C 47
E
E 75 • IP routing protocols
LFIB on B rebuild the IP routing
Label Action Next hop table.
25 pop
75 C
E • The FIB and the LFIB are
also rebuilt, but the label
information might be
© 2001, Cisco Systems, Inc.
lacking. MPLS v1.0—3-36
MPLS Convergence
After a Link Recovery
A
C D
E
A
C D
E
RQ X RQ X RQ X
A
C D
E
An ATM switch can allocate an
incoming label only if it already A switch requests a
has a corresponding outgoing label from itsNetwork X
next hop.
label.
• Labels have to be explicitly requested over LC-
ATM interfaces.
• A router requests a label for every destination
in the routing table with the next hop
reachable over an LC-ATM interface.
© 2001, Cisco Systems, Inc. MPLS v1.0—3-45
Allocating a Label
RQ X RQ X RQ X
A
X=1/56 C X=2/82 D X=1/37
E
LFIB on C LIB on D
Label Action Next hop Network LSR label LIB on E
Network X
1/56 2/82 D X E 1/37 Network LSR label
local 2/82 X local 1/37
The LFIB is actually LFIB on D LFIB on E
the ATM switching Label Action Next hop Label Action Next hop
matrix. 2/82 1/37 — 1/37 pop —
RQ X
A
X=1/56 C D
E
LIB on A
Network LSR label Network X
X C 1/56
FIB on A
Network Next hop Label
X C 1/56
A
X=1/43 C D
E
RQ X
LIB on C LFIB on C
B
Network LSR label Label Action Next hop
Routing table of B X D 2/82 1/56 2/82 D
Network Next-hop local 1/56 1/43 2/82 D
X C local 1/43
FIB on A LFIB on C
Network Next hop Label Label Action Next hop
X C 1/56 1/56 2/82 D
1/43 2/82 D
A 1/56
1/56 C 2/82 2/82 D
E
1/43 If an ATM LSR reuses a
1/43
B downstream label, cells from
FIB on B several upstream LSRs might
Network Next hop Label become interleaved.
X C 1/43
RQ X (2) RQ X (2)
A
X=1/43 C X=2/87 D X=1/38
E
RQ X
LIB on E LFIB on E
B
Network LSR label Label Action Next hop
Routing table of B X local 1/37 1/37 pop —
Network Next-hop local 1/38 1/38 pop —
X C
AA 1/56
1/56 C 2/82 2/82 2/82 2/82 D
1/43 LFIB on C
1/43 Label Action Next hop
B
1/56 2/82 D
1/43 2/82 D
A C
E
RQ X
X=1/69 Network X
3
1/7 NNetwork
e t w o r k XX
A labeled packet or cell coming through
a wrong interface is dropped.
LFIB on C
Incoming I/F VPI/VCI Outgoing I/F VPI/VCI
ATM 0/0 1/73 ATM 1/3 1/39
AA C
C EE
NNetwork
e t w o r k XX
LFIB on B
Label Action Next hop
25 75 D
X = 25
A B D
= 25 Network X
X
C
• The LFIB on an LSR does not contain an incoming
interface.
• The same label can be used on any interface and is
announced to all adjacent LSRs.
• The label is announced to adjacent LSRs only once
and can be used on any link.
• Per-platforms label space is less secure than per-
interface label space.
© 2001, Cisco Systems, Inc. MPLS v1.0—3-61
Label Distribution:
Unsolicited Downstream
LIB on B
Network LSR label
X local 25
X = 25 X = 25
A B C D
X
= Network X
25
E
RQ X
A
C D
E
Network X
RQ X
A
C D X=1/37
E
LFIB on E
Label Network
Action NextX hop
1/37 pop —
RQ X RQ X RQ X
A
X=1/56 C X=2/82 D X=1/37
E
A B C D
X
=
25
Network X
E LIB on E
Network LSR label
X B 25
LIB on A LIB on C
Network LSR label Network LSR label
X B 25 X B 25
X = 25 X = 25
A B C D
X
=
25
Network X
E
1.0.0.1:0 1.0.0.1:0
1.0.0.1:0 1.0.0.1:0
1.0.0.1:10 1.0.0.1:10
ATM
ATM
ATM 1.0.0.1:0
1.0.0.1:20
UDP: Hello
UDP: Hello
UDP:
(1.0.0.2:1064 Hello
224.0.0.2:646)
(1.0.0.2:1065
(1.0.0.2:1066 224.0.0.2:646)
224.0.0.2:646) MPLS_B
UDP: Hello
UDP: Hello
UDP:
(1.0.0.1:1050 Hello
224.0.0.2:646) NO_MPLS_C
MPLS_A (1.0.0.1:1051
(1.0.0.1:1052224.0.0.2:646)
224.0.0.2:646)
1.0.0.1 1.0.0.3
TCP (1
.0.0.4:
1 065
1.0.0.1
:6 46)
UDP: Hello
UDP: Hello
UDP:
(1.0.0.4:1033 Hello
224.0.0.2:646)
(1.0.0.4:1034
(1.0.0.4:1035 224.0.0.2:646)
224.0.0.2:646) MPLS_D
1.0.0.4
• An LDP session is established from the router
with the higher IP address.
© 2001, Cisco Systems, Inc. MPLS v1.0—3-77
LDP Session Negotiation
MPLS_A MPLS_B
Establish TCP session
1.0.0.1 1.0.0.2
Initialization message
Initialization message
Keepalive
Keepalive
OSPF OSPF
LDP LDP
OSPF 0/32 0/32 OSPF
0/32
LDP LDP
VSI VSI
LFIB LFIB
LFIB LFIB
MPLS Domain
10.0.0.0/8 10.0.0.0/8 10.0.0.0/8 10.0.0.0/8
L=17 L=18 L=19
Pop or implicit
null label is
MPLS Domain advertised.