Professional Documents
Culture Documents
HC110110035 MPLS Basic Principle
HC110110035 MPLS Basic Principle
age 3 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
Upon completion of this course, you will be able to:
Describe the background and typical applications of MPLS.
Describe the basic concepts and working principles of MPLS.
Describe the process of MPLS data forwarding.
age 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. MPLS Overview
2. MPLS Basic Principle
age 5 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Traditional IP forwarding
Network Nexthop Network Nexthop Network Nexthop Network Nexthop
.2
10.2.0.0/30
10.1.0.0/30
.2 .1
.1
10.1.0.0/24 10.2.0.0/24
age 6 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
ATM cell forwarding
4/5
5
8/62
ATM
Port1
Networking
Port3 6/59
Port2
8
5/5
ATM switch
table
In Out
port VPI/VCI port VPI/VCI
1 4/55 3 8/62
2 5/58 3 6/59
3 8/62 1 4/55
3 6/59 2 5/58
age 7 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MPLS label forwarding
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
age 8 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MPLS VPN Application
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
age 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MPLS TE Application
Network A
RTC
70% Traffic
RTA
30% Traffic GE GE
RTF
FE FE
70% Traffic
age 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. MPLS Overview
2. MPLS Basic Principle
2.1 MPLS control plane and forwarding plane
2.2 MPLS Label Format
2.3 MPLS Forwarding Process
age 11 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MPLS network model
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
age 12 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MPLS control plane and forwarding plane
Routing Protocol
Control plane
IP Routing Table
Label Distribution
Protocol
Data plane
age 13 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. MPLS Overview
2. MPLS Basic Principle
2.1 MPLS control plane and forwarding plane
2.2 MPLS Label Format
2.3 MPLS Forwarding Process
age 14 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Frame mode MPLS
MPLS has two encapsulation modes: Frame mode and cell mode (ATM uses
the MPLS cell encapsulation mode, which is not involved in this course). In
frame encapsulation mode, an MPLS label header is added between the
Layer 2 header and Layer 3 header of a packet. Ethernet and PPP use this
encapsulation mode.
Frame
IP Header Payload
Header
Frame MPLS
IP Header Payload
Header Header
age 15 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MPLS Header
0 19 20 22 23 24 31
age 16 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MPLS Label Nesting
Frame
Label 1 Label 2 Label 3 IP Header Payload
Header
PID=MPLS-IP
S=1
S=0 S=0
age 17 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. MPLS Overview
2. MPLS Basic Principle
2.1 MPLS control plane and forwarding plane
2.2 MPLS Label Format
2.3 MPLS Forwarding Process
age 18 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
FEC and NHLFE
FEC (Forwarding Equivalence Class) is a set of data flows with certain
common characteristics. These data flows are processed by the LSR in the
same way during the forwarding process.
FEC can be classified based on the address, service type, and QoS. For
example, in the traditional IP forwarding that uses the longest matching
algorithm, all packets to the same route are an FEC.
NHLFE ( Next Hop Label Forwarding Entry ): The NHLFE is used for label forwarding. It
contains the following basic information:
Next hop of the packet
How to perform a tag operation (including pushing a new tag, popping a tag, and swapping the original tag with
a new tag).
The NHLFE may also contain other information, such as the link layer encapsulation used for sending packets.
age 19 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Example of FEC and NHLFE
FEC : Forwarding Equivalence Classes
NHLFE : Next Hop Label Forwarding Entry
age 20 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MPLS Forwarding - Ingress LER ( RTA )
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 Data
.2
10.2.0.0/30
.2
10.1.0.0/30
MPLS Domain
.1
.1
10.1.0.0/24 10.2.0.0/24
NHLFE
FEC
NextHop Out Interface Label Operation Others
age 21 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
MPLS Forwarding - LSR ( RTB )
On the transit node, the ILM(Incoming Label Map) table and NHLFE table
are queried to guide MPLS packet forwarding.
IP IP
1030 Data 1030 Data
Header Header
.2
10.2.0.0/30
.2
10.1.0.0/30
MPLS Domain
.1
.1
10.1.0.0/24 10.2.0.0/24
NHLFE
InLabel
NextHop Out Interface Label Operation Others
.2
10.2.0.0/30
.2
10.1.0.0/30
MPLS Domain
.1
.1
10.1.0.0/24 10.2.0.0/24
NHLFE
InLabel
NextHop Out Interface Label Operation Others
10.2.0.1 Data
10.2.0.1 Data
.2
10.2.0.0/30
.2
10.1.0.0/30
MPLS Domain
.1
.1
10.1.0.0/24 10.2.0.0/24
NHLFE
InLabel
NextHop Out Interface Label Operation Others
2. Which of the following actions can be performed when packets are forwarded
based on MPLS labels? ( )
A. Push
B. Pop
C. Swap
D. Switch
age 25 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Summary
Background of MPLS
Basic Concepts of MPLS
MPLS packet format
MPLS Forwarding Principle
age 26 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com