Modul 03-MPLS Backbone
Modul 03-MPLS Backbone
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 1
MPLS Unicast IP Routing
MPLS introduces a new field that is used for
forwarding decisions.
Although labels are locally significant, they have to
be advertised to directly reachable peers.
• One option would be to include this parameter into
existing IP routing protocols.
• The other option is to create a new protocol to
exchange labels.
The second option has been used because there are
too many existing IP routing protocols that would
have to be modified to carry labels.
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 2
Label Distribution Protocol
Defined in RFC 3036 and 3037
Used to distribute labels in a MPLS network
Forwarding equivalence class
• How packets are mapped to LSPs (Label
Switched Paths)
Advertise labels per FEC
• Reach destination a.b.c.d with label x
Neighbor discovery
• Basic and extended discovery
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 3
MPLS Unicast IP Routing Architecture
LSR
Exchange of Control plane
routing information
Routing protocol
IP routing table
Exchange of
labels
Label distribution protocol
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 4
MPLS Unicast IP Routing: Example
LSR
Control plane
OSPF: 10.0.0.0/8 1.2.3.4 OSPF: 10.0.0.0/8
LIB:
Data plane
10.1.1.1 FIB: 10.0.0.0/8 1.2.3.4 10.1.1.1
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 5
MPLS Unicast IP Routing: Example
LSR
Control plane
OSPF: 10.0.0.0/8 1.2.3.4 OSPF: 10.0.0.0/8
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
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 6
Label Allocation in Packet-Mode MPLS Environment
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 7
Building the IP Routing Table
A B C D
FIB on A
Network Next hop Label Routing table of E Network X
X B — E Network Next-hop
X C
Routing table of B
Router B assigns label 25 to
Network Next-hop
X C
destination X.
A B C D
Network X
E
Routing table of B
Router B assigns label 25 to
Network Next-hop
X C
destination X.
A B C D
Outgoing action is POP as B has
LFIB on B
Label Action Next hop received no label for X from
Network X C.
E
25 pop C
LIB on B Local label is stored in LIB.
Network LSR label
X local 25
LIB on B
Network LSR label
X local 25
X = 25 X = 25
A B C D
Network X
E
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 11
Receiving Label Advertisement
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
FIB on A
Network Next hop Label Network X
X B 25 E
LIB on E
Network LSR label
X B 25
FIB on A
Network Next hop Label
X B 25 E
IP lookup is performed in
FIB, packet is labeled.
LIB on C
Network LSR label
X B 25
local 47
X = 47
A B C D
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 14
Receiving Label Advertisement
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
Network X
E
FIB on 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 table (FIB).
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 15
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
LFIB on B
Label Action Next hop Network X
25 47 C E
FIB on A LFIB on C
Network Next hop Label Label Action Next hop
X B 25 E 47 pop D
IP lookup is performed in
FIB, packet is labeled.
Label lookup is performed in
LFIB, label is removed.
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 17
Convergence in Packet-mode MPLS
A B C D
LIB on B
Network LSR label Network X
X local 25 E
C 47
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.
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 18
Link Failure Actions
A B
C D
LIB on B
Network LSR label Network X
X local 25 E
C 47
E 75
LFIB on B
Routing protocol neighbors and
Label Action Next hop LDP neighbors are lost after a
25 47 C link failure.
Entries are removed from
various data structures.
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 19
Routing Protocol Convergence
A B
C D
LIB on B
Network LSR label Network X
X local 25 E
C 47
E 75
Routing protocols rebuild the IP
LFIB on B routing table and the IP forwarding
Label Action Next hop
table.
25 47 C
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 20
MPLS Convergence
A B
C D
LIB on B
Network LSR label Network X
X local 25 E
C 47
E 75
LFIB and labeling information in
LFIB on B
Label Action Next hop
FIB are rebuilt immediately after
25 75 E
the routing protocol convergence,
based on labels stored in LIB.
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 21
Chapter 1
© 2007 – 2016, Cisco Systems, Inc. All rights reserved. Cisco Public 22