01 MPLS Principles v1.0
01 MPLS Principles v1.0
www.huawei.com
MPLS overview
MPLS principle
MPLS loop detection
MPLS overview
1.1 Traditional IP Forwarding
1.2 MPLS Forwarding characteristics
1.3 MPLS Application
10.2.0.0/30
10.1.0.0/30
Data
10.1.0.0/24 10.2.0.0/24
Network Nexthop
10.1.0.0/24 10.1.0.2
SWA
v1 10.1.0.1/32 10.1.0.1
10.2.0.1 Data
10.1.1.0/30
10.1.1.0/30 10.1.1.1
10.1.0.0/30
10.1.1.2/32 10.1.1.2
10.1.1.4/30 10.1.1.2
10.1.0.0/24
10.1.1.8/30 10.1.1.2
10.2.0.0/24 10.1.1.2
Network Nexthop
10.1.0.0/24 10.1.1.1
SWB
v1 v2 10.1.1.0/30 10.1.1.2
10.1.1.0/30 10.1.1.4/30
10.1.1.1/32 10.1.1.1
10.1.1.4/30 10.1.1.5
10.1.1.6/32 10.1.1.6
10.1.1.8/30 10.1.1.6
10.2.0.0/24 10.1.1.6
Network Nexthop
10.1.0.0/24 10.1.1.5
SWC
v2 v3 10.1.1.0/30 10.1.1.5
10.1.1.4/30 10.1.1.8/30
10.1.1.4/30 10.1.1.6
10.1.1.5/32 10.1.1.5
10.1.1.8/30 10.1.1.9
10.1.1.10/32 10.1.1.10
10.2.0.0/24 10.1.1.10
Network Nexthop
10.1.0.0/24 10.1.1.9
SWD
v3 10.1.1.0/30 10.1.1.9
10.1.1.8/30
10.2.0.0/30
10.1.1.4/30 10.1.1.9
10.1.1.8/30 10.1.1.10
10.1.1.9/32 10.1.1.9
10.2.0.0/24
10.2.0.0/24 10.2.0.2
10.2.0.1/32 10.2.0.1
Network A
GE GE
RTA RTB RTD RTE
RTF
FE FE
R + X = X
IP IP IP
1024 Data 1029 Data 1039 Data
Header Header Header
1.1.1.1/32
RTA RTB RTC RTD
s0 s0 s3 s2 s3 s3
.1 10.1.1.0/30 .2 .5 10.1.1.4/30 .6 .9 10.1.1.8/30 .10
Header
Header
IP
IP
MPLS Domain
Data
Data
10.1.0.0/24 10.2.0.0/24
MPLS Advantage
VPNA VPNA
CE CE
PE P P PE
VPNB VPNB
CE CE
CE PE P P PE
CE
VPNA VPNA
CE MPLS Domain CE
VPNB VPNB
Network A
RTC
70% Traffic
RTF
FE FE
70% Traffic
Network C
30% Traffic FE
RTG RTH
Network B
PE P P PE
MPLS Domain
Network A Network B
CE CE
MPLS overview
MPLS principles
MPLS loop detection
MPLS principle
2.1MPLS structure
2.2 MPLS label format
2.3 MPLS forwarding process
RTF RTG
IP IP IP
1024 Data 1029 Data 1039 Data
Header Header Header
RTA RTB RTC RTD
LSP
LER
LER
Header
Header
LSR
IP
IP
RTE
Data
Data
MPLS Domain
Control plane
routing information
IP Routing Table
MPLS principle
2.1MPLS structure
2.2 MPLS label format
2.3 MPLS forwarding process
Frame
IP Header Payload
Header
Frame MPLS
IP Header Payload
Header Header
The length of Label field is 20bits, used in mapping traffic into LSP, in the
range of 16- 1,048,575
The length of EXP ( Experimental Use ) field is 3bits, for MPLS QoS
The length of S ( Bottom of Stack ) field is1bit, indicates the last label in
the label queue
The length of TTL field is 8bits. It has the same function as that of IP
packet, and the purpose is to inspect and avoid route loop in Frame mode
Frame
Label 1 Label 2 Label 3 IP Header Payload
Header
PID=MPLS-IP
Ethernet 0x8100 IPv4 0x8847 Unicast MPLS packet 0x8848 Multicast MPLS
packet
PPP 0x8021 IPv4 0x8281 Unicast MPLS packet 0x8283 Multicast MPLS packet
S indicates whether it is the last label
MPLS VPN
MPLS TE
MPLS principle
2.1MPLS structure
2.2 MPLS label format
2.3 MPLS forwarding process
Swap: A transit node replaces a label on the top of the label stack in an
MPLS packet with another label, which is assigned by the next hop.
Pop: A transit LSR or the egress removes the top label from the label
stack to decrease the number of labels in the stack. Either the egress or
the penultimate LSR removes a label from the MPLS packet before the
packet leaves an MPLS network.
IP
1030 Data
Header
1.1.1.1/32
RTA RTB RTC RTD
s0 s0 s3 s2 s3 s3
.1 10.1.1.0/30 .2 .5 10.1.1.4/30 .6 .9 10.1.1.8/30 .10
10.2.0.1
.2
10.2.0.0/30
.2
10.1.0.0/30
MPLS Domain
Data
.1
.1
10.1.0.0/24 10.2.0.0/24
IP
1030 Data
1.1.1.1/32 Header
.2
10.2.0.0/30
.2
10.1.0.0/30
MPLS Domain
Data
.1
.1
10.1.0.0/24 10.2.0.0/24
NHLFE
FEC
NextHop Out Interface Label Operation Others
10.2.0.0 10.1.1.2 Serial0 Push ……
IP IP
1030 Data 1030 Data
Header Header
1.1.1.1/32
RTA RTB RTC RTD
s0 s0 s3 s2 s3 s3
.1 10.1.1.0/30 .2 .5 10.1.1.4/30 .6 .9 10.1.1.8/30 .10
10.2.0.1
.2
10.2.0.0/30
.2
10.1.0.0/30
MPLS Domain
Data
.1
.1
10.1.0.0/24 10.2.0.0/24
IP IP IP
1030 Data 1030 Data 1032
1030 Data
Header Header Header
1.1.1.1/32
RTA RTB RTC RTD
s0 s0 s3 s2 s3 s3
.1 10.1.1.0/30 .2 .5 10.1.1.4/30 .6 .9 10.1.1.8/30 .10
10.2.0.1
.2
10.2.0.0/30
.2
10.1.0.0/30
MPLS Domain
Data
.1
.1
10.1.0.0/24 10.2.0.0/24
NHLFE
InLabel
NextHop Out Interface Label Operation Others
1030 10.1.1.10 Serial3 SWAP ……
1.1.1.1/32
RTA RTB RTC RTD
s0 s0 s3 s2 s3 s3
.1 10.1.1.0/30 .2 .5 10.1.1.4/30 .6 .9 10.1.1.8/30 .10
10.2.0.1
10.2.0.1
.2
10.2.0.0/30
.2
10.1.0.0/30
MPLS Domain
Data
Data
.1
.1
10.1.0.0/24 10.2.0.0/24
NHLFE
InLabel
NextHop Out Interface Label Operation Others
1032 10.2.0.2 -------- POP ……
MPLS overview
MPLS principle
MPLS loop detection
MPLS Domain
10.1.0.0/24 10.2.0.0/24
10.2.0.0/30
MPLS Domain
v3 v1
<SWJ>ping -h 11 10.2.0.1
SWJ SWK
<SWJ>tracert 10.2.0.1
traceroute to 10.2.0.1(10.2.0.1) 30 hops max,40 bytes packet
1 10.1.0.2 31 ms 32 ms 1 ms
2 10.1.1.2 62 ms 94 ms 62 ms
3 10.1.1.6 94 ms 94 ms 94 ms
4 10.1.1.10 125 ms 125 ms 125 ms
5 10.2.0.1 156 ms 156 ms 156 ms
MPLS Domain
10.1.0.0/24 10.2.0.0/24
[SW]mpls
[SW-mpls]undo ttl propagate public
10.2.0.0/30
MPLS Domain
v3 v1
<SWJ>ping -h 11 10.2.0.1
SWJ SWK
10.2.0.0/30
MPLS Domain
v3 v1
SWJ SWK
<SWJ>tracert 10.2.0.1
traceroute to 10.2.0.1(10.2.0.1) 30 hops max,40 bytes packet
1 10.1.0.2 31 ms 31 ms 32 ms
2 10.1.1.10 156 ms 94 ms 125 ms
3 10.2.0.1 125 ms 125 ms 125 ms
10.2.0.0/30
1
MPLS Domain
v3 v1
Discard
SWJ SWK
10.2.0.0/30
2
MPLS Domain
v3 v1
SWJ SWK
8 10 7
11
MPLS Domain
7 10
10.1.0.0/24 10.2.0.0/24
…….
1 10
Fast Reroute
A mechanism used in MPLS networks to provide redundant data paths for recovery from node or link failures. The RSVP-TE
protocol is used to signal Fast Reroute configuration.