Beruflich Dokumente
Kultur Dokumente
www.huawei.com
Foreword
Multiprotocol Label Switching is widely use in the network nowadays to enhance the reliability of the network. One of the popular application of the MPLS is MPLS TE.
Page2
Objectives
Basic concept of MPLS Working mechanism of MPLS MPLS application MPLS TE Working mechanism of MPLS TE Application of MPLS TE in VNPT network
Page3
Contents
1. MPLS 2. MPLS TE 3. Role of MPLS TE in VPNT Network
Page4
Contents
1. MPLS
1.1 Introduction 1.2 Concept 1.3 Packet format 1.4 Working Mechanism
Page5
Contents
1. MPLS
1.1 Introduction 1.2 Concept 1.3 Packet format 1.4 Working Mechanism
Page6
Traditional IP Forwarding
Network 10.1.0.0/24 10.1.0.1/32 10.1.1.0/30 10.1.1.2/32 10.1.1.4/30 10.1.1.8/30 10.2.0.0/24
RTA s0 10.2.0.1 Data 10.1.0.0/24 .1 .1 .2 10.1.0.0/30 10.2.0.0/24 10.1.1.0/30 s0 .2
Network 10.1.0.0/24
10.1.1.0/30 10.1.1.4/30 10.1.1.5/32 10.1.1.8/30 10.1.1.10/32
Nexthop 10.1.1.5
10.1.1.5 10.1.1.6 10.1.1.5 10.1.1.9
10.1.1.10
10.1.1.6 10.1.1.6
s3 .5 10.1.1.4/30
10.2.0.0/24
10.2.0.0/24
RTC s2 .6 s3 .9 10.1.1.8/30 s3 .10
10.1.1.10
10.2.0.1/32
.2 10.2.0.0/30
.1
Page7
RTC
GE
RTA RTB
GE
RTD
RTE
RTF
FE
100% Traffic
FE
Network C RTG
FE
Network B
RTH
Page8
1.1.1.1/32
RTA
s0 IP Header Data s0 .1 10.1.1.0/30 .2
RTB
s3 s2 .5 10.1.1.4/30 .6
RTC
s3 s3 .9 10.1.1.8/30 .10
RTD
IP Header
MPLS Domain
Data
10.1.0.0/24
10.2.0.0/24
MPLS Header
Data
IP Header
Page9
Contents
1. MPLS
1.1 Introduction 1.2 Concept 1.3 Packet Format 1.4 Working Mechanism
Page10
1024
IP Data Header
1029
IP Data Header
1039
IP Data Header
RTA
RTB
RTC
RTD
LSP LER
IP Header
LER
IP Header
LSR
RTE
IP Network
Data
Data
MPLS Domain
LER Label Edge Router LSR Label Switch Router LSP Label Switch Path
Page11
IP Network
Contents
1. MPLS
1.1 Introduction 1.2 Concept 1.3 Packet format 1.4 Working Mechanism
Page12
Frame Header
IP Header
Payload
Frame Header
MPLS Header
IP Header
Payload
Page13
MPLS Header
LABEL
0
EXP
19 20
TTL
31
22 23 24
The length of SBottom of Stackfield is1bit The length of TTL field is 8bits
Page14
IP Header
Payload
Ethernet 0x8100 IPv4 0x8847 Unicast MPLS packet 0x8848 Multicast MPLS packet PPP 0x8021 IPv4 0x8281 Unicast MPLS packet 0x8283 Multicast MPLS packet
MPLS VPN
MPLS TE
Page15
Contents
1. MPLS
1.1 Introduction 1.2 Concept 1.3 Packet format 1.4 Working Mechanism
Page16
SWAP
1024 1029 IP Data Header
SWAP
1029 1039 IP Data Header
1.1.1.1/32
POP
RTB
s0 s0 s3 s2 .1 10.1.1.0/30 .2 .5 10.1.1.4/30 .6
RTA
RTC
s3 s3 .9 10.1.1.8/30 .10
RTD
IP Header Data
IP Header
MPLS Domain
Data
10.1.0.0/24
10.2.0.0/24
MPLS Header
Data
IP Header
Page17
1.1.1.1/32
RTA
s0 10.2.0.1 Data s0 .1 10.1.1.0/30 .2 10.1.0.0/30 .2 .1
RTB
s3 s2 .5 10.1.1.4/30 .6
RTC
s3 s3 .9 10.1.1.8/30 .10
RTD
10.2.0.0/30 .2 .1
MPLS Domain
10.1.0.0/24
10.2.0.0/24
Page18
Page19
FTNFEC to NHLFE
IP Data 1030 Header 1.1.1.1/32
RTA
s0 10.2.0.1 Data s0 .1 10.1.1.0/30 .2 10.1.0.0/30 .2 .1
RTB
s3 s2 .5 10.1.1.4/30 .6
RTC
s3 s3 .9 10.1.1.8/30 .10
RTD
10.2.0.0/30 .2 .1
MPLS Domain
10.1.0.0/24
NHLFE FEC NextHop 10.2.0.0 10.1.1.2 Out Interface Serial0 Label Operation Push
Page20
10.2.0.0/24
Others
Page21
RTA
s0 s0 .1 10.1.1.0/30 .2 10.1.0.0/30 .2 .1
RTB
s3 s2 .5 10.1.1.4/30 .6
RTC
s3 s3 .9 10.1.1.8/30 .10
RTD
10.2.0.0/30 .2 .1
MPLS Domain
10.1.0.0/24
10.2.0.0/24
Page22
Page23
RTA
s0 s0 .1 10.1.1.0/30 .2 10.1.0.0/30 .2 .1
RTB
s3 s2 .5 10.1.1.4/30 .6
RTC
s3 s3 .9 10.1.1.8/30 .10
RTD
10.2.0.0/30 .2 .1
MPLS Domain
10.1.0.0/24
10.2.0.0/24
NHLFE InLabel NextHop 1030 10.1.1.10 Out Interface Serial3 Label Operation SWAP
Page24
Others
Page25
1.1.1.1/32
RTA
s0 s0 .1 10.1.1.0/30 .2 10.1.0.0/30 .2 .1
RTB
s3 s2 .5 10.1.1.4/30 .6
RTC
s3 s3 .9 10.1.1.8/30 .10
RTD
10.2.0.1
10.2.0.0/30 .2 .1
MPLS Domain
Data
10.1.0.0/24
NHLFE InLabel NextHop 1032 10.2.0.2 Out Interface -------Label Operation POP
Page26
10.2.0.0/24
Others
RTA
s0 10.2.0.1 Data s0 .1 10.1.1.0/30 .2 10.1.0.0/30 .2 .1
RTB
s3 s2 .5 10.1.1.4/30 .6
RTC
s3 s3 .9 10.1.1.8/30 .10
RTD
10.2.0.1
10.2.0.0/30 .2 .1
MPLS Domain
Data
10.1.0.0/24
NHLFE InLabel NextHop 1032 10.2.0.2 Out Interface -------Label Operation POP
Page27
10.2.0.0/24
Others
Contents
2. MPLS TE
2.1 Introduction 2.2 Concept 2.3 Working Mechanism 2.4 MPLS TE Traffic Protection
Page28
Contents
2. MPLS TE
2.1 Introduction 2.2 Concept 2.3 Working Mechanism 2.4 MPLS TE Traffic Protection
Page29
TE (Traffic Engineering)
NE (Network Engineering)
Manipulating the network to suit traffic. Essentially, it is a technology to plan, design and deploy a network by traffic demand. Manipulating the traffic to suit network. Essentially, it is a technology to control and distribute the traffic for the best resources usage. Design for the disposal of the network or the planning of the traffic Whether the network exists or not
TE (Traffic Engineering)
Page30
Traditional IP TE
All traffic from R1 and R2 to R8 will select the path R3-R4-R5 based on the IGP route selection principle
R2 R4 R5 R3
10
R1
10 10 10
R8
10
R6
R7
Path for R2-R3-R4-R5-R8 traffic Path for R1-R3-R4-R5-R8 traffic Under-utilized alternate path
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved. Page31
Traditional IP TE Disadvantage
10
R1
10 5
R8
5
R6 R7
Path for R2-R3-R6-R7-R5-R8 traffic Path for R1-R3-R6-R7-R5-R8 traffic Under-utilized alternate path
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved. Page32
Contents
2. MPLS TE
2.1 Introduction 2.2 Concept 2.3 Working Mechanism 2.4 MPLS TE Traffic Protection
Page33
MPLS TE combines MPLS technology with TE. It can make the network traffic avoid the congestion node to balance the network traffic, by building a LSP tunnel to the specific destination.
R2 R4 R5 R3
10
R1
10
10 10
R8
10
R6
R7
Page34
Contents
2. MPLS TE
2.1 Introduction 2.2 Concept 2.3 Working Mechanism 2.4 MPLS TE Traffic Protection
Page35
MPLS TE Elements
MPLS TE four elements: Information distribution Path calculation Signaling Packet forwarding Four elements can guarantee basic traffic forwarding, but not very accurate MPLS TE also supports some high level specification FRRFast Reroute Tunnel Backup Auto Bandwidth Allocation Path Re-optimization
Page36
Example
MPLS TE
R2
3.3.3.3 S2 S0 2.2.2.2
4.4.4.4
R4
S0 S0
5.5.5.5
R5
S2 S2 E0 E0 8.8.8.8
R3
S2
R1
10
E0
S0 E0
10 10
S1
10 10 10
R8
S1
10
S0 1.1.1.1 S0 S2
S2
R6
6.6.6.6
R7
7.7.7.7
Page37
Enable MPLS TE
R2
S2
S0
R4
S0
R3
S0
R5
S2 S2 E0 E0
S2 S1
R1
10
E0
S0 E0
10 10
S1
10 10 10
R8
10
S0
S0
S2
S2
R6
R7
Page39
R4
S0
R3
S0
R5
S2 S2 E0 E0
S2 S1
R1
10
E0
S0 E0
10 10
S1
10 10 10
R8
10
S0
S0
S2
S2
R6
R7
Page40
Page41
Information Distribution
Page42
Bandwidth
Max-Link-Bandwidth
Max-Reservable-Bandwidth The Max Available Bandwidth For Each Priority
Support 8 tunnel priority 0~7 Support tunnel preemption ,between Different priority The display the available bandwidth at each
Page43
Bandwidth
Max-Link-Bandwidth
Max-Reservable-Bandwidth
Page44
Information DistributionPriority
Affinity Attributes
Setup Priority
Hold Priority
[R3]interface Tunnel 0 [R3-Tunnel0]mpls te priority 7 5 [R3-Tunnel0]mpls te commit Setup Priority is 7 Hold Priority is 5
Page45
Periodically Flooding (IGP Information) Link Up Or Down (IGP Information) Link Configuration Changes (e.g. Link Metric is modified) (IGP Information)
Link Bandwidth Significant Changes (TE Attribute) The LSP cannot be set up because of insufficient bandwidth.
Page46
Information Distribution
OSPF-TE
Type 10 Opaque LSA will distributes the link traffic engineering information
ISIS-TE
By default, OSPF-TE and IS-IS-TE nly support single area. When deploying TE in multiple areas, we need to configure Inter-area Tunnels.
Page47
Configure ISIS-TE
Enable IS-IS TE
R4
S0
R3
S0
R5
S2 S2 E0 E0
S2 S1
R1
10
E0
S0 E0
10 10
S1
10 10 10
R8
10
S0 S0 S2
S2
R6
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved.
R7
Page48
Page49
Path Calculation
Algorithm
The path calculation process of CSPF is not designed to find the best route to every router--but to the tunnel endpoint.
Page50
Configure CSPF
R4
S0
R3
S0
R5
S2 S2 E0 E0
S2 S1
R1
10
E0
S0 E0
10 10
S1
10 10 10
R8
10
S0 S0 S2
S2
R6
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved.
R7
Page51
Path Setup
RSVP-TE
CR-LDP
New protocol, and not so widely used Base on hard-state, easy to expand
Page52
Configure RSVP-TE
Configure RSVP-TE
[RT3]mpls
[RT3-mpls]mpls rsvp-te [RT3-mpls]quit [RT3]interface s1
[RT3-Serial1]mpls rsvp-te
[RT3-Serial1]quit
Configure RSVP-TE as the signaling [RT3]interface tunnel0 [RT3-Tunnel0]mpls te signal-protocol rsvp-te protocol
[RT3-Tunnel0]mpls te commit
Oper State : Egress LSR ID: Resv Style : Tunnel BW : Hold Priority:
UP 5.5.5.5 SE 20 kbps 7
Page54
Page55
Traffic Forwarding
Policy Route
Page56
Interface Serial2
Interface Serial2
R4
S0
R3
S0
R5
S2 S2 E0 E0
S2 S1
R1
10
E0
S0 E0
10 10
S1
10 10 10
R8
10
S0 S0 S2
S2
R6
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved.
R7
Page57
Configure static route to forward traffic on the ingress node R3 of the tunnel
[R3]ip route-static 8.8.8.8 32 Tunnel 0 preference 10
R2
S2
S0
R4
S0
R3
S0
R5
S2
S2 S1
R1
10
E0
S0 E0
10 10
S1
10
TE IGP Metric 1
10 10
E0 E0
R8
S2
10
S0
10
S0
S2
S2
R6
R7
Page58
[R3]display ip routing-table 8.8.8.8 32 Routing Table : Public Summary Count : 1 Destination/Mask Proto Pre Cost NextHop 8.8.8.8/32 Static 10 0 3.3.3.3 [R3]display ip routing-table 5.5.5.5 32 Routing Table : Public Summary Count : 1 Destination/Mask Proto Pre Cost NextHop 5.5.5.5/32 ISIS 15 20 34.34.34.2
Interface Tunnel0
Interface Serial2
Page59
Shortcut
R4
S0
R3
S0
R5
S2
S2 S1
R1
10
E0
S0 E0
10 10
S1
10
TE IGP Metric 1
10 10
E0 E0
R8
S2
10
S0 S0 S2
10
S2
R6
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved.
R7
Page60
Shortcut
[R3-Tunnel0]display ip routing-table 5.5.5.5 32 Routing Table : Public Summary Count : 1 Destination/Mask Proto Pre Cost NextHop 5.5.5.5/32 ISIS 15 1 3.3.3.3 [R3-Tunnel0]display ip routing-table 8.8.8.8 32 Routing Table : Public Summary Count : 1 Destination/Mask Proto Pre Cost NextHop 8.8.8.8/32 ISIS 15 11 3.3.3.3
Interface Tunnel0
Interface Tunnel0
Page61
Forwarding Adjacency
Interface Serial0
R4
S0
R3
S0
R5
S2 E0 E0
S2 S1
10
R1 E0
S0 E0
10 10
S1
10 10
10
R8
S2
TE IGP Metric 1
10
S0 S0 S2
10
S2
R6
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved.
R7
Page62
Forwarding Adjacency
R4
S0
R3
S0
R5
S2 S2 E0 E0
S2 S1
R1
10
E0
S0 E0
10 10
S1
10
TE IGP Metric 1
R8
10
10
S0 S0 S2
10
S2
R6
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved.
R7
Page63
Forwarding Adjacency
R4
S0
R3
S2 S1
R1
10
E0
S0 E0
10 10
S1
10
TE IGP Metric 1
S0
R5
S2 S2 E0 E0
R8
10
10
S0 S0 S2
10
S2
R6
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved.
R7
Page64
Forwarding Adjacency
[R3-Tunnel0]display ip routing-table 5.5.5.5 32 Routing Table : Public Summary Count : 1 Destination/Mask Proto Pre Cost NextHop 5.5.5.5/32 ISIS 15 1 3.3.3.3 [R3-Tunnel0]display ip routing-table 8.8.8.8 32 Routing Table : Public Summary Count : 1 Destination/Mask Proto Pre Cost NextHop 8.8.8.8/32 ISIS 15 11 3.3.3.3
Interface Tunnel0
Interface Tunnel0
Page65
Forwarding Adjacency
[R3]display isis lsdb local verbose Database information for ISIS(1) -------------------------------Level-2 Link State Database LSPID Seq Num Checksum Holdtime Length ATT/P/OL ---------------------------------------------------------------------------0000.0000.0003.00-00* 0x0000007b 0x5d15 573 268 0/0/0 SOURCE 0000.0000.0003.00 NLPID IPV4 AREA ADDR 49.0001 INTF ADDR 36.36.36.1 INTF ADDR 3.3.3.3 INTF ADDR 33.33.33.33 +NBR ID 0000.0000.0002.00 COST: 10 +NBR ID 0000.0000.0001.01 COST: 10 +NBR ID 0000.0000.0006.00 COST: 10 +NBR ID 0000.0000.0005.00 COST: 1 .
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved. Page66
Forwarding Adjacency
Interface Ethernet0
R4
S0
R3
S2 S1
R1
10
E0
S0 E0
10 10
S1
10
S0
R5
S2 S2 E0 E0
R8
10 10
10
S0 S0 S2
S2
R6
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved.
R7
Page67
Contents
2. MPLS TE
2.1 Introduction 2.2 Concept 2.3 Working Mechanism 2.4 MPLS TE Traffic Protection
Page68
Path protection is also called end to end protection, which establishes backup LSP to protect primary LSP. TE tunnel can be established from source to end, and each tunnel LSP can pass through different path. When primary LSP is down, the flow can be switched to backup LSP tunnel immediately. Backup LSP tunnel should be established in advance, and it will not bear traffic but reserve bandwidth in ordinary situation.
Page69
Primary LSP(RTA-RTB-RTD-RTE) is the designated path from source to destination. When primary LSP is down, the flow will be switched to backup LSP. Backup LSP (RTA-RTC-RTE) supports two types of Backup LSP:
Primary Tunnel
RTD
RTE
RTC
Backup Tunnel
Copyright 2011 Huawei Technologies Co., Ltd. All rights reserved. Page70
Hot-Standby LSP
Ordinary Backup LSP will be setup only when the primary LSP failure occurs.
Once backup LSP is established, the flow will be switched to backup LSP.
Page71
Contents
3. VNPT Network
3.1 Network Topology 3.2 MPLS and MPLS TE
Page72
Contents
3. VNPT Network
3.1 Network Topology 3.2 MPLS and MPLS TE
Page73
Network Topology
Page74
Contents
3. VNPT Network
3.1 Network Topology 3.2 MPLS and MPLS TE
Page75
MPLS Design
Page76
MPLS TE
Page 77
Summary
MPLS is using label to do switching, it enhance the reliability of the network due to connection forwarding plane.
Page78
Thank you
www.huawei.com