Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

NE9000 V800R023C00SPC500 Configuration Guide 10 MPLS

Download as pdf or txt
Download as pdf or txt
You are on page 1of 820

HUAWEI NetEngine9000

V800R023C00SPC500

Configuration Guide

Issue 01
Date 2023-09-30

HUAWEI TECHNOLOGIES CO., LTD.


Copyright © Huawei Technologies Co., Ltd. 2023. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior
written consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.

Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.

The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China

Website: https://www.huawei.com
Email: support@huawei.com

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. i


HUAWEI NetEngine9000
Configuration Guide Contents

Contents

1 Configuration............................................................................................................................1
1.1 MPLS............................................................................................................................................................................................ 1
1.1.1 About This Document........................................................................................................................................................ 1
1.1.2 MPLS Common Configurations....................................................................................................................................... 7
1.1.2.1 Overview of MPLS............................................................................................................................................................ 7
1.1.2.2 Feature Requirements for MPLS Common.............................................................................................................. 7
1.1.2.3 Specifying an MPLS TTL Handling Mode................................................................................................................. 7
1.1.2.3.1 Specifying the TTL Mode for MPLS........................................................................................................................ 8
1.1.2.3.2 Configuring the Path for ICMP Reply Messages.............................................................................................. 13
1.1.2.4 Configuring a Packet Load Balancing Mode........................................................................................................ 14
1.1.2.5 Configuring Packet Fragmentation on an MPLS Label Switching Node.................................................... 14
1.1.2.6 Configuring the TTL and EXP Processing Mode When the Explicit Null Label Is Used......................... 15
1.1.2.7 Configuring TTL and EXP Processing Modes for MPLS Packets with Label 7........................................... 16
1.1.2.8 Enabling the Mode of Decoupling a Service Next Hop from LDP and SR-MPLS BE.............................. 17
1.1.2.9 Enabling Private-and-Public-Network Separation for MPLS Services..........................................................18
1.1.2.10 Optimizing MPLS......................................................................................................................................................... 18
1.1.2.10.1 Configuring PHP....................................................................................................................................................... 19
1.1.2.10.2 Configuring an MPLS MTU on an Interface....................................................................................................19
1.1.2.10.3 Verifying the Configuration of Optimizing MPLS......................................................................................... 20
1.1.2.11 Configuring MPLS Resource Threshold-related Alarms................................................................................. 21
1.1.2.11.1 Configuring Alarm Thresholds for LDP LSPs...................................................................................................21
1.1.2.11.2 Configuring Alarm Thresholds for Dynamic Labels..................................................................................... 22
1.1.2.11.3 Configuring Conditions That Trigger LDP Resource Threshold-Reaching Alarms............................. 23
1.1.2.11.4 Configuring Alarm Thresholds for other TE Resource................................................................................. 24
1.1.2.11.5 Configuring Alarm Thresholds for RSVP LSPs................................................................................................ 25
1.1.3 MPLS TE Configuration................................................................................................................................................... 26
1.1.3.1 Overview of MPLS TE................................................................................................................................................... 26
1.1.3.2 Feature Requirements for MPLS TE......................................................................................................................... 27
1.1.3.3 Configuring Static CR-LSP........................................................................................................................................... 27
1.1.3.3.1 Enabling MPLS TE.......................................................................................................................................................28
1.1.3.3.2 (Optional) Configuring Link Bandwidth............................................................................................................. 28
1.1.3.3.3 Configuring the MPLS TE Tunnel Interface....................................................................................................... 29
1.1.3.3.4 (Optional) Configuring Global Dynamic Bandwidth Pre-Verification......................................................30

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. ii


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.3.3.5 Configuring the Ingress of the Static CR-LSP....................................................................................................31


1.1.3.3.6 (Optional) Configuring the Transit Node of the Static CR-LSP.................................................................. 32
1.1.3.3.7 Configuring the Egress of the Static CR-LSP..................................................................................................... 32
1.1.3.3.8 Verifying the Static CR-LSP Configuration......................................................................................................... 33
1.1.3.4 Configuring a Static Bidirectional Co-routed LSP............................................................................................... 33
1.1.3.4.1 Enabling MPLS TE.......................................................................................................................................................34
1.1.3.4.2 (Optional) Configuring Link Bandwidth............................................................................................................. 35
1.1.3.4.3 Configuring a Tunnel Interface on the Ingress.................................................................................................35
1.1.3.4.4 (Optional) Configuring Global Dynamic BandwidthPre-verification........................................................37
1.1.3.4.5 Configuring the Ingress of a Static Bidirectional Co-routed LSP................................................................37
1.1.3.4.6 (Optional) Configuring a Transit Node of a Static Bidirectional Co-routed LSP.................................. 38
1.1.3.4.7 Configuring the Egress of a Static Bidirectional Co-routed CR-LSP.......................................................... 39
1.1.3.4.8 Configuring the Tunnel Interface on the Egress.............................................................................................. 40
1.1.3.4.9 Verifying the Configuration of a Static Bidirectional Co-routed LSP........................................................40
1.1.3.5 Configuring an Associated Bidirectional CR-LSP................................................................................................. 41
1.1.3.6 Configuring CR-LSP Backup........................................................................................................................................ 42
1.1.3.6.1 Configuring CR-LSP Hot Standby.......................................................................................................................... 44
1.1.3.6.2 Configuring a Best-Effort Path for a CR-LSP..................................................................................................... 46
1.1.3.6.3 Configuring Ordinary Backup for CR-LSPs......................................................................................................... 47
1.1.3.6.4 Verifying the CR-LSP Backup Configuration......................................................................................................48
1.1.3.7 Configuring Static BFD for TE CR-LSP.....................................................................................................................48
1.1.3.7.1 Enabling BFD Globally.............................................................................................................................................. 48
1.1.3.7.2 Setting BFD Parameters on the Ingress.............................................................................................................. 49
1.1.3.7.3 Setting BFD Parameters on the Egress............................................................................................................... 50
1.1.3.7.4 Verifying the Configuration.....................................................................................................................................52
1.1.3.8 Configuring Dynamic BFD for TE CR-LSP.............................................................................................................. 53
1.1.3.8.1 Enabling BFD Globally.............................................................................................................................................. 54
1.1.3.8.2 Enabling the Capability of Dynamically Creating BFD Sessions on the Ingress................................... 54
1.1.3.8.3 Enabling the Capability of Passively Creating BFD Sessions on the Egress............................................55
1.1.3.8.4 (Optional) Adjusting BFD Parameters.................................................................................................................56
1.1.3.8.5 Verifying the Configuration.....................................................................................................................................57
1.1.3.9 Configuring an RSVP-TE Tunnel................................................................................................................................ 58
1.1.3.9.1 Enabling MPLS TE and RSVP-TE............................................................................................................................ 58
1.1.3.9.2 Configuring CSPF........................................................................................................................................................ 59
1.1.3.9.3 Configuring IGP TE (OSPF or IS-IS)...................................................................................................................... 61
1.1.3.9.4 (Optional) Configuring TE Attributes for a Link.............................................................................................. 63
1.1.3.9.5 (Optional) Configuring an Explicit Path............................................................................................................. 67
1.1.3.9.6 (Optional) Disabling TE LSP Flapping Suppression........................................................................................ 68
1.1.3.9.7 Configuring an MPLS TE Tunnel Interface......................................................................................................... 69
1.1.3.9.8 (Optional) Configuring Soft Preemption for RSVP-TE Tunnels...................................................................70
1.1.3.9.9 (Optional) Configuring Graceful Shutdown...................................................................................................... 72
1.1.3.9.10 Verifying the RSVP-TE Tunnel Configuration.................................................................................................. 73

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. iii


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.3.10 Configuring an Automatic RSVP-TE Tunnel........................................................................................................ 74


1.1.3.10.1 Enabling MPLS TE and RSVP-TE.......................................................................................................................... 75
1.1.3.10.2 (Optional) Configuring CSPF............................................................................................................................... 76
1.1.3.10.3 Configuring IGP TE (OSPF or IS-IS)................................................................................................................... 77
1.1.3.10.4 Configuring the Automatic RSVP-TE Tunnel Capability on a PCC...........................................................79
1.1.3.10.5 Configuring Dynamic BFD For Initiated RSVP-TE LSP................................................................................. 80
1.1.3.10.6 Configuring Dynamic BFD for Initiated RSVP-TE Tunnel............................................................................ 80
1.1.3.10.7 (Optional) Enabling Traffic Statistics Collection for Automatic Tunnels..............................................81
1.1.3.10.8 Verifying the Automatic RSVP-TE Tunnel Configuration............................................................................ 82
1.1.3.11 Adjusting RSVP Signaling Parameters.................................................................................................................. 82
1.1.3.11.1 Configuring the RSVP Hello Extension............................................................................................................. 82
1.1.3.11.2 Configuring an RSVP Timer.................................................................................................................................. 83
1.1.3.11.3 (Optional) Configuring Reliable RSVP Message Transmission................................................................. 84
1.1.3.11.4 Configuring RSVP-TE Srefresh.............................................................................................................................. 84
1.1.3.11.5 Enabling RSVP-TE Reservation Confirmation..................................................................................................85
1.1.3.11.6 Changing the PSB and RSB Timeout Multiplier.............................................................................................86
1.1.3.11.7 Verifying the Configuration of Adjusting RSVP Signaling Parameters.................................................. 86
1.1.3.12 Configuring Dynamic BFD for RSVP......................................................................................................................87
1.1.3.12.1 Enabling BFD Globally............................................................................................................................................ 87
1.1.3.12.2 Enabling BFD for RSVP........................................................................................................................................... 88
1.1.3.12.3 (Optional) Adjusting BFD Parameters.............................................................................................................. 89
1.1.3.12.4 Verifying the Configuration.................................................................................................................................. 90
1.1.3.13 Configuring Self-Ping for RSVP-TE......................................................................................................................... 90
1.1.3.14 Configuring RSVP Authentication.......................................................................................................................... 93
1.1.3.14.1 Configuring an RSVP Authentication Mode.................................................................................................... 94
1.1.3.14.2 (Optional) Setting RSVP Authentication Lifetime........................................................................................ 97
1.1.3.14.3 (Optional) Configuring the Handshake Function......................................................................................... 98
1.1.3.14.4 (Optional) Configuring the Message Window Function.......................................................................... 100
1.1.3.14.5 Verifying the RSVP Authentication Configuration......................................................................................101
1.1.3.15 Configuring Whitelist Session-CAR for RSVP-TE............................................................................................. 102
1.1.3.16 Configuring Micro-Isolation Protocol CAR for RSVP-TE............................................................................... 103
1.1.3.17 Configuring an RSVP GR Helper.......................................................................................................................... 103
1.1.3.17.1 Enabling the RSVP Hello Extension................................................................................................................. 104
1.1.3.17.2 Enabling the RSVP GR Support Capability.................................................................................................... 104
1.1.3.17.3 (Optional) Configuring a Hello Session Between RSVP GR Nodes...................................................... 105
1.1.3.17.4 Verifying the RSVP GR Helper Configuration...............................................................................................105
1.1.3.18 Configuring the Entropy Label for Tunnels...................................................................................................... 106
1.1.3.18.1 Configuring an LSR to Deeply Parse IP Packets.......................................................................................... 106
1.1.3.18.2 Enabling the Entropy Label Capability on the Egress of an LSP........................................................... 107
1.1.3.18.3 Configuring the Entropy Label for Global Tunnels.....................................................................................107
1.1.3.18.4 (Optional) Configuring an Entropy Label Capability for a Tunnel in the Tunnel Interface View
......................................................................................................................................................................................................... 108
1.1.3.18.5 Verifying the Configuration of the Entropy Label for Tunnels...............................................................109

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. iv


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.3.19 Configuring RSVP Distribution..............................................................................................................................109


1.1.3.19.1 Configuring an RSVP Distribution Instance.................................................................................................. 109
1.1.3.19.2 Allocating an Interface to an RSVP Instance................................................................................................110
1.1.3.19.3 Verifying the RSVP Distribution Configuration............................................................................................110
1.1.3.20 Configuring the IP-Prefix Tunnel Function....................................................................................................... 111
1.1.3.20.1 Configuring an IP Prefix List.............................................................................................................................. 111
1.1.3.20.2 (Optional) Configuring a P2P TE Tunnel Template................................................................................... 111
1.1.3.20.3 Using the Automatic Primary Tunnel Function to Establish P2P TE Tunnels in a Batch.............. 115
1.1.3.20.4 Verifying the IP-Prefix Tunnel Function Configuration............................................................................. 116
1.1.3.21 Configuring Dynamic Bandwidth Reservation................................................................................................ 116
1.1.3.22 Adjusting Parameters for Establishing an MPLS TE Tunnel....................................................................... 118
1.1.3.22.1 Configuring an MPLS TE Explicit Path............................................................................................................ 118
1.1.3.22.2 Setting Priority Values for an MPLS TE Tunnel........................................................................................... 119
1.1.3.22.3 Setting the Hop Limit for a CR-LSP................................................................................................................. 120
1.1.3.22.4 Associating CR-LSP Establishment with the Overload Setting.............................................................. 120
1.1.3.22.5 Configuring Route and Label Record.............................................................................................................. 122
1.1.3.22.6 Setting Switching and Deletion Delays.......................................................................................................... 122
1.1.3.22.7 Verifying the Configuration of Establishment of MPLS TE Tunnel.......................................................123
1.1.3.23 Importing Traffic to an MPLS TE Tunnel.......................................................................................................... 123
1.1.3.23.1 Configuring IGP Shortcut.................................................................................................................................... 127
1.1.3.23.2 Configuring Forwarding Adjacency................................................................................................................. 129
1.1.3.23.3 (Optional) Configuring CBTS............................................................................................................................. 130
1.1.3.24 Configuring Static BFD for TE Tunnel................................................................................................................ 131
1.1.3.24.1 Enabling BFD Globally......................................................................................................................................... 131
1.1.3.24.2 Setting BFD Parameters on the Ingress......................................................................................................... 132
1.1.3.24.3 Setting BFD Parameters on the Egress...........................................................................................................134
1.1.3.24.4 Verifying the Configuration................................................................................................................................ 136
1.1.3.25 Configuring MPLS TE Manual FRR...................................................................................................................... 137
1.1.3.25.1 Enabling TE FRR..................................................................................................................................................... 138
1.1.3.25.2 Configuring a Bypass Tunnel............................................................................................................................. 138
1.1.3.25.3 (Optional) Setting the FRR Switching Delay Time.....................................................................................140
1.1.3.25.4 (Optional) Enabling the Coexistence of Rapid FRR Switching and MPLS TE HSB..........................141
1.1.3.25.5 Verifying the MPLS TE Manual FRR Configuration.................................................................................... 141
1.1.3.26 Configuring MPLS TE Auto FRR........................................................................................................................... 141
1.1.3.26.1 Enabling TE Auto FRR.......................................................................................................................................... 142
1.1.3.26.2 Enabling MPLS TE FRR and Configuring Attributes for an Automatic Bypass LSP.........................143
1.1.3.26.3 (Optional) Configuring Auto Bypass Tunnel Re-Optimization.............................................................. 146
1.1.3.26.4 Verifying the MPLS TE Auto FRR Configuration......................................................................................... 147
1.1.3.27 Configuring MPLS Detour FRR............................................................................................................................. 147
1.1.3.28 Disabling MPLS Detour FRR.................................................................................................................................. 149
1.1.3.29 Configuring an MPLS Tunnel Protection Group............................................................................................. 150
1.1.3.29.1 Creating a Tunnel Protection Group............................................................................................................... 151

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. v


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.3.29.2 (Optional) Configuring the Protection Switching Trigger Mechanism............................................... 153


1.1.3.29.3 Verifying the Tunnel Protection Group Configuration.............................................................................. 153
1.1.3.30 Configuring an MPLS TE Associated Tunnel Group.......................................................................................154
1.1.3.31 Configuring Bandwidth Information Flooding for MPLS TE.......................................................................156
1.1.3.32 Configuring the Limit Rate of MPLS TE Traffic...............................................................................................157
1.1.3.33 Configuring Tunnel Re-optimization.................................................................................................................. 158
1.1.3.34 Configuring Isolated LSP Computation............................................................................................................. 161
1.1.3.35 Configuring Automatic Tunnel Bandwidth Adjustment...............................................................................162
1.1.3.36 Locking the Tunnel Configuration....................................................................................................................... 164
1.1.3.37 Configuring P2MP TE Tunnels.............................................................................................................................. 165
1.1.3.37.1 Enabling P2MP TE Globally................................................................................................................................ 166
1.1.3.37.2 (Optional) Disabling P2MP TE on an Interface.......................................................................................... 167
1.1.3.37.3 (Optional) Setting Leaf Switching and Deletion Delays.......................................................................... 168
1.1.3.37.4 Configuring Leaf Lists...........................................................................................................................................169
1.1.3.37.5 Configuring a P2MP TE Tunnel Interface...................................................................................................... 171
1.1.3.37.6 (Optional) Configuring a P2MP Tunnel Template..................................................................................... 173
1.1.3.37.7 (Optional) Configuring a P2MP TE Tunnel to Support Soft Preemption........................................... 176
1.1.3.37.8 (Optional) Configuring the Reliability Enhancement Function for a P2MP Tunnel....................... 177
1.1.3.37.9 Verifying the P2MP TE Tunnel Configuration.............................................................................................. 179
1.1.3.38 Configuring BFD for P2MP TE...............................................................................................................................180
1.1.3.39 Configuring P2MP TE FRR...................................................................................................................................... 181
1.1.3.39.1 Configuring Manual FRR for a Manually Configured P2MP TE Tunnel.............................................. 183
1.1.3.39.2 Configuring FRR for Automatic P2MP TE Tunnels..................................................................................... 184
1.1.3.39.3 Verifying the P2MP TE FRR Configuration.................................................................................................... 186
1.1.3.40 Configuring P2MP TE Auto FRR........................................................................................................................... 186
1.1.3.40.1 Enabling P2MP TE Auto FRR..............................................................................................................................187
1.1.3.40.2 Enabling the TE FRR and Configuring the AutoBypass Tunnel Attributes......................................... 188
1.1.3.40.3 (Optional) Configuring Auto Bypass Tunnel Re-Optimization.............................................................. 191
1.1.3.40.4 Verifying the P2MP TE Auto FRR Configuration......................................................................................... 192
1.1.3.41 Configuring DS-TE..................................................................................................................................................... 192
1.1.3.41.1 Configuring a DS-TE Mode................................................................................................................................. 193
1.1.3.41.2 Configuring a DS-TE Bandwidth Constraints Model.................................................................................. 194
1.1.3.41.3 Configuring Link Bandwidth.............................................................................................................................. 195
1.1.3.41.4 Configuring Tunnel Interfaces........................................................................................................................... 196
1.1.3.41.5 Configuring an RSVP CR-LSP and Specifying Bandwidth Values.......................................................... 197
1.1.3.41.6 (Optional) Configuring a TE-Class Mapping Table....................................................................................198
1.1.3.41.7 (Optional) Configuring CBTS............................................................................................................................. 200
1.1.3.41.8 Verifying the DS-TE Configuration................................................................................................................... 202
1.1.3.42 Maintaining MPLS TE.............................................................................................................................................. 202
1.1.3.42.1 Checking Connectivity of a TE Tunnel............................................................................................................ 202
1.1.3.42.2 Checking a TE Tunnel Using NQA....................................................................................................................203
1.1.3.42.3 Checking Tunnel Error Information................................................................................................................. 203

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. vi


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.3.42.4 Deleting RSVP-TE Statistics.................................................................................................................................203


1.1.3.42.5 Resetting the RSVP Process................................................................................................................................ 204
1.1.3.42.6 Deleting an Automatic Bypass Tunnel and Re-establishing a New One........................................... 204
1.1.3.42.7 Loopback Detection for a Specified Static Bidirectional Co-Routed CR-LSP..................................... 205
1.1.3.42.8 Enabling the Packet Loss-Free MPLS ECMP Switchback.......................................................................... 206
1.1.3.43 Configuration Examples for MPLS TE................................................................................................................ 206
1.1.3.43.1 Example for Establishing a Static MPLS TE Tunnel....................................................................................206
1.1.3.43.2 Example for Configuring a Static Bidirectional Co-routed CR-LSP....................................................... 211
1.1.3.43.3 Example for Configuring an Associated Bidirectional Static CR-LSP................................................... 217
1.1.3.43.4 Example for Configuring an RSVP-TE Tunnel............................................................................................... 221
1.1.3.43.5 Example for Configuring an RSVP-TE over GRE Tunnel........................................................................... 230
1.1.3.43.6 Example for Configuring RSVP Authentication........................................................................................... 242
1.1.3.43.7 Example for Configuring the IP-Prefix Tunnel Function to Automatically Establish MPLS TE
Tunnels in a Batch..................................................................................................................................................................... 247
1.1.3.43.8 Example for Configuring the Affinity Attribute of an MPLS TE Tunnel.............................................. 252
1.1.3.43.9 Example for Configuring SRLGs in TE FRR.................................................................................................... 263
1.1.3.43.10 Example for Configuring SRLGs in Hot Standby.......................................................................................270
1.1.3.43.11 Example for Configuring an Inter-area Tunnel......................................................................................... 278
1.1.3.43.12 Example for Configuring the Threshold for Flooding Bandwidth Information..............................288
1.1.3.43.13 Example for Configuring MPLS TE Manual FRR....................................................................................... 295
1.1.3.43.14 Example for Configuring MPLS TE Auto FRR.............................................................................................305
1.1.3.43.15 Example for Configuring MPLS Detour FRR...............................................................................................315
1.1.3.43.16 Example for Configure a Hot-standby CR-LSP.......................................................................................... 323
1.1.3.43.17 Example for Configuring a Tunnel Protection Group Consisting of Bidirectional Co-routed CR-
LSPs................................................................................................................................................................................................ 333
1.1.3.43.18 Example for Configuring Isolated LSP Computation.............................................................................. 340
1.1.3.43.19 Example for Configuring Static BFD for TE CR-LSP................................................................................. 350
1.1.3.43.20 Example for Configuring Dynamic BFD for TE CR-LSP.......................................................................... 356
1.1.3.43.21 Example for Configuring Static BFD for TE Tunnel................................................................................. 361
1.1.3.43.22 Example for Configuring BFD for RSVP....................................................................................................... 370
1.1.3.43.23 Example for Configuring an RSVP Distribution Instance.......................................................................377
1.1.3.43.24 Example for Configuring a P2MP TE Tunnel..............................................................................................382
1.1.3.43.25 Example for Configuring the IETF DS-TE Mode (RDM)......................................................................... 392
1.1.3.43.26 Example for Configuring CBTS in an L3VPN over TE Scenario............................................................415
1.1.3.43.27 Example for Configuring CBTS in an L3VPN over LDP over TE Scenario.........................................425
1.1.3.43.28 Example for Configuring CBTS in a VLL over TE Scenario.................................................................... 436
1.1.3.43.29 Example for Configuring CBTS in a VPLS over TE Scenario..................................................................448
1.1.4 MPLS LDP Configuration.............................................................................................................................................. 459
1.1.4.1 Overview......................................................................................................................................................................... 460
1.1.4.2 Feature Requirements for MPLS LDP....................................................................................................................461
1.1.4.3 Configuring a Static LSP............................................................................................................................................ 461
1.1.4.3.1 Enabling MPLS.......................................................................................................................................................... 461
1.1.4.3.2 Configuring the Ingress of a Static LSP............................................................................................................ 462

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. vii


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.4.3.3 Configuring a Transit Node of a Static LSP..................................................................................................... 462


1.1.4.3.4 Configuring the Egress of a Static LSP............................................................................................................. 463
1.1.4.3.5 Verifying the Static LSP Configuration............................................................................................................. 463
1.1.4.4 Configuring a Local LDP Session............................................................................................................................ 464
1.1.4.4.1 Configuring Global MPLS LDP Functions.........................................................................................................464
1.1.4.4.2 Globally Enabling MPLS and LDP on an Interface....................................................................................... 465
1.1.4.4.3 (Optional) Configuring an LSR ID for a Local LDP Session.......................................................................465
1.1.4.4.4 (Optional) Configuring an LDP Transport Address...................................................................................... 467
1.1.4.4.5 (Optional) Configuring Timers for a Local LDP Session.............................................................................467
1.1.4.4.6 (Optional) Enabling LDP Loop Detection Negotiation............................................................................... 471
1.1.4.4.7 Verifying the Configuration.................................................................................................................................. 472
1.1.4.5 Configuring a Remote LDP Session....................................................................................................................... 472
1.1.4.5.1 Configuring Global MPLS LDP Functions.........................................................................................................472
1.1.4.5.2 Configuring a Remote LDP Peer......................................................................................................................... 473
1.1.4.5.3 (Optional) Configuring an LSR ID for a Remote LDP session.................................................................. 475
1.1.4.5.4 (Optional) Configuring Timers for a Remote LDP Session........................................................................475
1.1.4.5.5 (Optional) Enabling LDP Loop Detection Negotiation............................................................................... 478
1.1.4.5.6 Verifying the Configuration.................................................................................................................................. 479
1.1.4.6 Configuring the Dynamic LDP Advertisement Capability..............................................................................480
1.1.4.7 Configuring an LDP LSP............................................................................................................................................ 481
1.1.4.7.1 Establishing an LDP LSP.........................................................................................................................................482
1.1.4.7.2 (Optional) Configuring PHP................................................................................................................................. 482
1.1.4.7.3 (Optional) Configuring an LDP Label Advertisement Mode.....................................................................483
1.1.4.7.4 (Optional) Configuring a Global LDP Label Distribution Control Mode.............................................. 484
1.1.4.7.5 (Optional) Configuring LDP to Automatically Trigger Requests in DoD Mode................................. 485
1.1.4.7.6 (Optional) Configuring an MPLS MTU for an Interface............................................................................. 487
1.1.4.7.7 (Optional) Configuring LDP MTU Signaling................................................................................................... 488
1.1.4.7.8 (Optional) Configuring an LDP Split Horizon Policy................................................................................... 488
1.1.4.7.9 (Optional) Configuring an LDP Inbound Policy.............................................................................................489
1.1.4.7.10 (Optional) Configuring an LDP Outbound Policy...................................................................................... 490
1.1.4.7.11 (Optional) Configuring a Policy of Triggering LSP Establishment Using IGP Routes.................... 492
1.1.4.7.12 (Optional) Configuring a Policy of Triggering LSP Establishment Using Labeled BGP Routes of
the Public Network................................................................................................................................................................... 494
1.1.4.7.13 (Optional) Configuring a Policy for Triggering Transit LSP Establishment........................................494
1.1.4.7.14 (Optional) Disabling LDP LSP Flapping Suppression................................................................................ 495
1.1.4.7.15 (Optional) Disabling a Device from Forwarding Unknown TLVs..........................................................496
1.1.4.7.16 (Optional) Configuring the Policy for Triggering Interworking Between LDP LSPs and SR LSPs
......................................................................................................................................................................................................... 496
1.1.4.7.17 Verifying the Configuration................................................................................................................................ 497
1.1.4.8 Configuring LDP Extension for Inter-Area LSPs.................................................................................................497
1.1.4.8.1 Configuring LDP Extension for Inter-Area LSPs............................................................................................. 498
1.1.4.8.2 Verifying the Configuration.................................................................................................................................. 498
1.1.4.9 Configuring LDP Multi-Instance............................................................................................................................. 499

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. viii


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.4.9.1 Enabling LDP Multi-Instance................................................................................................................................499


1.1.4.9.2 (Optional) Enabling the Function to Trigger Trap Messages Only for Public Network LDP
Sessions......................................................................................................................................................................................... 500
1.1.4.9.3 Verifying the Configuration.................................................................................................................................. 500
1.1.4.10 Configuring IGP-based Automatic LDP Configuration................................................................................. 501
1.1.4.11 Configuring Dynamic BFD to Monitor an LDP Tunnel................................................................................. 502
1.1.4.11.1 Enabling an MPLS Device to Dynamically Establish a BFD Session.....................................................503
1.1.4.11.2 Configuring a Policy for Triggering Dynamic BFD for LDP Tunnel.......................................................504
1.1.4.11.3 (Optional) Modifying BFD Parameters.......................................................................................................... 504
1.1.4.11.4 Verifying the Configuration................................................................................................................................ 506
1.1.4.12 Configuring LDP Bit Error Detection...................................................................................................................506
1.1.4.13 Configuring LDP Auto FRR..................................................................................................................................... 508
1.1.4.13.1 Enabling LDP Auto FRR....................................................................................................................................... 509
1.1.4.13.2 (Optional) Configuring Graceful Deletion for LDP Sessions...................................................................511
1.1.4.13.3 (Optional) Enabling the Coexistence of ECMP and FRR.......................................................................... 512
1.1.4.13.4 (Optional) Configuring the Function to Report Remote LDP Session Down Traps Generated Due
to RLFA Route Deletion........................................................................................................................................................... 512
1.1.4.13.5 Verifying the Configuration................................................................................................................................ 513
1.1.4.14 Configuring Static BFD to Monitor an LDP LSP..............................................................................................513
1.1.4.14.1 Enabling BFD Globally......................................................................................................................................... 514
1.1.4.14.2 Setting BFD Parameters on the Ingress......................................................................................................... 514
1.1.4.14.3 Setting BFD Parameters on the Egress...........................................................................................................515
1.1.4.14.4 Verifying the Configuration................................................................................................................................ 517
1.1.4.15 Configuring Dynamic BFD for LDP LSPs........................................................................................................... 517
1.1.4.15.1 Enabling BFD Globally......................................................................................................................................... 518
1.1.4.15.2 Enabling the Function to Dynamically Create BFD Sessions in MPLS Scenarios.............................518
1.1.4.15.3 Configuring a Policy for Triggering Dynamic BFD for LDP LSPs........................................................... 519
1.1.4.15.4 (Optional) Modifying BFD Parameters.......................................................................................................... 520
1.1.4.15.5 Verifying the Configuration................................................................................................................................ 521
1.1.4.16 Configuring LDP Session Protection................................................................................................................... 522
1.1.4.17 Configuring LDP-IGP Synchronization............................................................................................................... 523
1.1.4.17.1 Enabling LDP-IGP Synchronization.................................................................................................................. 523
1.1.4.17.2 (Optional) Blocking LDP-IGP Synchronization on an Interface............................................................. 526
1.1.4.17.3 (Optional) Setting a Value for the Hold-down Timer.............................................................................. 527
1.1.4.17.4 (Optional) Setting a Value for the Hold-max-cost Timer....................................................................... 528
1.1.4.17.5 (Optional) Setting the Delay Timer Value.................................................................................................... 530
1.1.4.17.6 (Optional) Configuring Graceful Deletion for LDP Sessions...................................................................531
1.1.4.17.7 Verifying the Configuration................................................................................................................................ 532
1.1.4.18 Configuring the LDP GR Helper........................................................................................................................... 532
1.1.4.18.1 Enabling LDP GR.................................................................................................................................................... 533
1.1.4.18.2 (Optional) Configuring GR Helper Timers.................................................................................................... 533
1.1.4.18.3 Verifying the Configuration................................................................................................................................ 535
1.1.4.19 Configuring the LDP Entropy Label Capability............................................................................................... 535

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. ix


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.4.19.1 Configuring an LSR to Deeply Parse IP Packets.......................................................................................... 535


1.1.4.19.2 Configuring an LDP Entropy Label on the Ingress of an LSP................................................................. 536
1.1.4.19.3 Enabling the Entropy Label Capability on the Egress of an LSP........................................................... 536
1.1.4.19.4 Verifying the Configuration................................................................................................................................ 537
1.1.4.20 Configuring LDP over TE........................................................................................................................................ 537
1.1.4.20.1 Configuring IGP Shortcut.................................................................................................................................... 538
1.1.4.20.2 Configuring Forwarding Adjacency................................................................................................................. 540
1.1.4.20.3 Creating Remote LDP Peers on Both Ends of a TE Tunnel......................................................................541
1.1.4.20.4 (Optional) Configuring a Policy for Triggering LSP Establishment...................................................... 541
1.1.4.20.5 Verifying the Configuration................................................................................................................................ 542
1.1.4.21 Configuring LDP Security Features......................................................................................................................543
1.1.4.21.1 Configuring LDP MD5 Authentication............................................................................................................544
1.1.4.21.2 Configuring LDP Keychain Authentication for a TCP Connection.........................................................547
1.1.4.21.3 Configuring LDP Keychain Authentication for a UDP Connection....................................................... 549
1.1.4.21.4 Configuring LDP TCP-AO Authentication...................................................................................................... 550
1.1.4.21.5 Configuring the LDP GTSM................................................................................................................................ 551
1.1.4.21.6 Configuring Whitelist Session-CAR for LDP.................................................................................................. 552
1.1.4.21.7 Configuring Micro-Isolation CAR for LDP......................................................................................................553
1.1.4.21.8 Verifying the Configuration................................................................................................................................ 553
1.1.4.22 Configuring an mLDP P2MP Tunnel................................................................................................................... 554
1.1.4.22.1 Configuring a Manual mLDP P2MP Tunnel..................................................................................................555
1.1.4.22.2 Configuring an Automatic mLDP P2MP Tunnel..........................................................................................558
1.1.4.22.3 (Optional) Configuring the Reliability Enhancement Function for a P2MP Tunnel....................... 561
1.1.4.22.4 (Optional) Enabling the Capability of Establishing a Best-Effort Path for an mLDP P2MP Tunnel
......................................................................................................................................................................................................... 563
1.1.4.22.5 (Optional) Configuring a Timer for mLDP P2MP Tunnel Re-optimization....................................... 563
1.1.4.22.6 Verifying the Configuration................................................................................................................................ 564
1.1.4.23 Configuring mLDP P2MP FRR Link Protection................................................................................................ 564
1.1.4.23.1 Enabling mLDP P2MP FRR Link Protection...................................................................................................565
1.1.4.23.2 Enabling the Detection of Traffic with New mLDP MBB Incoming Labels....................................... 566
1.1.4.23.3 (Optional) Setting Timers for mLDP P2MP FRR Link Protection.......................................................... 566
1.1.4.23.4 Verifying the Configurations.............................................................................................................................. 568
1.1.4.24 Configuring Dynamic BFD to Monitor an mLDP P2MP Tunnel................................................................ 568
1.1.4.24.1 Enabling Dynamic BFD to Monitor an mLDP P2MP Tunnel...................................................................569
1.1.4.24.2 (Optional) Adjusting Dynamic BFD Parameters......................................................................................... 569
1.1.4.24.3 Verifying the Configuration................................................................................................................................ 570
1.1.4.25 Configuring LDP Traffic Statistics Collection................................................................................................... 570
1.1.4.25.1 Enabling LDP Traffic Statistics Collection......................................................................................................571
1.1.4.25.2 Verifying the Configuration................................................................................................................................ 571
1.1.4.26 Configuring mLDP P2MP Traffic Statistics Collection.................................................................................. 572
1.1.4.27 Configuring the Uniform or Pipe Mode for the MPLS Penultimate Hop...............................................573
1.1.4.28 Maintaining MPLS LDP........................................................................................................................................... 573
1.1.4.28.1 Disabling LDP Session Flapping Suppression............................................................................................... 574

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. x


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.4.28.2 Disabling LDP Interface Flapping Suppression............................................................................................ 574


1.1.4.28.3 Resetting LDP.......................................................................................................................................................... 574
1.1.4.28.4 Checking LSP Connectivity and Reachability................................................................................................575
1.1.4.29 Configuration Examples for MPLS LDP............................................................................................................. 575
1.1.4.29.1 Example for Configuring a Static LSP............................................................................................................. 575
1.1.4.29.2 Example for Configuring Local LDP Sessions............................................................................................... 580
1.1.4.29.3 Example for Configuring a Remote LDP Session........................................................................................ 584
1.1.4.29.4 Example for Establishing LSPs Through LDP................................................................................................588
1.1.4.29.5 Example for Configuring Transit LSPs Through an IP Prefix List........................................................... 592
1.1.4.29.6 Example for Configuring an LDP Inbound Policy....................................................................................... 596
1.1.4.29.7 Example for Configuring an Outbound LDP Policy....................................................................................601
1.1.4.29.8 Example for Configuring LDP Extension for Inter-Area LSPs..................................................................607
1.1.4.29.9 Example for Configuring Static BFD for LDP LSP....................................................................................... 614
1.1.4.29.10 Example for Configuring Dynamic BFD for LDP LSP.............................................................................. 620
1.1.4.29.11 Example for Configuring Dynamic BFD for LDP Tunnel........................................................................ 627
1.1.4.29.12 Example for Configuring LDP Auto FRR...................................................................................................... 633
1.1.4.29.13 Example for Configuring LDP Session Protection.................................................................................... 642
1.1.4.29.14 Example for Configuring LDP-IGP Synchronization.................................................................................646
1.1.4.29.15 Example for Configuring LDP GR...................................................................................................................654
1.1.4.29.16 Example for Configuring LDP over TE..........................................................................................................659
1.1.4.29.17 Example for Configuring an mLDP P2MP LSP.......................................................................................... 670
1.1.5 Seamless MPLS Configuration.................................................................................................................................... 676
1.1.5.1 Overview of Seamless MPLS....................................................................................................................................677
1.1.5.2 Feature Requirements for Seamless MPLS......................................................................................................... 677
1.1.5.3 Configuring Intra-AS Seamless MPLS................................................................................................................... 677
1.1.5.3.1 Configuring an AGG and a Core ABR as RRs..................................................................................................678
1.1.5.3.2 Enabling BGP Peers to Exchange Labeled IPv4 Routes...............................................................................679
1.1.5.3.3 Configuring a BGP LSP........................................................................................................................................... 679
1.1.5.3.4 (Optional) Configuring Traffic Statistics Collection for BGP LSPs.......................................................... 681
1.1.5.3.5 (Optional) Configuring the Protection Switching Function.......................................................................682
1.1.5.3.6 (Optional) Configuring the Egress Protection Function............................................................................. 694
1.1.5.3.7 Verifying the Configuration.................................................................................................................................. 696
1.1.5.4 Configuring Inter-AS Seamless MPLS................................................................................................................... 696
1.1.5.4.1 Configure an AGG as an RR................................................................................................................................. 697
1.1.5.4.2 Enabling BGP Peers to Exchange Labeled IPv4 Routes...............................................................................698
1.1.5.4.3 Configuring a BGP LSP........................................................................................................................................... 699
1.1.5.4.4 (Optional) Configuring Traffic Statistics Collection for BGP LSPs.......................................................... 701
1.1.5.4.5 (Optional) Configuring the Mode in Which a BGP Label Inherits the QoS Priority in an Outer
Tunnel Label................................................................................................................................................................................ 702
1.1.5.4.6 (Optional) Configuring the Protection Switching Function.......................................................................703
1.1.5.4.7 (Optional) Configuring the Egress Protection Function............................................................................. 716
1.1.5.4.8 Verifying the Configuration.................................................................................................................................. 717
1.1.5.5 Configuring Inter-AS Seamless MPLS+HVPN..................................................................................................... 718

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. xi


HUAWEI NetEngine9000
Configuration Guide Contents

1.1.5.5.1 Establishing an MP-EBGP Peer Relationship Between Each AGG and MASG.....................................719
1.1.5.5.2 Enabling BGP Peers to Exchange Labeled IPv4 Routes...............................................................................720
1.1.5.5.3 Configuring a BGP LSP........................................................................................................................................... 721
1.1.5.5.4 (Optional) Configuring Traffic Statistics Collection for BGP LSPs.......................................................... 723
1.1.5.5.5 (Optional) Configuring the Mode in Which a BGP Label Inherits the QoS Priority in an Outer
Tunnel Label................................................................................................................................................................................ 723
1.1.5.5.6 (Optional) Configuring the Protection Switching Function.......................................................................724
1.1.5.5.7 (Optional) Configuring the Egress Protection Function............................................................................. 739
1.1.5.5.8 Verifying the Configuration.................................................................................................................................. 741
1.1.5.6 Configuring Dynamic BFD to Monitor a BGP Tunnel..................................................................................... 741
1.1.5.6.1 Enabling an MPLS Device to Dynamically Establish a BGP BFD Session..............................................742
1.1.5.6.2 Configuring a Policy for Dynamically Establishing a BGP BFD Session................................................ 743
1.1.5.6.3 (Optional) Adjusting BGP BFD Parameters.....................................................................................................743
1.1.5.6.4 Verifying the Configuration of Dynamic BFD to Monitor a BGP Tunnel.............................................. 744
1.1.5.7 Maintaining Seamless MPLS....................................................................................................................................745
1.1.5.7.1 Checking Network Connectivity and Reachability........................................................................................ 745
1.1.5.7.2 Clearing the Traffic Statistics of BGP LSPs...................................................................................................... 745
1.1.5.8 Configuration Examples............................................................................................................................................ 746
1.1.5.8.1 Example for Configuring Intra-AS Seamless MPLS...................................................................................... 746
1.1.5.8.2 Example for Configuring Inter-AS Seamless MPLS.......................................................................................753
1.1.5.8.3 Example for Configuring Inter-AS Seamless MPLS+HVPN........................................................................ 762
1.1.5.8.4 Example for Configuring Dynamic BFD to Monitor a BGP Tunnel......................................................... 773
1.1.6 GMPLS UNI Configuration........................................................................................................................................... 781
1.1.6.1 Overview of GMPLS UNI........................................................................................................................................... 781
1.1.6.2 Feature Requirements for GMPLS UNI.................................................................................................................782
1.1.6.3 Configuring a GMPLS UNI Tunnel......................................................................................................................... 782
1.1.6.3.1 (Optional) Configuring PCE to Calculate a Path Crossing Both the IP and Optical Layers........... 784
1.1.6.3.2 Configuring a Service Interface........................................................................................................................... 785
1.1.6.3.3 Configuring LMP and an LMP Neighbor.......................................................................................................... 786
1.1.6.3.4 Configuring a Control Channel............................................................................................................................787
1.1.6.3.5 Configuring an Explicit Path................................................................................................................................. 789
1.1.6.3.6 Configuring a Forward GMPLS UNI Tunnel.................................................................................................... 791
1.1.6.3.7 Configuring a Reverse GMPLS UNI Tunnel..................................................................................................... 792
1.1.6.3.8 Verifying the GMPLS UNI Tunnel Configuration........................................................................................... 793
1.1.6.4 Maintaining GMPLS UNI........................................................................................................................................... 793
1.1.6.4.1 Disabling a GMPLS UNI Tunnel...........................................................................................................................793
1.1.6.4.2 Resetting a GMPLS UNI Tunnel...........................................................................................................................794
1.1.6.5 Configuration Examples for GMPLS UNI Tunnels............................................................................................ 794
1.1.6.5.1 Configuring an In-Band GMPLS UNI Tunnel.................................................................................................. 794
1.1.6.5.2 Configuring an Out-of-Band GMPLS UNI Tunnel......................................................................................... 801

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. xii


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1 Configuration

1.1 MPLS

1.1.1 About This Document

Purpose
This document provides the basic concepts, configuration procedures, and
configuration examples in different application scenarios of the MPLS feature.

Licensing Requirements
For details about the License, see the License Guide.
● Enterprise users: License Usage Guide

Related Version
The following table lists the product version related to this document.

Product Name Version

HUAWEI NetEngine9000 V800R023C00SPC500

iMaster NCE-IP V100R023C00SPC100

Intended Audience
This document is intended for:

● Data configuration engineers


● Commissioning engineers

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 1


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Network monitoring engineers


● System maintenance engineers

Security Declaration
● Notice on Limited Command Permission
The documentation describes commands when you use Huawei devices and
make network deployment and maintenance. The interfaces and commands
for production, manufacturing, repair for returned products are not described
here.
If some advanced commands and compatible commands for engineering or
fault location are incorrectly used, exceptions may occur or services may be
interrupted. It is recommended that the advanced commands be used by
engineers with high rights. If necessary, you can apply to Huawei for the
permissions to use advanced commands.
● Encryption algorithm declaration
The encryption algorithms DES/3DES/RSA (with a key length of less than
3072 bits)/MD5 (in digital signature scenarios and password encryption)/
SHA1 (in digital signature scenarios) have a low security, which may bring
security risks. If protocols allowed, using more secure encryption algorithms,
such as AES/RSA (with a key length of at least 3072 bits)/SHA2/HMAC-SHA2
is recommended.
For security purposes, insecure protocols Telnet, FTP, and TFTP as well as
weak security algorithms in BGP, LDP, PECP, MSDP, DCN, TCP-AO, MSTP, VRRP,
E-Trunk, AAA, IPsec, BFD, QX, port extension, SSH, SNMP, IS-IS, RIP, SSL, NTP,
OSPF, and keychain features are not recommended. To use such weak security
algorithms, run the undo crypto weak-algorithm disable command to enable
the weak security algorithm function. For details, see the Configuration Guide.
● Password configuration declaration
– When the password encryption mode is cipher, avoid setting both the
start and end characters of a password to "%^%#". This causes the
password to be displayed directly in the configuration file.
– To further improve device security, periodically change the password.
● MAC addresses and Public IP addresses Declaration
– For purposes of introducing features and giving configuration examples,
the MAC addresses and public IP addresses of real devices are used in the
product documentation. Unless otherwise specified, these addressees are
used as examples only.
– Open-source and third-party software may contain public addresses
(including public IP addresses, public URLs/domain names, and email
addresses), but this product does not use these public addresses. This
complies with industry practices and open-source software usage
specifications.
– For purposes of implementing functions and features, the device uses the
following public IP addresses:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 2


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Table 1-1 Public IP Address List

Public IP address Description

http://www.huawei.com Huawei official website address

support_e@huawei.com Huawei Enterprise User Service


Mailbox

● Personal data declaration


– Your purchased products, services, or features may use users' some
personal data during service operation or fault locating. You must define
user privacy policies in compliance with local laws and take proper
measures to fully protect personal data.
– When discarding, recycling, or reusing a device, back up or delete data on
the device as required to prevent data leakage. If you need support,
contact after-sales technical support personnel.
● Preset Certificate Usage Declaration
Huawei certificates preset on Huawei devices during production are
mandatory identity credentials for Huawei devices. The usage declarations of
preset certificates are as follows:
– Huawei preset certificates are used only to establish initial security
channels for devices to connect to the customer network and to connect
devices in the deployment phase. Huawei does not promise or guarantee
the security of preset certificates.
– The customer shall handle the security risks and security events caused
by using Huawei preset certificates as service certificates and be
responsible for the consequences.
– Huawei preset certificates expire from 2041. You can run the display pki
cert_list domain default command to check the actual validity period.
– After a preset certificate expires, services using the certificate are
interrupted.
– It is recommended that customers deploy the PKI system to issue
certificates for devices and software on the live network and manage the
lifecycle of the certificates. To ensure security, certificates with short
validity periods are recommended.
– The Huawei PKI root certificate is used for initial configuration and
connection of Huawei products during network access. You are advised to
disable this certificate after completing the network access configuration
and configuring a CA certificate you have obtained for the products. (This
certificate can be re-enabled if a new Huawei device needs to be verified
for network access.) If you do not disable this certificate, security risks
exist and you should be liable for the consequences caused by related
security events.
● Product Life Cycle
Huawei's regulations on product life cycle are subject to the Product End of
Life Policy. For details about the policy, see the following website: https://
support.huawei.com/ecolumnsweb/en/warranty-policy
● Vulnerability

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 3


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Huawei's regulations on product vulnerability management are subject to


"Vul. Response Process". For details about the policy, see the following
website: https://www.huawei.com/en/psirt/vul-response-process
For enterprise customers who need to obtain vulnerability information, visit:
https://securitybulletin.huawei.com/enterprise/en/security-advisory

● Life Cycle of Product Documentation


Huawei released the Huawei Product Documentation Lifecycle Policy for after-
sales customer documentation. For details about this policy, see the website
of Huawei's official website: https://support.huawei.com/enterprise/en/
bulletins-website/ENEWS2000017761
● Preconfigured Digital Certificate
Huawei has released the Huawei Preset Digital Certificate Disclaimer for the
preconfigured digital certificates delivered with devices. For details about the
disclaimer, visit the following website: https://support.huawei.com/
enterprise/en/bulletins-service/ENEWS2000015789
● Device Upgrade and Patch Installation Declaration
When upgrading or installing a patch on a device, use the software digital
signature (OpenPGP) verification tool to verify the software. To prevent
software from being tampered with or replaced, you are advised to perform
this operation.
● Feature declaration
– The NetStream feature may be used to analyze the communication
information of terminal customers for network traffic statistics and
management purposes. Before enabling the NetStream feature, ensure
that it is performed within the boundaries permitted by applicable laws
and regulations. Effective measures must be taken to ensure that
information is securely protected.
– The mirroring feature may be used to analyze the communication
information of terminal customers for a maintenance purpose. Before
enabling the mirroring function, ensure that it is performed within the
boundaries permitted by applicable laws and regulations. Effective
measures must be taken to ensure that information is securely protected.
– The packet header obtaining feature may be used to collect or store
some communication information about specific customers for
transmission fault and error detection purposes. Huawei cannot offer
services to collect or store this information unilaterally. Before enabling
the function, ensure that it is performed within the boundaries permitted
by applicable laws and regulations. Effective measures must be taken to
ensure that information is securely protected.
● Reliability design declaration
Network planning and site design must comply with reliability design
principles and provide device- and solution-level protection. Device-level
protection includes planning principles of dual-network and inter-board dual-
link to avoid single point or single link of failure. Solution-level protection
refers to a fast convergence mechanism, such as FRR and VRRP. If solution-
level protection is used, ensure that the primary and backup paths do not
share links or transmission devices. Otherwise, solution-level protection may
fail to take effect.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 4


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Special Declaration
● This document package contains information about the NE9000. For details
about hardware, such as devices or boards sold in a specific country/region,
see Hardware Description.
● This document serves only as a guide. The content is written based on device
information gathered under lab conditions. The content provided by this
document is intended to be taken as general guidance, and does not cover all
scenarios. The content provided by this document may be different from the
information on user device interfaces due to factors such as version upgrades
and differences in device models, board restrictions, and configuration files.
The actual user device information takes precedence over the content
provided by this document. The preceding differences are beyond the scope of
this document.
● The maximum values provided in this document are obtained in specific lab
environments (for example, only a certain type of board or protocol is
configured on a tested device). The actually obtained maximum values may
be different from the maximum values provided in this document due to
factors such as differences in hardware configurations and carried services.
● Interface numbers used in this document are examples. Use the existing
interface numbers on devices for configuration.
● The pictures of hardware in this document are for reference only.
● The supported boards are described in the document. Whether a
customization requirement can be met is subject to the information provided
at the pre-sales interface.
● In this document, public IP addresses may be used in feature introduction and
configuration examples and are for reference only unless otherwise specified.
● The configuration precautions described in this document may not accurately
reflect all scenarios.
● Log Reference and Alarm Reference respectively describe the logs and alarms
for which a trigger mechanism is available. The actual logs and alarms that
the product can generate depend on the types of services it supports.
● All device dimensions described in this document are designed dimensions
and do not include dimension tolerances. In the process of component
manufacturing, the actual size is deviated due to factors such as processing or
measurement.

Symbol Conventions
The symbols that may be found in this document are defined as follows.

Symbol Description

Indicates a hazard with a high level of risk which, if


not avoided, will result in death or serious injury.

Indicates a hazard with a medium level of risk


which, if not avoided, could result in death or
serious injury.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 5


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Symbol Description

Indicates a hazard with a low level of risk which, if


not avoided, could result in minor or moderate
injury.

Indicates a potentially hazardous situation which, if


not avoided, could result in equipment damage,
data loss, performance deterioration, or
unanticipated results.
NOTICE is used to address practices not related to
personal injury.

Supplements the important information in the main


text.
NOTE is used to address information not related to
personal injury, equipment damage, and
environment deterioration.

Command Conventions
The command conventions that may be found in this document are defined as
follows.

Convention Description

Boldface The keywords of a command line are in boldface.

Italic Command arguments are in italics.

[] Items (keywords or arguments) in brackets [ ] are


optional.

{ x | y | ... } Optional items are grouped in braces and separated


by vertical bars. One item is selected.

[ x | y | ... ] Optional items are grouped in brackets and


separated by vertical bars. One item is selected or
no item is selected.

{ x | y | ... }* Optional items are grouped in braces and separated


by vertical bars. A minimum of one item or a
maximum of all items can be selected.

[ x | y | ... ]* Optional items are grouped in brackets and


separated by vertical bars. Several items or no item
can be selected.

&<1-n> The parameter before the & sign can be repeated 1


to n times.

# A line starting with the # sign is comments.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 6


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Change History
Changes between document issues are cumulative. The latest document issue
contains all the changes made in earlier issues.

Product Version Issue Release Date

V800R023C00SPC500 01 2023-09-30

1.1.2 MPLS Common Configurations


Multiprotocol Label Switching (MPLS) configurations for the forwarding plane
involve the MPLS time to live (TTL) handling modes, penultimate hop popping
(PHP), and MPLS maximum transmission unit (MTU).

1.1.2.1 Overview of MPLS


MPLS speeds up network forwarding and is used to transmit various new services.
Multiprotocol Label Switching (MPLS) takes place between the data link layer and
network layer in the TCP/IP protocol stack; it provides the IP layer with the
connectivity service and obtains services from the link layer. MPLS supports label
switching between multiple network protocols, as implied by its name. A label is a
short, fixed-length connection identifier, which is locally significant only. It is
similar to a data link connection identifier (DLCI) in Frame Relay and a virtual
path identifier (VPI)/virtual channel identifier (VCI) in Asynchronous Transfer
Mode (ATM). Labels are encapsulated between the data link layer and network
layer, and
MPLS is independent of data link layer protocols and can use any Layer 2 media
to transmit packets.
MPLS is derived from the Internet Protocol version 4 (IPv4), but its core
technologies can be extended to support multiple network protocols, such as the
Internet Protocol version 6 (IPv6), Internet Packet Exchange (IPX), Appletalk,
DECnet, and Connectionless Network Protocol (CLNP). "Multiprotocol" in MPLS
means that the protocol supports multiple network protocols.

1.1.2.2 Feature Requirements for MPLS Common

1.1.2.3 Specifying an MPLS TTL Handling Mode


An MPLS time to live (TTL) handling mode defines how a node propagates TTL
information between the IP header and label stack in each MPLS packet.

Usage Scenario
MPLS nodes handle TTLs as follows:
● Nodes process TTLs in either uniform or pipe mode before the TTLs expire.
You can configure an MPLS TTL processing mode on the ingress PE.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 7


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configure the pipe mode on the ingress for an MPLS virtual private network
(VPN) so that the MPLS backbone network structure can be hidden, which
improves network security.
● Nodes process expired MPLS TTLs and reply with ICMP reply messages.
On an ISP backbone network that transmits VPN traffic over MPLS tunnels,
after an MPLS node receives an MPLS packet with two labels and an expired
TTL, the MPLS node replies to the source with an ICMP reply message.
Because the MPLS node cannot send the ICMP reply message over IP routes,
the ICMP reply message travels along an LSP to the egress. The egress
forwards the ICMP reply message to the source over IP routes.
On an ISP backbone that transmits VPN traffic over MPLS tunnels, after an
MPLS node receives MPLS packets each with a single label and an expired
TTL, the MPLS node replies to the source with an ICMP reply message over IP
routes, without forwarding the message to the egress along the LSP. If the
MPLS node has no reachable route to the transmit end, the ICMP reply
message is discarded. As a result, traceroute results do not contain node
information.
On an autonomous system boundary router (ASBR) in the inter-AS VPN
Option B and a superstratum provider edge (SPE) of , each MPLS packet that
contains VPN information carries a single label. If the TTL in the MPLS packet
expires, a node replies with an ICMP reply message over an IP route, and the
ICMP reply message does not carry MPLS node information. Therefore, before
you perform the traceroute operation on the ASBR or SPE, run the undo ttl
expiration pop command on the ASBR or SPE to enable ICMP reply messages
to travel along original LSPs.

Pre-configuration Task
Before configuring an MPLS TTL processing mode, configure MPLS or the MPLS IP
VPN.

1.1.2.3.1 Specifying the TTL Mode for MPLS


MPLS nodes process TTLs in either uniform or pipe mode.

Context
You can configure an MPLS TTL processing mode on the ingress PE or egress PE.

NOTE

After the TTL mode of an MPLS public network or VPN is changed, the new mode takes
effect only for new MPLS LDP sessions. To make the change take effect for previously
established MPLS LDP sessions, run the reset mpls ldp command to reestablish the
sessions.

Procedure
● Set a TTL processing mode for MPLS LDP packets.
Perform the following steps on the ingress:
a. Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 8


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

b. Run mpls
The MPLS view is displayed.
c. Run mpls ldp ttl-mode { pipe | uniform }
An MPLS TTL processing mode is set.
d. Run commit
The configuration is committed.
● Set a TTL processing mode for MPLS TE packets.
Perform the following steps on the ingress:
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te ttl-mode { pipe | uniform }
An MPLS TTL processing mode is set.
d. Run commit
The configuration is committed.
● Set a TTL processing mode for an MPLS SR.
Perform the following steps on the ingress PE:
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls sr ttl-mode { pipe | uniform }
An MPLS TTL processing mode is set.
d. Run commit
The configuration is committed.
● Set a TTL processing mode for a BGP LSP egress.
Perform the following steps on the egress PE:
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls bgp ttl-mode { pipe | uniform } egress
A TTL processing mode is set for a BGP LSP egress.
d. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 9


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

When IP packets in a VPN instance enter an MPLS tunnel, to configure the


mode of processing the MPLS TTL carried in a private network label, run the
ttl-mode command. In addition, the mpls te ttl-mode or mpls ldp ttl-mode
command configures the mode of processing the MPLS TTL in public network
labels. The combinations of TTL processing modes are as follows:

– The MPLS TTL processing modes for both the private network label and
public network label are uniform.
When an IP packet passes through an MPLS network, the IP TTL
decreases by one on the ingress and is mapped to the MPLS TTL of the
private network label. The MPLS TTL of the private network label is
mapped to the MPLS TTL of the public network label. Then, the packet is
processed in the standard TTL mode on the MPLS network. The egress
removes the public network label, copies and pastes the MPLS TTL in the
public network label to the MPLS TTL in the private network label, and
removes the private network label. The egress then reduces the MPLS TTL
by one and changes the IP TTL to a smaller value of the MPLS TTL and IP
TTL. Figure 1-1 illustrates such an MPLS TTL processing mode.

Figure 1-1 MPLS TTL processing mode 1

– The MPLS TTL processing mode for the private network label is pipe, and
that for the public network label is uniform.
When an IP packet passes through an MPLS network, the ingress reduces
the IP TTL and copies and pastes the MPLS TTL that is fixed at 255 in the
private network label to the MPLS TTL in the public network label. Then,
the packet is processed in the standard TTL mode on the MPLS network.
The egress removes the public network label, copies and pastes the MPLS
TTL to the MPLS TTL in the private network label, and removes the

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 10


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

private network label. The IP TTL is reduced by one only by the egress.
Figure 1-2 illustrates such an MPLS TTL processing mode.

Figure 1-2 MPLS TTL processing mode 2

– The MPLS TTL processing mode for the private network label is uniform,
and that for the public network label is pipe.
When an IP packet passes through an MPLS network, the ingress reduces
the IP TTL by one and copies and pastes the IP TTL to the MPLS TTL of
the private network label. The MPLS TTL of the public network label is
fixed at 255. Then, the packet is processed in the standard TTL mode on
the MPLS network. The egress removes the public network label and
private network label in sequence, reduces the MPLS TTL by one, and
changes the IP TTL to a smaller value of the MPLS TTL and the IP TTL.
Figure 1-3 illustrates such an MPLS TTL processing mode.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 11


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-3 MPLS TTL processing mode 3

– The MPLS TTL processing modes for both the private network label and
public network label are pipe.
When an IP packet passes through an MPLS network, the IP TTL
decreases by one on the ingress. The MPLS TTLs in the private network
label and public network label are fixed at 255. Then, the packet is
processed in the standard TTL mode on the MPLS network. The egress
removes the public network label and private network label in sequence.
The IP TTL is reduced by one only by the egress. Figure 1-4 illustrates
such an MPLS TTL processing mode.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 12


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-4 MPLS TTL processing mode 4

----End

1.1.2.3.2 Configuring the Path for ICMP Reply Messages


The path along which ICMP reply messages travel must be specified on both the
ingress and egress.

Context
Perform the following steps on the ingress and egress:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Perform either of the following operations:


● To enable a node to transmit ICMP reply messages over IP routes, run the ttl
expiration pop command.
● To enable a node to transmit ICMP reply messages along an LSP, run the
undo ttl expiration pop command.

Step 4 Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 13


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.

----End

1.1.2.4 Configuring a Packet Load Balancing Mode


You can configure a load balancing mode for packets carrying MPLS labels on a P.

Context
The router supports per-flow and per-packet load balancing modes.
● Per-packet load balancing: evenly balances packets, regardless of packet
sequences.
● Per-destination load balancing: balances packets and forwards them in correct
sequence.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run load-balance { flow | packet } { slot slot-id | all }
A packet load balancing mode is configured.
Step 3 Run commit
The configuration is committed.

----End

1.1.2.5 Configuring Packet Fragmentation on an MPLS Label Switching Node


This section describes how to configure packet fragmentation on an MPLS P node.

Context
As the network scale expands and network complexity increases, devices of
different specifications are deployed on the same network. If the MTU configured
on the ingress PE is greater than the MRU configured on the egress PE, and if the
egress PE is configured with the disposing mechanism that discards packets with
sizes larger than the MRU, when the MPLS label switching node is not enabled
with the packet fragmentation function, the packets are transparently transmitted
from the ingress node to the egress node, and packet discarding may occur.

NOTE

In VS mode, this configuration task is supported only by the admin VS.

Prerequisites
Complete the following task:
● Configure MPLS functions.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 14


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run slot slot-id
The slot view is displayed.
Step 3 Run mpls fragment enable
MPLS fragmentation is enabled for the MPLS label switching node.
The configuration takes effect only on MPLS packets that have no more than five
labels and all inner labels are in the IPv4 format.
Step 4 Run commit
The configuration is committed.

----End

1.1.2.6 Configuring the TTL and EXP Processing Mode When the Explicit Null
Label Is Used
This section describes how to configure the TTL and EXP processing mode when
the explicit null label is used.

Context
If the explicit null label and the uniform mode are configured, an egress PE copies
the TTL and EXP values to the IP or inner packets before forwarding them out of a
public network. If the explicit null label and the pipe mode are configured, an
egress PE does not copy the TTL or EXP values to the IP or inner packets.

NOTE

In VS mode, this configuration task is supported only by the admin VS.

Prerequisites
Complete the following tasks:
● Configure MPLS functions.
● Configure the egress PE to assign the explicit null label upstream.

Precautions
The configuration takes effect only on the egress PE.

Procedure
Step 1 Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 15


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run label advertise explicit-null

The egress PE is enabled to assign the explicit null label upstream.

Step 4 Run explicit-null-label ttl-mode { uniform | pipe }

The mode used by the egress PE to process TTL values is configured.

uniform: The egress PE copies the TTL value in an MPLS packet to the TTL field in
the IP or inner packet.

pipe: The egress PE does not copy the TTL value in an MPLS packet to the TTL
field in the IP or inner packet.

Step 5 Run explicit-null-label exp-mode { uniform | pipe }

The mode used by the egress PE to process EXP values is configured.

uniform: The egress PE copies the EXP value in an MPLS packet to the EXP field in
the IP or inner packet.

pipe: The egress PE does not copy the EXP value in an MPLS packet to the EXP
field in the IP or inner packet.

Step 6 Run commit

The configuration is committed.

----End

1.1.2.7 Configuring TTL and EXP Processing Modes for MPLS Packets with
Label 7
This section describes how to configure the mode of handling the TTL and EXP
fields carried in MPLS packets with label 7 on the egress PE.

Prerequisites
When MPLS packets with label 7 are sent out of a public network, the mode of
handling TTL and EXP fields can be set to uniform or pipe.

NOTE

In VS mode, this configuration task is supported only by the admin VS.

Completing the following tasks:

● Configure the MPLS functions.

Procedure
Step 1 Run system-view

The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 16


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run mpls


The MPLS view is displayed.
Step 3 Run entropy-label ttl-mode { uniform | pipe }
A mode of handling the TTL field in MPLS packets with label 7 is set.
● uniform: The egress reduces the MPLS TTL by one, compares it with the IP
TTL, and propagates the smaller value to the IP TTL field before forwarding
the packet.
● pipe: The egress reduces the IP TTL by one, without propagating the MPLS
TTL to the IP TTL.
Step 4 Run entropy-label exp-mode { uniform | pipe }
A mode of handling the EXP field in MPLS packets with label 7 is set.
● uniform: The egress PE copies the EXP value in an MPLS packet to the EXP
field in the IP or inner packet.
● pipe: The egress PE does not copy the EXP value in an MPLS packet to the
EXP field in the IP or inner packet.
Step 5 Run commit
The configuration is committed.

----End

1.1.2.8 Enabling the Mode of Decoupling a Service Next Hop from LDP and
SR-MPLS BE
This section describes how to configure the mode of decoupling a service next hop
from LDP and SR-MPLS BE.

Context
When private and public network separation services recurse to an LDP or SR-
MPLS BE tunnel, packets may be dropped due to a change in the outbound
interface of the LDP or SR-MPLS BE tunnel. To reduce the packet loss rate and
improve link change-induced convergence performance, decouple the next hops
from the LDP or SR-MPLS BE.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp-srbe convergence enhance
The mode of decoupling a service next hop from LDP and SR-MPLS BE is enabled.
Step 3 Run commit
The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 17


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Result
● Run the display mpls convergence mode command to check whether the
mode of decoupling a service next hop from LDP and SR-MPLS BE has taken
effect.

1.1.2.9 Enabling Private-and-Public-Network Separation for MPLS Services


This section describes how to configure private-and-public-network separation for
MPLS services.

Context
When both VPLS and MPLS services are configured, private-and-public-network
separation for MPLS services triggers the generation of a FES table on the
forwarding plane to implement the separation of the private and public networks
for MPLS services. This function helps improve convergence performance if a
tunnel fails.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls multistep separate enable
Private-and-public-network separation is enabled for MPLS services.
Before running this command, run the mpls vpls convergence separate enable
command to enable VPLS public-and-private network decoupling.
Step 3 Run commit
The configuration is committed.

----End

1.1.2.10 Optimizing MPLS


Optimizing MPLS includes the label value related to the penultimate hop popping
(PHP) function and the MPLS maximum transmission unit (MTU) configured on
interfaces.

Usage Scenario
The following MPLS parameters can be adjusted:
● Labels related to penultimate hop popping (PHP)
The PHP function is configured on the egress. The egress assigns labels to the
penultimate node based on the PHP status.
● MPLS maximum transmission unit (MTU) on MPLS interfaces
The MPLS MTU defines the maximum number of bytes in an MPLS packet
that an interface can forward without fragmenting the packet. The default
MPLS MTU on an interface is equal to the interface MTU.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 18


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Pre-configuration Task
Before adjusting MPLS parameters, configure MPLS.

1.1.2.10.1 Configuring PHP


When you configure penultimate hop popping (PHP), specify a label that the
egress assigns to the penultimate hop.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run label advertise { explicit-null | implicit-null | non-null }

The label assigned to the penultimate node is specified.

● explicit-null: disables PHP. If this parameter is configured, the egress assigns


an explicit null label with value 0 to the penultimate node. explicit-null
supports MPLS QoS. Setting this parameter helps reduce label resource
consumption on the egress and prevents Exp value loss. Given this, when the
QoS attributes of an end-to-end service need to be carried in the EXP field of
labels, you can specify this parameter.
● non-null: disables PHP. If this parameter is configured, the egress assigns a
label with a value greater than or equal to 16 to the penultimate node. The
non-null label consumes resources on the egress, which is not recommended.
This parameter can be specified when the egress needs to identify services
based on labels.
NOTE

PHP takes effect on LSPs that are to be established, but not on existing LSPs.

Step 4 Run commit

The configuration is committed.

----End

1.1.2.10.2 Configuring an MPLS MTU on an Interface


An MPLS MTU can be configured on an interface to determine the maximum
number of bytes in an MPLS packet that an interface can forward without
fragmenting the packet.

Context
The MPLS MTU is a forwarding plane parameter and is irrelevant to LSP
establishment. The dependency between the MPLS MTU and the interface MTU is
as follows:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 19


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● If no MPLS MTU is set and an interface MTU is set on an interface, the


interface MTU is used.
● If an MPLS MTU and an interface MTU are set on an interface, the smaller
value between the MPLS MTU and interface MTU is used.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The view of an MPLS-enabled interface is displayed.

Step 3 Run mpls mtu mtu

An MPLS MTU is set on the interface.

The configured MPLS MTU takes effect immediately, and there is no need to
restart the interface.

NOTE

If the MPLS MTU configured using the mpls mtu command is used as the MPLS forwarding
MTU, run the mpls path-mtu independent command to allow the MPLS MTU to take
effect without being affected the interface MTU. The mpls path-mtu independent
command is used when a Huawei device communicates with a non-Huawei device, which
prevents low MPLS forwarding efficiency stemming from different MTU implementations.

Step 4 Run commit

The configuration is committed.

----End

1.1.2.10.3 Verifying the Configuration of Optimizing MPLS


After you adjust MPLS parameters, verify MPLS-enabled interface information.

Prerequisites
MPLS parameters have been adjusted.

Procedure
Step 1 Run the display mpls rsvp-te interface [ interface-type interface-number ]
command to check MPLS TE-enabled interface information, including the interface
MTU.

Step 2 Run the display mpls ldp interface [ interface-type interface-number | verbose ]
command to check the MTU information of MPLS LDP-enabled interfaces.

Step 3 Run the display mpls interface [ interface-type interface-number ] [ verbose ]


command to check MPLS-enabled interface information.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 20


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.2.11 Configuring MPLS Resource Threshold-related Alarms


MPLS resource threshold-related alarms can be configured on a device to enable
the device to report an alarm if the number of MPLS resources of a specified type
reaches the upper limit. The alarms facilitate operation and maintenance.

Usage Scenario
If the proportion of used MPLS resources, such as LSPs and dynamic labels to all
supported ones reaches a specified upper limit, new MPLS services may fail to be
established because of insufficient resources. To facilitate operation and
maintenance, an upper alarm threshold of MPLS resource usage can be set. If
MPLS resource usage reaches the specified upper alarm threshold, an alarm is
generated.

Pre-configuration Tasks
Before configuring MPLS resource threshold-related alarms, configure basic MPLS
functions.

1.1.2.11.1 Configuring Alarm Thresholds for LDP LSPs


This section describes how to configure alarm thresholds for Label Distribution
Protocol (LDP) label switched paths (LSPs).

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls ldp-lsp-number threshold-alarm upper-limit upper-limit-value lower-
limit lower-limit-value
The upper and lower thresholds of alarms for LDP LSP usage are configured.
The parameters in this command are described as follows:
● upper-limit-value specifies the upper threshold of alarms for LDP LSP usage.
An alarm is generated when the proportion of established LDP LSPs to total
supported LDP LSPs reaches the upper limit.
● lower-limit-value specifies the lower threshold of clear alarms for LDP LSP
usage. A clear alarm is generated when the proportion of established LDP
LSPs to total supported LDP LSPs falls below the lower limit.
● The value of upper-limit-value must be greater than that of lower-limit-value.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 21


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

● This command configures the alarm threshold for LDP LSP usage. The alarm that the
number of LSPs reached the upper threshold is generated only when the snmp-agent
trap enable feature-name mpls_lspm trap-name { hwmplslspthresholdexceed }
command is configured, and the actual LDP LSP usage reaches the upper limit of the
alarm threshold. The alarm that the number of LSPs fell below the lower threshold is
generated only when the snmp-agent trap enable feature-name mpls_lspm trap-
name { hwmplslspthresholdexceedclear } command is configured, and the actual LDP
LSP usage falls below the lower limit of the clear alarm threshold.
● After the snmp-agent trap enable feature-name mpls_lspm trap-name
{ hwmplslsptotalcountexceed | hwmplslsptotalcountexceedclear } command is run
to enable LSP limit-crossing alarm and LSP limit-crossing clear alarm, an alarm is
generated in the following situations:
– If the total number of LDP LSPs reaches the upper limit, a limit-crossing alarm is
generated.
– If the total number of LDP LSPs falls below 95% of the upper limit, a limit-crossing
clear alarm is generated.

Step 4 Run commit


The configuration is committed.

----End

1.1.2.11.2 Configuring Alarm Thresholds for Dynamic Labels


This section describes how to set the dynamic label thresholds for triggering an
alarm. If the number of dynamic labels that the system uses reaches a specific
threshold, the system generates an alarm, which facilitates operation and
maintenance.

Context
If dynamic labels run out but the system receives new dynamic label requests, the
system fails to satisfy the requests because the dynamic labels are insufficient. The
module that fails to be assigned labels works abnormally. The modules that apply
for labels include MPLS TE, MPLS LDP, BGP, L3VPN and L2VPN.
To help facilitate operation and maintenance, you can set dynamic label
thresholds for triggering alarms to alert users.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls dynamic-label-number threshold-alarm upper-limit upper-limit-value
lower-limit lower-limit-value
The thresholds for triggering dynamic label alarms are set.
You can set the following parameters:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 22


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● upper-limit-value: a percent indicating the upper limit of dynamic labels. If


dynamic label usage reaches the upper limit, an alarm is generated. An upper
limit less than or equal to 95% is recommended.
● lower-limit-value: a percent indicating the lower limit of dynamic labels. If
dynamic label usage falls below the lower limit, an alarm is generated.
● The upper-limit-value must be greater than the lower-limit-value.
NOTE

● Each command only configures the trigger conditions for an alarm and its clear alarm.
Although trigger conditions are met, the alarm and its clear alarm can be generated
only after the snmp-agent trap enable feature-name mpls_lspm trap-name
{ hwMplsDynamicLabelThresholdExceed |
hwMplsDynamicLabelThresholdExceedClear } command is run to enable the device to
generate a dynamic label insufficiency alarm and its clear alarm.
● After the snmp-agent trap enable feature-name mpls_lspm trap-name
{ hwMplsDynamicLabelTotalCountExceed |
hwMplsDynamicLabelTotalCountExceedClear } command is run to enable the device
to generate limit-reaching alarms and their clear alarms, the following situations occur:
– If the number of dynamic labels reaches the maximum number of dynamic labels
supported by a device, a limit-reaching alarm is generated.
– If the number of dynamic labels falls below 95% of the maximum number of
dynamic labels supported by the device, a clear alarm is generated.

Step 4 Run commit

The configuration is committed.

----End

1.1.2.11.3 Configuring Conditions That Trigger LDP Resource Threshold-Reaching


Alarms
Conditions that trigger LDP resource threshold-reaching alarms can be configured.
If the number of remote LDP adjacencies or the number of outsegment entries
reaches a specified upper alarm threshold, the device can report an alarm to an
NMS.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run one or more of the following commands:


● Run mpls remote-adjacency-number threshold-alarm upper-limit upper-
limit-value lower-limit lower-limit-value
The upper and lower alarm thresholds for the number of remote LDP
adjacencies are configured.
● Run mpls outsegment-number threshold-alarm upper-limit upper-limit-
value lower-limit lower-limit-value

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 23


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The upper and lower alarm thresholds for the number of outsegment entries
are configured.
● Run mpls mldp-tree-number threshold-alarm upper-limit upper-limit-value
lower-limit lower-limit-value
The upper and lower alarm thresholds for the number of mLDP LSPs are
configured.
Configure conditions that trigger threshold-reaching alarms and the
corresponding clear alarms for other LDP resources.
● Run mpls mldp-branch-number threshold-alarm upper-limit upper-limit-
value lower-limit lower-limit-value
The upper and lower alarm thresholds for the number of mLDP sub-LSPs are
configured.

Configure the following parameters in the preceding command:

● upper-limit-value: specifies the upper alarm threshold of the proportion of


used LDP resources to all LDP resources supported by a device.
● lower-limit-value: specifies the lower alarm threshold for the proportion of
used LDP resources to all LDP resources supported by a device.
● upper-limit-value must be greater than lower-limit-value.

By default, the upper threshold for alarms is 80% and the lower threshold for
clear alarms is 75%.

NOTE

● Each command only configures the trigger conditions for an alarm and its clear alarm.
Although trigger conditions are met, the alarm and its clear alarm can be generated
only after the snmp-agent trap enable feature-name mpls_lspm trap-name
{ hwmplsresourcethresholdexceed | hwmplsresourcethresholdexceedclear }
command is run to enable the device to generate an LDP resource insufficiency alarm
and its clear alarm.
● After the snmp-agent trap enable feature-name mpls_lspm trap-name
{ hwmplsresourcetotalcountexceed | hwmplsresourcetotalcountexceedclear }
command is run to enable the device to generate an LDP resource insufficiency alarm
and its clear alarm, note the following issues:
– If the number of used LDP resources reaches the maximum number of LDP
resources supported by a device, a maximum number-reaching alarm is generated.
– If the number of used LDP resources falls to 95% or below of the maximum
number of LDP resources supported by a device, a clear alarm is generated.

Step 4 Run commit

The configuration is committed.

----End

1.1.2.11.4 Configuring Alarm Thresholds for other TE Resource


Conditions that trigger TE resource threshold-reaching alarms can be configured.
If the number of auto bypass tunnel interfaces, or the number of auto primary
tunnels reaches the upper alarm threshold, the device can report an alarm, which
facilitates operation and maintenance.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 24


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run one or more of the following commands:


● Run mpls autobypass-tunnel-number threshold-alarm upper-limit upper-
limit-value lower-limit lower-limit-value
The upper and lower alarm thresholds for the number of auto bypass tunnel
interfaces are configured.
● Run mpls autoprimary-tunnel-number threshold-alarm upper-limit upper-
limit-value lower-limit lower-limit-value
The upper and lower alarm thresholds for the number of auto primary
tunnels are configured.

Note the following issues when configuring trigger conditions:

● upper-limit-value: upper alarm threshold for the proportion of used TE


resources to all TE resources supported by a device.
● lower-limit-value: lower alarm threshold for the proportion of used TE
resources to all TE resources supported by a device.
● The upper alarm threshold must be greater than the lower alarm threshold.
NOTE

● Each command only configures the trigger conditions for an alarm and its clear alarm.
Although trigger conditions are met, the alarm and its clear alarm can be generated
only after the snmp-agent trap enable feature-name mpls_lspm trap-name
{ hwmplsresourcethresholdexceed | hwmplsresourcethresholdexceedclear }
command is run to enable the device to generate an MPLS resource insufficiency alarm
and its clear alarm.
● After the snmp-agent trap enable feature-name mpls_lspm trap-name
{ hwmplsresourcetotalcountexceed | hwmplsresourcetotalcountexceedclear }
command is run to enable the device to generate limit-reaching alarms and their clear
alarms, the following situations occur:
– If the number of used TE resources reaches the maximum number of TE resources
supported by a device, a limit-reaching alarm is generated.
– If the number of used TE resources falls below 95% of the maximum number of TE
resources supported by a device, a clear alarm is generated.

Step 4 Run commit

The configuration is committed.

----End

1.1.2.11.5 Configuring Alarm Thresholds for RSVP LSPs


This section describes how to configure alarm thresholds for RSVP LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 25


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls rsvp-lsp-number threshold-alarm upper-limit upper-limit-value
lower-limit lower-limit-value
The upper and lower thresholds of alarms for RSVP LSP usage are configured.
The parameters in this command are described as follows:
● upper-limit-value specifies the upper threshold of alarms for RSVP LSP usage.
An alarm is generated when the proportion of established RSVP LSPs to total
supported RSVP LSPs reaches the upper limit.
● lower-limit-value specifies the lower threshold of clear alarms for RSVP LSP
usage. A clear alarm is generated when the proportion of established RSVP
LSPs to total supported RSVP LSPs falls below the lower limit.
● The value of upper-limit-value must be greater than that of lower-limit-value.
Step 4 Run commit
The configuration is committed.

----End

1.1.3 MPLS TE Configuration


This chapter describes the principles for Multiprotocol Label Switching Traffic
Engineering (MPLS TE), Resource Reservation Protocol (RSVP) TE tunnels, RSVP
signaling parameter adjustment, RSVP authentication, tunnel parameter
adjustment, measures for adjusting TE forwarding, the bandwidth flood threshold,
tunnel re-optimization, MPLS TE fast reroute (FRR), MPLS TE Auto FRR,
constraints-routed label switched path (CR-LSP) backup, isolated LSP computation,
RSVP graceful restart (GR), static bidirectional forwarding detection (BFD) for TE
CR-LSP, static BFD for TE tunnel, dynamic BFD for TE CR-LSP, MPLS TE distribution,
and how to configure MPLS TE, and provides configuration examples.

1.1.3.1 Overview of MPLS TE


The Multiprotocol Label Switching Traffic Engineering (MPLS TE) technology
integrates the MPLS technology with TE. It reserves resources by establishing label
switched paths (LSPs) over a specified path in an attempt to prevent network
congestion and balance network traffic.

TE
Network congestion is a major cause for backbone network performance
deterioration. The network congestion is resulted from insufficient resources or
locally induced by incorrect resource allocation. For the former, network device
expansion can prevent the problem. For the later, TE is used to allocate some

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 26


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

traffic to idle link so that traffic allocation is improved. TE dynamically monitors


network traffic and loads on network elements and adjusts the parameters for
traffic management, routing, and resource constraints in real time, which prevents
network congestion induced by load imbalance.

MPLS TE
MPLS TE establishes constraint-based routed label switched paths (LSPs) and
transparently transmits traffic over the LSPs. Based on certain constraints, the LSP
path is controllable, and links along the LSP reserve sufficient bandwidth for
service traffic. In the case of resource insufficiency, the LSP with a higher priority
can preempt the bandwidth of the LSP with a lower priority to meet the
requirements of the service with a higher priority. In addition, when an LSP fails or
a node on the network is congested, MPLS TE can provide protection through Fast
Reroute (FRR) and a backup path. MPLS TE allows network administrators to
deploy LSPs to properly allocate network resources and prevent network
congestion. As the number of LSPs increases, you can use a dedicated offline tool
to analyze traffic.

1.1.3.2 Feature Requirements for MPLS TE

1.1.3.3 Configuring Static CR-LSP


This section describes how to configure a static CR-LSP. The configuration of a
static CR-LSP is simple, and label allocation is performed manually, not by using a
signaling protocol to exchange control packets, which consumes a few resources.

Usage Scenario
A static CR-LSP is easy to configure: Labels are manually allocated, and no
signaling protocol is used to exchange control packets. The setup of a static CR-
LSP consumes only a few resources, and you do not need to configure IGP TE or
CSPF for the static CR-LSP. However, static CR-LSPs cannot be dynamically
adjusted according to network changes. Therefore, static CR-LSPs have limited
applications.

The static CR-LSP configurations involve the operations on the following types of
nodes:
● Ingress: An LSP forwarding entry is configured, and an LSP configured on the
ingress is bound to the TE tunnel interface.
● Transit node: An LSP forwarding entry is configured.
● Egress: An LSP forwarding entry is configured.

Pre-configuration Tasks
Before configuring a static CR-LSP, complete the following tasks:

● Configure the static route or IGP to implement the reachability between LSRs.
● Configure an LSR ID for each LSR.
● Enable MPLS globally and on interfaces on all LSRs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 27


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.3.1 Enabling MPLS TE


Before you set up a static CR-LSP, enable MPLS TE.

Context
Perform the following steps on each node along a static CR-LSP:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls te
MPLS TE is enabled on the node globally.
Before you enable MPLS TE on each interface, enable MPLS TE globally in the
MPLS view.
Step 4 Run quit
Return to the system view.
Step 5 Run interface interface-type interface-number
The interface view is displayed.
Step 6 Run mpls
MPLS is enabled on the interface.
Step 7 Run mpls te
MPLS TE is enabled on the interface.

NOTE

When the MPLS TE is disabled in the interface view, all CR-LSPs on the current interface go
Down.
When the MPLS TE is disabled in the MPLS view, the MPLS TE on each interface is disabled,
and all CR-LSPs are torn down.

Step 8 Run commit


The configurations are committed.

----End

1.1.3.3.2 (Optional) Configuring Link Bandwidth


By configuring the link bandwidth, you can constrain the bandwidth of a CR-LSP.

Context
Perform the following steps on each node along the CR-LSP:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 28


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The MPLS-TE-enabled interface view is displayed.
Step 3 Run mpls te bandwidth max-reservable-bandwidth max-bw-value
The maximum reservable bandwidth of the link is set.
Step 4 Run mpls te bandwidth bc0 bc0-bw-value
The BC bandwidth of the link is set.

NOTE

● The maximum reservable bandwidth of a link cannot be higher than the actual
bandwidth of the link. A maximum of 80% of the actual bandwidth of the link is
recommended for the maximum reservable bandwidth of the link.
● The BC0 bandwidth cannot be higher than the maximum reservable bandwidth of the
link.

Step 5 Run commit


The configuration is committed.

----End

1.1.3.3.3 Configuring the MPLS TE Tunnel Interface


This section describes how to configure the MPLS TE tunnel interface. You must
create a tunnel interface before setting up an MPLS TE tunnel.

Context
Perform the following steps on the ingress of a static CR-LSP:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel interface-number
The tunnel interface is created, and the tunnel interface view is displayed.
Step 3 To configure the IP address of the tunnel interface, select one of the following
commands.
● To specify the IP address of the tunnel interface, run ip address ip-address
{ mask | mask-length } [ sub ]
The secondary IP address of the tunnel interface can be configured only after
the primary IP address is configured.
● To borrow an IP address from another interface, run ip address unnumbered
interface interface-type interface-number

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 29


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

An MPLS TE tunnel can be established even if the tunnel interface is assigned no


IP address. The tunnel interface must obtain an IP address before forwarding
traffic. An MPLS TE tunnel is unidirectional; therefore, its peer address is irrelevant
to traffic forwarding. A tunnel interface does not need to be assigned an IP
address but uses the ingress LSR ID as its IP address.

Step 4 Run tunnel-protocol mpls te

MPLS TE is configured as a tunneling protocol.

Step 5 Run destination ip-address

The destination address of the tunnel is configured, which is usually the LSR ID of
the egress node.

Step 6 Run mpls te tunnel-id tunnel-id

The tunnel ID is set.

Step 7 Run mpls te signal-protocol cr-static

Static CR-LSP is configured as a signaling protocol of the tunnel.

Step 8 Run commit

The configurations are committed.

----End

1.1.3.3.4 (Optional) Configuring Global Dynamic Bandwidth Pre-Verification


Global dynamic bandwidth pre-verification enables a device to check dynamic
bandwidth usage before a static CR-LSP, or a static bidirectional co-routed LSP is
established.

Context
When dynamic services or both static and dynamic services are configured, a
device only checks static bandwidth usage when a static CR-LSP or a static
bidirectional co-routed LSP is configured. The configuration is successful even if
the interface bandwidth is insufficient, and the interface status is Down. To
percent such an issue, global dynamic bandwidth pre-verification can be
configured. With this function enable, the device can prompt a message indicating
that the configuration fails in the preceding situation.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

MPLS is enabled globally, and the MPLS view is displayed.

Step 3 Run mpls te

MPLS TE is enabled globally.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 30


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Global dynamic bandwidth pre-verification can only be configured after MPLS TE


is enabled globally.

Step 4 Run mpls te static-cr-lsp bandwidth-check deduct-rsvp-bandwidth

Global dynamic bandwidth pre-verification is enabled.

Step 5 Run commit

The configuration is committed.

----End

1.1.3.3.5 Configuring the Ingress of the Static CR-LSP


This section describes how to configure the ingress of a static CR-LSP. Before you
establish a static CR-LSP, specify the ingress of the CR-LSP.

Context
Perform the following steps on the ingress of a static CR-LSP:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run static-cr-lsp ingress { tunnel-interface tunnel interface-number | tunnel-


name } destination destination-address { nexthop next-hop-address | outgoing-
interface interface-type interface-number } * out-label out-label [ bandwidth
[ ct0 ] bandwidth ]

The LSR is configured as the ingress of the specified static CR-LSP.

To modify the destination destination-address, nexthop next-hop-address,


outgoing-interface interface-type interface-number, or out-label out-label, run
the static-cr-lsp ingress command to set a new value. There is no need to run the
undo static-cr-lsp ingress command before changing a configured value.

tunnel interface-number specifies the MPLS TE tunnel interface that uses this
static CR-LSP. By default, the Bandwidth Constraints value is ct0, and the value of
bandwidth is 0. The bandwidth used by the tunnel cannot be higher than the
maximum reservable bandwidth of the link.

The next hop or outgoing interface is determined by the route from the ingress to
the egress. For the difference between the next hop and outbound interface, see
"Static Route Configuration" in Configuration Guide - IP Routing.

If an Ethernet interface is used as an outbound interface, the nexthop next-hop-


address parameter must be configured.
Step 3 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 31


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.3.6 (Optional) Configuring the Transit Node of the Static CR-LSP


This section describes how to configure the transit nodes of a static CR-LSP. Before
you set up a static CR-LSP, specify the transit nodes of the CR-LSP. This procedure
is optional because the CR-LSP may have no transit node.

Context
If the static CR-LSP has only the ingress and egress, configuring a transit node is
not needed. If the static CR-LSP has one or more transit nodes, perform the
following steps on each transit node:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run static-cr-lsp transit lsp-name incoming-interface interface-type interface-
number in-label in-label { nexthop next-hop-address | outgoing-interface
interface-type interface-number } * out-label out-label [ bandwidth [ ct0 ]
bandwidth ]
The transit node of the static CR-LSP is configured.
If you need to modify parameters except lsp-name, run the static-cr-lsp transit
command without the need for running the undo static-cr-lsp transit command
first. This means that these parameters can be updated.
The value of lsp-name on the transit node and the egress node cannot be the
same as the existing names on the nodes. There are no other restrictions on the
value.
If an Ethernet interface is used as the outbound interface of an LSP, the nexthop
next-hop-address parameter must be configured to ensure proper traffic
forwarding along the LSP.
Step 3 Run commit
The configuration is committed.

----End

1.1.3.3.7 Configuring the Egress of the Static CR-LSP


This section describes how to configure the egress of a static CR-LSP. Before you
set up a static CR-LSP, specify the egress of the CR-LSP.

Context
Perform the following steps on the egress of the static CR-LSP:

Procedure
Step 1 Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 32


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run static-cr-lsp egress lsp-name incoming-interface interface-type interface-


number in-label in-label [ lsrid ingress-lsr-id tunnel-id tunnel-id ]
The LSR is configured as the egress of the specified static CR-LSP.

To modify the incoming-interface interface-type interface-number or in-label in-


label-value, run the static-cr-lsp egress command to set a new value. There is no
need to run the undo static-cr-lsp egress command before changing a configured
value.

Step 3 Run commit

The configurations are committed.

----End

1.1.3.3.8 Verifying the Static CR-LSP Configuration


After the configuration of a static CR-LSP, you can view the static CR-LSP status.

Prerequisites
The static CR-LSP has been configured.

Procedure
● Run the display mpls static-cr-lsp [ lsp-name ] [ verbose ] command to
check information about the static CR-LSP.
● Run the display mpls te tunnel [ destination ip-address ] [ lsp-id ingress-lsr-
id session-id local-lsp-id ] [ lsr-role { all | egress | ingress | remote |
transit } ] [ name tunnel-name ] [ { incoming-interface | interface |
outgoing-interface } interface-type interface-number ] [ verbose ] command
to check information about the tunnel.
● Run the display mpls te tunnel statistics or display mpls lsp statistics
command to check the tunnel statistics.
● Run the display mpls te tunnel-interface command to check information
about the tunnel interface on the ingress.

----End

1.1.3.4 Configuring a Static Bidirectional Co-routed LSP


A static bidirectional co-routed label switched path (LSP) is composed of two
static constraint-based routed (CR) LSPs in opposite directions. Multiprotocol Label
Switching (MPLS) Traffic Engineering (TE) supports MPLS forwarding in both
directions along such an LSP.

Usage Scenario
A static CR-LSP is easy to configure because its labels are manually assigned, and
no signaling protocol is used to exchange control packets. The setup of a static
CR-LSP consumes only a few resources, and you do not need to configure IGP TE
or CSPF for the static CR-LSP. As a static CR-LSP cannot dynamically adapt to
network changes.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 33


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

● The value of the outgoing label on each node is the value of the incoming label on its
next hop.
● The destination address of a static bidirectional co-routed LSP is the destination
address specified on the tunnel interface.

Pre-configuration Tasks
Before configuring a static bidirectional co-routed LSP, complete the following
tasks:

● Configure unicast static routes or an IGP to implement connectivity between


LSRs.
● Configure an LSR ID for each LSR.
● Enable MPLS globally and on interfaces on all LSRs.

1.1.3.4.1 Enabling MPLS TE


Before setting up a static bidirectional co-routed LSP, you must enable MPLS TE.

Context
Perform the following steps on each node along the CR-LSP:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te

MPLS TE is enabled on the node globally.

To enable MPLS TE on each interface, you must first enable MPLS TE globally in
the MPLS view.

Step 4 Run quit

Return to the system view.

Step 5 Run interface interface-type interface-number

The interface view is displayed.

Step 6 Run mpls

MPLS is enabled on the interface.

Step 7 Run mpls te

MPLS TE is enabled on the interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 34


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

When the MPLS TE is disabled in the interface view, all CR-LSPs on the current interface go
Down.
When the MPLS TE is disabled in the MPLS view, the MPLS TE on each interface is disabled,
and all CR-LSPs are deleted.

Step 8 Run commit

The configuration is committed.

----End

1.1.3.4.2 (Optional) Configuring Link Bandwidth


This section describes how to configure link bandwidth so that nodes can reserve
the configured link bandwidth for a CR-LSP to be established.

Context
Plan bandwidths on links before you perform this procedure. The reserved
bandwidth must be higher than or equal to the bandwidth required by MPLS TE
traffic. Perform the following steps on each node along the CR-LSP to be
established:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The MPLS-TE-enabled interface view is displayed.

Step 3 Run mpls te bandwidth max-reservable-bandwidth max-bw-value

The maximum available link bandwidth is set.

Step 4 Run mpls te bandwidth bc0 bc0-bw-value

The BC0 link bandwidth is set.

Step 5 Run commit

The configuration is committed.

----End

1.1.3.4.3 Configuring a Tunnel Interface on the Ingress


A tunnel interface must be created before an MPLS TE tunnel is established on an
ingress.

Context
Perform the following steps on the ingress of a static bidirectional co-routed LSP:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 35


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel interface-number

A tunnel interface is created, and the tunnel interface view is displayed.

Step 3 To configure an IP address for the tunnel interface, run either of the following
commands:
● To assign an IP address to the tunnel interface, run ip address ip-address
{ mask | mask-length } [ sub ]
The primary IP address must be configured prior to the secondary IP address
for the tunnel interface.
● To configure the tunnel interface to borrow the IP address of another
interface, run ip address unnumbered interface interface-type interface-
number

Although an IP address on a tunnel interface enables an MPLS TE tunnel to


forward traffic, the MPLS TE tunnel does not need to be assigned a separate IP
address because it is unidirectional. Therefore, a tunnel interface usually borrows a
loopback address, which is used as the LSR ID of the ingress.

Step 4 Run tunnel-protocol mpls te

MPLS TE is configured as a tunnel protocol.

Step 5 Run destination ip-address

The destination address is configured for the tunnel. It is usually the LSR ID of the
egress.

Various types of tunnels have different requirements for destination addresses. If a


tunnel protocol is changed to MPLS TE, the destination address configured using
the destination command is automatically deleted and needs to be reconfigured.

Step 6 Run mpls te tunnel-id tunnel-id

The tunnel ID is configured.

Step 7 Run mpls te signal-protocol cr-static

Static CR-LSP signaling is configured.

Step 8 Run mpls te bidirectional

The bidirectional LSP attribute is configured.

Step 9 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 36


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.4.4 (Optional) Configuring Global Dynamic BandwidthPre-verification


Global dynamic bandwidth pre-verification enables a device to check dynamic
bandwidth usage before a static CR-LSP, or a static bidirectional co-routed LSP is
established.

Context
When dynamic services or both static and dynamic services are configured, a
device only checks static bandwidth usage when a static CR-LSP or a static
bidirectional co-routed LSP is configured. The configuration is successful even if
the interface bandwidth is insufficient, and the interface status is Down. To
percent such an issue, global dynamic bandwidth pre-verification can be
configured. With this function enable, the device can prompt a message indicating
that the configuration fails in the preceding situation.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
MPLS is enabled globally, and the MPLS view is displayed.
Step 3 Run mpls te
MPLS TE is enabled globally.
Global dynamic bandwidth pre-verification can only be configured after MPLS TE
is enabled globally.
Step 4 Run mpls te static-cr-lsp bandwidth-check deduct-rsvp-bandwidth
Global dynamic bandwidth pre-verification is enabled.
Step 5 Run commit
The configuration is committed.

----End

1.1.3.4.5 Configuring the Ingress of a Static Bidirectional Co-routed LSP


The ingress of a static bidirectional co-routed LSP needs to be manually specified.

Context
Perform the following steps on the ingress of a static bidirectional co-routed LSP:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bidirectional static-cr-lsp ingress tunnel-name

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 37


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

A static bidirectional CR-LSP is created, and its ingress view is displayed.

Step 3 Run forward { nexthop next-hop-address | outgoing-interface interface-type


interface-number } * out-label out-label-value [ bandwidth ct0 bandwidth | pir
pir ] *
A forward CR-LSP is configured on the ingress. The bandwidth parameter specifies
the reserved bandwidth for the forward CR-LSP. The bandwidth value cannot be
higher than the maximum reservable link bandwidth. If the specified bandwidth is
higher than the maximum reservable link bandwidth, the CR-LSP cannot go up.

Step 4 Run backward in-label in-label-value [ lsrid ingress-lsr-id tunnel-id ingress-


tunnel-id ]
A reverse CR-LSP is specified on the ingress.

Step 5 Run commit

The configuration is committed.

----End

1.1.3.4.6 (Optional) Configuring a Transit Node of a Static Bidirectional Co-routed


LSP
The transit node of a static bidirectional co-routed LSP needs to be manually
specified. This configuration is optional because a static bidirectional co-routed
LSP may have no transit node.

Context
Skip this procedure if a static bidirectional co-routed LSP has only an ingress and
an egress. If a static bidirectional co-routed LSP has a transit node, perform the
following steps on this transit node:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run bidirectional static-cr-lsp transit lsp-name

A static bidirectional CR-LSP is created, and its transit view is displayed.

The value of lsp-name cannot be the same as an existing LSP name on the device.

Step 3 Run forward in-label in-label-value { nexthop next-hop-address | outgoing-


interface interface-type interface-number } * out-label out-label-value [ ingress-
lsrid ingress-lsrid egress-lsrid egress-lsrid tunnel-id tunnel-id ] [ bandwidth ct0
bandwidth | pir pir ] *
A forward CR-LSP is configured on the transit node.

Step 4 Run backward in-label in-label-value { nexthop next-hop-address | outgoing-


interface interface-type interface-number } * out-label out-label-value
[ bandwidth ct0 bandwidth | pir pir ] *

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 38


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

A reverse CR-LSP is configured on the transit node.

Step 5 Run commit

The configuration is committed.

----End

1.1.3.4.7 Configuring the Egress of a Static Bidirectional Co-routed CR-LSP


The egress of a static bidirectional co-routed CR-LSP needs to be manually
specified.

Context
Perform the following steps on the egress of a static bidirectional co-routed CR-
LSP:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run bidirectional static-cr-lsp egress lsp-name

A static bidirectional CR-LSP is created, and its egress view is displayed.

Step 3 Run forward in-label in-label-value [ lsrid ingress-lsr-id tunnel-id ingress-tunnel-


id ]
A forward CR-LSP is configured on the egress.

If lsrid ingress-lsr-id tunnel-id ingress-tunnel-id is specified in this command, the


system checks whether the tunnel destination IP address on the egress and the
specified value of ingress-lsr-id are consistent. If the specified value of ingress-lsr-
id is different from the tunnel destination IP address on the egress, the tunnel
cannot go up. As a result, the forward and reverse CR-LSPs configured on the
egress cannot go up.

Step 4 Run backward { nexthop next-hop-address | outgoing-interface interface-type


interface-number } * out-label out-label-value [ bandwidth ct0 bandwidth | pir
pir ] *
A reverse CR-LSP is configured on the egress.

The bandwidth parameter specifies the reserved bandwidth for a reverse CR-LSP.
The bandwidth value cannot be higher than the maximum reservable link
bandwidth. If the specified bandwidth is higher than the maximum reservable link
bandwidth, the CR-LSP cannot go up.

Step 5 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 39


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.4.8 Configuring the Tunnel Interface on the Egress


The reverse tunnel attribute is configured, and the tunnel interface is bound to a
static bidirectional co-routed LSP on the egress.

Context
Perform the following steps on the egress of a static bidirectional co-routed LSP:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel interface-number
A tunnel interface is created, and the tunnel interface view is displayed.
Step 3 Run tunnel-protocol mpls te
MPLS TE is configured as a tunnel protocol to create an MPLS TE tunnel.
Step 4 Run destination ip-address
The destination address is configured for the tunnel. It is usually the LSR ID of the
ingress.
Various types of tunnels have different requirements for destination addresses. If a
tunnel protocol is changed to MPLS TE, the destination address configured using
the destination command is automatically deleted and needs to be reconfigured.
Step 5 Run mpls te tunnel-id tunnel-id
The tunnel ID is configured.
Step 6 Run mpls te signal-protocol cr-static
A static CR-LSP is configured.
Step 7 Run mpls te passive-tunnel
The reverse tunnel attribute is configured.
Step 8 Run mpls te binding bidirectional static-cr-lsp egress tunnel-name
The tunnel interface is bound to the specified static bidirectional co-routed LSP.
Step 9 Run commit
The configuration is committed.

----End

1.1.3.4.9 Verifying the Configuration of a Static Bidirectional Co-routed LSP


After configuring a static bidirectional co-routed LSP, you can view its status.

Prerequisites
A static bidirectional co-routed LSP has been established.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 40


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
● Run the display mpls te bidirectional static-cr-lsp [ lsp-name ] [ verbose ]
command to check the specified static bidirectional co-routed LSP.

----End

1.1.3.5 Configuring an Associated Bidirectional CR-LSP


Associated bidirectional CR-LSPs provide bandwidth protection for bidirectional
services. Bidirectional switching can be performed for associated bidirectional CR-
LSPs if faults occur.

Context

Usage Scenario
MPLS networks face the following challenges:
● MPLS TE tunnels that transmit services are unidirectional. The ingress
forwards services to the egress along an MPLS TE tunnel. The egress forwards
services to the ingress over IP routes. As a result, the services may be
congested because IP links do not reserve bandwidth for these services.
● Two MPLS TE tunnels in opposite directions are established between the
ingress and egress. If a fault occurs on an MPLS TE tunnel, a traffic switchover
can only be performed for the faulty tunnel, but not for the reverse tunnel. As
a result, traffic is interrupted.

A forward CR-LSP and a reverse CR-LSP between two nodes are established. Each
CR-LSP is bound to the ingress of its reverse CR-LSP. The two CR-LSPs then form
an associated bidirectional CR-LSP. The associated bidirectional CR-LSP is primarily
used to prevent traffic congestion. If a fault occurs on one end, the other end is
notified of the fault so that both ends trigger traffic switchovers, which ensures
that traffic transmission is uninterrupted.

The configurations in this section must be performed on tunnel interfaces of both


the forward and reverse CR-LSPs. Each CR-LSP is bound to the ingress of its
reverse CR-LSP.

Pre-configuration Tasks
Before configuring an associated bidirectional CR-LSP, complete either of the
following tasks:

● Create RSVP-TE tunnels in opposite directions for an associated bidirectional


dynamic CR-LSP to be established.
● Create static CR-LSPs in opposite directions for an associated bidirectional
static CR-LSP to be established.

Procedure
Step 1 Run system-view

The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 41


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run interface tunnel interface-number

A tunnel interface is created, and the tunnel interface view is displayed.

Step 3 Run mpls te reverse-lsp protocol { rsvp-te ingress-lsr-id ingress-lsr-id tunnel-id


tunnel-id | static lsp-name lsp-name }

A reverse CR-LSP is configured on the tunnel interface.

Either of the following associated bidirectional CR-LSPs can be established:

● Associated bidirectional static CR-LSP: Two static unidirectional CR-LSPs in


opposite directions are bound to each other to form an associated
bidirectional static CR-LSP. For this type of CR-LSP, you need to specify static
lsp-name lsp-name.
● Associated bidirectional dynamic CR-LSP: Two RSVP-TE tunnels in opposite
directions are bound to each other to form an associated bidirectional
dynamic CR-LSP. For this type of CR-LSP, you need to specify rsvp-te ingress-
lsr-id ingress-lsr-id tunnel-id tunnel-id .

Step 4 Run commit

The configuration is committed.

----End

Checking the Configurations


Run the display mpls te reverse-lsp command to view brief information about
reverse CR-LSPs.

Run the display mpls te reverse-lsp verbose command to view detailed


information about reverse CR-LSPs.

1.1.3.6 Configuring CR-LSP Backup


CR-LSP backup is configured to provide end-to-end protection for a CR-LSP.

Usage Scenario
CR-LSP backup provides an end-to-end path protection for an entire CR-LSP.

CR-LSP backup is performed in either of the following modes:


● Hot standby: A backup CR-LSP is set up immediately after a primary CR-LSP is
set up. If the primary CR-LSP fails, traffic switches to the backup CR-LSP. If the
primary CR-LSP recovers, traffic switches back to the primary CR-LSP by
default. Hot-standby CR-LSPs support best-effort paths.
● Ordinary backup: A backup CR-LSP is set up after a primary CR-LSP fails. If
the primary CR-LSP fails, traffic switches to the backup CR-LSP. If the primary
CR-LSP recovers, traffic switches back to the primary CR-LSP by default.
For details about the differences between hot standby and ordinary backup,
see Table 1-2.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 42


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Table 1-2 Differences between hot standby and ordinary backup


Item Hot Standby Ordinary Backup

Time when a Created immediately after Created only after the primary
backup CR- the primary CR-LSP is CR-LSP fails.
LSP is established.
established

Primary and You can specify whether The path of the backup CR-LSP
backup the primary and backup can partially overlap the path
explicit paths paths can overlap. If an of the primary CR-LSP,
explicit path is allowed for regardless of whether the
a backup CR-LSP, the backup CR-LSP is set up over
explicit path is used as the an explicit path.
constraint to set up the
backup CR-LSP.

Whether a Yes No
best-effort
path is
supported

● Best-effort path
The hot standby function supports the establishment of best-effort paths. If
both the primary and hot-standby CR-LSPs fail, a best-effort path is
established and takes over traffic.
As shown in Figure 1-5, the primary CR-LSP uses the path PE1 -> P1 -> PE2,
and the backup CR-LSP uses the path PE1 -> P2 -> PE2. If both the primary
and backup CR-LSPs fail, router triggers the setup of a best-effort path PE1 ->
P2 -> P1 -> PE2.

Figure 1-5 Schematic diagram for a best-effort path

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 43


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

A best-effort path does not provide reserved bandwidth for traffic. The affinity attribute
and hop limit are configured as needed.

Pre-configuration Tasks
Before configuring CR-LSP backup, complete the following tasks:

● Establish a primary RSVP-TE tunnel.


● Enable MPLS, MPLS TE, and RSVP-TE globally and in the physical interface
view on each node along a bypass tunnel to be established. For configuration
details, see Enabling MPLS TE and RSVP-TE.
● (Optional) Configure the link bandwidth for the backup CR-LSP. (See
(Optional) Configuring TE Attributes.)
● (Optional) Configure an explicit path for the backup CR-LSP. (See (Optional)
Configure an explicit path.)

1.1.3.6.1 Configuring CR-LSP Hot Standby


A hot-standby CR-LSP is established immediately after a primary CR-LSP is set up.
If the primary CR-LSP fails, traffic is switched to the hot-standby CR-LSP.

Context
CR-LSP hot-standby is disabled by default. After CR-LSP hot-standby is configured
on the ingress of a primary CR-LSP, the system automatically selects a path for a
hot-standby CR-LSP.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The view of the MPLS TE tunnel interface is displayed.

Step 3 Establish a primary RSVP-TE tunnel.

Step 4 Run mpls te backup hot-standby [ mode { revertive [ wtr interval ] | non-
revertive } | wtr [ interval ]]

The mode of establishing a hot-standby CR-LSP is configured.

Select the following parameters as needed to enable sub-functions:


● mode revertive [ wtr interval ]: enables a device to switch traffic back to the
primary CR-LSP.
● mode non-revertive: disables a device from switching traffic back to the
primary CR-LSP.
● wtr interval: sets the time before a traffic switchback is performed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 44


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

The bypass and backup tunnels cannot be configured on the same tunnel interface. The
mpls te bypass-tunnel and mpls te backup commands cannot be configured on the same
tunnel interface. Also, the mpls te protected-interface and mpls te backup commands
cannot be configured on the same tunnel interface.

Step 5 (Optional) Run mpls te backup hot-standby overlap-path


The device is configured to allow the path of a primary CR-LSP and the path of a
hot-standby CR-LSP to overlap.
Step 6 (Optional) Run mpls te backup hot-standby dynamic-bandwidth
The dynamic bandwidth adjustment function is enabled for the hot-standby CR-
LSP.
This function enables a hot-standby CR-LSP to obtain bandwidth resources only
after the hot-standby CR-LSP takes over traffic from a faulty primary CR-LSP. This
function helps efficiently use network resources and reduce network costs.
Step 7 (Optional) Configure CR-LSP backup parameters.
● Run the mpls te path explicit-path path-name secondary command to
specify an explicit path for the backup CR-LSP.
This parameter can be used to control the path of the backup CR-LSP.
NOTE

The mpls te path explicit-path path-name secondary and mpls te backup


commands must be configured at the same time for the configuration to take effect.
● Run the mpls te affinity property properties [ mask mask-value ] secondary
command to configure an affinity property for the backup CR-LSP.
This parameter can be used to control the path of the backup CR-LSP.
● Run the mpls te hop-limit hop-limit-value secondary command to configure
a hop limit for the backup CR-LSP.
NOTE

The mpls te hop-limit hop-limit-value secondary and mpls te backup commands


must be configured at the same time for the configuration to take effect.

Step 8 (Optional) Run hotstandby-switch { force | clear }


Forcible traffic switching is configured.
If the primary CR-LSP goes down, traffic is switched to the hot-standby CR-LSP. If
the primary LSP goes up, traffic is switched back to the primary LSP by default.
This configuration provides the flexibility to control the traffic switchover behavior.
If force is specified, traffic is temporarily switched to the hot-standby CR-LSP. If
clear is specified, traffic is switched back to the primary CR-LSP.
Step 9 Run quit
Return to the system view.
Step 10 (Optional) Run mpls te multi-protect fast-switch enable
Coexistence of FRR switching and MPLS TE HSB is enabled.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 45


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

To enable the coexistence of FRR switching and MPLS TE HSB, TE FRR must be
deployed on the entire network. HSB must be deployed on the ingress, BFD for TE
LSP must be enabled, and the delayed down function must be enabled on the
outbound interface of the P. Otherwise, rapid switching cannot be performed in
case of the dual points of failure.

Step 11 (Optional) Configure CSPF fast switching.

In a scenario where BFD is not configured, only protocol convergence can trigger
TE hot-standby switching if the primary LSP fails. To improve the switching speed,
you can configure CSPF-based fast switching so that hot-standby switching can be
performed quickly.

1. Run the mpls command to enter the MPLS view.


2. Run the mpls te tedb fast-notice command to configure CSPF fast switching.

Step 12 Run commit

The configuration is committed.

----End

1.1.3.6.2 Configuring a Best-Effort Path for a CR-LSP


A best-effort path is configured to take over traffic if both the primary and hot-
standby CR-LSPs fail.

Context
In best-effort path mode, perform the following steps on the ingress of the
primary tunnel.

NOTE

A best-effort path does not provide bandwidth guarantee for traffic. Configure the affinity
attribute and hop limit as needed.
CR-LSP hot standby can work with a best-effort path to further enhance reliability. Ordinary CR-
LSP backup cannot work with a best-effort path.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The view of the MPLS TE tunnel interface is displayed.

Step 3 Run mpls te backup ordinary best-effort

A best-effort path is configured for the CR-LSP.

Step 4 (Optional) Run mpls te affinity property properties [ mask mask-value ] best-
effort

The affinity property of the best-effort path is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 46


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 5 (Optional) Run mpls te hop-limit hop-limit-value best-effort

The hop limit is set for the best-effort path.

Step 6 Run commit

The configuration is committed.

----End

1.1.3.6.3 Configuring Ordinary Backup for CR-LSPs


An ordinary backup CR-LSP is set up after the primary CR-LSP fails. If the primary
CR-LSP fails, traffic is switched to the ordinary backup CR-LSP.

Context
NOTE

Ordinary backup and best-effort path cannot be configured at the same time for CR-LSPs.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The tunnel interface view of the MPLS TE tunnel is displayed.

Step 3 Run mpls te backup ordinary

An ordinary backup path is configured for the CR-LSP.

Step 4 (Optional) Configure CR-LSP backup parameters.


● Run the mpls te path explicit-path path-name secondary command to
specify an explicit path for the backup CR-LSP.
This parameter can be used to control the path of the backup CR-LSP.
NOTE

The mpls te path explicit-path path-name secondary and mpls te backup


commands must be configured at the same time for the configuration to take effect.
● Run the mpls te affinity property properties [ mask mask-value ] secondary
command to configure the affinity property for the backup CR-LSP.
This parameter can be used to control the path of the backup CR-LSP.
● Run the mpls te hop-limit hop-limit-value secondary command to limit the
number of hops on the backup CR-LSP.
NOTE

The mpls te hop-limit hop-limit-value secondary and mpls te backup commands


must be configured at the same time for the configuration to take effect.

Step 5 Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 47


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.

----End

1.1.3.6.4 Verifying the CR-LSP Backup Configuration


After configuring CR-LSP backup, you can view information about backup CR-LSPs.

Prerequisites
CR-LSP backup has been configured.

Procedure
● Run the display mpls te tunnel-interface command to check information
about a tunnel interface on the ingress of a tunnel.
● Run the display mpls te hot-standby state { all [ verbose ] | interface
tunnel-interface-name } command to check information about the hot-
standby status.
----End

1.1.3.7 Configuring Static BFD for TE CR-LSP


By configuring static BFD for TE CR-LSP, you can detect TE CR-LSP faults.

Usage Scenario
BFD for TE CR-LSP monitors the primary and hot-standby CR-LSPs and triggers
traffic switchovers between them.

NOTE

When static BFD for TE CR-LSP is used and the BFD status is Up, the BFD status remains Up
even after the tunnel interface of the CR-LSP is shut down.

Pre-configuration Tasks
Before configuring static BFD for TE CR-LSP, configure an RSVP-TE tunnel or CR-
LSP backup.

1.1.3.7.1 Enabling BFD Globally


BFD must be enabled globally before configurations relevant to BFD are
performed.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 48


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configurations relevant to BFD can be performed only after the bfd command is
run globally.

Step 3 Run commit

The configurations are committed.

----End

1.1.3.7.2 Setting BFD Parameters on the Ingress


This section describes how to set BFD parameters on the ingress to monitor CR-
LSPs using BFD sessions.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run bfd session-name bind mpls-te interface interface-type interface-number te-
lsp [ backup ]

BFD is configured to monitor the primary or backup LSP bound to a TE tunnel.

If the backup parameter is specified, the BFD session is bound to the backup CR-
LSP.

Step 3 Run discriminator local discr-value

The local discriminator of the BFD session is set.

Step 4 Run discriminator remote discr-value

The remote discriminator of the BFD session is set.

NOTE

The local discriminator of the local device and the remote discriminator of the remote
device are the same, and the remote discriminator of the local device and the local
discriminator of the remote device are the same. A discriminator inconsistency causes the
BFD session to fail to be established.

Step 5 (Optional) Run min-tx-interval tx-interval

The minimum interval at which BFD packets are sent is set.

● Effective local interval at which BFD packets are sent = MAX { Configured
local interval at which BFD packets are sent, Configured remote interval at
which BFD packets are received }
● Effective local interval at which BFD packets are received = MAX { Configured
remote interval at which BFD packets are sent, Configured local interval at
which BFD packets are received }
● Effective local detection interval = Effective local interval at which BFD
packets are received x Configured remote detection multiplier

For example:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 49


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● The local interval at which BFD packets are sent is set to 200 ms, the local
interval at which BFD packets are received is set to 300 ms, and the local
detection multiplier is set to 4.
● The remote interval at which BFD packets are sent is set to 100 ms, the
remote interval at which BFD packets are received is set to 600 ms, and the
remote detection multiplier is set to 5.
Then,
● Effective local interval at which BFD packets are sent = MAX { 200 ms, 600
ms } = 600 ms; effective local interval at which BFD packets are received =
MAX { 100 ms, 300 ms } = 300 ms; effective local detection period = 300 ms x
5 = 1500 ms
● Effective remote interval at which BFD packets are sent = MAX { 100 ms, 300
ms } = 300 ms; effective remote receiving interval = MAX { 200 ms, 600 ms } =
600 ms; effective remote detection period = 600 ms x 4 = 2400 ms
Step 6 (Optional) Run min-rx-interval rx-interval
The local minimum interval at which BFD packets are received is configured.
Step 7 (Optional) Run detect-multiplier multiplier
The local BFD detection multiplier is set.
Step 8 Run commit
The configuration is committed.

----End

1.1.3.7.3 Setting BFD Parameters on the Egress


This section describes how to set BFD parameters on the egress to monitor CR-
LSPs using BFD sessions.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 The IP link, LSP, or TE tunnel can be used as the reverse tunnel to inform the
ingress of a fault. If there is a reverse LSP or a TE tunnel, use the reverse LSP or
the TE tunnel. If no LSP or TE tunnel is established, use an IP link as a reverse
tunnel. If the configured reverse tunnel requires BFD detection, you can configure
a pair of BFD sessions for it. Run the following commands as required:
● Configure a BFD session to monitor reverse channels.
– For an IP link, run bfd session-name bind peer-ip ip-address [ vpn-
instance vpn-name ] [ source-ip ip-address ]
– For an LDP LSP, run bfd session-name bind ldp-lsp peer-ip ip-address
nexthop ip-address [ interface interface-type interface-number ]
– For a CR-LSP, run bfd session-name bind mpls-te interface tunnel
interface-number te-lsp [ backup ]
– For a TE tunnel, run bfd session-name bind mpls-te interface tunnel
interface-number

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 50


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Configure a BFD session group to monitor reverse channels.


a. Run the bfd sessname-value bind mpls-te interface trackIfType
trackIfNum [ te-lsp [ backup ] ] group command to create binding
information about a BFD session group.
b. Run the sub-session discriminator local discr-value remote remote-
value select-board slot-id command to create sub-session 1 for the BFD
session group.
c. Run the sub-session discriminator local discr-value remote remote-
value select-board slot-id command to create sub-session 2 for the BFD
session group.
NOTE

– A BFD session group is used when two devices are connected through an Eth-Trunk
link, and the two member interfaces of the Eth-Trunk interface are located on
different interfaces. That is, a BFD session group is used for an inter-board Eth-
Trunk interface.
– Two BFD sub-sessions created in a BFD session group are used to detect two inter-
board Eth-Trunk links. The status of a BFD session group depends on the status of
the two BFD sub-sessions. As long as one BFD sub-session is up, the BFD session
group is up. When both sub-sessions are down, the BFD session group is down.

Step 3 Run discriminator local discr-value


The local discriminator of the BFD session is set.

NOTE

A BFD session group does not need to be configured with a local discriminator. Each sub-session
in a BFD session group has its own discriminator.

Step 4 Run discriminator remote discr-value


The remote discriminator of the BFD session is set.

NOTE

The local discriminator of the local device and the remote discriminator of the remote
device are the same. The remote discriminator of the local device and the local
discriminator of the remote device are the same. A discriminator inconsistency causes the
BFD session to fail to be established.
A BFD session group does not need to be configured with a remote discriminator. Each sub-
session in a BFD session group has its own discriminator.

Step 5 (Optional) Run min-tx-interval tx-interval


The local minimum interval at which BFD packets are sent is configured.
If an IP link is used as a reverse tunnel, this parameter is inapplicable.
● Effective local interval at which BFD packets are sent = MAX { Configured
local interval at which BFD packets are sent, Configured remote interval at
which BFD packets are received }
● Effective local interval at which BFD packets are received = MAX { Configured
remote interval at which BFD packets are sent, Configured local interval at
which BFD packets are received }
● Effective local detection interval = Effective local interval at which BFD
packets are received x Configured remote detection multiplier

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 51


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

For example:
● The local interval at which BFD packets are sent is set to 200 ms, the local
interval at which BFD packets are received is set to 300 ms, and the local
detection multiplier is set to 4.
● The remote interval at which BFD packets are sent is set to 100 ms, the
remote interval at which BFD packets are received is set to 600 ms, and the
remote detection multiplier is set to 5.
Then,
● Effective local interval at which BFD packets are sent = MAX { 200 ms, 600
ms } = 600 ms; effective local interval at which BFD packets are received =
MAX { 100 ms, 300 ms } = 300 ms; effective local detection period = 300 ms x
5 = 1500 ms
● Effective remote interval at which BFD packets are sent = MAX { 100 ms, 300
ms } = 300 ms; effective remote receiving interval = MAX { 200 ms, 600 ms } =
600 ms; effective remote detection period = 600 ms x 4 = 2400 ms
Step 6 (Optional) Run min-rx-interval rx-interval
The local minimum interval at which BFD packets are received is set.
Step 7 (Optional) Run detect-multiplier multiplier
The BFD detection multiplier is set.
Step 8 Run commit
The configurations are committed.

----End

1.1.3.7.4 Verifying the Configuration


After configuring the static BFD for TE CR-LSP, you can view configurations, such
as the status of the BFD sessions of Up.

Prerequisites
The static BFD for TE CR-LSP has been configured.

Procedure
● Run the display bfd session mpls-te interface tunnel-name te-lsp
[ verbose ] command to check information about BFD sessions on the
ingress.
● Run the following commands to check information about BFD sessions on the
egress.
– Run the display bfd session all [ for-ip | for-lsp | for-te ] [ verbose ]
command to check information about all BFD sessions.
– Run the display bfd session static [ for-ip | for-lsp | for-te ] [ verbose ]
command to check information about static BFD sessions.
– Run the display bfd session peer-ip peer-ip [ vpn-instance vpn-name ]
[ verbose ] command to check information about BFD sessions with
reverse IP links.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 52


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

– Run the display bfd session ldp-lsp peer-ip ip-address [ nexthop


nexthop-ip [ interface interface-type interface-number ] ] [ verbose ]
command to check information about the BFD sessions with reverse LDP
LSPs.
– Run the display bfd session mpls-te interface tunnel-name te-lsp
[ verbose ] command to check information about the BFD sessions with
reverse CR-LSPs.
– Run the display bfd session mpls-te interface tunnel-name [ verbose ]
command to check information about the BFD sessions with reverse TE
tunnels.
● Run the following commands to check BFD statistics.
– Run the display bfd statistics session all [ for-ip | for-lsp | for-te ]
command to check statistics about all BFD sessions.
– Run the display bfd statistics session static [ for-ip | for-lsp | for-te ]
command to check statistics about static BFD sessions.
– Run the display bfd statistics session peer-ip peer-ip [ vpn-instance
vpn-name ] command to check statistics about the BFD sessions with
reverse IP links.
– Run the display bfd statistics session ldp-lsp peer-ip peer-ip [ nexthop
nexthop-ip [ interface interface-type interface-number ] ] command to
check statistics about the BFD sessions with reverse LDP LSPs.
– Run the display bfd statistics session mpls-te interface interface-type
interface-number te-lsp command to check statistics about BFD sessions
with reverse CR-LSPs.

----End

1.1.3.8 Configuring Dynamic BFD for TE CR-LSP


Dynamic BFD for TE CR-LSP can be configured to monitor an RSVP CR-LSP and
protect traffic along a CR-LSP.

Usage Scenario
Compared with static BFD, dynamically creating BFD sessions simplifies
configurations and reduces configuration errors.

Currently, dynamic BFD for TE CR-LSP cannot detect faults in the entire TE tunnel.

NOTE

BFD for LSP can function properly though the forward path is an LSP and the reverse path
is an IP link. The forward and reverse paths must be established over the same link. If a
fault occurs, BFD cannot identify the faulty path. Before deploying BFD, ensure that the
forward and reverse paths are over the same link so that BFD can correctly identify the
faulty path.

Pre-configuration Tasks
Before configuring dynamic BFD for TE CR-LSP, configure an RSVP-TE tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 53


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.8.1 Enabling BFD Globally


To configure dynamic BFD for CR-LSP, enable BFD globally on the ingress node
and the egress node of a tunnel.

Context
Perform the following steps on the ingress and the egress of a TE tunnel:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bfd
BFD is enabled globally.
Step 3 Run commit
The configuration is committed.

----End

1.1.3.8.2 Enabling the Capability of Dynamically Creating BFD Sessions on the


Ingress
You can enable the ingress node to dynamically create BFD sessions on a TE
tunnel either globally or on a specified tunnel interface.

Context
Perform either of the following operations:
● Enable MPLS TE BFD globally if most TE tunnels on the ingress need to
dynamically create BFD sessions.
● Enable MPLS TE BFD on a tunnel interface if some TE tunnels on the
ingress need to dynamically create BFD sessions.

Procedure
● Enable MPLS TE BFD globally on the ingress.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te bfd enable
The capability of dynamically creating BFD sessions is enabled on the TE
tunnel.
After this command is run in the MPLS view, dynamic BFD for TE LSP is
enabled on all tunnel interfaces, excluding the interfaces on which
dynamic BFD for TE LSP is blocked.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 54


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

d. (Optional) Block the capability of dynamically creating BFD sessions for


TE LSP on the tunnel interfaces of the TE tunnels that do not need
dynamic BFD for TE LSP.

▪ Run interface tunnel interface-number


The TE tunnel interface view is displayed.

▪ Run mpls te bfd block


The capability of dynamically creating BFD sessions on the tunnel
interface is blocked.
e. Run commit
The configuration is committed.
● Enable MPLS TE BFD on a tunnel interface of the ingress.
a. Run system-view
The system view is displayed.
b. Run interface tunnel interface-number
The TE tunnel interface view is displayed.
c. Run mpls te bfd enable
The capability of dynamically creating BFD sessions is enabled on the TE
tunnel.
The command configured in the tunnel interface view takes effect only
on the current tunnel interface.
d. Run commit
The configuration is committed.
----End

1.1.3.8.3 Enabling the Capability of Passively Creating BFD Sessions on the Egress
On a unidirectional LSP, creating a BFD session on the ingress playing the active
role triggers the sending of LSP ping request messages to the egress node playing
the passive role. Only after the passive role receives the ping packets, a BFD
session can be automatically established.

Context
Perform the following steps on the egress:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bfd
The BFD view is displayed.
Step 3 (Optional) Run passive-session udp-port 3784 peer peer-ip

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 55


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The destination UDP port number is set for the specified passive BFD session.

Step 4 (Optional) Run passive-session detect-multiplier multiplier-value peer peerip-


value
The detection multiplier is set for the specified passive BFD session.

Step 5 Run mpls-passive

The capability of passively creating BFD sessions is enabled.

After this command is run, a BFD session can be created only after the egress
receives an LSP ping request message containing the BFD TLV from the ingress.

Step 6 Run commit

The configuration is committed.

----End

1.1.3.8.4 (Optional) Adjusting BFD Parameters


BFD parameters are adjusted on the ingress of a tunnel either globally or on a
tunnel interface.

Context
Perform either of the following operations:

● Adjust global BFD parameters if a majority of TE tunnels on the ingress use


the same BFD parameters.
● Adjust BFD parameters on an interface if some TE tunnels on the ingress
need BFD parameters different from global BFD parameters.
NOTE

● Effective local interval at which BFD packets are sent = MAX { Configured local interval
at which BFD packets are sent, Configured remote interval at which BFD packets are
received }
● Effective local interval at which BFD packets are received = MAX { Configured remote
interval at which BFD packets are sent, Configured local interval at which BFD packets
are received }
● Effective local detection interval = Effective local interval at which BFD packets are
received x Configured remote detection multiplier
On the egress of the TE tunnel enabled with the capability of passively creating BFD
sessions, the default values of the receiving interval, the sending interval, and the detection
multiplier cannot be adjusted. The default values of these three parameters are the
configured minimum values on the ingress. Therefore, the BFD detection interval on the
ingress and that on the egress of a TE tunnel are as follows:
● Effective detection interval on the ingress = Configured interval at which BFD packets
are received on the ingress x 3
● Effective detection interval on the egress = Configured local interval at which BFD
packets are sent on the ingress x Configured detection multiplier on the ingress

Procedure
● Adjust global BFD parameters on the ingress of a TE tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 56


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

a. Run system-view

The system view is displayed.


b. Run mpls

The MPLS view is displayed.


c. Run mpls te bfd { min-tx-interval tx-interval | min-rx-interval tx-
interval | detect-multiplier multiplier } *
BFD time parameters are adjusted globally.
d. Run commit

The configuration is committed.


● Adjust BFD parameters on the tunnel interface.
a. Run system-view

The system view is displayed.


b. Run interface tunnel interface-number

The TE tunnel interface view is displayed.


c. Run mpls te bfd { min-tx-interval tx-interval | min-rx-interval rx-
interval | detect-multiplier multiplier } *
BFD time parameters are adjusted.
d. Run commit

The configuration is committed.

----End

1.1.3.8.5 Verifying the Configuration


After configuring dynamic BFD for TE CR-LSP, you can verify that a CR-LSP is Up
and a BFD session is successfully established.

Procedure
● Run the display bfd session dynamic [ verbose ] command to check
information about the BFD session on the ingress.
● Run the display bfd session passive-dynamic [ peer-ip peer-ip remote-
discriminator discriminator ] [ verbose ] command to check information
about the BFD session passively created on the egress.
● Run the following commands to check BFD statistics.
– Run the display bfd statistics command to check statistics about all BFD
sessions.
– Run the display bfd statistics session dynamic command to check
statistics about dynamic BFD sessions.
● Run the display mpls bfd session [ protocol rsvp-te | outgoing-interface
interface-type interface-number ] [ verbose ] command to check information
about the MPLS BFD session.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 57


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.9 Configuring an RSVP-TE Tunnel


MPLS TE reserves resources for RSVP-TE tunnels. These tunnels are established
along specified paths, not passing through congested nodes, balancing traffic on a
network.

Usage Scenario
The dynamic RSVP-TE signaling protocol adjusts a path of a TE tunnel to adapt to
network topology changes. To help implement advanced functions, such as TE FRR
or CR-LSP backup, use the RSVP-TE signaling protocol to set up an MPLS TE
tunnel.

Pre-configuration Tasks
Before configuring an RSVP-TE tunnel, complete the following tasks:

● Configure OSPF or IS-IS to implement connectivity between label switching


routers (LSRs).
● Set the LSR ID for every LSR.
● Enable MPLS in the system and interface views on every LSR.

1.1.3.9.1 Enabling MPLS TE and RSVP-TE


MPLS TE and RSVP-TE must be enabled on each LSR in an MPLS domain before TE
functions are configured.

Context
NOTE

● If MPLS TE is disabled in the MPLS view, MPLS TE enabled in the interface view is also
disabled. As a result, all CR-LSPs configured on this interface go Down, and all
configurations associated with these CR-LSPs are deleted.
● If MPLS TE is disabled in the interface view, all CR-LSPs on the interface go Down.
● If RSVP-TE is disabled on an LSR, RSVP-TE is also disabled on all interfaces on this LSR.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls lsr-id lsr-id

An LSR ID is set for a local node.

When configuring an LSR ID, note the following:


● Configuring an LSR ID is the prerequisite of all MPLS configurations.
● An LSR ID must be manually configured because no default LSR ID is
available.
● It is recommended that the IP address of a loopback interface on the LSR be
used as the LSR ID.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 58


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTICE

The undo mpls command deletes all MPLS configurations, including the
established LDP sessions and LSPs.

Step 3 Run mpls


The MPLS view is displayed.
Step 4 Run mpls te
MPLS TE is enabled globally.
Step 5 Run mpls rsvp-te
RSVP-TE is enabled.
Step 6 Run quit
Return to the system view.
Step 7 Run interface interface-type interface-number
The view of the interface on which the MPLS TE tunnel is established is displayed.
Step 8 Run mpls
MPLS is enabled on an interface.
Step 9 Run mpls te
MPLS TE is enabled on the interface.
Step 10 Run mpls rsvp-te
RSVP-TE is enabled on the interface.
Step 11 Run commit
The configuration is committed.

----End

1.1.3.9.2 Configuring CSPF


Constrained Shortest Path First (CSPF) is configured to calculate the shortest path
destined for a specified node.

Context
To enable the ingress to calculate a complete path, CSPF needs to be configured
on all nodes along a path.
CSPF calculates only the shortest path to the specified tunnel destination. During
path computation, if there are multiple paths with the same weight, the optimal
path is selected using the tie-breaking function.
Tie-breaking is based on the percentage of the available bandwidth to the
maximum reservable bandwidth. The maximum reservable bandwidth is
configured using the mpls te bandwidth max-reservable-bandwidth command,

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 59


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

not the BC bandwidth configured using the mpls te bandwidth bc0 command on
an interface. The following tie-breaking policies are available:
● Most-fill: The path with a larger percentage of the available bandwidth to the
maximum reservable bandwidth is preferred. That is, the path with lower
bandwidth usage is preferred.
● Least-fill: The path with a smaller percentage of the available bandwidth to
the maximum reservable bandwidth is preferred. That is, the path with higher
bandwidth usage is preferred.
● Random: The device selects a path at random. This mode allows LSPs to be
evenly distributed among links, regardless of their bandwidth.

NOTE

The Most-fill and Least-fill modes are only effective when the difference in bandwidth
usage between the two links exceeds 10%, such as 50% of link A bandwidth utilization and
45% of link B bandwidth utilization. The value is 5%. At this time, the Most-fill and Least-
fill modes do not take effect, and the Random mode is still used.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te cspf

CSPF is enabled on the local node.

Step 4 (Optional) Run mpls te cspf preferred-igp { isis [ process-id [ level-1 | level-2 ] ]
| ospf [ process-id [ area area-id ] ] }

A preferred IGP is configured. Its process and area or level can also be configured.

Step 5 (Optional) Run mpls te cspf multi-instance shortest-path [ preferred-igp { isis |


ospf } [ process-id ] ]

CSPF is configured to calculate shortest paths among all IGP processes and areas.

NOTICE

The mpls te cspf multi-instance shortest-path command is mutually exclusive


with the mpls te cspf preferred-igp command. If the mpls te cspf multi-
instance shortest-path command is run, this command overrides the mpls te
cspf preferred-igp command.

Step 6 (Optional) Run mpls te cspf loose-explicit-path longest-match

Longest match is enabled for CSPF.

After the mpls te cspf loose-explicit-path longest-match command is run, the


path with the largest number of hops is preferentially selected in multi-segment

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 60


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

explicit path scenarios. If multiple explicit paths are qualified and have the same
number of hops, the path with the smallest metric is preferentially selected.

Step 7 (Optional) Run mpls te cspf optimize-mode disable

The optimization mode is disabled when CSPF calculates the path.

CSPF provides a method for selecting a path in the MPLS domain. By default, the
optimization mode is used for path calculation, and the path calculation is
performed from Egress to Ingress. Compared with the common calculation
method, the optimization mode has higher efficiency.

The mpls te cspf optimize-mode disable command is used to disable the CSPF
optimization mode. After the configuration, the path is calculated from Ingress to
Egress.

Step 8 (Optional) Configure a CR-LSP tie-breaking mode on the local node.

A CR-LSP tie-breaking mode can be configured globally or for a specific tunnel.


The tunnel-specific tie-breaking configuration takes preference over the global
configuration, and the global configuration is used by a tunnel only if no CR-LSP
tie-breaking mode is configured for this tunnel.

● Global configuration in the MPLS view


Run the mpls te tie-breaking { least-fill | most-fill | random } command to
configure a CR-LSP tie-breaking mode on the local node.
● Tunnel-specific configuration in the tunnel interface view
a. Run the quit command to return to the system view.
b. Run the interface tunnel tunnel-number command to enter the tunnel
interface view of a specific MLPS TE tunnel.
c. Run the mpls te tie-breaking { least-fill | most-fill | random }
command to configure a CR-LSP tie-breaking mode for the tunnel.

Step 9 Run commit

The configuration is committed.

----End

1.1.3.9.3 Configuring IGP TE (OSPF or IS-IS)


After IGP TE is configured on all LSRs in an MPLS domain, a TEDB is generated on
each LSR.

Context
Either OSPF TE or IS-IS TE can be used:

NOTE

If neither OSPF TE nor IS-IS TE is configured, LSRs generate no TE link state advertisement
(LSA) or TE Link State PDUs (LSPs) and construct no TEDBs.
TE tunnels cannot be used in inter-area scenarios. In an inter-area scenario, an explicit path
can be configured, and the inbound and outbound interfaces of the explicit path must be
specified, preventing a failure to establish a TE tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 61


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● OSPF TE
OSPF TE uses Opaque Type 10 LSAs to carry TE attributes. The OSPF Opaque
capability must be enabled on each LSR. In addition, TE LSAs are generated
only when at least one OSPF neighbor is in the Full state.
● IS-IS TE
IS-IS TE uses the sub-time-length-value (sub-TLV) in the IS-reachable TLV (22)
to carry TE attributes. The IS-IS wide metric attribute must be configured. Its
value can be wide, compatible, or wide-compatible.

Procedure
● Configure OSPF TE.
a. Run system-view

The system view is displayed.


b. Run ospf [ process-id ]

The OSPF view is displayed.


c. Run opaque-capability enable

The OSPF Opaque capability is enabled.


d. Run area area-id

The OSPF area view is displayed.


e. Run mpls-te enable [ standard-complying ]

TE is enabled in the OSPF area.


f. Run commit

The configuration is committed.


● Configure IS-IS TE.
a. Run system-view

The system view is displayed.


b. Run isis [ process-id ]

The IS-IS view is displayed.


c. Run cost-style { wide | compatible | wide-compatible }

The IS-IS wide metric attribute is set.


d. Run traffic-eng [ level-1 | level-2 | level-1-2 ]

IS-IS TE is enabled.

If no level is specified when IS-IS TE is enabled, IS-IS TE is valid for both


Level-1 and Level-2 routers.
e. (Optional) Run te-set-subtlv { bw-constraint bw-constraint-value | lo-
multiplier lo-multiplier-value | unreserve-bw-sub-pool unreserve-bw-
sub-pool-value } *
The type of a sub-TLV carrying DiffServ-aware Traffic Engineering (DS-TE)
attributes is specified.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 62


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

There are no unified standards for sub-TLVs that carry DS-TE attributes in
non-IETF mode. To ensure interconnection between devices of different
vendors, you need to manually configure TLV values for these sub-TLVs.
After TLV values are configured for these sub-TLVs, the traffic engineering
database (TEDB) is regenerated, and then TE tunnels are reestablished.
The sub-TLVs can be sent only after TLV values are configured for them.
f. Run commit
The configuration is committed.
----End

1.1.3.9.4 (Optional) Configuring TE Attributes for a Link


TE link attributes, including the link bandwidth, administrative group, affinity, and
SRLG, can be configured for you to select links for CR-LSP establishment.

Context
TE link attributes are as follows:
● Link bandwidth
The link bandwidth attribute can be set to limit the CR-LSP bandwidth.
NOTE

If no bandwidth is set for a link, the CR-LSP bandwidth may be higher than the
maximum reservable link bandwidth. As a result, the CR-LSP cannot be established.
● TE metric of the link
The IGP metric or TE metric of a link can be used for path calculation of a TE
tunnel. In this manner, the path calculation of the TE tunnel is more
independent of the IGP, and the path of the TE tunnel can be controlled more
flexibly.
● Administrative group and affinity
An affinity determines attributes for links to be used by an MPLS TE tunnel.
The affinity property, together with the link administrative group attribute, is
used to determine which links a tunnel uses.
An affinity can be set using either a hexadecimal number or a name.
– Hexadecimal number: A 32-bit hexadecimal number is set for each
affinity and link administrative group attribute, which causes plan and
computation difficulties. This is the traditional configuration mode of the
NE9000.
– Name: This mode is newly supported by the NE9000. Each bit of the 32-
bit administrative group and affinity attribute is named, which simplifies
configuration and maintenance. This mode is recommended.
● SRLG
A shared risk link group (SRLG) is a set of links which are likely to fail
concurrently because they share a physical resource (for example, an optical
fiber). In an SRLG, if one link fails, the other links in the SRLG also fail.
An SRLG enhances CR-LSP reliability on an MPLS TE network with CR-LSP hot
standby or TE FRR enabled. Two or more links are at the same risk if they
share physical resources. For example, links on an interface and its sub-

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 63


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interfaces are in an SRLG. Sub-interfaces share risks with their interface. These
sub-interfaces will go down if the interface goes down. If the links of a
primary tunnel and a backup or bypass tunnel are in the same SRLG, the links
of the backup or bypass tunnel share risks with the links of the primary
tunnel. The backup or bypass tunnel will go down if the primary tunnel goes
down.

Procedure
● Configure link bandwidth.

The bandwidth value is set on outbound interfaces along links of a TE tunnel


that requires sufficient bandwidth.

a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The view of an MPLS TE-enabled interface is displayed.


c. Run mpls te bandwidth max-reservable-bandwidth max-bw-value

The maximum reservable link bandwidth is set.


d. Run mpls te bandwidth bc0 bc0-bw-value

The BC bandwidth is set for the link.

NOTE

● The maximum reservable link bandwidth cannot be greater than the physical
link bandwidth. A maximum of 80% of the link bandwidth is recommended
for the maximum reservable link bandwidth.
● The BC0 bandwidth cannot be higher than the maximum reservable link
bandwidth.
e. Run commit

The configuration is committed.


● Set the TE metric value of a link.
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The view of an MPLS TE-enabled interface is displayed.


c. Run mpls te metric metric-value

The TE metric of a link is set.


d. Run commit

The configuration is committed.


● Configure an affinity and a link administrative group attribute in hexadecimal
format.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 64


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

● The modified administrative group takes effect only on LSPs that will be
established, not on LSPs that have been established.
● After the modified affinity is committed, the system will recalculate a path for the
TE tunnel, and the established LSPs in this TE tunnel are affected.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of the interface on which the MPLS TE tunnel is established is
displayed.
c. Run mpls te link administrative group group-value
An administrative group is configured for the link.
d. Run quit
Return to the system view.
e. Run interface tunnel tunnel-number
The view of the MPLS TE tunnel interface is displayed.
f. Run mpls te affinity property properties [ mask mask-value ]
[ secondary | best-effort ]
An affinity is set for the MPLS TE tunnel.
g. Run commit
The configuration is committed.
● Name hexadecimal bits of an affinity and a link administrative group
attribute.
NOTE

● The modified administrative group takes effect only on LSPs that will be
established, not on LSPs that have been established.
● After the modified affinity is committed, the system will recalculate a path for the
TE tunnel, and the established LSPs in this TE tunnel are affected.
a. Run system-view
The system view is displayed.
b. Run path-constraint affinity-mapping
An affinity name template is configured, and the affinity mapping view is
displayed.
This template must be configured on each node involved in MPLS TE
path computation, and the global mappings between the names and
values of affinity bits must be the same on all the involved nodes.
c. Run attribute bit-name bit-sequence bit-number
A mapping between an affinity bit and name is configured.
There are 32 affinity bits in total. You can repeat this step to configure
some or all affinity bits.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 65


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

d. Run interface interface-type interface-number


The view of the interface on which the MPLS TE tunnel is established is
displayed.
e. Run mpls te link administrative group name { name-string } &<1-32>
Bit names are set for a link administrative group.
The name-string value must be in the range specified in the affinity name
mapping template.
f. Run quit
Return to the system view.
g. Run interface tunnel tunnel-number
The view of the MPLS TE tunnel interface is displayed.
h. Run mpls te affinity { primary | secondary | best-effort } { include-all |
include-any | exclude } bit-name &<1-32>
An affinity is set for the MPLS TE tunnel.
i. Run commit
The configuration is committed.
● Configure an SRLG.
NOTE

On the ingress of a hot-standby CR-LSP or a TE FRR tunnel, perform Steps 1 to 3. On


the interface of each SRLG member, perform Step 5 and Step 6.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te srlg path-calculation [ preferred | strict ]
An SRLG path calculation mode is configured.

NOTE

● If strict is configured, CSPF uses an SRLG as a constraint when calculating a


path for a bypass or backup CR-LSP.
● If preferred is configured, CSPF uses an SRLG as a constraint when
calculating a path for a bypass or backup CR-LSP for the first time; if
calculation fails, CSPF no longer uses the SRLG as a constraint.
d. Run quit
Return to the system view.
e. Run interface interface-type interface-number
The view of the interface on which the MPLS TE tunnel is established is
displayed.
f. Run mpls te srlg srlg-number
The link on which the interface resides joins the SRLG.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 66


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

On a network with hot standby or TE FRR, the SRLG attribute needs to be


configured for the outbound interface of the ingress on a tunnel and
other members of the SRLG. A link joins an SRLG after the SRLG attribute
is configured on an outbound interface of the link.

NOTE

To delete the SRLG attribute from all interfaces on a device, run the undo mpls te
srlg all-config command in the MPLS view.
g. Run commit

The configuration is committed.

----End

1.1.3.9.5 (Optional) Configuring an Explicit Path


An explicit path is configured on the ingress of an MPLS TE tunnel. It defines the
nodes through which the MPLS TE tunnel must pass or the nodes that are
excluded from the MPLS TE tunnel.

Context
An explicit path consists of a series of nodes. These nodes are arranged in
sequence and form a vector path. An interface IP address on every node is used to
identify the node on an explicit path. The loopback IP address of the egress node
is usually used as the destination address of an explicit path.

Two adjacent nodes on an explicit path are connected in either of the following
modes:

● Strict: A hop is directly connected to its next hop.


● Loose: Other nodes may exist between a hop and its next hop.

The strict and loose modes are used either separately or simultaneously.

TE tunnels are classified as intra-area tunnels and inter-area tunnels. In this


situation, areas indicate OSPF and IS-IS areas, but not an autonomous system
(AS) running the Border Gateway Protocol (BGP). OSPF areas are divided based on
different area IDs while IS-IS areas are divided based on different levels.

● Intra-area tunnel: is a TE tunnel in a single OSPF or IS-IS area. An intra-area


tunnel can be established over a strict or loose explicit path.
● Inter-area tunnel: is a TE tunnel traversing multiple OSPF or IS-IS areas. An
explicit path must be used to establish an inter-area TE tunnel and an ABR or
an Autonomous System Boundary Router (ASBR) must be included in the
explicit path.

The explicit path in use can be updated.

Procedure
Step 1 Run system-view

The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 67


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run explicit-path path-name

An explicit path is created and the explicit path view is displayed.

Step 3 Run next hop ip-address [ include [ [ strict | loose ] | [ incoming | outgoing ] ] *

| exclude ]

The next-hop address is specified for the explicit path.

The include parameter indicates that the tunnel does pass through a specified
node; the exclude parameter indicates that the tunnel does not pass through a
specified node.

Step 4 (Optional) Run add hop ip-address1 [ include [ [ strict | loose ] | [ incoming |
outgoing ] ] * | exclude ] { after | before } ip-address2

A node is added to the explicit path.

Step 5 (Optional) Run modify hop ip-address1 ip-address2 [ include [ [ strict | loose ] |
[ incoming | outgoing ] ] * | exclude ]

The address of a node on an explicit path is changed.

Step 6 (Optional) Run delete hop ip-address

A node is excluded from an explicit path.

Step 7 (Optional) Run list hop [ ip-address ]

Information about nodes on an explicit path is displayed.

Step 8 Run commit

The configurations are committed.

----End

1.1.3.9.6 (Optional) Disabling TE LSP Flapping Suppression


TE LSP flapping suppression prevents high CPU usage stemming from TE LSP
flapping. This function can be disabled.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te

MPLS TE is globally enabled.

Step 4 Run mpls te suppress-flapping disable

TE LSP flapping suppression capability is disabled.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 68


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 5 Run commit


The configuration is committed.

----End

1.1.3.9.7 Configuring an MPLS TE Tunnel Interface


An MPLS TE tunnel is established and managed on a tunnel interface. Therefore,
the tunnel interface must be configured on the ingress of an MPLS TE tunnel.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel tunnel-number
A tunnel interface is created, and the tunnel interface view is displayed.
Step 3 Run either of the following commands to configure the IP address of the tunnel
interface:
● To assign an IP address to the tunnel interface, run ip address ip-address
{ mask | mask-length } [ sub ]
The primary IP address must be configured before the secondary IP address
can be configured for the tunnel interface.
● To configure the tunnel interface to borrow the IP address of another
interface, run ip address unnumbered interface interface-type interface-
number

NOTE

An MPLS TE tunnel is unidirectional; therefore, its peer address is irrelevant to traffic


forwarding. A tunnel interface uses the local LSR ID as its IP address, without the need to
be assigned an IP address.

Step 4 Run tunnel-protocol mpls te


MPLS TE is configured as a tunnel protocol.
Step 5 Run destination ip-address
The destination address of a tunnel is configured, which is usually the LSR ID of
the egress.
Various types of tunnels require specific destination addresses. If a tunnel protocol
is changed to MPLS TE from another protocol, a configured destination address is
deleted automatically and a new destination address needs to be configured.
Step 6 Run mpls te tunnel-id tunnel-id
The tunnel ID is configured.
Step 7 (Optional) Run mpls te signalled tunnel-name signalled-tunnel-name
The tunnel name carried in RSVP signaling messages is configured.
Perform this step to fulfill the following purposes:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 69


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Facilitate TE tunnel management.


● Allow a Huawei device to be connected to a non-Huawei device that uses a
tunnel name that differs from the tunnel interface name.

Step 8 (Optional) Run mpls te bandwidth ct0 ct0-bw-value

The bandwidth is set for an MPLS TE tunnel.

The bandwidth used by the tunnel cannot be higher than the maximum reservable
link bandwidth.

The bandwidth used by a tunnel does not need to be set if only a path needs to
be configured for an MPLS TE tunnel.

Step 9 (Optional) Run mpls te path explicit-path path-name [ secondary ]

An explicit path is configured for an MPLS TE tunnel.

An explicit path does not need to be configured if only the bandwidth needs to be
set for an MPLS TE tunnel.

Step 10 (Optional) Run mpls te resv-style { ff | se }

A resource reservation style is configured.

The SE style is used in the make-before-break scenario, and the fixed filter (FF)
style is used in a few scenarios.

Step 11 (Optional) Run mpls te cspf disable

Constraint shortest path first (CSPF) calculation is disabled when a TE tunnel is


being established.

NOTE

The mpls te cspf disable command is only applicable in the inter-AS VPN Option C
scenario. In other scenarios, running this command is not recommended.

Step 12 Run commit

The configurations are committed.

----End

1.1.3.9.8 (Optional) Configuring Soft Preemption for RSVP-TE Tunnels


The setup and holding priorities and the preemption function are configured to
allow TE tunnels to be established preferentially to transmit important services,
preventing random resource competition during tunnel establishment.

Context
If there is no path meeting the bandwidth requirement of a desired tunnel, a
device can tear down an established tunnel and use bandwidth resources assigned
to that tunnel to establish a desired tunnel. This is called preemption. The
following preemption modes are supported:
● Hard preemption: A tunnel with a higher setup priority can preempt resources
assigned to a tunnel with a lower holding priority. Consequently, some traffic

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 70


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

is dropped on the tunnel with a lower holding priority during the hard
preemption process.
● Soft preemption: After a tunnel with a higher setup priority preempts the
bandwidth of a tunnel with a lower holding priority, the soft preemption
function retains the tunnel with a lower holding priority for a specified period
of time. If the ingress finds a better path for this tunnel after the time elapses,
the ingress uses the make-before-break (MBB) mechanism to reestablish the
tunnel over the new path. If the ingress fails to find a better path after the
time elapses, the tunnel goes Down.

Procedure
● Configure software preemption in the RSVP-TE tunnel interface view.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. Run tunnel-protocol mpls te
MPLS TE is configured as a tunneling protocol.
d. (Optional) Run mpls te signal-protocol rsvp-te
A signaling protocol is configured for the tunnel.
By default, the signaling protocol of a tunnel is RSVP-TE.
e. Run mpls te soft-preemption
Software preemption is configured in the RSVP-TE tunnel interface view.
f. Run commit
The configuration is committed.
● Configure software preemption in the MPLS view.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te
MPLS TE is globally enabled.
d. Run mpls rsvp-te
RSVP-TE is enabled.
e. Run mpls te soft-preemption
Software preemption is configured in the global MPLS view.
After the preceding configuration, the device performs soft preemption
for tunnels that meet the following conditions:

▪ P2P tunnels that use RSVP-TE as the signaling protocol, including


manual tunnels, manual bypass tunnels, auto tunnels, auto bypass

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 71


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

tunnels, IP-prefix tunnels, and auto tunnels delivered by a PCE


controller.

▪ Manual tunnels whose tunnel interfaces have no mpls te soft-


preemption block or mpls te resv-style ff command configured.
If the mpls te soft-preemption command has been run in the view of a
manual tunnel interface, this configuration takes precedence over that in
the global MPLS view.
f. Run commit
The configuration is committed.
----End

1.1.3.9.9 (Optional) Configuring Graceful Shutdown


The graceful shutdown function can be enabled to help traffic migrate in seamless
switching scenarios, which reduces the upgrade and maintenance expenses on an
entire device.

Procedure
Step 1 Configure graceful shutdown in the MPLS view.
1. Run system-view
The system view is displayed.
2. Run mpls
The MPLS view is displayed.
3. Run mpls te
MPLS TE is globally enabled.
4. Run mpls rsvp-te
RSVP-TE is enabled.
5. Run mpls rsvp-te graceful-shutdown
Graceful shutdown is enabled.
6. (Optional) Run mpls rsvp-te timer graceful-shutdown graceful-shutdown-
time
A graceful shutdown timeout period is set.
After a local device performs graceful shutdown and sends a reroute request,
the device deletes the RSVP LSP if the rerouting fails within the graceful
shutdown timeout period.
7. Run commit
The configuration is committed.
Step 2 Configure graceful shutdown in the interface view.
1. Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 72


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

2. Run interface interface-type interface-number


The interface view is displayed.
3. Run mpls
MPLS is enabled on the interface.
4. Run mpls te
MPLS TE is enabled on the interface.
5. Run mpls rsvp-te graceful-shutdown
Graceful shutdown is enabled.
6. Run commit
The configuration is committed.

----End

1.1.3.9.10 Verifying the RSVP-TE Tunnel Configuration


After configuring the RSVP-TE tunnel, you can view statistics about the RSVP-TE
tunnel and its status.

Prerequisites
An RSVP-TE tunnel has been configured.

Procedure
● Run the display mpls te link-administration bandwidth-allocation
[ interface interface-type interface-number ] command to check the
allocated link bandwidth information.
● Run the display ospf [ process-id ] mpls-te [ area area-id ] [ self-
originated ] command to check OSPF TE information.
● Run either of the following commands to check the IS-IS TE status:
– display isis traffic-eng advertisements [ lsp-id | local ] [ level-1 |
level-2 | level-1-2 ] [ process-id | vpn-instance vpn-instance-name ]
– display isis traffic-eng statistics [ process-id | vpn-instance vpn-
instance-name ]
● Run the display explicit-path [ [ name ] path-name ] [ verbose ] command
to check the configured explicit paths.
● Run the display mpls te cspf destination ip-address [ affinity { properties
[ mask mask-value ] | { { include-all | include-any } { pri-in-name-string }
&<1-32> | exclude { pri-ex-name-string } &<1-32> } * } | bandwidth ct0 ct0-
bandwidth | explicit-path path-name | hop-limit hop-limit-number | metric-
type { igp | te } | priority setup-priority | srlg-strict exclude-path-name | tie-
breaking { random | most-fill | least-fill } ] * [ hot-standby [ explicit-path
hsb-path-name | overlap-path | affinity { hsb-properties [ mask hsb-mask-
value ] | { { include-all | include-any } { hsb-in-name-string } &<1-32> |
exclude { hsb-ex-name-string } &<1-32> } * } | hop-limit hsb-hop-limit-
number | srlg { preferred | strict } ] * ] command to check the path that is
calculated using CSPF based on specified conditions.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 73


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Run the display mpls te cspf tedb { all | area area-id | interface ip-address |
network-lsa | node [ router-id ] | srlg [ srlg-number ] [ igp-type { isis |
ospf } ] | overload-node } command to check information about TEDBs that
meet specified conditions and can be used by CSPF to calculate a path.
● Run the display mpls rsvp-te command to check RSVP information.
● Run the display mpls rsvp-te psb-content [ ingress-lsr-id tunnel-id [ lsp-
id ] ] command to check information about the RSVP-TE PSB.
● Run the display mpls rsvp-te rsb-content [ ingress-lsr-id tunnel-id lsp-id ]
command to check information about the RSVP-TE RSB.
● Run the display mpls rsvp-te established [ interface interface-type
interface-number peer-ip-address ] command to check information about the
established RSVP LSPs.
● Run the display mpls rsvp-te peer [ interface interface-type interface-
number | peer-address ] command to check the RSVP neighbor parameters.
● Run the display mpls rsvp-te reservation [ interface interface-type
interface-number peer-ip-address ] command to check information about
RSVP resource reservation.
● Run the display mpls rsvp-te request [ interface interface-type interface-
number peer-ip-address ] command to check information about RSVP LSP
resource reservation requests.
● Run the display mpls rsvp-te sender [ interface interface-type interface-
number peer-ip-address ] command to check information about an RSVP
transmit end.
● Run the display mpls rsvp-te statistics { global | interface [ interface-type
interface-number ] } command to check RSVP-TE statistics.
● Run the display mpls te link-administration admission-control [ interface
interface-type interface-number ] command to check tunnels established on
the local node.
● Run the display affinity-mapping [ attribute affinity-name ] [ verbose ]
command to check information about an affinity name template.
● Run the display mpls te tunnel [ destination ip-address ] [ lsp-id lsr-id
session-id local-lsp-id | lsr-role { all | egress | ingress | remote | transit } ]
[ name tunnel-name ] [ { incoming-interface | interface | outgoing-
interface } interface-type interface-number ] [ verbose ] command to check
tunnel information.
● Run the display mpls te tunnel statistics or display mpls lsp statistics
command to check tunnel statistics.
● Run the display mpls te tunnel-interface command to check information
about a tunnel interface on the ingress of a tunnel.
----End

1.1.3.10 Configuring an Automatic RSVP-TE Tunnel


Automatic RSVP-TE tunnels are generated using the PCE Initiated LSP protocol.
Such tunnels do not need to be manually configured.

Usage Scenario
In an SDN solution, a controller can run the PCE Initiated LSP protocol to generate
RSVP-TE tunnels, without manual tunnel configuration. Dynamic RSVP-TE

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 74


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

signaling adjusts paths of TE tunnels dynamically based on network changes. To


implement reliability functions, such as TE FRR and CR-LSP backup, using RSVP-Te
to establish MPLS TE tunnels is recommended.

Pre-configuration Tasks
Before configuring an automatic RSVP-TE tunnel, complete the following tasks:

● Configure IS-IS to implement network layer connectivity for LSRs.


● Set an LSR ID for each LSR.
● Enable MPLS globally and on interfaces on all LSRs.

1.1.3.10.1 Enabling MPLS TE and RSVP-TE


Enabling MPLS TE and RSVP-TE on each node and interface in an MPLS domain is
the prerequisites for all TE features.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls lsr-id lsr-id

An LSR ID is set for a local node.

When configuring an LSR ID, note the following:


● Configuring an LSR ID is the prerequisite of all MPLS configurations.
● An LSR ID must be manually configured because no default LSR ID is
available.
● It is recommended that the IP address of a loopback interface on the LSR be
used as the LSR ID.

Step 3 Run mpls

The MPLS view is displayed.

Step 4 Run mpls te

MPLS TE is enabled globally.

Step 5 Run mpls rsvp-te

RSVP-TE is enabled.

Step 6 Run quit

Return to the system view.

Step 7 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 75


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.10.2 (Optional) Configuring CSPF


CSPF is configured to calculate the shortest path destined for a specified node.

Context
After CSPF is configured, it can be used to calculate paths if a connection between
the forwarder and controller is disconnected. If CSPF is not configured and a
connection between the forwarder and controller is disconnected, no path can be
created because only the controller can calculate paths.
CSPF calculates only the shortest path to the specified tunnel destination. During
path computation, if there are multiple paths with the same weight, the optimal
path is selected using the tie-breaking function.
Tie-breaking is based on the percentage of the available bandwidth to the
maximum reservable bandwidth. The maximum reservable bandwidth is
configured using the mpls te bandwidth max-reservable-bandwidth command,
not the BC bandwidth configured using the mpls te bandwidth bc0 command on
an interface. The following tie-breaking policies are available:
● Most-fill: The path with a larger percentage of the available bandwidth to the
maximum reservable bandwidth is preferred. That is, the path with lower
bandwidth usage is preferred.
● Least-fill: The path with a smaller percentage of the available bandwidth to
the maximum reservable bandwidth is preferred. That is, the path with higher
bandwidth usage is preferred.
● Random: The device selects a path at random. This mode allows LSPs to be
evenly distributed among links, regardless of their bandwidth.

NOTE

The Most-fill and Least-fill modes are only effective when the difference in bandwidth
usage between the two links exceeds 10%, such as 50% of link A bandwidth utilization and
45% of link B bandwidth utilization. The value is 5%. At this time, the Most-fill and Least-
fill modes do not take effect, and the Random mode is still used.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls te cspf
CSPF is enabled on the local node.
Step 4 (Optional) Run mpls te cspf preferred-igp { isis [ process-id [ level-1 | level-2 ] ]
| ospf [ process-id [ area area-id ] ] }
A preferred IGP is configured. Its process and area or level can also be configured.
Step 5 (Optional) Run mpls te cspf multi-instance shortest-path [ preferred-igp { isis |
ospf } [ process-id ] ]

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 76


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

CSPF is configured to calculate shortest paths among all IGP processes and areas.

NOTICE

The mpls te cspf multi-instance shortest-path command is mutually exclusive


with the mpls te cspf preferred-igp command. If the mpls te cspf multi-
instance shortest-path command is run, this command overrides the mpls te
cspf preferred-igp command.

Step 6 (Optional) Run mpls te cspf optimize-mode disable


The optimization mode is disabled when CSPF calculates the path.
CSPF provides a method for selecting a path in the MPLS domain. By default, the
optimization mode is used for path calculation, and the path calculation is
performed from Egress to Ingress. Compared with the common calculation
method, the optimization mode has higher efficiency.
The mpls te cspf optimize-mode disable command is used to disable the CSPF
optimization mode. After the configuration, the path is calculated from Ingress to
Egress.
Step 7 (Optional) Configure a CR-LSP tie-breaking mode on the local node.
A CR-LSP tie-breaking mode can be configured globally or for a specific tunnel.
The tunnel-specific tie-breaking configuration takes preference over the global
configuration, and the global configuration is used by a tunnel only if no CR-LSP
tie-breaking mode is configured for this tunnel.
● Global configuration in the MPLS view
Run the mpls te tie-breaking { least-fill | most-fill | random } command to
configure a CR-LSP tie-breaking mode on the local node.
● Tunnel-specific configuration in the tunnel interface view
a. Run the quit command to return to the system view.
b. Run the interface tunnel tunnel-number command to enter the tunnel
interface view of a specific MPLS TE tunnel.
c. Run the mpls te tie-breaking { least-fill | most-fill | random }
command to configure a CR-LSP tie-breaking mode for the tunnel.
Step 8 Run commit
The configuration is committed.

----End

1.1.3.10.3 Configuring IGP TE (OSPF or IS-IS)


After IGP TE is configured on all LSRs in an MPLS domain, a TEDB is generated on
each LSR.

Context
Either OSPF TE or IS-IS TE can be used:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 77


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

If neither OSPF TE nor IS-IS TE is configured, LSRs generate no TE link state advertisement
(LSA) or TE Link State PDUs (LSPs) and construct no TEDBs.
TE tunnels cannot be used in inter-area scenarios. In an inter-area scenario, an explicit path
can be configured, and the inbound and outbound interfaces of the explicit path must be
specified, preventing a failure to establish a TE tunnel.
● OSPF TE
OSPF TE uses Opaque Type 10 LSAs to carry TE attributes. The OSPF Opaque
capability must be enabled on each LSR. In addition, TE LSAs are generated
only when at least one OSPF neighbor is in the Full state.
● IS-IS TE
IS-IS TE uses the sub-time-length-value (sub-TLV) in the IS-reachable TLV (22)
to carry TE attributes. The IS-IS wide metric attribute must be configured. Its
value can be wide, compatible, or wide-compatible.

Procedure
● Configure OSPF TE.
a. Run system-view
The system view is displayed.
b. Run ospf [ process-id ]
The OSPF view is displayed.
c. Run opaque-capability enable
The OSPF Opaque capability is enabled.
d. Run area area-id
The OSPF area view is displayed.
e. Run mpls-te enable [ standard-complying ]
TE is enabled in the OSPF area.
f. Run commit
The configuration is committed.
● Configure IS-IS TE.
a. Run system-view
The system view is displayed.
b. Run isis [ process-id ]
The IS-IS view is displayed.
c. Run cost-style { wide | compatible | wide-compatible }
The IS-IS wide metric attribute is set.
d. Run traffic-eng [ level-1 | level-2 | level-1-2 ]
IS-IS TE is enabled.
If no level is specified when IS-IS TE is enabled, IS-IS TE is valid for both
Level-1 and Level-2 routers.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 78


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

e. (Optional) Run te-set-subtlv { bw-constraint bw-constraint-value | lo-


multiplier lo-multiplier-value | unreserve-bw-sub-pool unreserve-bw-
sub-pool-value } *
The type of a sub-TLV carrying DiffServ-aware Traffic Engineering (DS-TE)
attributes is specified.

There are no unified standards for sub-TLVs that carry DS-TE attributes in
non-IETF mode. To ensure interconnection between devices of different
vendors, you need to manually configure TLV values for these sub-TLVs.
After TLV values are configured for these sub-TLVs, the traffic engineering
database (TEDB) is regenerated, and then TE tunnels are reestablished.
The sub-TLVs can be sent only after TLV values are configured for them.
f. Run commit

The configuration is committed.

----End

1.1.3.10.4 Configuring the Automatic RSVP-TE Tunnel Capability on a PCC


The PCE Initiated LSP protocol needs to be configured for automatic RSVP-TE
tunnels. A controller runs this protocol to deliver tunnel and path information to
the ingress on which a forwarder resides. Upon receipt of the information, the
ingress automatically establishes an RSVP-TE tunnel.

Context
The PCE Initiated LSP protocol is used to implement the automatic RSVP-TE tunnel
function. A PCE client (PCC) (ingress) establishes a PCE link to a PCE server
(controller). The controller delivers tunnel and path information to a forwarder
configured on the ingress. The ingress uses the information to automatically
establish a tunnel and reports LSP status information to the controller along the
PCE link.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run pce-client

A PCC is configured, and the PCC view is displayed.

Step 3 Run capability initiated-lsp

The initiated-LSP capability and RSVP-TE are enabled.

Step 4 Run connect-server ip-address

A candidate server is specified for the PCC.

Step 5 (Optional) Configure a PCC to delete LSPs whose establishment is triggered by a


controller if the PCE fails.
1. Run the quit command to return to the PCE client view.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 79


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

2. Run the quit command to return to the system view.


3. Run the mpls command to enter the MPLS view.
4. Run the mpls te pce cleanup initiated-lsp command to enable a PCC to
delete LSPs whose establishment is triggered by a controller if the PCE fails.

Step 6 Run commit

The configuration is committed.

----End

1.1.3.10.5 Configuring Dynamic BFD For Initiated RSVP-TE LSP


LSPs that a controller runs the PCE Initiated LSP protocol to establish can only be
monitored by dynamic BFD.

Context
NOTE

Configuring dynamic BFD to monitor RSVP-TE Initiated LSPs is recommended. If no BFD


session is configured, the LSP goes Up by default, but its actual status cannot be
determined.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te bfd enable auto-primary-tunnel pce-initiated-lsp

Dynamic BFD to monitor RSVP-TE Initiated LSP is enabled globally.

Step 4 Run commit

The configuration is committed.

----End

1.1.3.10.6 Configuring Dynamic BFD for Initiated RSVP-TE Tunnel


RSVP-TE tunnels that a controller runs the PCE Initiated LSP protocol to establish
can only be monitored by dynamic BFD.

Context
NOTE

Configuring dynamic BFD to monitor RSVP-TE Initiated tunnels is recommended. If no BFD


session is configured, the tunnel goes Up by default, but its actual status cannot be
determined.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 80


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te bfd tunnel enable auto-primary-tunnel pce-initiated-lsp

Dynamic BFD for initiated RSVP-TE tunnel is enabled globally.

Step 4 Run commit

The configuration is committed.

----End

1.1.3.10.7 (Optional) Enabling Traffic Statistics Collection for Automatic Tunnels


A device can be enabled to collect traffic statistics on RSVP-TE tunnels that are
established by the PCE Initiated LSP protocol.

Context
To view traffic information about an automatic tunnel, perform the following
steps to enable a device to collect traffic statistics on the automatic tunnel.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

MPLS is enabled, and the MPLS view is displayed.

Step 3 Run quit

Return to the system view.

Step 4 Run mpls traffic-statistics

MPLS traffic statistics collection is enabled globally, and the traffic statistics view is
displayed.

Step 5 Run te auto-primary-tunnel pce-initiated-lsp

Traffic statistics collection for automatic tunnels is enabled.

Step 6 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 81


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.10.8 Verifying the Automatic RSVP-TE Tunnel Configuration


After configuring an automatic RSVP-TE tunnel, you can check information about
the RSVP-TE tunnel and its status statistics.

Prerequisites
The automatic RSVP-TE tunnel functions have been configured.

Procedure
● Run the following commands to check the IS-IS-related label allocation
information:
– display isis traffic-eng advertisements [ { level-1 | level-2 | level-1-2 } |
{ lsp-id | local } ] * [ process-id | [ vpn-instance vpn-instance-name ] ]
– display isis traffic-eng statistics [ process-id | [ vpn-instance vpn-
instance-name ] ]
● Run the display mpls te tunnel [ destination ip-address ] [ lsp-id lsr-id
session-id local-lsp-id | lsr-role { all | egress | ingress | remote | transit } ]
[ name tunnel-name ] [ { incoming-interface | interface | outgoing-
interface } interface-type interface-number ] [ verbose ] command to check
tunnel information.
● Run the display mpls te tunnel statistics command to view TE tunnel
statistics.
● Run the display mpls te tunnel-interface [ tunnel tunnel-number ]
command to check information about a tunnel interface on the ingress.
----End

1.1.3.11 Adjusting RSVP Signaling Parameters


RSVP-TE supports various signaling parameters, which meet requirements for
reliability and network resources, and requirements of MPLS TE advanced
functions.

Usage Scenario
RSVP TE supports diversified signaling parameters, which meet requirements of
reliability and network resources and some MPLS TE advanced features.

Pre-configuration Tasks
Before adjusting RSVP signaling parameters, enable MPLS TE and RSVP-TE.

1.1.3.11.1 Configuring the RSVP Hello Extension


The RSVP Hello extension rapidly monitors the connectivity of RSVP neighbors.

Procedure
Step 1 Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 82


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run mpls


The MPLS view is displayed.
Step 3 Run mpls rsvp-te hello
The RSVP Hello extension is enabled on the local node.
Step 4 Run mpls rsvp-te hello-lost times
The maximum number of Hello messages that can be discarded is set.
Step 5 Run mpls rsvp-te timer hello interval
The interval at which Hello messages are refreshed is set.

NOTE

If the refresh interval is changed, the modification takes effect after the existing refresh
timer expires.
The interval must be longer than the time a device takes to perform a master/slave main
control board switchover. If the interval is set to less than the switchover time, a protocol
intermittent interruption occurs during a switchover. The default timer value is
recommended.

Step 6 Run quit


The system view is displayed.
Step 7 Run interface interface-type interface-number
The view of an RSVP-enabled interface is displayed.
Step 8 Run mpls rsvp-te hello
The RSVP Hello extension is enabled on an interface.
The RSVP Hello extension rapidly detects the reachability of RSVP neighbors. For
details, see relevant standards.
Step 9 Run commit
The configurations are committed.

----End

1.1.3.11.2 Configuring an RSVP Timer


An RSVP timer is configured to define the interval at which Path and Resv
messages are refreshed, and the timeout multiplier associated with the RSVP
blocked state is also configured.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 83


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Run mpls rsvp-te timer refresh interval


NOTE

If the refresh interval is modified, the modification takes effect after the existing refresh
timer expires. Do not set a long refresh interval or frequently modify a refresh interval.

Step 4 Run mpls rsvp-te keep-multiplier number


Step 5 Run commit
The configurations are committed.

----End

1.1.3.11.3 (Optional) Configuring Reliable RSVP Message Transmission


When BFD is not configured on a network, reliable RSVP message transmission
can be configured to increase the success rate of detecting link faults, which
minimize long-time traffic loss inducted by link intermittent disconnections.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls te
MPLS TE is globally enabled.
Step 4 Run mpls rsvp-te
RSVP-TE is enabled.
Step 5 Run mpls rsvp-te reliable-delivery
Reliable RSVP message transmission is enabled.
Step 6 Run commit
The configuration is committed.

----End

1.1.3.11.4 Configuring RSVP-TE Srefresh


Enabling Summary Refresh (Srefresh) on interfaces connecting two RSVP
neighboring nodes reduces the network cost and improves network performance.
After Srefresh is enabled, retransmission of Srefresh messages will be
automatically enabled on interfaces.

Procedure
Step 1 Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 84


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run mpls


The MPLS view is displayed.
Srefresh enabled in the MPLS view takes effect on an entire device.
Step 3 Run mpls rsvp-te srefresh
Srefresh is enabled.
Step 4 (Optional) Run mpls rsvp-te timer retransmission { increment-value incvalue |
retransmit-value retvalue } *
The retransmission parameters are set.
Step 5 (Optional) Enable the summary refresh (Srefresh) forward compatibility.
1. Run quit
The system view is displayed.
2. Run interface interface-type interface-number
The view of the interface on which the MPLS TE tunnel is established is
displayed.
3. Run mpls rsvp-te srefresh compatible
The Srefresh forward compatibility is enabled.
When the primary and backup CR-LSPs share the same link, the node on both
ends of the link may run different versions. If the upstream nodes run a version
earlier than V8 and the downstream node runs V8, Srefresh incompatibility occurs.
To address this problem, run the mpls rsvp-te srefresh compatible command on
the interface that connects the downstream device to the upstream node to
enable Srefresh compatibility.

NOTE

This command can only be run on a downstream node running V8 when its upstream node
runs a version earlier than V8, which ensures that Srefresh can be properly negotiated
between the two nodes.

Step 6 Run commit


The configuration is committed.

----End

1.1.3.11.5 Enabling RSVP-TE Reservation Confirmation


RSVP-TE reservation confirmation configured on the egress of a tunnel verifies
that resources are successfully reserved.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 85


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Run mpls rsvp-te resvconfirm

RSVP-TE reservation confirmation is enabled.

After a node receives a Path message, it initiates reservation confirmation by


sending a Resv message carrying an object that requests for reservation
confirmation.

NOTE

Receiving ResvConf messages does not mean that resource reservation is successful. It
means that, however, resources are reserved successfully only on the farthest upstream
node where this Resv message arrives. These resources may be preempted by other
applications later.

Step 4 Run commit

The configuration is committed.

----End

1.1.3.11.6 Changing the PSB and RSB Timeout Multiplier


The PSB and RSB timeout multiplier defines the maximum number of signaling
packets that can be discarded in a weak signaling environment.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls rsvp-te keep-multiplier number

The PSB and RSB timeout multiplier is set.

NOTE

Set the PSB and RSB timeout multiplier greater than or equal to 5. This setting prevents the
PSB and RSB from aging or being deleted if the PSB and RSB fail to refresh when a great
number of services are transmitted.

Step 4 Run commit

The configuration is committed.

----End

1.1.3.11.7 Verifying the Configuration of Adjusting RSVP Signaling Parameters


After adjusting RSVP signaling parameters, you can view the refresh parameters,
RSVP reservation confirmation status, RSVP Hello extension status, and RSVP timer
parameters.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 86


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Prerequisites
RSVP signaling parameters have been adjusted.

Procedure
● Run the display mpls rsvp-te command to check RSVP-TE configurations.
● Run the display mpls rsvp-te psb-content [ ingress-lsr-id tunnel-id lsp-id ]
command to check RSVP-TE PSB information.
● Run the display mpls rsvp-te rsb-content [ ingress-lsr-id tunnel-id lsp-id ]
command to check RSVP-TE RSB information.
● Run the display mpls rsvp-te statistics { global | interface [ interface-type
interface-number ] } command to check RSVP-TE statistics.
----End

1.1.3.12 Configuring Dynamic BFD for RSVP


This section describes how to configure a dynamic BFD session to detect faults in
links between RSVP neighbors.

Usage Scenario
BFD for RSVP is used with TE FRR when a Layer 2 device exists on the primary LSP
between a PLR and its downstream RSVP neighbor.
The interval at which a neighbor is declared Down is three times as long as the
interval at which RSVP Hello messages are sent. This allows devices to detect a
fault in an RSVP neighbor in seconds.
If a Layer 2 device exists on a link between RSVP nodes, an RSVP node cannot
rapidly detect a link fault, which results in a great loss of data.
BFD rapidly detects faults in links or nodes on which RSVP adjacencies are
deployed. If BFD detects a fault, it notifies the RSVP module of the fault and
instructs the RSVP module to switch traffic to a bypass tunnel.

Pre-configuration Tasks
Before you configure BFD for RSVP, configure an RSVP-TE tunnel.

1.1.3.12.1 Enabling BFD Globally


To configure dynamic BFD for RSVP, you must enable BFD on both ends of RSVP
neighbors.

Context
Perform the following steps on the two RSVP neighboring nodes between which a
Layer 2 device resides:

Procedure
Step 1 Run system-view

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 87


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The system view is displayed.


Step 2 Run bfd
BFD is enabled globally.
Step 3 Run commit
The configuration is committed.

----End

1.1.3.12.2 Enabling BFD for RSVP


You can enable BFD for RSVP either globally or on a specified interface.

Context
Perform either of the following operations:
● Enable BFD for RSVP globally if most RSVP interfaces on a node need BFD
for RSVP.
● Enable BFD for RSVP on an RSVP interface if some RSVP interfaces on a
node need BFD for RSVP.

Procedure
● Enable BFD for RSVP globally.
Perform the following steps on the two RSVP neighboring nodes between
which a Layer 2 device resides:
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls rsvp-te bfd all-interfaces enable
BFD for RSVP is enabled globally.
After this command is run in the MPLS view, BFD for RSVP is enabled on
all RSVP interfaces except the interfaces with BFD for RSVP that are
blocked.
d. (Optional) Block BFD for RSVP on the RSVP interfaces that do not need
BFD for RSVP.

▪ Run interface interface-type interface-number


The view of the RSVP-TE-enabled interface is displayed.

▪ Run mpls rsvp-te bfd block


BFD for RSVP is blocked on the interface.
e. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 88


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Enable BFD for RSVP on the RSVP interface.

Perform the following steps on the two RSVP neighboring nodes between
which a Layer 2 device resides:

a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The view of the RSVP-TE-enabled interface is displayed.


c. Run mpls rsvp-te bfd enable

BFD for RSVP is enabled on the RSVP interface.


d. Run commit

The configuration is committed.

----End

1.1.3.12.3 (Optional) Adjusting BFD Parameters


BFD parameters can be adjusted either globally or on a specific RSVP interface
after BFD for RSVP is configured.

Context
Perform either of the following operations:

● Adjust global BFD parameters if most RSVP interfaces on a node use the
same BFD parameters.
● Adjust BFD parameters on an RSVP interface if some RSVP interfaces
require BFD parameters different from global BFD parameters.

Procedure
● Adjust global BFD parameters globally.

Perform the following steps on the two RSVP neighboring nodes between
which a Layer 2 device resides:

a. Run system-view

The system view is displayed.


b. Run mpls

The MPLS view is displayed.


c. Run mpls rsvp-te bfd all-interfaces { min-tx-interval tx-interval | min-
rx-interval rx-interval | detect-multiplier multiplier } *

BFD parameters are set globally.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 89


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

BFD detection parameters that take effect on the local node may be different
from the configured parameters:
● Effective local interval at which BFD packets are sent = MAX { min-tx-
interval configured for local device, min-rx-interval configured for remote
device }
● Effective local interval at which BFD packets are received = MAX { min-tx-
interval configured for remote device, min-rx-interval configured for local
device }
● Effective local detection interval = MAX { min-tx-interval configured for
remote device, min-rx-interval configured for local device } x Configured
remote detection multiplier
d. Run commit
The configuration is committed.
● Adjust BFD parameters on an RSVP interface.
Perform the following steps on the two RSVP neighboring nodes between
which a Layer 2 device resides:
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of the RSVP-enabled interface is displayed.
c. Run mpls rsvp-te bfd { min-tx-interval tx-interval | min-rx-interval rx-
interval | detect-multiplier multiplier } *
BFD parameters on the RSVP interface are adjusted.
d. Run commit
The configuration is committed.
----End

1.1.3.12.4 Verifying the Configuration


After configuring dynamic BFD for TE RSVP, you can view the status of a BFD
session for RSVP.

Procedure
● Run the display mpls rsvp-te bfd session { all | interface interface-type
interface-number | peer ip-address } [ verbose ] command to check
information about the BFD for RSVP session.
● Run the display mpls rsvp-te interface [ interface-type interface-number ]
command to view BFD for RSVP configurations on a specific interface.
----End

1.1.3.13 Configuring Self-Ping for RSVP-TE


Self-ping is a connectivity check method for RSVP-TE LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 90


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Prerequisites
Before configuring self-ping for RSVP-TE, complete the following task:
● Configure RSVP-TE tunnels.

Context
After an RSVP-TE LSP is established, the system sets the LSP status to up, without
waiting for forwarding relationships to be completely established between nodes
on the forwarding path. If service traffic is imported to the LSP before all
forwarding relationships are established, some early traffic may be lost.
Self-ping can address this issue by checking whether the LSP can forward traffic.
Self-ping can be configured globally or for a specified tunnel. If both are
configured, the tunnel-specific configuration takes effect.

Procedure
Step 1 Configure self-ping globally.
1. Run system-view
The system view is displayed.
2. Run mpls
The MPLS view is displayed.
3. Run mpls te
MPLS TE is enabled for the device.
4. Run mpls te self-ping enable
Self-ping is enabled globally.
5. (Optional) Run mpls te self-ping duration self-ping-duration
The self-ping duration is set globally.
Value 65535 indicates an infinite detection duration.
6. Run commit
The configuration is committed.
Step 2 Configure self-ping for a specified tunnel.
1. Run system-view
The system view is displayed.
2. Run interface tunnel interface-number
A tunnel interface is created, and its view is displayed.
3. Run tunnel-protocol mpls te
MPLS TE is enabled.
4. Run mpls te self-ping enable
Self-ping is enabled for the specified tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 91


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

5. (Optional) Run mpls te self-ping duration self-ping-duration


The self-ping duration is set for the specified tunnel.

Value 65535 indicates an infinite detection duration.


If self-ping is enabled globally but not for a specific tunnel, the global self-
ping duration is effective for the tunnel. However, if self-ping is also enabled
for the tunnel, the tunnel-specific self-ping duration is effective.
6. Run commit
The configuration is committed.
Step 3 (Optional) Block self-ping for a specified tunnel.
If self-ping is enabled globally but this function should not be enabled for a
tunnel, you can perform the following steps to block self-ping for the tunnel:
1. Run system-view
The system view is displayed.
2. Run interface tunnel interface-number
A tunnel interface is created, and its view is displayed.
3. Run tunnel-protocol mpls te
MPLS TE is enabled.
4. Run mpls te self-ping block
Self-ping is blocked for the specified tunnel.
5. Run commit
The configuration is committed.
Step 4 (Optional) Configure whitelist session-CAR for self-ping.
When the self-ping service suffers a traffic burst, bandwidth may be preempted
among self-ping sessions. To resolve this problem, you can configure whitelist
session-CAR for self-ping to isolate bandwidth resources by session. If the default
parameters of whitelist session-CAR for self-ping do not meet service
requirements, you can adjust them as required.
1. Run system-view
The system view is displayed.
2. Run whitelist session-car ospf disable
Whitelist session-CAR for self-ping is disabled.
3. (Optional) Run whitelist session-car self-ping { cir cir-value | cbs cbs-value |
pir pir-value | pbs pbs-value } *
Parameters of whitelist session-CAR for self-ping are configured.
4. Run commit
The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 92


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Verifying the Configuration


After configuring self-ping for RSVP-TE, verify the configuration.

● Run the display mpls te tunnel-interface command to check the self-ping


configuration. In the command output, the Self-Ping field indicates whether
self-ping is enabled, and the Self-Ping Duration field indicates the self-ping
duration.
● Run the display cpu-defend whitelist session-car self-ping statistics slot
slot-id command to check whitelist session-CAR statistics about self-ping
packets on a specified interface board.
To check the statistics in a coming period of time, you can run the reset cpu-
defend whitelist session-car self-ping statistics slot slot-id command to
clear the existing whitelist session-CAR statistics about self-ping packets first.
Then, after the period elapses, run the display cpu-defend whitelist session-
car self-ping statistics slot slot-id command. In this case, all the statistics are
newly generally, facilitating statistics query.
NOTE

Cleared whitelist session-CAR statistics cannot be restored. Exercise caution when


running the reset command.

1.1.3.14 Configuring RSVP Authentication


RSVP authentication is configured to protect a node from attacks and improve
network security.

Usage Scenario
RSVP authentication prevents the following problems:
● An unauthorized node attempts to establish an RSVP neighbor relationship
with a local node.
● A remote node constructs forged RSVP messages to establish an RSVP
neighbor relationship with a local node and then initiates attacks to the local
node.

RSVP key authentication cannot prevent replay attacks or RSVP message mis-
sequence during network congestion. RSVP message mis-sequence causes
authentication termination between RSVP neighbors. The handshake function,
message window functions, and RSVP key authentication are used to prevent the
preceding problems.

CR-LSP flapping may lead to frequent re-establishment of RSVP neighbor


relationships. As a result, the handshake function is repeatedly performed and
RSVP authentication is prolonged. An RSVP authentication lifetime is set to resolve
the preceding problems. If no CR-LSP exists, RSVP neighbors still retain their
neighbor relationship until the RSVP authentication lifetime expires.

Pre-configuration Tasks
Before configuring RSVP authentication, configure an RSVP-TE tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 93


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.14.1 Configuring an RSVP Authentication Mode


RSVP authentication modes are configured between RSVP neighboring nodes or
between the interfaces of RSVP neighboring nodes. The keys on both ends to be
authenticated must be the same; otherwise, RSVP authentication fails, and RSVP
neighboring nodes discard received packets.

Context
RSVP authentication in the key mode is used to prevent an unauthorized node
from establishing an RSVP neighbor relationship with a local node. It can also
prevent a remote node from constructing forged packets to establish an RSVP
neighbor relationship with the local node.

The NE9000 supports three RSVP key authentication modes, as shown in Figure
1-6.

Figure 1-6 RSVP key authentication networking

● Local interface-based authentication


Local interface-based authentication is performed between interfaces
connecting a point of local Repair (PLR) and a merge point (MP) in an inter-
domain MPLS TE FRR scenario.
– Local interface-based authentication is recommended on a network
configured with inter-domain MPLS TE FRR.
– Local interface- or neighbor interface-based authentication can be used
on a network that is not configured with inter-domain MPLS TE FRR.
● Neighbor node-based authentication
Neighbor node-based authentication takes effect on an entire device. It is
usually performed between a PLR and an MP based on LSR IDs.
This authentication mode is recommended on a network with non-inter-
domain MPLS TE FRR.
● Neighbor interface-based authentication
Neighbor interface-based authentication is performed between interfaces
connecting two LSRs. For example, neighbor interface-based authentication is
performed between interfaces connecting LSRA and LSRB shown in the Figure
1-6.
Local interface- or neighbor interface-based authentication can be used on a
network that is not configured with inter-domain MPLS TE FRR.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 94


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Each pair of RSVP neighbors must use the same key; otherwise, RSVP
authentication fails, and all received RSVP messages are discarded.
Table1 Rules for RSVP authentication mode selection describes differences
between local interface-, neighbor node-, and neighbor address-based
authentication modes.

Table 1-3 Rules for RSVP authentication mode selection

Local Neighbor Interface-based


RSVP Key Interface- Neighbor Node- Authentication
Authentica based based
tion Authentication Authentication

Authenticati Local interface- RSVP neighbor- RSVP neighbor interface-


on mode based based based authentication
authentication authentication

Priority High Medium Low

Applicable Any network Non-inter-area Networks on which MPLS


environmen network TE FRR is enabled and
t primary CR-LSPs are in the
FRR Inuse state

Advantages N/A Simplex N/A


configuration

Procedure
● Configure RSVP key authentication in neighbor address-based mode.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of the interface on which the MPLS TE tunnel is established is
displayed.
c. Run mpls rsvp-te authentication { { cipher | plain } auth-key | keychain
keychain-name }
The key for RSVP authentication is configured.
HMAC-MD5 or keychain authentication can be configured based on the
selected parameter:

▪ cipher: HMAC-MD5 authentication is used, and a key is displayed in


ciphertext.

▪ plain: HMAC-MD5 authentication is used, and a key is displayed in


simple text.

▪ keychain: Keychain authentication is used, and a globally configured


keychain is referenced.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 95


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTICE

If you configure a simple password, it will be saved in the configuration


file in clear text that has a high security risk. Therefore, configuring a
ciphertext password is recommended. To improve the device security,
periodically change the password.
HMAC-MD5 authentication provides low security. To ensure high security,
you are advised to use keychain authentication and a high-security
algorithm, such as HMAC-SHA-256.
Configuration must be complete on the two directly connected interfaces
within three update periods. If configuration is not complete after three
update periods elapse, the session goes Down.

d. Run commit

The configuration is committed.


● Configure RSVP key authentication in neighbor-based mode.
a. Run system-view

The system view is displayed.


b. Run mpls

The MPLS view is displayed.


c. (Optional) Run mpls rsvp-te challenge-lost peer-address

The maximum number of allowable discarded challenge messages that


are sent by the supplicant to the authenticator during RSVP
authentication is set.
d. (Optional) Run mpls rsvp-te retrans-timer challenge retransmission-
interval

The interval at which challenge messages are retransmitted is set.


e. Run mpls rsvp-te peer peer-address

The RSVP neighbor view is displayed.


f. Run mpls rsvp-te authentication { { cipher | plain } auth-key | keychain
keychain-name }

The key for RSVP authentication is configured.

HMAC-MD5 or keychain authentication can be configured based on the


selected parameter:

▪ cipher: HMAC-MD5 authentication is used, and a key is displayed in


ciphertext.

▪ plain: HMAC-MD5 authentication is used, and a key is displayed in


simple text.

▪ keychain: Keychain authentication is used, and a globally configured


keychain is referenced.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 96


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTICE

If you configure a simple password, it will be saved in the configuration


file in clear text that has a high security risk. Therefore, configuring a
ciphertext password is recommended. To improve the device security,
periodically change the password.
HMAC-MD5 authentication provides low security. To ensure high security,
you are advised to use keychain authentication and a high-security
algorithm, such as HMAC-SHA-256.
Configuration must be complete on the two neighboring nodes within
three update periods. If configuration is not complete after three update
periods elapse, the session goes Down.

g. Run commit
The configuration is committed.
----End

1.1.3.14.2 (Optional) Setting RSVP Authentication Lifetime


The RSVP authentication lifetime is set to prevent RSVP authentication from being
prolonged when CR-LSP flapping causes frequent reestablishment of RSVP
neighbor relationships and repeatedly performed handshake.

Context
RSVP neighbors retain an RSVP neighbor relationship within a specified RSVP
authentication lifetime even if there are no CR-LSPs between the RSVP neighbors.
Configuring the RSVP authentication lifetime does not affect existing CR-LSPs.

Procedure
● Configure RSVP authentication lifetime in the interface view.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of an RSVP-enabled interface is displayed.
c. Run mpls rsvp-te authentication lifetime lifetime
The RSVP authentication lifetime is set.
d. Run commit
The configuration is committed.
● Configure the RSVP authentication lifetime in the MPLS RSVP-TE peer view.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 97


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

c. Run mpls rsvp-te peer peer-addr

The MPLS RSVP-TE peer view is displayed.

If peer-addr is an interface IP address of the neighbor, not the neighbor


LSR ID, key authentication will only take effect on that neighbor
interface. Key authentication then provides high security and has the
highest priority.

If peer-addr is a neighbor LSR ID, key authentication will take effect on


all interfaces on the neighbor. Authentication configured using this
method has a lower priority than that configured based on the neighbor's
interface IP address but has a higher priority than that configured in the
interface view.
d. Run mpls rsvp-te authentication lifetime lifetime

The RSVP authentication lifetime is set.


e. Run commit

The configuration is committed.

----End

1.1.3.14.3 (Optional) Configuring the Handshake Function


The handshake function helps RSVP key authentication prevent replay attacks.

Context
If the handshake function is configured between neighbors and the lifetime is
configured, the lifetime must be greater than the interval at which RSVP update
messages are sent. If the lifetime is smaller than the interval at which RSVP
update messages are sent, authentication relationships may be deleted because
no RSVP update message is received within the lifetime. As a result, the
handshake mechanism is used again when a new update message is received. An
RSVP-TE tunnel may be deleted or fail to be established.

Procedure
● Configure the handshake function in the interface view.
a. Run system-view

Return to the system view.


b. Run interface interface-type interface-number

The view of the interface on which the MPLS TE tunnel is established is


displayed.
c. Run mpls rsvp-te authentication handshake

The handshake function is enabled.

NOTE

The task of "Configuring an RSVP Authentication Mode" must be complete


before the RSVP handshake function is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 98


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The handshake function helps a device to establish an RSVP neighbor


relationship with its neighbor. If a device receives RSVP messages from a
neighbor, with which the device has not established an RSVP
authentication relationship, the device will send Challenge messages
carrying local identifier to this neighbor. After receiving the Challenge
messages, the neighbor returns Response messages carrying the identifier
the same as that in the Challenge messages. After receiving the Response
messages, the local end checks identifier carried in the Response
messages. If identifier in the Response messages is the same as the local
one, the device determines to establish an RSVP authentication
relationship with its neighbor.
d. Run commit

The configuration is committed.


● Configure the handshake function in the MPLS RSVP-TE peer view.
a. Run system-view

The system view is displayed.


b. Run mpls

The MPLS view is displayed.


c. Run mpls rsvp-te peer peer-addr

The MPLS RSVP-TE neighbor view is displayed.

▪ If ip-address is set to an interface IP address of a neighbor, not the


neighbor LSR ID, the handshake function will only take effect on that
neighbor interface.

▪ If ip-address is set to a neighbor LSR ID, the handshake function will


take effect on all interfaces of the neighbor.
d. Run mpls rsvp-te authentication handshake

The handshake function is enabled.

NOTE

The task of "Configuring an RSVP Authentication Mode" must be complete


before the RSVP handshake function is configured. The handshake can only take
effect after it is configured on both ends of an RSVP authentication relationship.

The handshake function helps a device to establish an RSVP neighbor


relationship with its neighbor. If a device receives RSVP messages from a
neighbor, with which the device has not established an RSVP
authentication relationship, the device will send Challenge messages
carrying local identifier to this neighbor. After receiving the Challenge
messages, the neighbor returns Response messages carrying the identifier
the same as that in the Challenge messages. After receiving the Response
messages, the local end checks identifier carried in the Response
messages. If identifier in the Response messages is the same as the local
one, the device determines to establish an RSVP authentication
relationship with its neighbor.
e. Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 99


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.


----End

1.1.3.14.4 (Optional) Configuring the Message Window Function


The message window function prevents RSVP message mis-sequence. RSVP
message mis-sequence terminates RSVP authentication between neighboring
nodes.

Context
The message window function prevents RSVP message mis-sequence.
If the window size is greater than 1, the local device stores several latest valid
sequence numbers of RSVP messages from neighbors.

Procedure
● Configure the message window function in the interface view.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of the interface on which the MPLS TE tunnel is established is
displayed.
c. Run mpls rsvp-te authentication handshake
The handshake function is enabled.

NOTE

The task of "Configuring an RSVP Authentication Mode" must be complete


before the RSVP handshake function is configured. The handshake can only take
effect after it is configured on both ends of an RSVP authentication relationship.
d. Run mpls rsvp-te authentication window-size window-size
The message window function is configured.
The value is the number of valid sequence numbers of received RSVP
messages that can be stored.
If RSVP is enabled on a trunk interface, only one neighbor relationship is
established on the trunk interface between RSVP neighbors. This means
any trunk member interface receives RSVP messages in a random order,
which results in message mis-sequence. An RSVP message sliding window
is configured to address this problem. If the sliding window is too small,
received out-of-order RSVP messages outside the window size are
discarded, which terminates the RSVP neighbor relationship.
e. Run commit
The configuration is committed.
● Configure the message window function in the MPLS RSVP-TE peer view.
a. Run system-view

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 100


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The system view is displayed.


b. Run mpls

The MPLS view is displayed.


c. Run mpls rsvp-te peer peer-addr

The MPLS RSVP-TE peer view is displayed.

▪ If peer-addr is set to an interface IP address of a neighbor, not the


neighbor LSR ID, the message window will only take effect on that
interface of the neighbor.

▪ If peer-addr is set to a neighbor LSR ID, the message window will


take effect on all interfaces of the neighbor.
d. Run mpls rsvp-te authentication handshake

The handshake function is enabled.

NOTE

The task of "Configuring an RSVP Authentication Mode" must be complete


before the RSVP handshake function is configured. The handshake can only take
effect after it is configured on both ends of an RSVP authentication relationship.
e. Run mpls rsvp-te authentication window-size window-size

The message window function is configured. The value is the number of


valid sequence numbers of received RSVP messages that can be stored.

If RSVP is enabled on a trunk interface, only one neighbor relationship is


established on the trunk interface between RSVP neighbors. This means
any trunk member interface receives RSVP messages in a random order,
which results in message mis-sequence. An RSVP message sliding window
is configured to address this problem. If the sliding window is too small,
received out-of-order RSVP messages outside the window size are
discarded, which terminates the RSVP neighbor relationship.
f. Run commit

The configuration is committed.

----End

1.1.3.14.5 Verifying the RSVP Authentication Configuration


After configuring RSVP authentication, you can view information about RSVP
authentication.

Prerequisites
RSVP authentication has been configured.

Procedure
● Run the display mpls rsvp-te command to check RSVP-TE configurations on a
specific interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 101


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Run the display mpls rsvp-te peer [ interface interface-type interface-


number | peer-address ] command to check RSVP-TE neighbor information on
an RSVP-TE-enabled interface.

----End

1.1.3.15 Configuring Whitelist Session-CAR for RSVP-TE


You can configure whitelist session-CAR for RSVP-TE to isolate bandwidth
resources by session for RSVP-TE packets. This configuration prevents bandwidth
preemption among RSVP-TE sessions in the case of a traffic burst.

Context
When the RSVP-TE service suffers a traffic burst, bandwidth may be preempted
among RSVP-TE sessions. To resolve this problem, you can configure whitelist
session-CAR for RSVP-TE to isolate bandwidth resources by session. If the default
parameters of whitelist session-CAR for RSVP-TE do not meet service
requirements, you can adjust them as required.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run whitelist session-car ospf disable

Whitelist session-CAR for RSVP-TE is disabled.

Step 3 (Optional) Run whitelist session-car rsvp-te { cir cir-value | cbs cbs-value | pir
pir-value | pbs pbs-value } *
Parameters of whitelist session-CAR for RSVP-TE are configured.

Step 4 Run commit

The configuration is committed.

----End

Verifying the Configuration


After configuring whitelist session-CAR for RSVP-TE, you can verify the
configuration.

Run the display cpu-defend whitelist session-car rsvp-te statistics slot slot-id
command to check whitelist session-CAR statistics about RSVP-TE packets on a
specified interface board.

To check the statistics in a coming period of time, you can run the reset cpu-
defend whitelist session-car rsvp-te statistics slot slot-id command to clear the
existing whitelist session-CAR statistics about RSVP-TE packets first. Then, after the
period elapses, run the display cpu-defend whitelist session-car rsvp-te
statistics slot slot-id command. In this case, all the statistics are newly generally,
facilitating statistics query.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 102


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

Cleared whitelist session-CAR statistics cannot be restored. Exercise caution when running
the reset command.

1.1.3.16 Configuring Micro-Isolation Protocol CAR for RSVP-TE

Context
Micro-isolation CAR for RSVP-TE is enabled by default to implement micro-
isolation protection for RSVP-TE connection establishment packets. If a device is
attacked, messages of one RSVP-TE session may preempt bandwidth of other
sessions. Therefore, you are advised to keep this function enabled.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run micro-isolation protocol-car rsvp-te { cir cir-value | cbs cbs-value | pir pir-
value | pbs pbs-value } *
Micro-isolation CAR parameters are configured for RSVP-TE.
In normal cases, you are advised to use the default values of these parameters.
pir-value must be greater than or equal to cir-value, and pbs-value must be
greater than or equal to cbs-value.
Step 3 (Optional) Run micro-isolation protocol-car rsvp-te disable
Micro-isolation CAR is disabled for RSVP-TE.
Micro-isolation CAR for RSVP-TE is enabled by default. To disable micro-isolation
for RSVP-TE packets, run the micro-isolation protocol-car rsvp-te disable
command. In normal cases, you are advised to keep micro-isolation CAR enabled
for RSVP-TE.
Step 4 Run commit
The configuration is committed.

----End

1.1.3.17 Configuring an RSVP GR Helper


An RSVP GR Helper is configured to allow devices along an RSVP-TE tunnel to
retain RSVP sessions during a master/backup switchover.

Usage Scenario
The NE9000 can only function as a GR Helper to help a neighbor node to
complete RSVP GR. The RSVP GR Helper needs to be configured only after GR is
enabled on the neighbor node that supports the RSVP GR Restarter. If a local
device is only connected to NE9000s running the same version with the local
device, there is no need to configure the RSVP GR Helper on the local device.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 103


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Pre-configuration Tasks
Before configuring an RSVP GR Helper, configure an RSVP-TE tunnel.

1.1.3.17.1 Enabling the RSVP Hello Extension


The RSVP Hello extension is configured on a GR node and its neighbor to rapidly
monitor reachability between these RSVP nodes.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls rsvp-te hello
The RSVP Hello extension is enabled globally.
Step 4 Run quit
The system view is displayed.
Step 5 Run interface interface-type interface-number
The view of an RSVP-enabled interface is displayed.
Step 6 Run mpls rsvp-te hello
The RSVP Hello extension is enabled on an interface.
After RSVP Hello extension is enabled globally on a node, enable the RSVP Hello
extension on each interface of the node.
Step 7 Run commit
The configuration is committed.

----End

1.1.3.17.2 Enabling the RSVP GR Support Capability


The RSVP GR support capability helps a node support its neighbors' GR
capabilities.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls rsvp-te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 104


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

RSVP-TE is enabled.

Step 4 Run mpls rsvp-te hello

The RSVP Hello extension is enabled on the local node.

Step 5 Run mpls rsvp-te hello support-peer-gr

The RSVP GR support function is enabled.

Step 6 Run commit

The configurations are committed.

----End

1.1.3.17.3 (Optional) Configuring a Hello Session Between RSVP GR Nodes


If TE FRR is deployed, a Hello session must be established between a PLR and an
MP. A Hello session must be manually established if it cannot be automatically
established between RSVP neighboring nodes.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls rsvp-te

RSVP-TE is enabled.

Step 4 Run mpls rsvp-te hello

The RSVP Hello extension is enabled on the local node.

Step 5 Run mpls rsvp-te hello nodeid-session ip-address

A Hello session is established between two RSVP neighboring nodes.

The ip-address parameter specifies the LSR ID of an RSVP neighboring node.

Step 6 Run commit

The configurations are committed.

----End

1.1.3.17.4 Verifying the RSVP GR Helper Configuration


After configuring RSVP GR, you can verify that the TE tunnel properly forwards
data during the GR process.

Prerequisites
RSVP GR has been configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 105


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
● Run the display mpls rsvp-te graceful-restart command to check the RSVP-
TE GR status.
● Run the display mpls rsvp-te graceful-restart peer [ { interface interface-
type interface-number | node-id } [ ip-address ] ] command to check
information about the RSVP GR status on a neighbor.

----End

1.1.3.18 Configuring the Entropy Label for Tunnels


The entropy label can be used to improve load balancing in traffic forwarding.

Usage Scenario
With the increasing growth of user networks and the extending scope of network
services, load-balancing techniques are used to improve bandwidth between
nodes. A great number of traffic results in load imbalance on transit nodes. To
address the problems, the entropy label capability can be configured to improve
load balancing performance.

Pre-configuration Tasks
Before configuring the entropy label for tunnels, Enabling MPLS TE and RSVP-TE.

1.1.3.18.1 Configuring an LSR to Deeply Parse IP Packets


This section describes how to enable an LSR to deeply parse IP packets.

Context
After the entropy label function is enabled on the LSR, the LSR uses IP header
information to generate an entropy label and adds the label to the packets. The
entropy label is used as a key value by a transit node to load-balance traffic. If the
length of a data frame carried in a packet exceeds the parsing capability, the LSR
fails to parse the IP header or generate an entropy label. Perform the following
operations on the LSR:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run load-balance identify entropy-label

The LSR is enabled to deeply parse IP packets.

Step 3 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 106


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.18.2 Enabling the Entropy Label Capability on the Egress of an LSP


The entropy label capability can be configured on the egress of an LSP to load-
balance traffic.

Context
The growth of user networks worsens the load imbalance on transit nodes. To
address this problem, the entropy label capability can be configured. When the
entropy label capability is configured, it must be enabled also on the egress.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run entropy-label-capability enable

The entropy label capability is configured on the egress of an LSP

Step 4 Run commit

The configuration is committed.

----End

1.1.3.18.3 Configuring the Entropy Label for Global Tunnels


The entropy label can be configured to global tunnels to improve load balancing
performance.

Context
If severe load imbalance occurs, the entropy label can be configured for global
tunnels to help transit nodes properly load-balance traffic. The entropy label
capability is enabled on the egress for tunnels. An entropy label is configured in
the tunnel interface view to confirm the tunnel entropy label requirement, and the
ingress sends the requirement to the forwarding plane for processing.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te

MPLS TE is globally enabled.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 107


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 4 Run mpls te entropy-label rsvp-te


The entropy label is configured for global tunnels.
Step 5 Run commit
The configuration is committed.

----End

1.1.3.18.4 (Optional) Configuring an Entropy Label Capability for a Tunnel in the


Tunnel Interface View
The entropy label capability can be configured in the tunnel interface view to
improve load balancing performance.

Context
If severe load imbalance occurs, the entropy label can be configured in the tunnel
interface view to help transit nodes properly load-balance traffic. The entropy
label capability is enabled on the egress for tunnels. An entropy label is set on the
ingress to confirm the tunnel entropy label requirement, and the ingress sends the
requirement to the forwarding plane for processing. If no entropy label is
configured in the tunnel interface view, the entropy label capability is determined
by the global entropy label capability.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls te
MPLS TE is globally enabled.
Step 4 Run quit
The system view is displayed.
Step 5 Run interface tunnel tunnel-number
The tunnel interface view is displayed.
Step 6 Run tunnel-protocol mpls te
MPLS TE is configured as a tunnel protocol.
Step 7 Run mpls te entropy-label
An entropy label is configured for a tunnel in the tunnel interface view.
Step 8 Run commit
The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 108


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.18.5 Verifying the Configuration of the Entropy Label for Tunnels


After configuring the entropy label for tunnels, you can verify entropy label
information.

Prerequisites
The entropy label has been configured for tunnels.

Procedure
● Run the display mpls te tunnel-interface command to check the tunnel
entropy label capability.

----End

1.1.3.19 Configuring RSVP Distribution


RSVP distribution supports multiple RSVP instances on multiple boards, which
allows for more TE tunnels.

Usage Scenario
Carriers use more MPLS TE tunnels to connect PEs. These MPLS TE tunnels pass
through Ps. Because the soft state refresh mechanism of an MPLS TE tunnel uses
many memory and CPU resources of Ps, P scalability is reduced. If mores PEs are
required in the future and tunnels are used to connect these PEs, the number of
tunnels increases dramatically, which increase the burden on devices. When the
number of tunnels reaches the maximum value, no new tunnels can be
established.

RSVP distribution is recommended, which allows a device to support more


functions. RSVP distribution supports the RSVP multi-instance on multiple boards,
which allows more TE tunnels.

Traffic on an interface is balanced over RSVP instances. An interface transmits


RSVP-TE services after being enabled with RSVP-TE. An interface is assigned to a
specified RSVP instance. This allows services to be transmitted using the specified
RSVP instance.

Pre-configuration Tasks
Before configuring RSVP distribution, enable MPLS TE and RSVP-TE.

1.1.3.19.1 Configuring an RSVP Distribution Instance


An RSVP distribution instance is configured to relieve the burden on memory and
the CPU of a single control board.

Procedure
Step 1 Run system-view

The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 109


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls rsvp-te distributed-instance distributed-instance-name os-group os-


group-name

An RSVP distribution instance is created.

Step 4 Run commit

The configuration is committed.

----End

1.1.3.19.2 Allocating an Interface to an RSVP Instance


An interface is allocated to multiple RSVP instances. This allows the interface to
carry more RSVP TE services.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The view of the interface on which the MPLS TE tunnel is established is displayed.

Step 3 Run mpls rsvp-te distributed-instance distributed-instance-name

A specified interface is assigned to a specified RSVP instance.

Step 4 Run commit

The configuration is committed.

----End

1.1.3.19.3 Verifying the RSVP Distribution Configuration


After configuring RSVP distribution, you can view information about RSVP
authentication.

Prerequisites
RSVP distribution has been configured.

Procedure
Step 1 Run the display mpls rsvp-te distributed-instance [ name distributed-instance-
name ] [ verbose ] command to check RSVP distribution configurations.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 110


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.20 Configuring the IP-Prefix Tunnel Function


The IP-prefix tunnel function can be configured and used to establish P2P RSVP-TE
tunnels in a batch, which simplifies the configuration.

Usage Scenario
When you want to create a large number of P2P RSVP-TE tunnels or create P2P
RSVP-TE tunnels to form a full-mesh network, creating them one by one is
laborious and complex. To simplify MPLS RSVP-TE tunnel configuration, configure
the IP-prefix tunnel function so that P2P RSVP-TE tunnels can be established in a
batch.

The full-mesh network indicates that a P2P RSVP-TE tunnel is established between
any two nodes on a network.

Pre-configuration Tasks
Before configuring the ip-prefix tunnel function, complete the following tasks:

● Configure an IGP to implement connectivity at the network layer.


● Enable MPLS TE and RSVP-TE.
● Configure IGP TE (OSPF or IS-IS).
● (Optional) Configure TE attributes for links.

1.1.3.20.1 Configuring an IP Prefix List


An IP prefix list can be configured to define destination IP addresses used in the
ip-prefix tunnel function.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run ip ip-prefix ip-prefix-name [ index index-number ] { permit | deny } ip-


address mask-length [ greater-equal greater-equal-value ] [ less-equal less-
equal-value ]
An IPv4 prefix list is configured.

The ip-prefix-name parameter specifies destination IP addresses that can or


cannot be used to establish a P2P TE tunnels.

Step 3 Run commit

The configuration is committed.

----End

1.1.3.20.2 (Optional) Configuring a P2P TE Tunnel Template


A P2P TE tunnel template can be configured, and MPLS TE tunnel attributes can
be set in the template.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 111


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Usage Scenario
Before you create P2P TE tunnels in a batch, create a P2P TE tunnel template and
configure parameters, such as bandwidth and a path limit, in the template. The
mpls te auto-primary-tunnel command can then be run to reference this
template. The device automatically uses the parameters configured in the P2P TE
tunnel template to create P2P TE tunnels in a batch.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls te p2p-template template-name
A P2P TE tunnel template is created, and the P2P TE tunnel template view is
displayed.
Step 3 Select one or more operations.

Table 1-4 Operations


Operation Description

Run the bandwidth ct0 bw-value Before bandwidth protection is


command to configure the CT0 provided for traffic transmitted along a
bandwidth for MPLS TE tunnels. P2P TE tunnel, run the bandwidth
command to set the required
bandwidth value for the tunnel. Nodes
on the P2P TE tunnel can then reserve
bandwidth for services, which
implements bandwidth protection.

Run the record-route [ label ] This step enables nodes along a P2P
command to enable the route and TE tunnel to use RSVP messages to
label record for MPLS TE tunnels. record detailed P2P TE tunnel
information, including the IP address
of each hop. The label parameter in
the record-route command enables
RSVP messages to record label values.

Run the resv-style { se | ff } command -


to specify the resource reservation
style for MPLS TE tunnels.

Run the path metric-type { igp | te } -


command to specify the link metric
type for MPLS TE tunnels.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 112


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Operation Description

Run the affinity property properties An affinity is a 32-bit vector value


[ mask mask-value ] command to used to describe an MPLS link. An
configure an affinity constraint for affinity and an administrative group
MPLS TE tunnels. attribute define the nodes through
which an MPLS TE tunnel passes.
Affinity masks determine the link
properties that should be checked by a
device. If some bits in the mask are 1,
at least one bit in an administrative
group is 1, and the corresponding bit
in the affinity must be 1. If the bits in
the affinity are 0s, the corresponding
bits in the administrative group cannot
be 1.
You can use an affinity to control the
nodes through which a P2P TE tunnel
passes.

Run the affinity primary { include-all Before this command is run, run the
| include-any | exclude } bit-name path-constraint affinity-mapping
&<1-32> command to configure an command in the system view to create
affinity for an MPLS TE tunnel. an affinity name template. In addition,
run the attribute affinity-name bit-
sequence bit-number command to
configure the mappings between
affinity bit values and names in the
template view.

Run the hop-limit hop-limit-value Run this command to set the


command to set the maximum maximum number of hops that each
number of hops on an MPLS TE CR-LSP in an MPLS TE tunnel supports.
tunnel.

Run the tie-breaking { least-fill | -


most-fill | random } command to
configure a rule for selecting a route
among multiple routes to the same
destination.

Run the priority setup-priority [ hold- The setup priority of a tunnel must be
priority ] command to set the setup no higher than its holding priority. To
and holding priority values for MPLS be specific, a setup priority value must
TE tunnels. be greater than or equal to a holding
priority value.
If resources are insufficient, setting the
setup and holding priority values helps
a device release LSPs with lower
priorities and use the released
resources to establish LSPs with higher
priorities.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 113


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Operation Description

Run the reoptimization [ frequency Periodic re-optimization allows an


interval ] command to enable the MPLS TE tunnel to be automatically
periodic re-optimization for MPLS TE reestablished over a path with a lower
tunnels. cost. After a path with a lower cost to
the same destination has been
calculated for a specific reason, such
as a cost change, a TE tunnel will be
automatically reestablished, optimizing
resources on a network.

Run the bfd enable command to To rapidly detect LSP faults and
enable BFD for TE CR-LSP. improve network reliability,
configuring BFD for TE CR-LSP is
recommended.

Run the bfd { min-tx-interval tx- BFD parameters can be set to control
interval | min-rx-interval rx-interval | BFD detection sensitivity.
detect-multiplier multiplier } *
command to configure BFD for TE CR-
LSP parameters.

Run the fast-reroute [ bandwidth ] TE FRR is recommended for primary


command to enable TE FRR. MPLS TE tunnels, which improves
network reliability.

Run the bypass-attributes A bypass tunnel is established using


{ bandwidth bandwidth | priority the configured bypass tunnel
setup-priority [ hold-priority ] } * attributes. The bypass tunnel
command to configure bypass tunnel bandwidth cannot exceed the primary
attributes. tunnel bandwidth. The setup priority
of a bypass tunnel must be lower than
or equal to the holding priority. Both
of them must be lower than or equal
to those of the primary tunnel.

Run the lsp-tp outbound command to Physical links over which a TE tunnel is
enable traffic policing for MPLS TE established may also transmit traffic of
tunnels. other TE tunnels, non-CR-LSP traffic,
or even IP traffic, in addition to the TE
tunnel traffic. To limit TE traffic within
a configured bandwidth range, enable
traffic policing for a specific MPLS TE
tunnel.

Step 4 Run commit


The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 114


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.20.3 Using the Automatic Primary Tunnel Function to Establish P2P TE


Tunnels in a Batch
The automatic primary tunnel function can be used to establish P2P TE tunnels in
a batch.

Context
The automatic primary tunnel function uses a specified IP prefix list in which
destination IP addresses are defined so that tunnels to the destination IP
addresses can be established in a batch. The automatic primary tunnel function
can also use a specified tunnel template that defines public attributes before
creating tunnels in a batch.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls te auto-primary-tunnel ip-prefix ip-prefix [ p2p-template template-


name ]

The automatic primary tunnel function is configured.

Step 3 (Optional) Set the hold time for tunnels.


1. Run mpls

The MPLS view is displayed.


2. Run mpls te timer auto-primary-tunnel delay-delete time-value

The hold time for tunnels is set.

Step 4 Run commit

The configuration is committed.

----End

Follow-up Procedure
If errors occur in services transmitted on a TE tunnel and the services cannot be
restored, run the reset mpls te auto-primary-tunnel command in the user view to
reestablish the TE tunnel to restore the services.

NOTICE

After this command is run, all LSPs in the specified tunnel are torn down and
reestablished. If some LSPs are transmitting traffic, the operation causes a traffic
interruption. Exercise caution when using this command.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 115


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.20.4 Verifying the IP-Prefix Tunnel Function Configuration


After configuring the IP-prefix tunnel function, verify the tunnel information,
including the tunnel status, a P2P TE tunnel template used to establish tunnels,
and IP prefix list.

Prerequisites
The IP-prefix tunnel function has been configured.

Operations

Table 1-5 Items to be checked and related commands


Operation Command

Check the display mpls te p2p-template


configuration of a
P2P TE tunnel
template.

Check whether P2P display mpls te tunnel


TE tunnels are
successfully
established using
the automatic
primary tunnel
function.

Check detailed display mpls te tunnel-interface [ auto-primary-


information about tunnel [ tunnel-name ] ]
the automatic
primary tunnel
function.

1.1.3.21 Configuring Dynamic Bandwidth Reservation


This section describes how to configure dynamic bandwidth reservation on an
MPLS TE interface. This configuration enables the MPLS TE interface to
dynamically reserve bandwidth for an MPLS TE tunnel to account for the fact that
physical bandwidth is variable.

Usage Scenario
The reservable bandwidth values configured on the interfaces along an MPLS TE
tunnel are used by the MPLS TE module to check whether a link meets all tunnel
bandwidth requirements. If a fixed bandwidth value is configured on an interface
and the physical bandwidth of the interface changes, the MPLS TE module cannot
correctly evaluate link bandwidth resources when the actual reservable bandwidth
differs from the configured bandwidth value. For example, the actual physical
bandwidth of a trunk interface on an MPLS TE tunnel is 1 Gbit/s. The maximum
reservable bandwidth is set to 800 Mbit/s, and the BC0 bandwidth is set to 600

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 116


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Mbit/s for the interface. If a member of the trunk interface fails, the trunk
interface has its physical bandwidth reduced to 500 Mbit/s, which does not meet
the requirements for the maximum reservable bandwidth and BC0 bandwidth.
However, the MPLS TE module still attempts to reserve the bandwidth as
configured. As a result, bandwidth reservation fails.
To address this issue, you can configure the maximum reservable dynamic
bandwidth and BC dynamic bandwidth. The former is the proportion of the
maximum reservable bandwidth to the actual physical bandwidth, and the latter is
the proportion of the BC bandwidth to the maximum reservable bandwidth. Based
on the two proportions, the MPLS TE module can quickly detect physical
bandwidth changes along links and preempt the bandwidth of any MPLS TE
tunnel that requires more than the available interface bandwidth. If soft
preemption is supported by the preempted tunnel, traffic on the tunnel can be
smoothly switched to another links with sufficient bandwidth. The smooth traffic
switchover is also performed when an interface fails, which minimizes traffic loss.

Pre-configuration Tasks
Before configuring dynamic bandwidth reservation, enable MPLS TE on the
interface.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The view of an MPLS TE-enabled interface is displayed.
Step 3 Run mpls te bandwidth max-reservable-bandwidth dynamic max-dynamic-bw-
value
The maximum reservable dynamic bandwidth is configured for the link.

NOTE

If this command is run in the same interface view as the mpls te bandwidth max-
reservable-bandwidth command, the latest configuration overrides the previous one.

Step 4 (Optional) Run mpls te bandwidth max-reservable-bandwidth dynamic


baseline remain-bandwidth
The device is configured to use the remaining bandwidth of the interface when
calculating the maximum reservable dynamic bandwidth for TE.
In scenarios such as channelized sub-interface and bandwidth lease, the remaining
bandwidth of an interface changes, but the physical bandwidth does not. In this
case, the actual forwarding capability of the interface decreases. If the maximum
reservable dynamic bandwidth of the TE tunnel is still calculated based on the
physical bandwidth, the calculated TE bandwidth is greater than the actual
bandwidth, and the actual forwarding capability of the interface does not meet
the bandwidth requirement of the tunnel.
Step 5 Run mpls te bandwidth dynamic bc0 bc0-bw-percentage

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 117


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The BC0 dynamic bandwidth is configured for the link.

NOTE

If this command is run in the same interface view as the mpls te bandwidth bc0
command, the latest configuration overrides the previous one.

Step 6 Run commit

The configuration is committed.

----End

Verifying the Configuration


Run the display mpls te link-administration bandwidth-allocation [ interface
interface-type interface-number ] command to check bandwidth information on a
specified or all MPLS TE interfaces.

1.1.3.22 Adjusting Parameters for Establishing an MPLS TE Tunnel


Multiple attributes are used to establish MPLS TE tunnels flexibly.

Usage Scenario
During the establishment of an MPLS TE tunnel, special configurations are
required.

Pre-configuration Tasks
Before adjusting parameters for establishing an MPLS TE tunnel, configure an
RSVP-TE tunnel.

1.1.3.22.1 Configuring an MPLS TE Explicit Path


An explicit path is configured on the ingress of an MPLS TE tunnel to define the
nodes through which the MPLS TE tunnel passes and the nodes that are excluded
from the MPLS TE tunnel.

Context
An explicit path consists of a series of nodes. These nodes are arranged in
sequence and form a vector path. An IP address for an explicit path is an interface
IP address on every node. The loopback IP address of the egress node is used as
the destination address of an explicit path.

Two adjacent nodes on an explicit path are connected in either of the following
modes:

● Strict: A hop is directly connected to its next hop.


● Loose: Other nodes may exist between a hop and its next hop.

The strict and loose modes can be used simultaneously.

TE tunnels are classified into the following types:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 118


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Intra-area tunnel: A TE tunnel is in a single OSPF or IS-IS area, but not in an


autonomous system (AS) running the Border Gateway Protocol (BGP).
● Inter-area tunnel: A TE tunnel traverses multiple OSPF or IS-IS areas, but not
BGP ASs.

A strict explicit path is used to establish an inter-area TE tunnel, on which a next


hop can only be an area border router (ABR) or an autonomous system boundary
router (ASBR).

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run explicit-path path-name

An explicit path is created and the explicit path view is displayed.

Step 3 Run next hop ip-address [ include [ [ strict | loose ] | [ incoming | outgoing ] ] *

| exclude ]

The next-hop address is specified for the explicit path.

The include parameter indicates that the tunnel does pass through a specified
node; the exclude parameter indicates that the tunnel does not pass through a
specified node.

Step 4 (Optional) Run add hop ip-address1 [ include [ [ strict | loose ] | [ incoming |
outgoing ] ] * | exclude ] { after | before } ip-address2

A node is added to the explicit path.

Step 5 (Optional) Run modify hop ip-address1 ip-address2 [ include [ [ strict | loose ] |
[ incoming | outgoing ] ] * | exclude ]

The address of a node on an explicit path is changed.

Step 6 (Optional) Run delete hop ip-address

A node is excluded from an explicit path.

Step 7 (Optional) Run list hop [ ip-address ]

Information about nodes on an explicit path is displayed.

Step 8 Run commit

The configurations are committed.

----End

1.1.3.22.2 Setting Priority Values for an MPLS TE Tunnel


The priority values are set on the ingress of an MPLS TE tunnel. Preemption is
performed based on the setup and holding priorities during the establishment of
an MPLS TE tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 119


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The view of the MPLS TE tunnel interface is displayed.

Step 3 Run mpls te priority setup-priority [ hold-priority ]

The priority values are set for the MPLS TE tunnel.

Both the setup and holding priority values range from 0 to 7. The smaller the
value, the higher the priority.

NOTE

The setup priority value must be greater than or equal to the holding priority value. This
means the setup priority is lower than or equal to the holding priority.

Step 4 Run commit

The configuration is committed.

----End

1.1.3.22.3 Setting the Hop Limit for a CR-LSP


The hop limit set on an ingress is the maximum number of hops on a path along
which a CR-LSP is to be established. The hop limit is a constraint used during path
selection.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The view of the MPLS TE tunnel interface is displayed.

Step 3 Run mpls te hop-limit hop-limit-value [ best-effort | secondary ]

The hop limit of a CR-LSP is set.

Step 4 Run commit

The configuration is committed.

----End

1.1.3.22.4 Associating CR-LSP Establishment with the Overload Setting


CR-LSP establishment can be associated with the overload setting. This association
ensures that CR-LSPs are established over paths excluding overloaded nodes.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 120


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
A node becomes overloaded in the following situations:
● When the node is transmitting a large number of services and its system
resources are exhausted, the node marks itself overloaded.
● When the node is transmitting a large number of services and its CPU is
overburdened, an administrator can run the set-overload command to mark
the node overloaded.

If there are overloaded nodes on an MPLS TE network, associate CR-LSP


establishment with the IS-IS overload setting to ensure that CR-LSPs are
established over paths excluding overloaded nodes. This configuration prevents
overloaded nodes from being further burdened and improves CR-LSP reliability.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te path-selection overload

CR-LSP establishment is associated with the IS-IS overload setting. This association
allows CSPF to calculate paths excluding overloaded IS-IS nodes.

NOTE

Before the association is configured, the mpls te cspf command must be run to enable
CSPF and the mpls te record-route command must be run to enable the route and label
record.
Traffic travels through an existing CR-LSP before a new CR-LSP is established. After the new
CR-LSP is established, traffic switches to the new CR-LSP and the original CR-LSP is deleted.
This traffic switchover is performed based on the make-before-break mechanism. Traffic is
not dropped during the switchover.

The mpls te path-selection overload command has the following influences on


the CR-LSP establishment:
● CSPF recalculates paths excluding overloaded nodes for established CR-LSPs.
● CSPF calculates paths excluding overloaded nodes for new CR-LSPs.
NOTE

This command does not take effect on bypass tunnels or P2MP TE tunnels.
If the ingress or egress is marked overloaded, the mpls te path-selection overload
command does not take effect. This means that the established CR-LSPs associated with
the ingress or egress will not be reestablished and new CR-LSPs associated with the ingress
or egress will also not be established.

Step 4 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 121


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.22.5 Configuring Route and Label Record


An ingress can be configured to allow routes and labels to be recorded along a
path over which an RSVP-TE CR-LSP will be established.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The view of the MPLS TE tunnel interface is displayed.

Step 3 Run mpls te record-route [ label ]

Routes and labels can be recorded during the establishment of a CR-LSP.

Step 4 Run commit

The configuration is committed.

----End

1.1.3.22.6 Setting Switching and Deletion Delays


The switching and deletion delays are set to ensure that a CR-LSP is torn down
only after a new CR-LSP has been established, which prevents traffic interruption.

Context
MPLS TE uses a make-before-break mechanism. If attributes of an MPLS TE
tunnel, such as bandwidth or path change, a new CR-LSP with new attributes is
established. Such a CR-LSP is called a modified CR-LSP. The new CR-LSP must be
established before the original CR-LSP, also called the primary CR-LSP, is torn
down. This prevents data loss and additional bandwidth consumption during
traffic switching.

If a forwarding entry associated with the new CR-LSP does not take effect after
the original CR-LSP has been torn down, a temporary traffic interruption occurs.

The switching and deletion delays can be set on the ingress of the CR-LSP to
prevent the preceding problem.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te switch-delay switch-time delete-delay delete-time

The switching time and deletion delay time are set.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 122


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 4 Run commit

The configuration is committed.

----End

1.1.3.22.7 Verifying the Configuration of Establishment of MPLS TE Tunnel


After adjusting the establishment of the MPLS TE tunnel, you can view
information about the tunnel interface.

Prerequisites
The establishment of the MPLS TE tunnel has been adjusted.

Procedure
● Run the display mpls te tunnel-interface command to check information
about a tunnel interface on the ingress of a tunnel.

----End

1.1.3.23 Importing Traffic to an MPLS TE Tunnel


Before importing traffic to an MPLS TE tunnel, familiarize yourself with the usage
scenario, complete the pre-configuration tasks for the configuration.

Usage Scenario
An MPLS TE tunnel does not automatically import traffic. To enable traffic to
travel along an MPLS TE tunnel, use one of the methods listed in Table 1-6 to
import the traffic to the MPLS TE tunnel.

Table 1-6 Methods to import traffic to an MPLS TE tunnel

Methods Principles Usage Scenario Related


to Configuration Links
Import
Traffic
to an
MPLS TE
Tunnel

Use This is the simplest Scenario where Configuring IPv4


static method for public-network Static Routes
routes importing the traffic routes are used to
to an MPLS TE import traffic to a TE
tunnel. You only or LDP over TE
need to configure a tunnel
static route with a TE
tunnel interface as
the outbound
interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 123


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Methods Principles Usage Scenario Related


to Configuration Links
Import
Traffic
to an
MPLS TE
Tunnel

Use the A TE tunnel is used Scenario where Configuring the IGP


auto as a logical link for public-network Shortcut
route IGP route calculation. routes are used to Configuring
mechani A tunnel interface is import traffic to a TE Forwarding
sm used as an outbound or LDP over TE Adjacency
interface of a route. tunnel
The auto route
mechanism can be
implemented in
either of the
following modes:
● IGP shortcut: A
device uses a TE
tunnel for local
route calculation
and does not
advertise the TE
tunnel to its peers
as a route.
Therefore, the
peers of this
device cannot use
the TE tunnel for
route calculation.
● Forwarding
adjacency: A
device uses a TE
tunnel for local
route calculation
and advertises the
TE tunnel to its
peers as a route.
Therefore, the
peers of this
device can use the
TE tunnel for
route calculation.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 124


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Methods Principles Usage Scenario Related


to Configuration Links
Import
Traffic
to an
MPLS TE
Tunnel

Policy- The policy-based Scenario where -


Based routing (PBR) allows public-network
Routing a device to select routes are used to
routes based on import traffic to a TE
user-defined policies. or LDP over TE
TE PBR, the same as tunnel
IP unicast PBR, is
implemented by
defining a set of
matching rules and
behaviors. The rules
and behaviors are
defined using the
apply clause with a
TE tunnel interface
used as an outbound
interface. If packets
do not match PBR
rules, they are
properly forwarded
using IP; if they
match PBR rules,
they are forwarded
over specific tunnels.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 125


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Methods Principles Usage Scenario Related


to Configuration Links
Import
Traffic
to an
MPLS TE
Tunnel

Tunnel By default, VPN VPN scenario VPN Tunnel


Policy traffic is forwarded Management
through LDP LSPs. If Configuration
the default LDP LSPs
cannot meet VPN
traffic requirement, a
tunnel policy is used
to direct VPN traffic
to a TE tunnel. The
tunnel policy may be
a tunnel type
prioritizing policy or
a tunnel binding
policy. Select either
of the following
policies as needed:
● Select-seq mode:
This policy
changes the type
of tunnel selected
for VPN traffic. A
TE tunnel is
selected as a
public tunnel for
VPN traffic based
on the prioritized
tunnel types.
● Tunnel binding
mode: This policy
defines a specific
destination IP
address, and this
address is bound
to a TE tunnel.

NOTE

The preceding methods to import traffic to MPLS TE tunnels apply only to P2P tunnels.

Pre-configuration Tasks
Before you import traffic to an MPLS TE tunnel, configure an RSVP-TE tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 126


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.23.1 Configuring IGP Shortcut


After IGP shortcut is configured on the ingress of a CR-LSP, the CR-LSP is not
advertised to or used by neighbors.

Context
During path calculation in a scenario where IGP shortcut is configured, the device
calculates an SPF tree based on the paths in the IGP physical topology, and then
finds the SPF nodes on which shortcut tunnels are configured. If the metric of a TE
tunnel is smaller than that of an SPF node, the device replaces the outbound
interfaces of the routes to this SPF node and those of the other routes passing
through the SPF node with the TE tunnel interface.

NOTE

IGP shortcut and forwarding adjacency cannot be both configured.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel tunnel-number
The view of the MPLS TE tunnel interface is displayed.
Step 3 Run mpls te igp shortcut [ isis | ospf ] or mpls te igp shortcut isis hold-time
interval
IGP shortcut is configured.
hold-time interval specifies the period after which IS-IS responds to the Down
status of the TE tunnel.
If a TE tunnel goes Down and this parameter is not specified, IS-IS recalculates
routes. If this parameter is specified, IS-IS responds to the Down status of the TE
tunnel after only the specified interval elapses. It either recalculates routes or not
depending on the TE tunnel status:
● If the TE tunnel goes Up, IS-IS does not recalculate routes.
● If the TE tunnel goes Down, IS-IS still recalculates routes.
Step 4 Run mpls te igp metric { absolute | relative } value
The IGP metric of the TE tunnel is configured.
You can set either of the following parameters when configuring the metric to be
used by a TE tunnel during IGP shortcut path calculation:
● If absolute is configured, the TE tunnel metric is equal to the configured
value.
● If relative is configured, the TE tunnel metric is equal to the sum of the IGP
route metric and relative TE tunnel metric.
Step 5 For IS-IS, run isis enable [ process-id ]
IS-IS is enabled on the tunnel interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 127


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 6 For OSPF, run the following commands in sequence.


● Run the ospf enable process-id area area-id command to enable OSPF on the
tunnel interface.
You can also run the network address wildcard-mask command in the OSPF
view to enable network segment routing on the tunnel interface.
● Run the quit command to return to the system view.
● Run the ospf [ process-id ] command to enter the OSPF view.
● Run the enable traffic-adjustment command to enable IGP shortcut.
Step 7 Run commit
The configuration is committed.

----End

Follow-up Procedure
If a network fault occurs, IGP convergence is triggered. In this case, a transient
forwarding status inconsistency may occur among nodes because of their different
convergence rates, which poses the risk of microloops. To prevent microloops,
perform the following steps:
NOTE

Before you enable the OSPF TE tunnel anti-microloop function, configure CR-LSP backup
parameters.
● For IS-IS, run the following commands in sequence.
a. Run system-view
The system view is displayed.
b. Run isis [ process-id ]
An IS-IS process is created, and the IS-IS process view is displayed.
c. Run avoid-microloop te-tunnel
The IS-IS TE tunnel anti-microloop function is enabled.
d. (Optional) Run avoid-microloop te-tunnel rib-update-delay rib-update-
delay
The delay in delivering the IS-IS routes whose outbound interface is a TE
tunnel interface is set.
e. Run commit
The configuration is committed.
● For OSPF, run the following commands in sequence.
a. Run system-view
The system view is displayed.
b. Run ospf [ process-id ]
The OSPF view is displayed.
c. Run avoid-microloop te-tunnel
The OSPF TE tunnel anti-microloop function is enabled.
d. (Optional) Run avoid-microloop te-tunnel rib-update-delay rib-update-
delay

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 128


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The delay in delivering the OSPF routes whose outbound interface is a TE


tunnel interface is set.
e. Run commit
The configuration is committed.

1.1.3.23.2 Configuring Forwarding Adjacency


The forwarding adjacency is configured on the ingress of a CR-LSP. The forwarding
adjacency allows a route of a CR-LSP to be advertised to neighbors so that these
neighbors can use this CR-LSP to transmit traffic.

Context
A routing protocol performs bidirectional detection on a link. The forwarding
adjacency needs to be enabled on both ends of a tunnel. The forwarding
adjacency allows a node to advertise a CR-LSP route to other nodes. Another
tunnel for transferring data packets in the reverse direction must be configured.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel tunnel-number
The view of an MPLS TE tunnel interface is displayed.

Step 3 Run mpls te igp advertise [ hold-time interval | include-ipv6-isis ] *

The forwarding adjacency is configured.


If IPv6 IS-IS is used, the include-ipv6-isis parameter must be configured.
Step 4 Configure an IGP metric for a TE tunnel.
● For IS-IS, run the mpls te igp metric absolute value command.
● For OSPF, run the mpls te igp metric { absolute | relative } value command.
NOTE

Set proper IGP metrics for TE tunnels to ensure that LSP routes are correctly advertised and
used. The metric of a TE tunnel should be smaller than that of an IGP route that is not
expected for use.

Step 5 You can select either of the following modes to enable the forwarding adjacency.
● For IS-IS, run the isis enable [ process-id ] command to enable the IS-IS
process of the tunnel interface.
● For OSPF, run the following commands in sequence.
a. Run the ospf enable [ process-id ] area { area-id | areaidipv4 } command
to enable OSPF on the tunnel interface.
b. Run the quit command to return to the system view.
c. Run the ospf [ process-id ] command to enter the OSPF view.
d. Run the enable traffic-adjustment advertise command to enable the
forwarding adjacency.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 129


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 6 Run commit


The configuration is committed.

----End

1.1.3.23.3 (Optional) Configuring CBTS


Service class can be set for packets that MPLS TE tunnels allow to pass through.

Context
When services recurse to multiple TE tunnels, the mpls te service-class command
is run on the TE tunnel interface to set a service class so that a TE tunnel
transmits services of a specified service class.
DS-TE tunnels can be prioritized to receive traffic. One priority or multiple
priorities can be assigned to a tunnel to which services recurse. Table 1-7
describes the default mapping between DS-TE tunnel's CTs and flow queues.

Table 1-7 Default mapping between DS-TE tunnel's CTs and flow queues
CT Flow Queue

CT0 be

CT1 af1

CT2 af2

CT3 af3

CT4 af4

CT5 ef

CT6 cs6

CT7 cs7

If services recurse to multiple TE tunnels for load balancing, tunnel selection rules
are the same as those used in CBTS:
1. If the priority attribute of service traffic matches the priority attribute
configured for a tunnel, the service traffic is carried by the tunnel that
matches the priority attribute.
2. If the priority of service traffic does not match a configured priority of a
tunnel, the following rules apply:
a. If the priority of a tunnel among load-balancing tunnels is default, the
service traffic that does not match any priority is carried by the tunnel
with the default priority.
b. If none of load-balancing tunnels is assigned the default priority and
some tunnels are not configured with priorities, service traffic that does
not match any tunnel priorities is carried by the tunnels that are not
configured with priorities.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 130


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

c. If none of load-balancing tunnels is assigned the default priority but all


tunnels are configured with priorities, traffic that does not match any
tunnel priority is transmitted by the tunnel with the lowest priority.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel tunnel-number
The MPLS TE tunnel interface view is displayed.
Step 3 Run mpls te service-class { service-class & <1-8> | default }
A service class is set for packets that an MPLS TE tunnel allows to pass through.

NOTE

● This command is used only on the ingress of an MPLS TE tunnel.


● If the mpls te service-class command is run repeatedly on a tunnel interface, the
latest configuration overrides the previous one.

Step 4 Run commit


The configuration is committed.

----End

1.1.3.24 Configuring Static BFD for TE Tunnel


This section describes how to configure static BFD for TE tunnel to detect faults in
a TE tunnel.

Usage Scenario
If a BFD session detects a fault in a TE tunnel, the BFD module instructs VPN FRR
to quickly switch traffic, which reduces the adverse impact on services.

Pre-configuration Tasks
Before configuring the static BFD for TE tunnel, configure a static CR-LSP or an
MPLS TE tunnel.

1.1.3.24.1 Enabling BFD Globally


BFD must be enabled globally before configurations relevant to BFD are
performed.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bfd

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 131


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

BFD is enabled globally on the local node, and the BFD view is displayed.
Configurations relevant to BFD can be performed only after the bfd command is
run globally.
Step 3 Run commit
The configurations are committed.

----End

1.1.3.24.2 Setting BFD Parameters on the Ingress


After setting BFD parameters on the ingress, you can use BFD sessions to monitor
a TE tunnel.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Perform either of the following operations:
● Configure a BFD session to monitor a TE tunnel:
bfd session-name bind mpls-te interface interface-type interface-number
If the specified tunnel is down, no BFD session can be configured.
● Configure a BFD session group to monitor a TE tunnel:
a. Run the bfd sessname-value bind mpls-te interface trackIfType
trackIfNum [ te-lsp [ backup ] ] group command to create binding
information about a BFD session group.
b. Run the sub-session discriminator local discr-value remote remote-
value select-board slot-id command to create sub-session 1 for the BFD
session group.
c. Run the sub-session discriminator local discr-value remote remote-
value select-board slot-id command to create sub-session 2 for the BFD
session group.

NOTE

– A BFD session group is used when two devices are connected through an Eth-Trunk
link, and the two member interfaces of the Eth-Trunk interface are located on
different interfaces. That is, a BFD session group is used for an inter-board Eth-
Trunk interface.
– Two BFD sub-sessions created in a BFD session group are used to detect two inter-
board Eth-Trunk links. The status of a BFD session group depends on the status of
the two BFD sub-sessions. As long as one BFD sub-session is up, the BFD session
group is up. When both sub-sessions are down, the BFD session group is down.

Step 3 Run discriminator local discr-value


The local discriminator of the BFD session is set.

NOTE

A remote discriminator does not need to be set for a BFD session group. Each session in the BFD
session group has its own discriminator.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 132


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 4 Run discriminator remote discr-value


The remote discriminator of the BFD session is set.

NOTE

The local discriminator of the local device and the remote discriminator of the remote
device are the same. The remote discriminator of the local device and the local
discriminator of the remote device are the same. A discriminator inconsistency causes the
BFD session to fail to be established.
A remote discriminator does not need to be set for a BFD session group. Each session in the
BFD session group has its own discriminator.

Step 5 (Optional) Run min-tx-interval tx-interval


The local minimum interval at which BFD packets are sent is set.
● Effective local interval at which BFD packets are sent = MAX { Configured
local interval at which BFD packets are sent, Configured remote interval at
which BFD packets are received }
● Effective local interval at which BFD packets are received = MAX { Configured
remote interval at which BFD packets are sent, Configured local interval at
which BFD packets are received }
● Effective local detection interval = Effective local interval at which BFD
packets are received x Configured remote detection multiplier
For example:
● The local interval at which BFD packets are sent is set to 200 ms, the local
interval at which BFD packets are received is set to 300 ms, and the local
detection multiplier is set to 4.
● The remote interval at which BFD packets are sent is set to 100 ms, the
remote interval at which BFD packets are received is set to 600 ms, and the
remote detection multiplier is set to 5.
Then,
● Effective local interval at which BFD packets are sent = MAX { 200 ms, 600
ms } = 600 ms; effective local interval at which BFD packets are received =
MAX { 100 ms, 300 ms } = 300 ms; effective local detection period = 300 ms x
5 = 1500 ms
● Effective remote interval at which BFD packets are sent = MAX { 100 ms, 300
ms } = 300 ms; effective remote receiving interval = MAX { 200 ms, 600 ms } =
600 ms; effective remote detection period = 600 ms x 4 = 2400 ms
Step 6 (Optional) Run min-rx-interval rx-interval
The local minimum interval at which BFD packets are received is set.
Step 7 (Optional) Run detect-multiplier multiplier
The BFD detection multiplier is set.
Step 8 Run commit
The configurations are committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 133


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.24.3 Setting BFD Parameters on the Egress


This section describes how to set BFD parameters on the egress to monitor CR-
LSPs using BFD sessions.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 The IP link, LSP, or TE tunnel can be used as the reverse tunnel to inform the
ingress of a fault. If there is a reverse LSP or a TE tunnel, use the reverse LSP or
the TE tunnel. If no LSP or TE tunnel is established, use an IP link as a reverse
tunnel. If the configured reverse tunnel requires BFD detection, you can configure
a pair of BFD sessions for it. Run the following commands as required:
● Configure a BFD session to monitor reverse channels.
– For an IP link, run bfd session-name bind peer-ip ip-address [ vpn-
instance vpn-name ] [ source-ip ip-address ]
– For an LDP LSP, run bfd session-name bind ldp-lsp peer-ip ip-address
nexthop ip-address [ interface interface-type interface-number ]
– For a CR-LSP, run bfd session-name bind mpls-te interface tunnel
interface-number te-lsp [ backup ]
– For a TE tunnel, run bfd session-name bind mpls-te interface tunnel
interface-number
● Configure a BFD session group to monitor reverse channels.
a. Run the bfd sessname-value bind mpls-te interface trackIfType
trackIfNum [ te-lsp [ backup ] ] group command to create binding
information about a BFD session group.
b. Run the sub-session discriminator local discr-value remote remote-
value select-board slot-id command to create sub-session 1 for the BFD
session group.
c. Run the sub-session discriminator local discr-value remote remote-
value select-board slot-id command to create sub-session 2 for the BFD
session group.

NOTE

– A BFD session group is used when two devices are connected through an Eth-Trunk
link, and the two member interfaces of the Eth-Trunk interface are located on
different interfaces. That is, a BFD session group is used for an inter-board Eth-
Trunk interface.
– Two BFD sub-sessions created in a BFD session group are used to detect two inter-
board Eth-Trunk links. The status of a BFD session group depends on the status of
the two BFD sub-sessions. As long as one BFD sub-session is up, the BFD session
group is up. When both sub-sessions are down, the BFD session group is down.

Step 3 Run discriminator local discr-value

The local discriminator of the BFD session is set.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 134


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

A BFD session group does not need to be configured with a local discriminator. Each sub-session
in a BFD session group has its own discriminator.

Step 4 Run discriminator remote discr-value


The remote discriminator of the BFD session is set.

NOTE

The local discriminator of the local device and the remote discriminator of the remote
device are the same. The remote discriminator of the local device and the local
discriminator of the remote device are the same. A discriminator inconsistency causes the
BFD session to fail to be established.
A BFD session group does not need to be configured with a remote discriminator. Each sub-
session in a BFD session group has its own discriminator.

Step 5 (Optional) Run min-tx-interval tx-interval


The local minimum interval at which BFD packets are sent is configured.
If an IP link is used as a reverse tunnel, this parameter is inapplicable.
● Effective local interval at which BFD packets are sent = MAX { Configured
local interval at which BFD packets are sent, Configured remote interval at
which BFD packets are received }
● Effective local interval at which BFD packets are received = MAX { Configured
remote interval at which BFD packets are sent, Configured local interval at
which BFD packets are received }
● Effective local detection interval = Effective local interval at which BFD
packets are received x Configured remote detection multiplier
For example:
● The local interval at which BFD packets are sent is set to 200 ms, the local
interval at which BFD packets are received is set to 300 ms, and the local
detection multiplier is set to 4.
● The remote interval at which BFD packets are sent is set to 100 ms, the
remote interval at which BFD packets are received is set to 600 ms, and the
remote detection multiplier is set to 5.
Then,
● Effective local interval at which BFD packets are sent = MAX { 200 ms, 600
ms } = 600 ms; effective local interval at which BFD packets are received =
MAX { 100 ms, 300 ms } = 300 ms; effective local detection period = 300 ms x
5 = 1500 ms
● Effective remote interval at which BFD packets are sent = MAX { 100 ms, 300
ms } = 300 ms; effective remote receiving interval = MAX { 200 ms, 600 ms } =
600 ms; effective remote detection period = 600 ms x 4 = 2400 ms
Step 6 (Optional) Run min-rx-interval rx-interval
The local minimum interval at which BFD packets are received is set.
Step 7 (Optional) Run detect-multiplier multiplier
The BFD detection multiplier is set.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 135


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 8 Run commit


The configurations are committed.

----End

1.1.3.24.4 Verifying the Configuration


After configuring static BFD for TE tunnel, you can view configurations, such as
the status of the BFD sessions.

Prerequisites
Static BFD for TE tunnel has been configured.

Procedure
● Run the display bfd session mpls-te interface tunnel-name [ verbose ]
command to check information about BFD sessions on the ingress.
● Run the following commands to check information about BFD sessions on the
egress.
– Run the display bfd session all [ for-ip | for-lsp | for-te ] [ verbose ]
command to check information about all BFD sessions.
– Run the display bfd session static [ for-ip | for-lsp | for-te ] [ verbose ]
command to check information about static BFD sessions.
– Run the display bfd session peer-ip peer-ip [ vpn-instance vpn-name ]
[ verbose ] command to check information about BFD sessions with
reverse IP links.
– Run the display bfd session ldp-lsp peer-ip peer-ip [ nexthop nexthop-
ip [ interface interface-type interface-number ] ] [ verbose ] command
to check information about BFD sessions with reverse LDP LSPs.
– Run the display bfd session mpls-te interface tunnel-name te-lsp
[ verbose ] command to check information about BFD sessions with
reverse CR-LSPs.
– Run the display bfd session mpls-te interface tunnel-name [ verbose ]
command to check information about BFD sessions with reverse TE
tunnels.
– Run the display bfd group session command to check the information
about the sessions and sub-sessions of BFD session groups with reverse
TE tunnels or CR-LSPs.
● Run the following commands to check BFD statistics.
– Run the display bfd statistics session all [ for-ip | for-lsp | for-te ]
command to check statistics about all BFD sessions.
– Run the display bfd statistics session static [ for-ip | for-lsp | for-te ]
command to check statistics about static BFD sessions.
– Run the display bfd statistics session peer-ip peer-ip [ vpn-instance
vpn-name ] command to check statistics about BFD sessions with reverse
IP links.
– Run the display bfd statistics session ldp-lsp peer-ip peer-ip [ nexthop
nexthop-ip [ interface interface-type interface-number ] ] command to
check statistics about BFD sessions with reverse LDP LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 136


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

– Run the display bfd statistics session mpls-te interface interface-type


interface-number te-lsp command to check statistics about BFD sessions
with reverse CR-LSPs.

----End

1.1.3.25 Configuring MPLS TE Manual FRR


MPLS TE manual FRR is a local protection mechanism that protects traffic on a
link or a node on a CR-LSP.

Usage Scenario
FRR provides rapid local protection for MPLS TE networks requiring high reliability.
If a local failure occurs, FRR rapidly switches traffic to a bypass tunnel, minimizing
the impact on traffic.

A backbone network has a large capacity and its reliability requirements are high.
If a link or node failure occurs on the backbone network, a mechanism is required
to provide automatic protection and rapidly remove the fault. The Resource
Reservation Protocol (RSVP) usually establishes MPLS TE LSPs in Downstream on
Demand (DoD) mode. If a failure occurs, Constraint Shortest Path First (CSPF) can
re-calculate a reachable path only after the ingress is notified of the failure. The
failure may trigger reestablishment of multiple LSPs and the reestablishment fails
if bandwidth is insufficient. Either the CSPF failure or bandwidth insufficiency
delays the recovery of the MPLS TE network.

Configuring TE FRR on MPLS TE-enabled interfaces allows traffic to automatically


switch to a protection link if a link or node on a primary tunnel fails. After the
primary tunnel recovers or is reestablished, traffic switches back to the primary
tunnel. This process meets the reliability requirements of the MPLS TE network.

NOTE

● FRR requires reserved bandwidth for a bypass tunnel that needs to be pre-established. If
available bandwidth is insufficient, FRR protects only important nodes or links along a
tunnel.
● RSVP-TE tunnels using bandwidth reserved in Shared Explicit (SE) style support FRR, but
static TE tunnels do not.

Pre-configuration Tasks
Before configuring MPLS TE manual FRR, complete the following tasks:

● Establish a primary RSVP-TE tunnel.


● Enable MPLS TE and RSVP-TE in the MPLS and physical interface views on
every node along a bypass tunnel. (See Enabling MPLS TE and RSVP TE.)
● (Optional) Configure TE attributes for the links of bypass tunnel. (See
(Optional) Configuring TE Attributes.)
● Enable CSPF on a Point of Local Repair (PLR).
● (Optional) Configure an explicit path for the bypass tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 137


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.25.1 Enabling TE FRR


TE FRR must be enabled on the ingress of a primary LSP before TE FRR is
manually configured.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel tunnel-number
The view of the primary tunnel interface is displayed.
Step 3 Run mpls te fast-reroute [ bandwidth ]
TE FRR is enabled.

NOTE

After TE FRR is enabled using the mpls te fast-reroute command, run the mpls te bypass-
attributes command to set bypass LSP attributes.

Step 4 (Optional) Run mpls te frr-switch degrade


The MPLS TE tunnel is enabled to mask the FRR function.
After TE FRR takes effect, traffic is switched to the bypass LSP when the primary
LSP fails. If the bypass LSP is not the optimal path, traffic congestion easily occurs.
To prevent traffic congestion, you can configure LDP to protect TE tunnels. To have
the LDP protection function take effect, you need to run the mpls te frr-switch
degrade command to enable the MPLS TE tunnel to mask the FRR function. After
the command is run:
1. If the primary LSP is in the FRR-in-use state (that is, traffic has been switched
to the bypass LSP), traffic cannot be switched to the primary LSP.
2. If HSB is configured for the tunnel and an HSB LSP is available, traffic is
switched to the HSB LSP.
3. If no HSB LSP is available for the tunnel, the tunnel is unavailable, and traffic
is switched to another tunnel like an LDP tunnel.
4. If no tunnels are available, traffic is interrupted.
Step 5 Run commit
The configuration is committed.

----End

1.1.3.25.2 Configuring a Bypass Tunnel


A path and attributes must be configured for a bypass tunnel after TE manual FRR
is enabled on a PLR.

Context
Bypass tunnels are established on selected links or nodes that are not on the
protected primary tunnel. If a link or node on the protected primary tunnel is used

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 138


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

for a bypass tunnel and fails, the bypass tunnel also fails to protect the primary
tunnel.

NOTE

● TE FRR does not take effect if multiple nodes or links fail simultaneously. After FRR
switching is performed to switch data from the primary tunnel to a bypass tunnel, the
bypass tunnel must remain Up when forwarding data. If the bypass tunnel goes Down,
the protected traffic is interrupted, and FRR fails. Even though the bypass tunnel goes
Up again, traffic is unable to flow through the bypass tunnel but travels through the
primary tunnel after the primary tunnel recovers or is reestablished.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The view of the bypass tunnel interface is displayed.

Step 3 Run tunnel-protocol mpls te

MPLS TE is configured.

Step 4 Run destination ip-address

The LSR ID of an MP is configured as the destination address of the bypass tunnel.

Step 5 Run mpls te tunnel-id tunnel-id

The bypass tunnel ID is configured.

Step 6 (Optional) Run mpls te path explicit-path path-name [ secondary ]

An explicit path is configured for the bypass tunnel.

NOTE

Physical links of a bypass tunnel cannot overlap protected physical links of the primary
tunnel.

Step 7 (Optional) Run mpls te bandwidth ct0 bandwidth

Set the bandwidth for the bypass tunnel.

Step 8 Run mpls te bypass-tunnel

A bypass tunnel is configured.

Step 9 Run mpls te protected-interface interface-type interface-number

The interface to be protected by the bypass tunnel is specified.

Step 10 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 139


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Follow-up Procedure
Routes and labels are automatically recorded after a bypass tunnel is configured.

When a tunnel is specified to protect a physical interface, the corresponding LSP


becomes the bypass LSP. A bypass tunnel is established over a configured explicit
path on the PLR.

If a primary tunnel fails, traffic switches to a bypass tunnel. If the bypass tunnel
goes Down, the protected traffic is interrupted, and FRR fails. Even though the
bypass tunnel goes Up, traffic cannot be forwarded. Traffic will be forwarded only
after the primary tunnel has been restored or re-established.

NOTE

● The mpls te fast-reroute command and the mpls te bypass-tunnel command cannot
be configured on the same tunnel interface.
● After FRR switches traffic from a primary tunnel to a bypass tunnel, the bypass tunnel
must be kept Up, and its path must remain unchanged when transmitting traffic. If the
bypass tunnel goes Down, the protected traffic is interrupted, and FRR fails.

1.1.3.25.3 (Optional) Setting the FRR Switching Delay Time


After the FRR switching delay time is set, FRR entry delivery is delayed, preventing
traffic from being switched twice when both HSB and FRR are enabled.

Context
The FRR switching delay time can be set to delay FRR entry delivery. This allows
traffic to be switched to the HSB path, not the FRR path, preventing traffic from
being switched twice.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te

MPLS TE is globally enabled.

Step 4 Run mpls te frr-switch-delay value

The FRR switching delay time (in ms) is set.

Step 5 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 140


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.25.4 (Optional) Enabling the Coexistence of Rapid FRR Switching and MPLS
TE HSB
When FRR and HSB are enabled for MPLS TE tunnels, enabling the coexistence of
MPLS TE HSB and rapid FRR switching improves switching performance.

Context
To enable the coexistence of FRR switching and MPLS TE HSB, TE FRR must be
deployed on the entire network. HSB must be deployed on the ingress, BFD for TE
LSP must be enabled, and the delayed down function must be enabled on the
outbound interface of the P. Otherwise, rapid switching cannot be performed in
case of the dual points of failure.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls te multi-protect fast-switch enable


Coexistence of rapid FRR switching and MPLS TE HSB is enabled.

Step 3 Run commit

The configuration is committed.

----End

1.1.3.25.5 Verifying the MPLS TE Manual FRR Configuration


After configuring MPLS TE manual FRR, you can view detailed information about
the bypass tunnel.

Prerequisites
The MPLS TE manual FRR function has been configured.

Procedure
● Run the display mpls lsp command to check information about the primary
tunnel.
● Run the display mpls te tunnel-interface command to check information
about the tunnel interface on the ingress of a primary or bypass tunnel.
● Run the display mpls te tunnel path command to check information about
paths of a primary or bypass tunnel.

----End

1.1.3.26 Configuring MPLS TE Auto FRR


MPLS TE Auto FRR is a local protection mechanism that protects traffic on a link
or a node on a CR-LSP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 141


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Usage Scenario
On a network that requires high reliability, FRR is configured to improve network
reliability. If the network topology is complex and a great number of links must be
configured, the configuration procedure is complex.

Auto FRR automatically establishes an eligible bypass tunnel, which simplifies


configurations.

MPLS TE Auto FRR, similar to MPLS TE manual FRR, can be performed in the RSVP
GR process. For details about MPLS TE manual FRR, see Configuring MPLS TE
Manual FRR.

NOTE

Only a primary CR-LSP supports MPLS TE Auto FRR.

In this example, a bypass tunnel with a higher priority is available on the NE9000.
MPLS TE Auto FRR automatically deletes a binding between a primary tunnel and
a bypass tunnel with a lower priority and binds the primary tunnel to another
bypass tunnel with a higher priority. A bypass tunnel has a higher priority than
another based on the following conditions in descending order:
● SRLG
In MPLS TE Auto FRR, if the shared risk link group (SRLG) attribute is
configured, the primary and bypass tunnels must be in different SRLGs. If they
are in the same SRLG, the bypass tunnel cannot be established.
● Bandwidth protection takes precedence over non-bandwidth protection.
● Node protection takes precedence over link protection.
● Manual protection takes precedence over auto protection.

Pre-configuration Tasks
Before configuring MPLS TE Auto FRR, complete the following tasks:

● Set up a primary RSVP-TE tunnel.


● Enable MPLS, MPLS TE, and RSVP-TE in the system and interface views on
every node along a bypass tunnel. (See Enabling MPLS TE and RSVP-TE.)
● (Optional) Configure the physical bandwidth for a bypass tunnel if the
primary tunnel bandwidth needs to be protected. (See (Optional)
Configuring TE Attributes.)
● Enable CSPF on the ingress and transit nodes along a primary tunnel.

1.1.3.26.1 Enabling TE Auto FRR


MPLS TE Auto FRR must be enabled on the ingress or a transit node of a primary
tunnel before MPLS TE Auto FRR is configured.

Procedure
Step 1 Run system-view

The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 142


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te auto-frr [ self-adapting ]

MPLS TE Auto FRR is enabled globally.

To enable an automatic bypass tunnel to dynamically select node or link


protection based on network conditions, configure self-adapting.

Step 4 (Optional) Configure TE Auto FRR on an interface.


1. Run quit

Return to the system view.


2. Run interface interface-type interface-number

The view of the outbound interface on the primary tunnel is displayed.


3. Run mpls te auto-frr { block | default | link | node | self-adapting }

TE Auto FRR is configured on the interface.

After Auto FRR is enabled globally, all MPLS TE-enabled interfaces on the
device are automatically configured with mpls te auto-frr default. To disable
Auto FRR on some interfaces, run the mpls te auto-frr block command on
these interfaces. After the mpls te auto-frr block command is run on an
interface, the interface does not have the Auto FRR capability, regardless of
whether Auto FRR is enabled or re-enabled globally.

To enable an auto bypass tunnel to dynamically select node protection or link


protection based on network conditions, configure self-adapting.

NOTE

– If the mpls te auto-frr default command is run, the Auto FRR capability status of
an interface is the same as the global Auto FRR capability status.
– After node protection is enabled, if a bypass tunnel for node protection fails to be
created because the topology does not meet requirements, the penultimate hop of
the primary tunnel attempts to create link protection, and other nodes do not
degrade to create link protection.
– If self-adapting is not specified and node protection is enabled, the penultimate
hop of the primary tunnel attempts to create link protection when a bypass tunnel
fails to be created because the topology does not meet requirements. Other nodes
do not degrade to create link protection.

Step 5 Run commit

The configuration is committed.

----End

1.1.3.26.2 Enabling MPLS TE FRR and Configuring Attributes for an Automatic


Bypass LSP
After MPLS TE FRR is enabled on the ingress of a primary LSP, a bypass LSP is
established automatically.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 143


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The tunnel interface view of the primary LSP is displayed.

Step 3 Run mpls te fast-reroute [ bandwidth ]

TE FRR is enabled.

If TE FRR bandwidth protection is needed, configure the bandwidth parameter in


this command.

Step 4 (Optional) Run mpls te frr-switch degrade

The MPLS TE tunnel is enabled to mask the FRR function.

After TE FRR takes effect, traffic is switched to the bypass LSP when the primary
LSP fails. If the bypass LSP is not the optimal path, traffic congestion easily occurs.
To prevent traffic congestion, you can configure LDP to protect TE tunnels. To have
the LDP protection function take effect, you need to run the mpls te frr-switch
degrade command to enable the MPLS TE tunnel to mask the FRR function. After
the command is run:

1. If the primary LSP is in the FRR-in-use state (that is, traffic has been switched
to the bypass LSP), traffic cannot be switched to the primary LSP.
2. If HSB is configured for the tunnel and an HSB LSP is available, traffic is
switched to the HSB LSP.
3. If no HSB LSP is available for the tunnel, the tunnel is unavailable, and traffic
is switched to another tunnel like an LDP tunnel.
4. If no tunnels are available, traffic is interrupted.

Step 5 (Optional) Run mpls te bypass-attributes [ bandwidth bandwidth | priority


setup-priority [ hold-priority ] ]
Attributes are set for the automatic bypass LSP.

NOTE

● The bandwidth attribute can only be set for the bypass LSP after the mpls te fast-
reroute bandwidth command is run for the primary LSP.
● The bypass LSP bandwidth cannot exceed the primary LSP bandwidth.
● If no attributes are configured for an automatic bypass LSP, by default, the automatic
bypass LSP uses the same bandwidth as that of the primary LSP.
● The setup priority of a bypass LSP must be lower than or equal to the holding priority.
These priorities cannot be higher than the corresponding priorities of the primary LSP.
● If TE FRR is disabled, the bypass LSP attributes are automatically deleted.

Step 6 Run quit

Return to the system view.

Step 7 (Optional) Configure attributes for a bypass LSP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 144


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1. Run interface interface-type interface-number

The interface view of the link through which the bypass LSP passes is
displayed.
2. Run mpls te auto-frr attributes { bandwidth bandwidth | priority setup-
priority [ hold-priority ] | hop-limit hop-limit-value }
Attributes are configured for the bypass LSP.
3. Run quit

Return to the system view.

Step 8 (Optional) Configure affinities for the automatic bypass tunnel.

Affinities determine link attributes of an automatic bypass LSP. Affinities and a link
administrative group attribute are used together to determine over which links the
automatic bypass LSP can be established.

Perform either of the following configurations:

● Set a hexadecimal number.


a. Run interface interface-type interface-number
The interface view of the link through which the bypass LSP passes is
displayed.
b. Run mpls te link administrative group value
An administrative group attribute is specified.
c. (Optional) Run mpls te auto-frr attributes affinity property properties
[ mask mask-value ] or mpls te auto-frr attributes affinity { include-all
| include-any | exclude } bit-name &<1-32>
An affinity is configured for the bypass LSP.
d. Run quit
Return to the system view.
e. Run interface tunnel tunnel-number
The tunnel interface view of the primary LSP is displayed.
f. Run mpls te bypass-attributes affinity property properties [ mask
mask-value]
An affinity is configured for the bypass LSP.
● Set an affinity name.
Naming an affinity makes the affinity easy to understand and maintain.
Setting an affinity name is recommended.
a. Run path-constraint affinity-mapping
An affinity name mapping template is configured, and the template view
is displayed.
Repeat this step on each node used to calculate the path over which an
automatic bypass LSP is established. The affinity name configured on
each node must match the mappings between affinity bits and names.
b. Run attribute affinity-name bit-sequence bit-number
The mapping between the name and bit value in an affinity is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 145


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

There are 32 affinity bits in total. You can repeat this step to configure
some or all affinity bits.
c. Run quit
Return to the system view.
d. Run interface interface-type interface-number
The interface view of the link through which the bypass LSP passes is
displayed.
e. Run mpls te link administrative group name bit-name &<1-32>
An administrative group attribute is specified.
f. Run quit
Return to the system view.
g. Run interface tunnel tunnel-number
The tunnel interface view of the primary LSP is displayed.
h. Run mpls te bypass-attributes affinity { include-all | include-any |
exclude } bit-name &<1-32>
An affinity is configured for the bypass LSP.

NOTE

If an automatic bypass LSP that satisfies the specified affinity cannot be established, a
node will bind a manual bypass LSP satisfying the specified affinity to the primary LSP.

Step 9 Run commit

The configuration is committed.

----End

1.1.3.26.3 (Optional) Configuring Auto Bypass Tunnel Re-Optimization


Auto bypass tunnel re-optimization allows paths to be recalculated at certain
intervals for an auto bypass tunnel. If an optimal path is recalculated, a new auto
bypass tunnel will be set up over this optimal path. In this manner, network
resources are optimized.

Context
Network changes often cause the changes in optimal paths. Auto bypass tunnel
re-optimization allows the system to re-optimize an auto bypass tunnel if an
optimal path to the same destination is found due to some reasons, such as the
changes in the cost. In this manner, network resources are optimized.

NOTE

This configuration task is invalid for LSPs in the FRR-in-use state.

Procedure
Step 1 Run system-view

The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 146


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te auto-frr reoptimization [ frequency interval ]

Auto bypass tunnel re-optimization is enabled.

Step 4 (Optional) Run return

Return to the user view.

Step 5 (Optional) Run mpls te reoptimization [ auto-tunnel name tunnel-interface |


tunnel tunnel-number ]

Manual re-optimization is enabled.

After you configure the automatic re-optimization in the MPLS view, you can
return to the user view and run the mpls te reoptimization command to
immediately re-optimize the tunnels on which the automatic re-optimization is
enabled. After you perform the manual re-optimization, the timer of the
automatic re-optimization is reset and counts again.

Step 6 Run commit

The configurations are committed.

----End

1.1.3.26.4 Verifying the MPLS TE Auto FRR Configuration


After configuring MPLS TE Auto FRR, you can view detailed information about the
bypass tunnel.

Prerequisites
MPLS TE Auto FRR has been configured.

Procedure
● Run the display mpls te tunnel verbose command to check the binding of a
primary tunnel and an automatic bypass tunnel.
● Run the display mpls te tunnel-interface command to check detailed
information about an automatic bypass tunnel.
● Run the display mpls te tunnel path command to check information about
paths of a primary or bypass tunnel.

----End

1.1.3.27 Configuring MPLS Detour FRR


MPLS detour FRR automatically creates a different backup LSP for the primary LSP
on each eligible node to protect downstream links or nodes.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 147


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
TE FRR provides local link or node protection for TE tunnels. TE FRR is working in
either facility backup or one-to-one backup. Table 1-8 compares facility backup
and one-to-one backup.

Table 1-8 Comparison between facility backup and one-to-one backup

Mode Advantages Disadvantage

Facility Is extensible, resource efficient, Bypass tunnels must be


backup and easy to implement. manually planned and
configured, which is time-
consuming and laborious on a
complex network.

One-to- Is easy to configure, eliminates Each node has to maintain the


one manual network planning, and status of detour LSPs, which
backup provides flexibility on a complex consumes additional bandwidth
network. resources.

TE FRR in one-to-one backup mode is also called MPLS detour FRR. Each eligible
node automatically creates a detour LSP.
This section describes how to configure MPLS detour FRR. For information about
how to configure TE FRR in facility backup mode, see 1.1.3.25 Configuring MPLS
TE Manual FRR and 1.1.3.26 Configuring MPLS TE Auto FRR.

NOTE

● The facility backup and one-to-one backup modes are mutually exclusive on the same
TE tunnel interface. If both modes are configured, the latest configured mode overrides
the previous one.
● After MPLS detour FRR is configured, nodes on a TE tunnel are automatically enabled to
record routes and labels. Before you disable the route and label record functions, disable
MPLS detour FRR.

Pre-configuration Tasks
Before configuring MPLS detour FRR, configure an RSVP-TE tunnel.

NOTE

CSPF must be enabled on each node along both the primary and backup RSVP-TE tunnels.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel interface-number
The TE tunnel interface view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 148


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Run mpls te detour

MPLS detour FRR is enabled.

If you run the mpls te detour and mpls te fast-reroute commands on the same
tunnel interface, the latest configuration overrides the previous one.

Step 4 Run commit

The configuration is committed.

----End

Verifying the Configuration


After configuring MPLS detour FRR, run the following commands to check the
configurations.

● Run the display mpls te tunnel command to view TE tunnel information.


● Run the display mpls te tunnel path command to view TE tunnel path
information on a local node.
● Run the display mpls rsvp-te psb-content command to view RSVP-TE path
state block (PSB) information.

1.1.3.28 Disabling MPLS Detour FRR


If MPLS detour FRR is disabled on a transit node or egress node, the ingress node
excludes the node when calculating a detour LSP and does not occupy forwarding
resources of the node.

Context
After MPLS detour FRR is enabled on a tunnel, the ingress node calculates a
detour LSP to protect the tunnel if the tunnel fails. Some transit nodes or the
egress node may not support MPLS detour FRR, but they can still function as
protection nodes along a detour LSP.

To disable MPLS detour FRR, run the mpls rsvp-te detour disable command in
the MPLS view. After the mpls rsvp-te detour disable command is run, detour
LSPs that are not in the FRR-in-use state are deleted.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls rsvp-te detour disable

MPLS detour FRR is disabled.

Step 4 Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 149


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.

----End

1.1.3.29 Configuring an MPLS Tunnel Protection Group


This section describes how to configure a tunnel protection group. A protection
tunnel can be bound to a working tunnel to form a tunnel protection group. If the
working tunnel fails, traffic switches to the protection tunnel. The tunnel
protection group helps improve tunnel reliability.

Usage Scenario
A tunnel protection group provides end-to-end protection for traffic transmitted
along TE tunnel. If a working tunnel fails, bidirectional automatic protection
switching switches traffic to the protection tunnel.

NOTE

In an MPLS OAM for associated or co-routed LSP scenario where tunnel APS is configured,
if the primary and backup tunnels use the same path and the path fails, both the tunnels
are affected, and services may be interrupted.

A protected tunnel is called a working tunnel. A tunnel that protects the working
tunnel is called a protection tunnel. The working and protection tunnels form a
tunnel protection group. A tunnel protection group works in 1:1 mode. In 1:1
mode, one protection tunnel protects only one working tunnel.

● Working and protection tunnels


Tunnel-specific attributes in a tunnel protection group are independent from
each other. For example, a protection tunnel with bandwidth 50 Mbit/s can
protect a working tunnel with 100 Mbit/s bandwidth.
TE FRR can be enabled to protect the working tunnel.
A protection tunnel cannot be protected by other tunnels or have TE FRR
enabled.
● Protection switching mechanism
The NE9000 performs protection switching based on the following rules.

Table 1-9 Switching rules

Switching Prio Description


Request rity

Clear Hig Clears all switching requests initiated manually,


hest including forcible and manual switch requests. A
signal failure will trigger traffic switching.

Lockout of ↑ Prevents traffic from switching to a protection


protection tunnel even if a working tunnel fails.

Signal Fail for ↑ Switches traffic from a protection tunnel to a


Protection working tunnel if the protection tunnel fails.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 150


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Switching Prio Description


Request rity

Forcible switch ↑ Forcibly switches traffic from a working tunnel


to a protection tunnel, regardless of whether the
protection tunnel functions properly (unless a
higher priority switch request takes effect).

Signal Fail for ↑ Switches traffic from a working tunnel to a


Working protection tunnel if the working tunnel fails.

Manual switch ↑ Switches traffic from a working tunnel to a


protection tunnel only when the protection
tunnel functions properly or switches traffic
from the protection tunnel to the working
tunnel only when the working tunnel functions
properly.

Wait to restore ↑ Switches traffic from a protection tunnel to a


working tunnel after the working tunnel
recovers, which happens after the wait-to-
restore (WTR) timer elapses.

No request Low There is no switching request.


est

Pre-configuration Tasks
Before configuring an MPLS TE tunnel protection group, create an MPLS TE
working tunnel and a protection tunnel.

NOTE

● A tunnel protection group uses a configured protection tunnel to protect a working


tunnel, which improves tunnel reliability. Configuring working and protection tunnels
over separate links is recommended.
● The working and protection tunnels must be bidirectional. The following types of
bidirectional tunnels are supported:
● Static bidirectional associated LSPs
● Dynamic bidirectional associated LSPs
● Static bidirectional co-routed LSPs

1.1.3.29.1 Creating a Tunnel Protection Group


A configured protection tunnel can be bound to a working tunnel to form a tunnel
protection group. If the working tunnel fails, traffic switches to the protection
tunnel, which improves tunnel reliability.

Context
A tunnel protection group can be configured on the ingress to protect a working
tunnel. The switchback delay time and a switchback mode can also be configured.
If the revertive mode is used, the wait to restore (WTR) time can be set.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 151


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel interface-number
The tunnel interface view is displayed.
Step 3 Run mpls te protection tunnel tunnel-id [ [ holdoff holdoff-time ] | [ mode
{ non-revertive | revertive [ wtr wtr-time ] } ] ] *
The working tunnel is added to a protection group.
The following parameters can be configured in this step:
● tunnel-id specifies the ID of a protection tunnel.
● holdoff-time specifies the period between the time when a signal failure
occurs and the time when the protection switching algorithm is initiated upon
notification of the signal fault. holdoff-time specifies a multiplier of 100
milliseconds.
NOTE

Hold-off time = 100 milliseconds x holdoff-time


● In non-revertive mode, traffic does not switch back to a working tunnel even
after the working tunnel recovers.
● In revertive mode, traffic switches back to a working tunnel after the working
tunnel recovers.
● The WTR time is the time elapses before traffic switching is performed. The
wtr-time parameter specifies a multiplier of 30 seconds.
NOTE

WTR time = 30 seconds x wtr-time

Step 4 Run commit


The configuration is committed.
Step 5 Configure a detection mechanism.

----End

Follow-up Procedure
You can also perform the preceding steps to modify a protection group.
An MPLS TE tunnel protection group must be detected by MPLS OAM or MPLS-TP
OAM to rapidly trigger protection switching if a fault occurs.
After an MPLS TE tunnel protection group is created, properly select an MPLS
OAM mechanism:
● If both the working and protection tunnels are static bidirectional associated
LSPs, configure MPLS OAM for bidirectional associated LSPs.
● If both the working and protection tunnels are static bidirectional co-routed
LSPs, configure MPLS OAM for bidirectional co-routed LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 152


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● If OAM is deleted before APS is deleted, APS incorrectly considers that OAM
has detected a link fault, affecting protection switching. To resolve this issue,
re-configure OAM.
After an MPLS TE tunnel protection group is created, if MPLS-TP OAM is used to
detect faults and both the working and protection tunnels are static bidirectional
co-routed CR-LSPs, configure MPLS-TP OAM for bidirectional co-routed LSPs.

1.1.3.29.2 (Optional) Configuring the Protection Switching Trigger Mechanism


This section describes how to configure the protection switching trigger
mechanism for a tunnel protection group to forcibly switch traffic to the working
or protection tunnel. Alternatively, you can perform a traffic switchover manually.

Context
Read switching rules before configuring the protection switching trigger
mechanism.
Perform the following steps on the ingress of the tunnel protection group as
needed:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel interface-number
The tunnel interface view is displayed.
Step 3 Select one of the following protection switching trigger methods as required:
● To forcibly switch traffic from the working tunnel to the protection tunnel, run
mpls te protect-switch force
● To prevent traffic on the working tunnel from switching to the protection
tunnel, run mpls te protect-switch lock
● To switch traffic to the protection tunnel, run mpls te protect-switch manual
● To cancel the configuration of the protection switching trigger mechanism,
run mpls te protect-switch clear
NOTE

The preceding commands can take effect immediately after being run, without the commit
command executed.

----End

1.1.3.29.3 Verifying the Tunnel Protection Group Configuration


After configuring a tunnel protection group, run display commands to view
information about the tunnel protection group and the binding between the
working and protection tunnels.

Prerequisites
A tunnel protection group has been configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 153


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run the display mpls te protection tunnel { all | tunnel-id | interface tunnel-
interface-name } [ verbose ] command to check information about a tunnel
protection group.

Step 2 Run the display mpls te protection binding protect-tunnel { tunnel-id |


interface tunnel-interface-name } command to check the binding between the
working and protection tunnels.

----End

1.1.3.30 Configuring an MPLS TE Associated Tunnel Group


If the bandwidth of a service tunnel is insufficient, you can create an associated
tunnel group and specify both an original tunnel and its split tunnels to carry
services.

Prerequisites
Before configuring an MPLS TE associated tunnel group, complete the following
task:

● Configure RSVP-TE tunnels.

Context
The bandwidth of an MPLS TE tunnel is limited, but the bandwidth of services
carried by the tunnel cannot be limited. As a result, the tunnel bandwidth may
become insufficient in some service scenarios, for example, when routes or VPN
services recurse to the tunnel. To address this issue, you can create an associated
tunnel group, specify the current tunnel as the original tunnel of the group, and
specify split tunnels for the original tunnel. The split tunnels can carry services
together with the original tunnel, relieving bandwidth pressure.

Procedure
Step 1 Configure split tunnels.
1. Run system-view

The system view is displayed.


2. Run interface tunnel interface-number

A tunnel interface is created, and its view is displayed.


3. Run either of the following commands to assign an IP address to the tunnel
interface:
– To configure an IP address, run the ip address ip-address { mask | mask-
length } [ sub ] command.
The secondary IP address of a tunnel interface can be configured only
after the primary IP address is configured.
– To borrow an IP address from another interface, run the ip address
unnumbered interface interface-type interface-number command.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 154


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Although an MPLS TE tunnel can be established even if its tunnel interface


has no IP address, the tunnel cannot forward traffic. Therefore, the tunnel
interface must have an IP address to implement traffic forwarding. An MPLS
TE tunnel is unidirectional; therefore, you do not need to consider the peer IP
address when performing IP address configuration for the tunnel. You are
advised to specify the ingress LSR ID as the IP address of the tunnel interface,
instead of configuring a unique IP address for the interface.
4. Run tunnel-protocol mpls te

MPLS TE is enabled.
5. Run destination ip-address

A destination IP address is assigned to the tunnel. Generally, the egress LSR ID


is used as the destination IP address.
6. Run mpls te tunnel-id tunnel-id

A tunnel ID is set.
7. Run mpls te signal-protocol rsvp-te

RSVP-TE is enabled.
8. Run mpls te split-tunnel

The tunnel is configured as a split tunnel.


9. Run quit

Return to the system view.

Step 2 Configure an associated tunnel group.


1. Run mpls te associate-tunnel-group group-id

An associated tunnel group is created, and its view is displayed.


2. Run mpls te original-tunnel tunnel-name

An original tunnel is specified for the associated tunnel group.


3. Run mpls te split-tunnel tunnel-name

A split tunnel is specified for the associated tunnel group.

Repeat this command if you want to add more split tunnels.


4. (Optional) Run mpls te backup active-standby

The active/standby mode is enabled for the associated tunnel group.

After the mpls te backup active-standby command is run, the original


tunnel and its split tunnels work in active/standby mode. Normally, only the
original tunnel can carry service traffic. Split tunnels are sequenced based on
a selection rule (for example, in ascending order of tunnel ID). They protect
the original tunnel. If the original tunnel is faulty or in the "FRR in use" state,
traffic is switched from the original tunnel to the first split tunnel; if the first
split tunnel is faulty, traffic is switched to the second split tunnel, and so on,
implementing traffic switching from the original tunnel to split tunnels.

Step 3 Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 155


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.

----End

Verifying the Configuration


After an MPLS TE associated tunnel group is configured, you can run the display
mpls te associate-tunnel-group [ group-id ] command to check information
about the group.

1.1.3.31 Configuring Bandwidth Information Flooding for MPLS TE


If the link bandwidth changes slightly, the threshold for flooding bandwidth
information is set on the ingress or a transit node of a CR-LSP, which reduces
flooding attempts and saves network resources.

Usage Scenario
To synchronize data between TEDBs in an IGP area, OSPF TE or IS-IS TE is
configured to update TEDB information and flood bandwidth information if the
remaining bandwidth changes on an MPLS interface.
The NE9000 supports the following methods of controlling bandwidth information
flooding:
● Configure flooding commands to enable immediate bandwidth information
flooding on a device.
● Configure a flooding interval to enable periodic bandwidth information
flooding on a device.
● Configure a flooding threshold to prevent frequent flooding.
– When the percentage of the bandwidth reserved for the MPLS TE tunnel
on a link to the remaining link bandwidth in the TEDB is greater than or
equal to the configured threshold (flooding threshold), OSPF TE and IS-IS
TE flood link bandwidth information to all devices in this area and update
TEDB information.
– When the percentage of the bandwidth released by the MPLS TE tunnel
to the remaining link bandwidth in the TEDB is greater than or equal to
the configured threshold, OSPF TE and IS-IS TE flood link bandwidth
information to all devices in this area and update TEDB information.

Pre-configuration Tasks
Before adjusting the flooding threshold, configure an RSVP-TE tunnel.

Procedure
● Configure forcible bandwidth information flooding.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 156


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

c. Run mpls te manual-flooding


A device on the MPLS TE tunnel is configured to immediately flood the
bandwidth change to the network.
d. Run commit
The configurations are committed.
● Configure periodic bandwidth information flooding.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te periodic-flooding [ interval time-value ]
Periodic bandwidth information flooding is enabled on a device.
d. Run commit
The configurations are committed.
● Configure a flooding threshold.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of the interface on which the MPLS TE tunnel is established is
displayed.
c. Run mpls te bandwidth change thresholds { down percent-down | up
percent-up }
The flooding threshold is configured.
The flooding threshold is set only on a physical interface.
d. Run commit
The configurations are committed.
----End

1.1.3.32 Configuring the Limit Rate of MPLS TE Traffic


This section describes how to configure the limit rate of MPLS TE traffic to limit TE
tunnel traffic within the bandwidth range that is actually configured.

Usage Scenario
Physical links over which a TE tunnel is established may also transmit traffic of
other TE tunnels, non-CR-LSP traffic, or even IP traffic, in addition to the TE tunnel
traffic. To limit the TE tunnel traffic within a bandwidth range that is actually
configured, set a limit rate for TE tunnel traffic.
After the configuration of the limit rate, TE traffic is limited to a bandwidth range
that is actually configured. TE traffic with the bandwidth higher than the set
bandwidth is dropped.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 157


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

Before you configure rate limiting for MPLS TE traffic, run the mpls te bandwidth
command on the corresponding tunnel interface. If this command is not run, rate limiting is
not performed for MPLS TE traffic.

Pre-configuration Tasks
Before configuring rate limiting for MPLS TE traffic, complete the following tasks:
● an RSVP-TE tunnel

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel tunnel-number
The tunnel interface view is displayed.
Step 3 Run mpls te bandwidth ctType ctValue
The bandwidth constraint of the MPLS TE tunnel is configured.
Step 4 Run mpls te lsp-tp outbound
Traffic policing for the MPLS TE tunnel is enabled.
Step 5 Run commit
The configuration is committed.

----End

Verifying the Configuration


● Run the display current-configuration interface Tunnel tunnel-number
command.
The command output shows that the rate limiting function has been enabled.

1.1.3.33 Configuring Tunnel Re-optimization


Tunnel re-optimization is configured to allow a device to dynamically adjust paths
for tunnels.

Usage Scenario
Topology and link attributes of an IP/MPLS network are changeable. As a result, a
path over which an MPLS TE tunnel has been established may not be optimal.
Tunnel re-optimization can be configured to allow the MPLS TE tunnel to be
reestablished over an optimal path.
Re-optimization is implemented in either of the following modes:
● Periodic re-optimization: The system attempts to reestablish tunnels over
better paths (if there are) at a specified interval configured using the mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 158


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

auto reoptimization command. This implementation prevents manual


intervention and reduces configuration workload.
● Manual re-optimization: Manual re-optimization can be configured for the TE
tunnels if you want to immediately re-optimize the TE tunnels.

NOTE

Tunnel re-optimization is performed based on tunnel path constraints. During path re-
optimization, path constraints, such as explicit path constraints and bandwidth constraints,
are also considered.
Tunnel re-optimization cannot be used on tunnels for which a system selects paths in most-
fill tie-breaking mode.

Pre-configuration Tasks
Before configuring tunnel re-optimization, configure an RSVP-TE tunnel.

Procedure
● (Optional) Enable IGP metric-based re-optimization for an MPLS TE tunnel.

Perform this step if you want to re-optimize an MPLS TE tunnel based only on
the IGP metric. The following constraints are ignored during re-optimization:

– Bandwidth usage: A link is selected based on the percentage of the used


reservable bandwidth to the maximum reservable bandwidth.
– Hop-counts: A link is selected based on the number of hops on the path.
a. Run system-view

The system view is displayed.


b. Run either of the following commands:

The global MPLS configuration takes effect on all MPLS TE tunnels and is
used for batch configuration. A single tunnel configuration takes
precedence over the global MPLS configuration.

▪ Configure global MPLS.


1) Run mpls
The MPLS view is displayed.
2) Run mpls te
MPLS TE is enabled globally.
3) Run mpls te reoptimization-aggressive enable (MPLS view)
Re-optimization based only on IGP metric is enabled globally for
MPLS TE tunnels.
This command takes effect on all MPLS TE tunnels. To delete the
configuration for some tunnels, enter the interface views of the
MPLS TE tunnels, and then run the mpls te reoptimization-
aggressive block command.
4) Run quit
Return to the system view.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 159


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

▪ Configure based on a single tunnel.


1) Run interface tunnel interface-number
The tunnel interface view of the MPLS TE tunnel to be
established is displayed.
2) Run tunnel-protocol mpls te
The tunneling protocol is set to MPLS TE.
3) Run mpls te reoptimization-aggressive enable (tunnel
interface view)
Re-optimization based only on IGP metric is enabled globally for
MPLS TE tunnels.
c. Run commit

The configuration is committed.


● Configure automatic tunnel re-optimization.
a. Run system-view

The system view is displayed.


b. Run interface tunnel interface-number

The tunnel interface view of the MPLS TE tunnel to be established is


displayed.
c. Run mpls te reoptimization [ frequency interval ]

Automatic tunnel re-optimization is enabled.


d. (Optional) Run mpls te inter-area reoptimization

Inter-IGP-area tunnel re-optimization is enabled.

In an inter-IGP-area scenario, when a better path exists in the


downstream area and tunnel re-optimization is triggered on the ingress,
the tunnel can only detect whether a better path exists in the area where
the ingress resides, not in the downstream area. As a result, if a better
path exists only in the downstream area, it is impossible to establish an
RSVP-TE P2P LSP over that path through re-optimization. To address the
issue, you can perform this step to enable inter-IGP-area tunnel re-
optimization so that the RSVP-TE P2P LSP of the tunnel can be
established over a better path in the downstream area.
e. (Optional) Run quit

Return to the system view.


f. (Optional) Run mpls

The MPLS view is displayed.


g. (Optional) Run mpls te reoptimization link-up disable

Link change-triggered RSVP-TE tunnel re-optimization is disabled.

If route flapping occurs on a network, tunnel re-optimization is


repeatedly triggered, wasting network resources. To prevent the problem,
run this command to disable link change-triggered RSVP-TE tunnel re-
optimization so that tunnel re-optimization will not be performed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 160


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

This command takes effect only for link change-triggered tunnel re-optimization.
It does not take effect if the mpls te reoptimization (tunnel interface view)
command is run with the frequency interval parameter specified.
This command disables the re-optimization function configured for all tunnels.
h. Run commit

The configuration is committed.


● Configure manual tunnel re-optimization.

In the user view, run mpls te reoptimization [ auto-tunnel name tunnel-


interface | tunnel tunnel-number ]

Manual re-optimization is configured.

Manual re-optimization can be enabled on a specific or all tunnels on a node.

----End

Verifying the Configuration


After completing the configuration, run the display mpls te tunnel-interface
command on the ingress of the tunnel to view the following information:

● Whether automatic re-optimization is enabled


● Interval between automatic re-optimization processes

1.1.3.34 Configuring Isolated LSP Computation


To improve label switched path (LSP) reliability on a network that has the
constraint-based routed label switched path (CR-LSP) hot standby feature, you can
configure the isolated LSP computation feature so that the device uses both the
disjoint algorithm and the constrained shortest path first (CSPF) algorithm to
compute isolated primary and hot-standby LSPs.

Context
Most IP radio access networks (IP RANs) that use Multiprotocol Label Switching
(MPLS) TE have high reliability requirements for LSPs. However, the existing CSPF
algorithm simplifies the LSP path according to the principle of minimizing the link
cost, and cannot automatically calculate the completely separate primary and
secondary LSP paths.

Specifying explicit paths can meet this reliability requirement; this method,
however, does not adapt to topology changes. Each time a node is added to or
deleted from the IP RAN, carriers must modify the explicit paths, which is time-
consuming and laborious.

To resolve these problems, you can configure isolated LSP computation. After this
feature is enabled, the disjoint and CSPF algorithms work together to compute
primary and hot-standby LSPs at the same time and cut off crossover paths of the
two LSPs. Then, the device gets the isolated primary and hot-standby LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 161


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

● Isolated LSP computation is a best-effort technique. If the disjoint and CSPF algorithms
cannot get isolated primary and hot-standby LSPs or two isolated LSPs do not exist, the
device uses the primary and hot-standby LSPs computed by CSPF.
● After you enable the disjoint algorithm, the shared risk link group (SRLG), if configured,
becomes ineffective.

Pre-configuration Tasks
Before configuring isolated LSP computation, complete the following tasks:

● Configure an RSVP-TE tunnel.


● Configure CR-LSP backup and establish a hot-standby CR-LSP.
NOTE

● CSPF must be enabled on ingress node of the RSVP-TE tunnel.


● Isolated LSP computation requires the collaboration of the CR-LSP hot standby feature
and requires the hot-standby LSP to have the same reserved bandwidth as the primary
LSP.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel interface-number

The TE tunnel interface view is displayed.

Step 3 Run mpls te cspf disjoint

The disjoint algorithm is enabled.

Step 4 Run commit

The configuration is committed.

----End

Checking the Configurations


● Run the display mpls te cspf destination ip-address computation-mode
disjoint command to check the computed primary and hot-standby LSPs after
the disjoint algorithm is enabled.
● Run the display mpls te tunnel path tunnel-name command to check
information about the actual primary and hot-standby LSPs.

1.1.3.35 Configuring Automatic Tunnel Bandwidth Adjustment


This section describes how to configure the automatic adjustment of the tunnel
bandwidth.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 162


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Usage Scenario
Automatic bandwidth adjustment can be enabled to adjust the bandwidth of the
tunnel automatically.
The system periodically collects the traffic rate on the outbound interface of a TE
tunnel and obtains multiple sampled traffic rates within a certain period. The
average value of the sampled values within this period is used as the bandwidth
constraint to request the establishment of a new LSP. After the new LSP is
established, traffic is switched to the new one. With make-before-break enabled,
the old LSP is torn down after the new LSP is established.
The sampling interval is configured in the MPLS view and takes effect for all MPLS
TE tunnels. The rate of the outbound interface on an MPLS TE tunnel is recorded
at each sampling interval. In this manner, the actual average bandwidth sampled
within a period of time can be obtained.
After automatic bandwidth adjustment is enabled, the mpls te timer auto-
bandwidth command can be run to configure periodic sampling in order to
obtain the bandwidth of the tunnel in a sampling interval. After multiple times of
sampling within an automatic bandwidth adjustment period, the average
bandwidth is calculated as the new bandwidth, and a new LSP is established
based on the new bandwidth. If a new LSP is successfully established, traffic is
switched to it, and the original LSP is torn down. If a new LSP fails to be
established, traffic is still transmitted along the original LSP. The bandwidth is
adjusted in the next automatic bandwidth adjustment period.

Pre-configuration Tasks
Before configuring the bandwidth automatic adjustment, configure an RSVP-TE
tunnel.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls te timer auto-bandwidth [ interval ]
The sampling interval is specified. The actual sampling interval takes the larger
value in the mpls te timer auto-bandwidth command and the set flow-stat
interval command.
Step 4 Run quit
Return to the system view.
Step 5 Run interface tunnel interface-number
The tunnel interface view of the MPLS TE tunnel is displayed.
Step 6 Run statistic enable
MPLS TE tunnel statistics can be collected.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 163


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 7 To configure automatic bandwidth adjustment, run one of the following


commands.
● Run the mpls te auto-bandwidth adjustment { [ threshold percent [ [ or ]
absolute-bw absolute-bw ] ] | frequency interval | [ max-bw max-bandwidth
| min-bw min-bandwidth ] * | [ overflow-limit overflow-limit-value ] |
[ underflow-limit underflow-limit-value ] } * command to enable automatic
bandwidth adjustment and configure the interval at which automatic
bandwidth adjustment is performed and the allowed bandwidth adjustment
range.

----End

1.1.3.36 Locking the Tunnel Configuration


Tunnel configurations can be locked by the controller when the configurations are
sent to a NE9000.

Usage Scenario
In service delivery, a controller delivers tunnel configurations to a NE9000. The
NE9000 uses the obtained configurations to create a tunnel or modify an existing
tunnel. To prevent users from modifying such tunnel configurations, the controller
delivers the mpls te lock command to lock the configurations, in addition to
configurations to the NE9000. Before you modify the configuration of a tunnel,
run the undo mpls te lock command to unlock the tunnel configuration on the
tunnel interface.

Pre-configuration Tasks
Before locking the tunnel configuration, complete the following tasks:

● Configure the controller to deliver tunnel configurations to a NE9000.


● Assign a user management rights.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel interface-number

The tunnel interface view of an MPLS TE tunnel is displayed.

Step 3 Run mpls te lock

The configuration of the MPLS TE tunnel is locked.

Step 4 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 164


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Checking the Configurations


After locking the tunnel configurations, verify that no command can be run on the
tunnel interface to modify configurations and commands can be run only after the
undo mpls te lock command is run to unlock the configurations.

1.1.3.37 Configuring P2MP TE Tunnels


A P2MP TE tunnel provides sufficient network bandwidth and high reliability for
multicast service transmission on an IP/MPLS backbone network.

Usage Scenario
The demand for multicast services, such as IPTV, multimedia conferences, and
massively multiplayer online role-playing games (MMORPGs), has steadily
increased on IP/MPLS backbone networks. These services require sufficient
network bandwidth, assured quality of service (QoS), and high reliability. The
following multicast solutions are available, but are insufficient for the
requirements of multicast services or network carriers:
● IP multicast technology: deployed on a live P2P network with upgraded
software. This solution reduces upgrade and maintenance costs. IP multicast,
similar to IP unicast, does not support QoS or TE capabilities and has low
reliability.
● Dedicated multicast network: deployed using synchronous optical network
(SONET)/synchronous digital hierarchy (SDH) technologies. This solution
provides high reliability and transmission rates, but has high construction
costs and requires separate maintenance.
IP/MPLS backbone network carriers require a multicast solution that has high TE
capabilities and can be implemented by upgrading existing devices.

P2MP TE is such a solution. It provides high reliability and QoS as well as TE


capabilities. P2MP TE can be implemented on an IP/MPLS backbone network by
simple configuration to provide multicast services, which reduces upgrade and
maintenance costs and helps network convergence.

P2MP TE tunnels can be manually or automatically established. Table 1-10


compares manual P2MP tunnels with automatic P2MP TE tunnels.

Table 1-10 Comparison between manual and automatic P2MP TE tunnels

Item Manual P2MP TE Automatic P2MP TE


Tunnel Tunnel

Trigger method Manually triggered by Automatically triggered


users. by services.

Usage scenario Multicast services, NG MVPN or multicast


excluding NG MVPN or VPLS services are
multicast VPLS, are transmitted.
transmitted.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 165


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Item Manual P2MP TE Automatic P2MP TE


Tunnel Tunnel

Traffic import method PIM or static IGMP is Services are


used to direct services to automatically directed to
LSPs. LSPs.

Pre-configuration Tasks
Before configuring P2MP TE tunnels, complete the following tasks:

● Configure OSPF or IS-IS to implement IP connectivity between nodes on the


P2MP TE tunnel.
● Enable MPLS TE and RSVP-TE.
● Configure CSPF.
● Configure OSPF or IS-IS TE.
● (Optional) Configure MPLS TE attributes for links.

Configuration Procedures

Figure 1-7 Flowchart for configuring P2MP TE tunnels

1.1.3.37.1 Enabling P2MP TE Globally


This section describes how to enable P2MP TE globally on each node before a
P2MP TE tunnel is established.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 166


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
You can configure a P2MP TE tunnel only after P2MP TE is globally enabled on
each node.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls te

MPLS TE is enabled.

Step 4 Run mpls te p2mp-te

P2MP TE is globally enabled.

Step 5 Run commit

The configuration is committed.

----End

1.1.3.37.2 (Optional) Disabling P2MP TE on an Interface


You can disable P2MP TE on a specific interface during the network planning.

Context
After P2MP TE is globally enabled, P2MP TE is automatically enabled on each
MPLS TE-enabled interface on a local node. To disable P2MP TE on a specific
interface during network planning or there is no need to have P2MP TE enabled
on a specific interface because it does not support P2MP forwarding, disable P2MP
TE on the specific interface.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 Run mpls te p2mp-te disable

P2MP TE is disabled on the interface.

After the mpls te p2mp-te disable command is run, P2MP TE LSPs established on
the interface are torn down, and newly configured P2MP TE LSPs on the interface
fail to be established.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 167


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 4 Run commit


The configuration is committed.

----End

1.1.3.37.3 (Optional) Setting Leaf Switching and Deletion Delays


To prevent two copies of traffic on a P2MP TE tunnel's egress, a leaf CR-LSP
switchover hold-off time and a deletion hold-off time can be set for MBB.

Context
Before the primary sub-LSP is deleted, both the primary sub-LSP and Modified
sub-LSP carry traffic. If the egress cannot receive traffic only from one sub-LSP,
two copies of traffic exist. To prevent two copies of traffic, perform the following
steps to reset the leaf CR-LSP switchover hold-off time and deletion hold-off time.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
MPLS is enabled globally and the MPLS view is displayed.
Step 3 Run mpls te
MPLS TE is enabled globally.
A leaf CR-LSP switchover hold-off time and deletion hold-off time can be set only
after MPLS TE is enabled globally.
Step 4 Run mpls te p2mp-te leaf switch-delay switch-time delete-delay delete-time
The leaf MBB switchover delay and deletion delay are set.

NOTICE

After the mpls te p2mp-te leaf switch-delay switch-time delete-delay delete-


time command is run, traffic may be interrupted in the following scenarios:
● The modified sub-LSP has been ready on the ingress and the primary sub-LSP
has been deleted, but the modified sub-LSP is not ready on the egress. If this
occurs, when the ingress switches traffic to the modified sub-LSP, traffic is
temporarily interrupted.
● The primary sub-LSP has been deleted, but the modified sub-LSP failure
message cannot be immediately sent to the ingress. If this occurs, traffic is
temporarily interrupted.

Step 5 Run commit


The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 168


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.37.4 Configuring Leaf Lists


Configuring a leaf list on an ingress specifies all leaf nodes on a P2MP TE tunnel.
A leaf list helps you configure and manage these leaf nodes uniformly. The steps
in this section must be performed if P2MP TE tunnels are manually established.
The steps in this section are optional if the establishment of P2MP TE tunnels is
automatically triggered by a service.

Context
For a P2MP TE tunnel, the path that originates from the ingress and is destined for
each leaf node can be calculated either by constraint shortest path first (CSPF) or
by planning an explicit path for a specific leaf node or each leaf node. After each
leaf node is configured on an ingress, the ingress sends signaling packets to each
leaf node and then establishes a P2MP TE tunnel. The NE9000 uses leaf lists to
configure and manage leaf nodes. All leaf nodes and their explicit paths are
integrated into a table, which helps you configure and manage the leaf nodes
uniformly.

An MPLS network that transmits multicast services selects dynamically leaf nodes
on an automatic P2MP TE tunnel and uses constrained shortest path first (CSPF)
to calculate a path destined for each leaf node. To control the leaf nodes of an
automatic P2MP TE tunnel, configure a leaf list.

Explicit path planning requires you to configure an explicit path for a specific leaf
node or each leaf node, and use the explicit path in the leaf list view.

NOTE

The configuration must prevent a remerge or crossover problem:


● Remerge event: occurs when two sub-LSPs have different inbound interfaces but the
same outbound interface on a transit node. Figure 1-8 shows that a remerge event
occurs on the outbound interface shared by two sub-LSPs.
● Crossover event: occurs when two sub-LSPs have different inbound and outbound
interfaces on a transit node. Figure 1-8 shows that a crossover event occurs on the
transit node shared by the two sub-LSPs.

Figure 1-8 Remerge and crossover events

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 (Optional) Configure an explicit path to each leaf node.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 169


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1. Run explicit-path path-name

An explicit path is created and the explicit path view is displayed.


2. Run next hop ip-address [ include [ [ strict | loose ] | [ incoming |
outgoing ] ] * | exclude ]

A next-hop address is specified for the explicit path.

You can configure either the include or include parameter:


3. (Optional) Run add hop ip-address1 [ include [ [ strict | loose ] | [ incoming
| outgoing ] ] * | exclude ] { after | before } ip-address2

A node is added to the explicit path.


4. (Optional) Run modify hop ip-address1 ip-address2 [ include [ [ strict |
loose ] | [ incoming | outgoing ] ] * | exclude ]

The address of a node on the explicit path is changed.


5. (Optional) Run delete hop ip-address

A node is excluded from the explicit path.


6. Run commit

The configuration is committed.


7. Run quit

Return to the system view.

For a P2MP TE tunnel, an explicit tunnel can be configured for a specific leaf node
or each leaf node.

Step 3 Run mpls te leaf-list leaf-list-name

A leaf list is specified for the P2MP TE tunnel, and the leaf list view is displayed.

Step 4 Run destination leaf-address

A leaf node is established in the leaf list.

The leaf-address parameter specifies the MPLS LSR ID of each leaf node.

Step 5 (Optional) Run path explicit-path path-name

An explicit path is specified for the leaf node.

The explicit-path path-name parameter specifies the name of the explicit path
established in Step 2.

NOTE

Repeat Step 3 and Step 4 on a P2MP TE tunnel to configure all leaf nodes.

Step 6 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 170


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.37.5 Configuring a P2MP TE Tunnel Interface


Configuring a tunnel interface on an ingress helps you to manage and maintain
the P2MP TE tunnel.

Context
A P2MP TE tunnel is established by binding multiple sub-LSPs to a P2MP TE
tunnel interface. A network administrator configures a tunnel interface to manage
and maintain the tunnel. After a tunnel interface is configured on an ingress, the
ingress sends signaling packets to all leaf nodes to establish a tunnel.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

A tunnel interface is created, and the tunnel interface view is displayed.

Step 3 Run either of the following commands to assign an IP address to the tunnel
interface:
● Run ip address ip-address { mask | mask-length } [ sub ]
An IP address is assigned to the tunnel interface.
● Run ip address unnumbered interface interface-type interface-number
The tunnel interface is allowed to borrow the IP address of a specified
interface.

A tunnel interface must obtain an IP address before it can forward traffic. An


MPLS TE tunnel is unidirectional and does not need a peer address. Therefore,
there is no need to specifically configure an IP address for the tunnel interface. A
TE tunnel interface usually uses the ingress LSR ID as its IP address.

Step 4 Run tunnel-protocol mpls te

MPLS TE is configured as a tunnel protocol.

Step 5 Run mpls te p2mp-mode

A P2MP TE tunnel is established.

Step 6 Run mpls te tunnel-id tunnel-id

A tunnel ID is set.

Step 7 Run mpls te leaf-list leaf-list-name

A leaf list is specified for the P2MP TE tunnel.

Step 8 (Optional) Perform the following operations to set other tunnel attributes as
needed:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 171


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Table 1-11 Operations


Operation Description

Run mpls te bandwidth ct0 ct0-bw- ● A P2MP TE tunnel is established to


value provide sufficient network
The bandwidth is configured for the bandwidth for multicast services.
tunnel. Therefore, set the bandwidth value.
● The bandwidth used by the tunnel
cannot be higher than the
maximum reservable link
bandwidth.
● Ignore this step if the TE tunnel is
used only for changing the data
transmission path.

Run mpls te record-route [ label ] This step enables nodes along a P2MP
The route and label recording function TE tunnel to use RSVP messages to
for a manual P2MP TE tunnel is record detailed P2MP TE tunnel
enabled. information, including the IP address
of each hop. The label parameter in
the command enables RSVP messages
to record label values.

Run mpls te resv-style { se | ff } -


A resource reservation style is
specified.

Run mpls te path metric-type { igp | -


te }
A link metric type used to select links
is specified.

Run mpls te affinity property An affinity is a 32-bit vector value


properties [ mask mask-value ] used to describe an MPLS link. An
An affinity and its mask are specified. affinity and an administrative group
attribute define the nodes through
which an MPLS TE tunnel passes.
Affinity masks determine the link
properties that a device must check. If
some bits in the mask are 1, at least
one bit in an administrative group is 1,
and the corresponding bit in the
affinity must be 1. If the bits in the
affinity are 0s, the corresponding bits
in the administrative group cannot be
1.
You can use an affinity to control the
nodes through which a manual P2MP
TE tunnel passes.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 172


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Operation Description

Run mpls te hop-limit hop-limit-value The mpls te hop-limit command sets


A hop limit is set for a manual P2MP the maximum number of hops that
TE tunnel. each sub-LSP in a P2MP TE tunnel
supports.

Run mpls te tie-breaking { least-fill | -


most-fill | random }
A rule for selecting a route among
multiple routes to the same
destination is specified.

Run mpls te priority setup-priority The setup priority of a tunnel must be


[ hold-priority ] no higher than its holding priority. A
The priorities of the tunnel are set. setup priority value must be greater
than or equal to a holding priority
value.
If resources are insufficient, setting the
setup and holding priority values
allows LSPs with lower priorities to
release resources for establishing LSPs
with higher priorities.

Run mpls te reoptimization Periodic re-optimization allows a


[ frequency interval ] P2MP TE tunnel to be automatically
Periodic re-optimization is enabled for reestablished over a better path. After
a manual P2MP TE Tunnel. a better path to the same destination
has been calculated for a certain
reason, such as a cost change, a TE
tunnel will be automatically
reestablished, optimizing resources on
a network.

Run mpls te lsp-tp outbound Physical links over which a P2MP TE


Traffic policing is enabled for a tunnel is established transmit traffic of
manual P2MP TE tunnel. other TE tunnels, traffic of non-CR LSP
traffic, or even IP traffic, in addition to
TE tunnel traffic. To limit TE traffic
within a configured bandwidth range,
run the mpls te lsp-tp outbound
command.

Step 9 Run commit

The configuration is committed.

----End

1.1.3.37.6 (Optional) Configuring a P2MP Tunnel Template


Attributes can be set in a P2MP tunnel template that is used to automatically
establish P2MP TE tunnels.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 173


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
Attributes of an automatic P2MP TE tunnel can only be defined in a P2MP tunnel
template, but cannot be configured on a tunnel interface because the automatic
P2MP TE tunnel has no tunnel interface. When NG MVPN or multicast VPLS is
deployed on a network, nodes that transmit multicast traffic can reference the
template and use attributes defined in the template to automatically establish
P2MP TE tunnels.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls te p2mp-template template-name
A P2MP tunnel template is created, and the P2MP tunnel template view is
displayed.
Step 3 Select one or multiple operations.

Table 1-12 Operations


Operation Description

Run leaf-list leaf-list-name When multicast services arrive at a


A leaf list is configured. node, the node automatically selects
leaf nodes and establishes a sub-LSP
destined for each leaf node.
This step enables a node that
multicast services access to select leaf
nodes in a specified leaf list.
NOTE
Before running the leaf-list command, the
task described in configuring a leaf list
must be complete. The leaf-list-name value
in this step must specify an existing leaf
list.

Run bandwidth ct0 bw-value Before bandwidth protection is


The CT0 bandwidth is set for the provided for traffic transmitted along
automatic P2MP TE tunnel. an automatic P2MP TE tunnel, run the
bandwidth command to set the
required bandwidth value for the
tunnel. Nodes on the P2MP TE tunnel
can then reserve bandwidth for
services, which implements bandwidth
protection.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 174


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Operation Description

Run record-route [ label ] This step enables nodes along an


The route and label record function for automatic P2MP TE tunnel to use
an automatic P2MP TE tunnel is RSVP messages to record detailed
enabled. P2MP TE tunnel information, including
the IP address of each hop. The label
parameter in the record-route
command enables RSVP messages to
record label values.

Run resv-style { se | ff } -
A resource reservation style is
specified.

Run path metric-type { igp | te } -


A link metric type used to select links
is specified.

Run affinity property properties An affinity is a 32-bit vector value


[ mask mask-value ] or affinity used to describe an MPLS link. An
primary { include-all | include-any | affinity and an administrative group
exclude } bit-name &<1-32> attribute define the nodes through
An affinity and its mask are specified. which an MPLS TE tunnel passes.
Affinity masks determine the link
properties that a device must check. If
some bits in the mask are 1, at least
one bit in an administrative group is 1,
and the corresponding bit in the
affinity must be 1. If the bits in the
affinity are 0s, the corresponding bits
in the administrative group cannot be
1.
You can use an affinity to control the
nodes through which an automatic
P2MP TE tunnel passes.

Run hop-limit hop-limit-value The hop-limit command sets the


A hop limit is set for an automatic maximum number of hops that a
P2MP TE tunnel. P2MP LSP in an automatic P2MP TE
tunnel supports.

Run tie-breaking { least-fill | most- -


fill | random }
A rule for selecting a route among
multiple routes to the same
destination is specified.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 175


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Operation Description

Run priority setup-priority [ hold- The setup priority of a tunnel must be


priority ] no higher than its holding priority. A
The setup and holding priorities are setup priority value must be greater
set. than or equal to a holding priority
value.
If resources are insufficient, setting the
setup and holding priority values
allows LSPs with lower priorities to
release resources for establishing LSPs
with higher priorities.

Run reoptimization [ frequency Periodic re-optimization allows a


interval ] P2MP TE tunnel to be automatically
Periodic re-optimization is enabled for reestablished over a better path. After
an automatic P2MP TE tunnel. a better path to the same destination
has been calculated for a certain
reason, such as a cost change, a TE
tunnel will be automatically
reestablished, optimizing resources on
a network.

Run lsp-tp outbound Physical links over which a P2MP TE


Traffic policing is enabled for an tunnel is established transmit traffic of
automatic P2MP TE tunnel. other TE tunnels, traffic of non-CR LSP
traffic, or even IP traffic, in addition to
TE tunnel traffic. To limit TE traffic
within a configured bandwidth range,
run the lsp-tp outbound command.

Step 4 (Optional) Run cspf disable

CSPF is disabled in the P2MP template.

NOTE

In an inter-AS scenario, if a loose explicit path is configured in a P2MP template, you need
to run this command only when NG MVPN triggers the establishment of a dynamic P2MP
tunnel. You are advised not to run this command in other scenarios.

Step 5 Run commit

The configuration is committed.

----End

1.1.3.37.7 (Optional) Configuring a P2MP TE Tunnel to Support Soft Preemption


Priorities and preemption are used to allow TE tunnels to be established
preferentially to transmit important services, preventing resource competition
during tunnel establishment.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 176


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
If there is no path meeting the bandwidth requirement of a desired tunnel, a
device can tear down an established tunnel and use bandwidth resources assigned
to that tunnel to establish a desired tunnel. This is called preemption. The
following preemption modes are supported:
● Hard preemption: A CR-LSP with a higher setup priority can directly preempt
resources assigned to a CR-LSP with a lower holding priority. Some traffic is
dropped on the CR-LSP with a lower holding priority during the hard
preemption process.
● Soft preemption: After a CR-LSP with a higher setup priority preempts
bandwidth of a CR-LSP with a lower holding priority, the soft preemption
function retains the CR-LSP with a lower holding priority for a specified period
of time. If the ingress finds a better path for this CR-LSP after the time
elapses, the ingress uses the make-before-break mechanism to reestablish the
CR-LSP over the new path. If the ingress fails to find a better path after the
time elapses, the CR-LSP goes down.

Procedure
● Configure soft preemption in the P2MP TE tunnel template view.
a. Run system-view

The system view is displayed.


b. Run mpls te p2mp-template template-name

The P2MP TE tunnel template view is displayed.


c. Run soft-preemption

Soft preemption is enabled for the P2MP TE tunnel.


d. Run commit

The configuration is committed.


● Configure soft preemption in the P2MP TE tunnel view.
a. Run system-view

The system view is displayed.


b. Run interface tunnel tunnel-number

The P2MP TE tunnel interface view is displayed.


c. Run mpls te soft-preemption

Soft preemption is enabled.


d. Run commit

The configuration is committed.

----End

1.1.3.37.8 (Optional) Configuring the Reliability Enhancement Function for a P2MP


Tunnel
Configure a function to improve service reliability as needed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 177


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
To improve reliability of traffic transmitted along a P2MP tunnel, configure the
following reliability enhancement functions as needed:

● Rapid MPLS P2MP switching


With this function, if a device detects a fault in the active link, the device
rapidly switches services to the standby link over which an MPLS P2MP tunnel
is established, which improves service reliability.
● Multicast load balancing on a trunk interface
Without this function, a device randomly selects a trunk member interface to
forward multicast traffic. If this member interface fails, multicast traffic is
interrupted. With this function, multicast traffic along a P2MP tunnel is
balanced among all trunk member interfaces. This function helps improve
service reliability and increase available bandwidth for multicast traffic.
● MPLS P2MP load balancing
To enable P2MP load balancing globally, run the mpls p2mp force-
loadbalance enable command. In a multicast scenario where load balancing
is configured in the Eth-Trunk interface view, if a leaf node connected to the
Eth-Trunk interface joins or quits the multicast model, packet loss occurs on
the other leave nodes connected to the non-Eth-Trunk interfaces due to the
model change. After the mpls p2mp force-loadbalance enable command is
run, load balancing is forcibly enabled in the system view, therefore
preventing packet loss.
● WTR time for traffic to be switched from the MPLS P2MP FRR path to the
primary path.
If the primary MPLS P2MP path fails, traffic on the forwarding plane is rapidly
switched to the backup path. If the primary path recovers before MPLS P2MP
convergence is complete on the downstream node, traffic is switched back to
the primary path within the default WTR time. If only some entries are
generated for the primary path within the period, some packets are dropped
when traffic switches back to the primary path. To ensure that all entries are
generated for the primary path during the switchback and prevent packet
loss, you can flexibly set the WTR time for traffic to be switched from the
MPLS P2MP FRR path to the primary path.

Procedure
● Configure rapid MPLS P2MP switching.
a. Run system-view
The system view is displayed.
b. Run mpls p2mp fast-switch enable
Rapid MPLS P2MP switching is enabled.
c. Run commit
The configuration is committed.
● Configure multicast load balancing on a trunk interface.
a. Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 178


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

b. Run interface eth-trunk trunk-id or interface ip-trunk trunk-id


The Eth-Trunk interface view is displayed.
c. Run multicast p2mp load-balance enable
Multicast traffic load balancing among trunk member interfaces is
enabled on the trunk interface that functions as an outbound interface of
a P2MP tunnel.
d. Run commit
The configuration is committed.
● Configure MPLS P2MP load balancing.
a. Run system-view
The system view is displayed.
b. Run mpls p2mp force-loadbalance enable
MPLS P2MP load balancing is enabled globally.
c. (Optional) Run multicast p2mp load-balance number load-
balance_number
The number of trunk member interfaces that balance multicast traffic on
a P2MP tunnel is set.
d. Run commit
The configuration is committed.
● Set the WTR time for traffic to be switched from the MPLS P2MP FRR path to
the primary path.
a. Run system-view
The system view is displayed.
b. Run mpls p2mp frr-wtr time-value
The WTR time is set for traffic to be switched from the MPLS P2MP FRR
path to the primary path.
c. Run commit
The configuration is committed.

----End

1.1.3.37.9 Verifying the P2MP TE Tunnel Configuration


After configuring a P2MP TE tunnel, you can view information about the tunnel
when it is in the Up state.

Prerequisites
A P2MP TE tunnel has been configured.

Procedure
● Run the display mpls te p2mp tunnel-interface command to check
information about the P2MP TE tunnel interface on the ingress and all sub-
LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 179


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Run the display mpls te p2mp-template command to check P2MP TE tunnel


template configurations and information about P2MP TE tunnels established
using this template.
● Run the display mpls te leaf-list command to check information about the
leaf list configured on the ingress.
● Run the display mpls te p2mp tunnel path command to check the path
attributes of the P2MP TE tunnel.
● Run the display mpls multicast-lsp protocol p2mp-te command to check
the sub-LSP status and MPLS forwarding entries, including the incoming label,
outgoing label, inbound interface, and outbound interface of each sub-LSP.
● Run the display mpls multicast-lsp statistics protocol p2mp-te command
to check statistics about sub-LSPs that pass through a local node.
● Run the display mpls rsvp-te p2mp lsp command to check information
about RSVP signaling of the P2MP LSP.
● Run the display mpls rsvp-te p2mp session command to check statistics
about the RSVP signaling packets sent and received over the P2MP TE tunnel.
● Run the display mpls rsvp-te p2mp statistics command to check
information about RSVP signaling packets.

----End

Follow-up Procedure
If errors occur in tunnel services, perform the following to quickly restore the
services if no other workarounds are available.

● Run the reset mpls te auto-tunnel p2mp name tunnel-name command in


the user view to reestablish the P2MP TE tunnel.
● Run the reset mpls rsvp-te p2mp sub-lsp tunnel-id lsp-id ingress-lsr-id sub-
group-id sub-group-origin-id s2l-destination command in the user view to
restart the sub-LSP of the P2MP TE tunnel.

1.1.3.38 Configuring BFD for P2MP TE


BFD for P2MP TE rapidly monitors P2MP TE tunnels, which helps speed up
responses to faults and improve network reliability.

Usage Scenario
If P2MP TE tunnels are established to transmit NG MVPN and multicast VPLS
services, BFD for P2MP TE can be configured to rapidly detect faults in P2MP TE
tunnels, which improves network reliability. To configure BFD for P2MP TE, run the
bfd enable command in the P2MP tunnel template view so that BFD sessions for
P2MP TE can be automatically established while P2MP TE tunnels are being
established.

Context
Before configuring BFD for P2MP TE, configure an automatic P2MP TE tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 180


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Configure the ingress.
1. Run system-view
The system view is displayed.
2. Run bfd
BFD is enabled.
3. Run quit
Return to the system view.
4. Run mpls te p2mp-template template-name
A P2MP tunnel template is created, and the MPLS TE P2MP template view is
displayed.
5. Run bfd enable
BFD for P2MP TE is enabled.
6. (Optional) Run bfd { min-tx-interval tx-interval | min-rx-interval rx-interval
| detect-multiplier multiplier } *
BFD for P2MP TE parameters are set.
7. Run commit
The configuration is committed.
Step 2 Configure each leaf node.
1. Run system-view
The system view is displayed.
2. Run bfd
BFD is enabled, and the BFD view is displayed.
3. Run mpls-passive
The egress is enabled to create a BFD session passively.
The egress has to receive an LSP ping request carrying a BFD TLV before
creating a BFD session.
4. Run commit
The configuration is committed.

----End

Verifying the Configuration


● Run the display bfd multicast session { all | p2mp-te [ p2mp-id p2mp-id
ingress-lsr-id tunnel-id tunnel-id ] } command to check BFD for P2MP TE
session information.

1.1.3.39 Configuring P2MP TE FRR


P2MP TE fast reroute (FRR) provides local link protection for a P2MP TE tunnel. It
establishes a bypass tunnel to protect sub-LSPs. If a link fails on the P2MP TE

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 181


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

tunnel, traffic switches to the bypass tunnel within 50 milliseconds, which


increases tunnel reliability.

Usage Scenario
P2MP TE FRR establishes a bypass tunnel to provide local link protection for the
P2MP TE tunnel called the primary tunnel. The bypass tunnel is a P2P TE tunnel.
The principles and concepts of P2MP TE FRR are similar to those of P2P TE FRR.

The NE9000 supports FRR link protection, not node protection, over a P2MP TE
tunnel. Therefore, path planning for the bypass tunnel is irrelevant to node
protection. For example, in Figure 1-9, the bypass tunnel path planned for the link
between P1 and P2 can provide link protection. However, the link between P3 and
PE4 for which a bypass tunnel path is planned traverses the node P4 so that the
bypass tunnel cannot be bound to the primary tunnel or provide link protection.

Figure 1-9 FRR link protection for a P2MP TE tunnel

P2P and P2MP TE tunnels can share a bypass tunnel. Therefore, when planning
bandwidth for the bypass tunnel, ensure that the bypass tunnel bandwidth is
equal to the total bandwidth of the bound P2P and P2MP tunnels.

NOTE

If traffic is switched to a P2MP FRR tunnel, the forwarding performance deteriorates


temporarily, and the impact is removed after traffic switches back to the primary tunnel.
In NG MVPN scenarios, when P2MP TE FRR protection is used, the interface of a primary
P2MP tunnel needs to be enabled to delay in going Up. The delay is related to the number
of VPN multicast groups over the tunnel. For 1000 multicast groups, set the delay time to
30s. Increase the delay time if more multicast groups are configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 182


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Pre-configuration Tasks
Before configuring P2MP TE FRR, complete the following task:
● Configure a P2MP TE tunnel.

1.1.3.39.1 Configuring Manual FRR for a Manually Configured P2MP TE Tunnel


Manual FRR can be configured on the tunnel interface of a manually configured
P2MP TE tunnel.

Context
The process of configuring P2MP TE FRR is identical to that for configuring P2P TE
FRR, which includes the following two procedures:
● Enable the P2MP TE FRR function on the tunnel interface of the primary
tunnel (P2MP TE tunnel).
● Configure a bypass tunnel on the point of local repair (PLR) node and
bind the bypass tunnel to the primary tunnel.
NOTE

Manual P2MP TE FRR only applies to manual P2MP TE tunnels.

Procedure
● Enable the P2MP TE FRR function on the tunnel interface of the primary
tunnel (P2MP TE tunnel).
a. Run system-view
The system view is displayed.
b. Run interface tunnel interface-number
The MPLS TE tunnel interface view is displayed.
c. Run mpls te fast-reroute [ bandwidth ]
The P2MP TE FRR function is enabled.

NOTE

You can run the mpls te bypass-attributes command to configure bypass tunnel
attributes only after running the mpls te fast-reroute bandwidth command.
d. (Optional) Run mpls te bypass-attributes
Bypass tunnel attributes are configured.
e. Run commit
The configuration is committed.
● Configure a bypass tunnel on the PLR node and bind the bypass tunnel to the
primary tunnel.
a. Run system-view
The system view is displayed.
b. Run interface tunnel tunnel-number

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 183


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The tunnel interface view of a bypass tunnel is displayed.


c. Run tunnel-protocol mpls te
MPLS TE is configured as a tunnel protocol.
d. Run destination ip-address
The LSR ID of a merge point (MP) is specified as the destination address
of the bypass tunnel.
e. Run mpls te tunnel-id tunnel-id
The bypass tunnel ID is specified.
f. (Optional) Run mpls te path explicit-path path-name
An explicit path is specified for the bypass tunnel.

NOTE

The explicit path planned for the bypass tunnel and the primary tunnel path to
be protected must use different physical links.
g. (Optional) Run mpls te bandwidth ct0 bandwidth
The bypass tunnel bandwidth is configured.
h. Run mpls te bypass-tunnel
A bypass tunnel is configured.
i. Run mpls te protected-interface interface-type interface-number
A link interface to be protected by a bypass tunnel is specified.
j. Run commit
The configuration is committed.
----End

1.1.3.39.2 Configuring FRR for Automatic P2MP TE Tunnels


Auto P2MP TE FRR is configured in a P2MP TE template for automatic P2MP TE
tunnels.

Context
The process of configuring FRR for automatic P2MP TE tunnels is as follows:
● Configure the ingress.
● Configure a bypass tunnel on the PLR and bind it to the primary tunnel.

Procedure
● Configure the ingress.
a. Run system-view
The system view is displayed.
b. Run mpls te p2mp-template template-name
A P2MP tunnel template is created, and the MPLS TE P2MP template
view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 184


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

c. Run fast-reroute [ bandwidth ]

P2MP TE FRR is enabled.

The bandwidth parameter enables bandwidth protection for the primary


tunnel. A bypass tunnel is selected to provide bandwidth protection for
the primary tunnel.
d. (Optional) Run bypass-attributes { bandwidth bandwidth | priority
setup-priority [ hold-priority ] } *
Attributes for the FRR bypass tunnel are set.

The bandwidth parameter sets the bandwidth for the bypass tunnel. The
priority parameter sets the holding and setup priority values for the
bypass tunnel.
e. Run commit

The configuration is committed.


● Configure a bypass tunnel on the PLR node and bind the bypass tunnel to the
primary tunnel.
a. Run system-view

The system view is displayed.


b. Run interface tunnel tunnel-number

The tunnel interface view of a bypass tunnel is displayed.


c. Run tunnel-protocol mpls te

MPLS TE is configured as a tunnel protocol.


d. Run destination ip-address

The LSR ID of a merge point (MP) is specified as the destination address


of the bypass tunnel.
e. Run mpls te tunnel-id tunnel-id

The bypass tunnel ID is specified.


f. (Optional) Run mpls te path explicit-path path-name

An explicit path is specified for the bypass tunnel.

NOTE

The explicit path planned for the bypass tunnel and the primary tunnel path to
be protected must use different physical links.
g. (Optional) Run mpls te bandwidth ct0 bandwidth

The bypass tunnel bandwidth is configured.


h. Run mpls te bypass-tunnel

A bypass tunnel is configured.


i. Run mpls te protected-interface interface-type interface-number

A link interface to be protected by a bypass tunnel is specified.


j. Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 185


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.

----End

1.1.3.39.3 Verifying the P2MP TE FRR Configuration


After configuring P2MP TE FRR, verify P2MP TE FRR information.

Prerequisites
P2MP TE FRR has been configured.

Procedure
● Run the display mpls te p2mp tunnel frr [ tunnel-name ] [ lsp-id ingress-
lsr-id session-id local-lsp-id [ s2l-destination leaf-address ] ] command to
check bypass tunnel attributes.

----End

1.1.3.40 Configuring P2MP TE Auto FRR


Auto fast reroute (FRR) is a local protection mechanism in MPLS TE. Auto FRR
deployment is easier than manual FRR deployment.

Usage Scenario
FRR protection is configured for networks requiring high reliability. If P2MP TE
manual FRR is used (configured by following the steps in Configuring P2MP TE
FRR), a lot of configurations are needed on a network with complex topology and
a great number of links to be protected. In this situation, P2MP TE Auto FRR can
be configured.

Unlike P2MP TE manual FRR, P2MP TE Auto FRR automatically creates a bypass
tunnel that meets traffic requirements, which simplifies configurations.

The NE9000 supports upgrade binding that if a bypass tunnel with a priority
higher than an existing bypass tunnel is calculated, the primary tunnel will be
automatically unbound from the existing bypass tunnel and bound to the one
with the higher priority. A bypass tunnel is selected based on the following rules
prioritized in descending order:
● An SRLG attribute is configured for a bypass tunnel.
● If P2MP TE Auto FRR and an SRLG attribute are configured, the primary and
bypass tunnels must be in different SRLGs. If these two tunnels are in the
same SRLG, the bypass tunnel may fail to be established.
● A bypass tunnel with bandwidth protection configured takes preference over
that with non-bandwidth protection configured.
A bypass tunnel provides link protection, not node protection, for its primary
tunnel.

Pre-configuration Tasks
Before configuring P2MP TE Auto FRR, complete the following tasks:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 186


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Configure a primary P2MP TE tunnel.


● Enable MPLS, MPLS TE, and RSVP-TE globally and in the physical interface
view on each node along a bypass tunnel to be established. For configuration
details, see Enabling MPLS TE and RSVP-TE.
● (Optional) To protect bandwidth of the primary tunnel, set the physical link
bandwidth for the bypass tunnel to be established. For configuration details,
see (Optional) Configuring Link TE Attributes.
● Enable CSPF on each node along the bypass tunnel to be established.

1.1.3.40.1 Enabling P2MP TE Auto FRR


Enabling P2MP TE Auto FRR on the ingress or a transit node of the primary tunnel
is the prerequisite of configuring TE Auto FRR.

Context
Perform either of the following operations to enable P2MP TE Auto FRR on the
NE9000:
● Configure the entire device and its interface when Auto FRR needs to be
configured on most interfaces.
● Only configure a specified interface when Auto FRR needs to be configured
only on a few interfaces.

Procedure
● Configure the entire device and its interface.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te auto-frr self-adapting
MPLS TE Auto FRR is enabled globally.
P2MP TE FRR only supports link protection, while a bypass tunnel that
the ingress establishes supports node protection by default. As a result,
the bypass tunnel fails to be established. To prevent the establishment
failure, configure the self-adapting parameter in this command, which
enables the ingress to automatically switch from node protection to link
protection.
d. Run mpls te p2mp-te auto-frr enable
P2MP TE Auto FRR is enabled globally.
e. Run quit
Return to the system view.
f. Run interface interface-type interface-number
The view of the outbound interface on the primary tunnel is displayed.
g. (Optional) Run mpls te auto-frr { block | default }

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 187


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

TE auto FRR is enabled.


h. Run commit
The configuration is committed.
● Configure a specified interface.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te p2mp-te auto-frr enable
P2MP TE Auto FRR is enabled globally.
d. Run quit
Return to the system view.
e. Run interface interface-type interface-number
The view of the outbound interface on the primary tunnel is displayed.
f. Run mpls te auto-frr { default | link | self-adapting }
TE auto FRR is enabled.
g. Run commit
The configuration is committed.
----End

1.1.3.40.2 Enabling the TE FRR and Configuring the AutoBypass Tunnel Attributes
After MPLS TE FRR is enabled on the ingress of a primary LSP, a bypass LSP is
established automatically.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface tunnel tunnel-number
The tunnel interface view of the primary LSP is displayed.
Step 3 Run mpls te fast-reroute [ bandwidth ]
TE FRR is enabled.
If TE FRR bandwidth protection is needed, configure the bandwidth parameter in
this command.
Step 4 (Optional) Run mpls te frr-switch degrade
The MPLS TE tunnel is enabled to mask the FRR function.
After TE FRR takes effect, traffic is switched to the bypass LSP when the primary
LSP fails. If the bypass LSP is not the optimal path, traffic congestion easily occurs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 188


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

To prevent traffic congestion, you can configure LDP to protect TE tunnels. To have
the LDP protection function take effect, you need to run the mpls te frr-switch
degrade command to enable the MPLS TE tunnel to mask the FRR function. After
the command is run:

1. If the primary LSP is in the FRR-in-use state (that is, traffic has been switched
to the bypass LSP), traffic cannot be switched to the primary LSP.
2. If HSB is configured for the tunnel and an HSB LSP is available, traffic is
switched to the HSB LSP.
3. If no HSB LSP is available for the tunnel, the tunnel is unavailable, and traffic
is switched to another tunnel like an LDP tunnel.
4. If no tunnels are available, traffic is interrupted.

Step 5 (Optional) Run mpls te bypass-attributes [ bandwidth bandwidth | priority


setup-priority [ hold-priority ] ]
Attributes are set for the automatic bypass LSP.

NOTE

● The bandwidth attribute can only be set for the bypass LSP after the mpls te fast-
reroute bandwidth command is run for the primary LSP.
● The bypass LSP bandwidth cannot exceed the primary LSP bandwidth.
● If no attributes are configured for an automatic bypass LSP, by default, the automatic
bypass LSP uses the same bandwidth as that of the primary LSP.
● The setup priority of a bypass LSP must be lower than or equal to the holding priority.
These priorities cannot be higher than the corresponding priorities of the primary LSP.
● If TE FRR is disabled, the bypass LSP attributes are automatically deleted.

Step 6 Run quit

Return to the system view.

Step 7 (Optional) Configure attributes for a bypass LSP.


1. Run interface interface-type interface-number

The interface view of the link through which the bypass LSP passes is
displayed.
2. Run mpls te auto-frr attributes { bandwidth bandwidth | priority setup-
priority [ hold-priority ] | hop-limit hop-limit-value }
Attributes are configured for the bypass LSP.
3. Run quit

Return to the system view.

Step 8 (Optional) Configure affinities for the automatic bypass tunnel.

Affinities determine link attributes of an automatic bypass LSP. Affinities and a link
administrative group attribute are used together to determine over which links the
automatic bypass LSP can be established.

Perform either of the following configurations:

● Set a hexadecimal number.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 189


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

a. Run interface interface-type interface-number


The interface view of the link through which the bypass LSP passes is
displayed.
b. Run mpls te link administrative group value
An administrative group attribute is specified.
c. (Optional) Run mpls te auto-frr attributes affinity property properties
[ mask mask-value ] or mpls te auto-frr attributes affinity { include-all
| include-any | exclude } bit-name &<1-32>
An affinity is configured for the bypass LSP.
d. Run quit
Return to the system view.
e. Run interface tunnel tunnel-number
The tunnel interface view of the primary LSP is displayed.
f. Run mpls te bypass-attributes affinity property properties [ mask
mask-value]
An affinity is configured for the bypass LSP.
● Set an affinity name.
Naming an affinity makes the affinity easy to understand and maintain.
Setting an affinity name is recommended.
a. Run path-constraint affinity-mapping
An affinity name mapping template is configured, and the template view
is displayed.
Repeat this step on each node used to calculate the path over which an
automatic bypass LSP is established. The affinity name configured on
each node must match the mappings between affinity bits and names.
b. Run attribute affinity-name bit-sequence bit-number
The mapping between the name and bit value in an affinity is configured.
There are 32 affinity bits in total. You can repeat this step to configure
some or all affinity bits.
c. Run quit
Return to the system view.
d. Run interface interface-type interface-number
The interface view of the link through which the bypass LSP passes is
displayed.
e. Run mpls te link administrative group name bit-name &<1-32>
An administrative group attribute is specified.
f. Run quit
Return to the system view.
g. Run interface tunnel tunnel-number
The tunnel interface view of the primary LSP is displayed.
h. Run mpls te bypass-attributes affinity { include-all | include-any |
exclude } bit-name &<1-32>
An affinity is configured for the bypass LSP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 190


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

If an automatic bypass LSP that satisfies the specified affinity cannot be established, a
node will bind a manual bypass LSP satisfying the specified affinity to the primary LSP.

Step 9 Run commit


The configuration is committed.

----End

1.1.3.40.3 (Optional) Configuring Auto Bypass Tunnel Re-Optimization


Auto bypass tunnel re-optimization allows paths to be recalculated at certain
intervals for an auto bypass tunnel. If an optimal path is recalculated, a new auto
bypass tunnel will be set up over this optimal path. In this manner, network
resources are optimized.

Context
Network changes often cause the changes in optimal paths. Auto bypass tunnel
re-optimization allows the system to re-optimize an auto bypass tunnel if an
optimal path to the same destination is found due to some reasons, such as the
changes in the cost. In this manner, network resources are optimized.

NOTE

This configuration task is invalid for LSPs in the FRR-in-use state.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls te auto-frr reoptimization [ frequency interval ]
Auto bypass tunnel re-optimization is enabled.
Step 4 (Optional) Run return
Return to the user view.
Step 5 (Optional) Run mpls te reoptimization [ auto-tunnel name tunnel-interface |
tunnel tunnel-number ]
Manual re-optimization is enabled.
After you configure the automatic re-optimization in the MPLS view, you can
return to the user view and run the mpls te reoptimization command to
immediately re-optimize the tunnels on which the automatic re-optimization is
enabled. After you perform the manual re-optimization, the timer of the
automatic re-optimization is reset and counts again.
Step 6 Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 191


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configurations are committed.

----End

1.1.3.40.4 Verifying the P2MP TE Auto FRR Configuration


After configuring P2MP TE Auto FRR, verify P2MP TE Auto FRR information.

Prerequisites
P2MP TE Auto FRR has been configured.

Procedure
● Run the display mpls te p2mp tunnel frr [ tunnel-name ] [ lsp-id ingress-
lsr-id session-id local-lsp-id [ s2l-destination leaf-address ] ] command to
check bypass tunnel attributes.
----End

1.1.3.41 Configuring DS-TE


This feature combines traditional TE tunnels with the DiffServ model to provide
QoS guarantee based on service types.

Usage Scenario
A static CR-LSP is easy to configure. Labels are manually allocated, and no
signaling protocol is used to exchange control packets. The setup of a static CR-
LSP consumes only a few resources, and you do not need to configure an IGP TE
extension or CSPF for the static CR-LSP. However, static CR-LSP application is quite
limited. A static CR-LSP cannot dynamically adapt to network changes and is
limited in applications.
MPLS TE tunnels apply to one of the following VPN scenarios:
● A single TE tunnel transmits various types of services in a non-VPN scenario.
● A single TE tunnel transmits various types of services in a VPN instance.
● A single TE tunnel transmits various types of services in multiple VPN
instances.
● A single TE tunnel transmits various types of VPN and non-VPN services.
Traditional MPLS TE tunnels (non-standard DS-TE tunnels) cannot transmit
services based on service types in compliance with the quality of service (QoS). For
example, when a TE tunnel carries both voice and video flows, video flows may
have more duplicate frames than voice flows. Therefore, video flows require higher
drop precedence than the voice flows. The same drop precedence, however, is used
for voice and video flows on MPLS TE tunnels.
To prevent services over a tunnel from interfering with each other, establish a
tunnel for each type of service in a VPN instance or for each type of non-VPN
service. This solution wastes resources because a large number of tunnels are
established when many VPN instances carry various services.
In the preceding MPLS TE tunnel scenarios, the DS-TE tunnel solution is optimal.
An edge node in a DS-TE domain classifies services and adds service type

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 192


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

information in the EXP field in packets. A transit node merely checks the EXP field
to select a proper PHB to forward packets.
A DS-TE tunnel classifies services and reserves resources for each type of services,
which improves network resource use efficiency. A DS-TE tunnel carries a
maximum of eight types of services.

NOTE

● The IETF DS-TE tunnel configuration requires the ingress and egress hardware to
support HQoS. The non-IETF DS-TE tunnel has no such a restriction.
● If the same type of service in multiple VPN instances is carried using the same CT of a
DS-TE tunnel, the bandwidth of each type of service in each VPN instance can be set on
an access CE to prevent services of the same type but different VPN instances from
competing for resources.
● To prevent non-VPN services and VPN services from completing resources, you can
configure DS-TE to carry VPN services only or configure the bandwidth for non-VPN
services in DS-TE.

Pre-configuration Tasks
Before configuring DS-TE, complete the following tasks:
● Configure unicast static routes or an IGP to ensure the readability between
LSRs at the network layer.
● Set an LSR ID on each LSR.
● Enable MPLS globally and on interfaces on all LSRs.
● Enable MPLS TE and RSVP-TE on all LSRs and their interfaces.
● Enable behavior aggregate (BA) traffic classification on each LSR interface
along an LSP.

1.1.3.41.1 Configuring a DS-TE Mode


You can configure an MPLS TE tunnel to work a DS-TE mode, either IETF mode or
non-IETF mode.

Context
Perform the following steps on each LSR in a DS-TE domain:

NOTE
If bandwidth constraints are configured for a tunnel, the IETF and non-IETF modes cannot
be switched to each other.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run mpls te ds-te mode { ietf | non-ietf }

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 193


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

A DS-TE mode is specified.


Step 4 Run commit
The configuration is committed.

----End

Follow-up Procedure
The IETF mode and non-IETF mode can be switched between each other on the
NE9000. Table 1-13 describes switching between DS-TE modes. The arrow symbol
(—>) indicates "switched to."

Table 1-13 Switching between DS-TE modes


Item Non-IETF—>IETF IETF—>Non-IETF

Changes N/A RDM—>N/A


in MAM—>N/A
bandwidt
h
constrain
t models

Bandwid BC0 bandwidth values BC0 bandwidth values remain.


th remain.
change

TE-class If the TE-class mapping table No TE-class mapping table is used.


mapping is not configured, the default ● A TE-class mapping table is not
table TE-Class mapping table is deleted once it is configured.
used. Otherwise, the
configured one is used. ● If no TE-Class mapping table is
configured, the default TE-Class
NOTE
mapping table is deleted.
For information about the
default TE-class mapping table,
see Table 1-14.

1.1.3.41.2 Configuring a DS-TE Bandwidth Constraints Model


If CT bandwidth preemption is allowed, the Russian dolls model (RDM) is
recommended to efficiently use bandwidth resources. If CT bandwidth preemption
is not allowed, the MAM is recommended.

Context
Perform the following steps on each LSR in a DS-TE domain:

Procedure
Step 1 Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 194


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run mpls


The MPLS view is displayed.
Step 3 Run mpls te ds-te bcm { mam | rdm }
A DS-TE bandwidth constraints model is configured.

Step 4 Run commit


The configuration is committed.

----End

1.1.3.41.3 Configuring Link Bandwidth


You can configure link bandwidth to limit the bandwidth for a DS-TE tunnel.

Context
Perform the following steps on each outbound interface on a DS-TE LSP:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The view of the link outbound interface is displayed.
Step 3 Run mpls te bandwidth max-reservable-bandwidth max-bw-value
The maximum reservable link bandwidth is set.
Step 4 Run mpls te bandwidth { bc0 bc0Bw | bc1 bc1Bw | bc2 bc2Bw | bc3 bc3Bw | bc4
bc4Bw | bc5 bc5Bw | bc6 bc6Bw | bc7 bc7Bw }*
BC bandwidth is configured for the link.
Step 5 Run commit
The configuration is committed.

----End

Follow-up Procedure
A distinct bandwidth constraints model determines a specific mapping between
the maximum reservable link bandwidth and BC bandwidth:
● RDM model: max-reservable-bandwidth ≥ bc0Bw ≥ bc1Bw ≥ bc2Bw ≥ bc3Bw
≥ bc4Bw ≥ bc5Bw ≥ bc6Bw ≥ bc7Bw
● MAM model: max-reservable-bandwidth ≥ bc0Bw + bc1Bw + bc2Bw + bc3Bw
+ bc4Bw + bc5Bw + bc6Bw + bc7Bw
The Bandwidth Constraint (BC) bandwidth refers to the bandwidth constraints on
a link, whereas the CT bandwidth refers to the bandwidth constraints of various

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 195


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

types of service traffic on a DS-TE tunnel. The BCi bandwidth of a link must be
greater than or equal to the sum (0 <= i <= 7) of all CTi bandwidth values of DS-
TE tunnels passing through the link. For example, three LSPs with CT1 passing
through a link has bandwidth values x, y, and z, respectively. The link interface
BC1 bandwidth must be greater than or equal to the sum of x, y, and z.

1.1.3.41.4 Configuring Tunnel Interfaces


Before creating a DS-TE tunnel, create a tunnel interface and configure tunnel
attributes in the view of the tunnel interface.

Context
Perform the following steps on the ingress of a TE tunnel to be established:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel interface-number

A tunnel interface is created, and the tunnel interface view is displayed.

Step 3 (Optional) Run description text

The tunnel description is configured.

Step 4 Run either of the following commands to assign an IP address to the tunnel
interface:

● To configure an IP address, run ip address ip-address { mask | mask-length }


[ sub ]
The secondary IP address of the tunnel interface can be configured only after
the primary IP address is configured.
● To configure the tunnel interface to borrow the IP address of another
interface, run ip address unnumbered interface interface-type interface-
number
To forward traffic, the tunnel interface must have an IP address. An MPLS TE
tunnel, however, is unidirectional, and o peer address exists. Therefore, it is
unnecessary to assign an IP address to a tunnel interface. A tunnel interface
usually borrows the loopback address, which functions as the LSR ID of the local
node.

Step 5 Run tunnel-protocol mpls te

MPLS TE is configured as a tunneling protocol.

Step 6 Run destination ip-address

The destination address of the tunnel is configured as the LSR ID of the egress.

Step 7 Run mpls te tunnel-id tunnel-id

A tunnel ID is set.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 196


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 8 Run mpls te signal-protocol { cr-static | rsvp-te }

A signaling protocol is configured for a tunnel.

Step 9 (Optional) Run mpls te priority setup-priority [ hold-priority ]

The tunnel priorities are set.

A smaller value indicates a higher priority.

NOTE

The holding priority must be higher than or equal to the setup priority. If no holding
priority is set, its value is the same as that setup priority. If the combination of the
bandwidth and priorities is not listed in the TE class mapping table, LSPs cannot be
established.

Step 10 Run commit

The configuration is committed.

Each time you change an MPLS TE parameter, run the commit command to
commit the configuration.

----End

1.1.3.41.5 Configuring an RSVP CR-LSP and Specifying Bandwidth Values


When configuring an RSVP CR-LSP and specifying its bandwidth values, ensure
that the sum of CT bandwidth values does not exceed the sum of BC bandwidth
values.

Procedure
● Configure IGP TE.

For detailed configurations, see Configuring IGP TE (IS-IS).


● Configure CSPF.

For configuration details, see Configuration CSPF.


● Configure bandwidth values for an MPLS TE tunnel.

Perform the following steps on the ingress of a tunnel:

a. Run system-view

The system view is displayed.


b. Run interface tunnel interface-number

The MPLS TE tunnel interface view is displayed.


c. Run mpls te bandwidth { ct0 bw-value | ct1 bw-value | ct2 bw-value |
ct3 bw-value | ct4 bw-value | ct5 bw-value | ct6 bw-value | ct7 bw-
value }
The bandwidth of the tunnel interface is configured.
d. Run commit

The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 197


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

For the same node, the sum of CTi bandwidth values must not exceed the BCi
bandwidth values (0 <= i <= 7). CTi can use bandwidth resources only of BCi.

NOTE

If the bandwidth required by the MPLS TE tunnel is higher than 28,630 kbit/s, the
available bandwidth assigned to the tunnel may not be precise, but the tunnel can be
established successfully.
● (Optional) Configure an explicit path.

To limit the path over which an MPLS TE tunnel is established, perform the
following steps on the ingress of the tunnel:

a. Create an explicit path. For detailed configuration, see (Optional)


Configuring an MPLS TE Explicit Path.
b. Run quit

Return to the system view.


c. Run interface tunnel interface-number

The MPLS TE tunnel interface view is displayed.


d. Run mpls te path explicit-path path-name

An explicit path is configured for the tunnel.


e. Run commit

The configuration is committed.

----End

1.1.3.41.6 (Optional) Configuring a TE-Class Mapping Table


Configuring the same TE-class mapping table on the whole DS-TE domain is
recommended. Otherwise, LSPs may be incorrectly established.

Context
Skip this section if the non-IETF DS-TE mode is used.

In IETF DS-TE mode, plan a TE-class mapping table. Configuring the same TE-class
mapping table on the whole DS-TE domain is recommended. Otherwise, LSPs may
be incorrectly established.

Perform the following steps on each LSR in a DS-TE domain:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run te-class-mapping

A TE-class mapping table is created, and the TE-class mapping view is displayed.

Step 3 Perform one or more commands to configure TE-classes:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 198


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● To configure TE-class 0, run te-class0 class-type { ct0 | ct1 | ct2 | ct3 | ct4 |
ct5 | ct6 | ct7 } priority priority [ description description-info ]
● To configure TE-class 1, run te-class 1 class-type { ct0 | ct1 | ct2 | ct3 | ct4 |
ct5 | ct6 | ct7 } priority priority [ description description-info ]
● To configure TE-class 2, run te-class 2 class-type { ct0 | ct1 | ct2 | ct3 | ct4 |
ct5 | ct6 | ct7 } priority priority [ description description-info ]
● To configure TE-class 3, run te-class 3 class-type { ct0 | ct1 | ct2 | ct3 | ct4 |
ct5 | ct6 | ct7 } priority priority [ description description-info ]
● To configure TE-class 4, run te-class 4 class-type { ct0 | ct1 | ct2 | ct3 | ct4 |
ct5 | ct6 | ct7 } priority priority [ description description-info ]
● To configure TE-class 5, run te-class 5 class-type { ct0 | ct1 | ct2 | ct3 | ct4 |
ct5 | ct6 | ct7 } priority priority [ description description-info ]
● To configure TE-class 6, run te-class 6 class-type { ct0 | ct1 | ct2 | ct3 | ct4 |
ct5 | ct6 | ct7 } priority priority [ description description-info ]
● To configure TE-class 7, run te-class 7 class-type { ct0 | ct1 | ct2 | ct3 | ct4 |
ct5 | ct6 | ct7 } priority priority [ description description-info ]
Note the following information when you configure a TE-class mapping table:
● The TE-class mapping table is unique on each device.
● The TE-class mapping table takes effect globally. It takes effect on all DS-TE
tunnels passing through the local LSR.
● A TE-class refers to a combination of a CT and a priority, in the format of <CT,
priority>. The priority is the priority of a CR-LSP in the TE-class mapping table,
not the EXP value in the MPLS header. The priority value is an integer ranging
from 0 to 7. The smaller the value, the higher the priority is.
When you create a CR-LSP, you can set the setup and holding priorities for it
(see Configuring a Tunnel Interface) and CT bandwidth values (see
Configuring an RSVP CR-LSP and Specifying Bandwidth Values).
A CR-LSP can be established only when both <CT, setup-priority> and <CT,
holding-priority> exist in a TE-class mapping table. For example, the TE-class
mapping table of a node contains only TE-Class [0] = <CT0, 6> and TE-Class
[1] = <CT0, 7>, only can the following three types of CR-LSPs be successfully
set up:
– Class-Type = CT0, setup-priority = 6, holding-priority = 6
– Class-Type = CT0, setup-priority = 7, holding-priority = 6
– Class-Type = CT0, setup-priority = 7, holding-priority = 7
NOTE

The combination of setup-priority = 6 and hold-priority = 7 does not exist because the
setup priority cannot be higher than the holding priority on a CR-LSP.
● In a MAN model, a higher-class CT preempts bandwidth of the same CT, not
bandwidth of different CTs.
● In the RDM module, CT bandwidth preemption is limited by priorities of CR-
LSPs and matching BCs. Assumed that priorities of CR-LSPs are set to m and n
and CT values are set to i and j. If 0 <= m < n <= 7 and 0 <= i < j <= 7, the
following situations occur:
– CTi with priority m can preempt the bandwidth of CTi with priority n or
of CTj with priority n.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 199


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

– Total CTi bandwidth <= BCi bandwidth


In IETF DS-TE mode, if no TE-class mapping table is configured, a default TE-class
mapping table is used. Table 1-14 describes the default TE-class mapping table.

Table 1-14 Default TE-class mapping table


TE-Class CT Priority

TE-Class[0] 0 0

TE-Class[1] 1 0

TE-Class[2] 2 0

TE-Class[3] 3 0

TE-Class[4] 0 7

TE-Class[5] 1 7

TE-Class[6] 2 7

TE-Class[7] 3 7

NOTE

After the TE-class mapping is configured, to change TE-class descriptions, run the { te-
class0 | te-class1 | te-class2 | te-class3 | te-class4 | te-class5 | te-class6 | te-class7 }
description description-info command.

Step 4 Run commit


The configuration is committed.

----End

1.1.3.41.7 (Optional) Configuring CBTS


Service class can be set for packets that MPLS TE tunnels allow to pass through.

Context
When services recurse to multiple TE tunnels, the mpls te service-class command
is run on the TE tunnel interface to set a service class so that a TE tunnel
transmits services of a specified service class.
DS-TE tunnels can be prioritized to receive traffic. One priority or multiple
priorities can be assigned to a tunnel to which services recurse. Table 1-15
describes the default mapping between DS-TE tunnel's CTs and flow queues.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 200


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Table 1-15 Default mapping between DS-TE tunnel's CTs and flow queues

CT Flow Queue

CT0 be

CT1 af1

CT2 af2

CT3 af3

CT4 af4

CT5 ef

CT6 cs6

CT7 cs7

If services recurse to multiple TE tunnels for load balancing, tunnel selection rules
are the same as those used in CBTS:
1. If the priority attribute of service traffic matches the priority attribute
configured for a tunnel, the service traffic is carried by the tunnel that
matches the priority attribute.
2. If the priority of service traffic does not match a configured priority of a
tunnel, the following rules apply:
a. If the priority of a tunnel among load-balancing tunnels is default, the
service traffic that does not match any priority is carried by the tunnel
with the default priority.
b. If none of load-balancing tunnels is assigned the default priority and
some tunnels are not configured with priorities, service traffic that does
not match any tunnel priorities is carried by the tunnels that are not
configured with priorities.
c. If none of load-balancing tunnels is assigned the default priority but all
tunnels are configured with priorities, traffic that does not match any
tunnel priority is transmitted by the tunnel with the lowest priority.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The MPLS TE tunnel interface view is displayed.

Step 3 Run mpls te service-class { service-class & <1-8> | default }

A service class is set for packets that an MPLS TE tunnel allows to pass through.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 201


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

● This command is used only on the ingress of an MPLS TE tunnel.


● If the mpls te service-class command is run repeatedly on a tunnel interface, the
latest configuration overrides the previous one.

Step 4 Run commit


The configuration is committed.

----End

1.1.3.41.8 Verifying the DS-TE Configuration


After configuring DS-TE, you can verify DS-TE information and CT information of a
tunnel.

Prerequisites
All DS-TE functions have been configured.

Procedure
● Run the display mpls te ds-te { summary | te-class-mapping [ default |
config | verbose ] } command to check DS-TE information.
● Run the display mpls te te-class-tunnel { all | { ct0 | ct1 | ct2 | ct3 | ct4 | ct5
| ct6 | ct7 } priority priority } command to check information about the TE
tunnel associated with TE-classes.
● Run the display interface tunnel interface-number command to check CT
traffic information on a specified tunnel interface.
● Run the display ospf [ process-id ] mpls-te [ area area-id ] [ self-
originated ] command to check OSPF TE information.
● Run either of the following commands to check the IS-IS TE status:
– display isis traffic-eng advertisements [ lsp-id | local ] [ level-1 |
level-2 | level-1-2 ] [ process-id | vpn-instance vpn-instance-name ]
– display isis traffic-eng statistics [ process-id | vpn-instance vpn-
instance-name ]
----End

1.1.3.42 Maintaining MPLS TE


This section describes how to delete MPLS TE information and debug MPLS TE.

1.1.3.42.1 Checking Connectivity of a TE Tunnel


The connectivity of a TE tunnel between the ingress and egress is checked.

Context
After configuring an MPLS TE tunnel, you can run the ping lsp command on the
ingress of the TE tunnel to verify that the ping from the ingress to the egress is
successful. If the ping fails, run the tracert lsp command to locate the fault.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 202


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
● Run the ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m
interval | -r reply-mode | -s packet-size | -t time-out | -v ] * te tunnel tunnel-
number [ hot-standby ] [ compatible-mode ]command to check the
connectivity of a TE tunnel from the ingress to the egress.

If hot-standby is configured, a hot-standby CR-LSP is checked.


● Run the tracert lsp [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-
mode | -t time-out | -s size ] * te tunnel tunnel-number [ hot-standby ]
[ compatible-mode ] [detail ]command to check the nodes through which
data packets pass along a TE tunnel from the ingress to the egress.

If hot-standby is configured, a hot-standby CR-LSP is checked.

----End

1.1.3.42.2 Checking a TE Tunnel Using NQA


After configuring MPLS TE, you can use Network Quality Analysis (NQA) to check
the connectivity and jitters of a TE tunnel.

Context
For information about configurations for monitoring a TE tunnel using NQA, see
"NQA Configuration" in Configuration Guide - System Management.

1.1.3.42.3 Checking Tunnel Error Information


If an RSVP-TE tunnel interface is Down, run display commands to view information
about faults.

Context
Run the display mpls te tunnel-interface last-error command on the ingress to
view the last five recorded errors that occurred on a TE tunnel. The following
errors may occur:
● CSPF computation failures
● Errors that occurred when RSVP signaling was triggered
● Errors carried in received RSVP PathErr messages

Procedure
Step 1 Run the display mpls te tunnel-interface last-error [ tunnel-name ] command
to check error information on a tunnel interface.

----End

1.1.3.42.4 Deleting RSVP-TE Statistics


A reset command is used to delete RSVP-TE statistics.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 203


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context

NOTICE

RSVP-TE statistics are deleted if you reset RSVP-TE statistics using the reset
command. Exercise caution when running the reset command.

To delete RSVP-TE statistics, run the reset command in the user view.

Procedure
Step 1 Run the reset mpls rsvp-te statistics { global | interface [ interface-type
interface-number ] } command in the user view to delete RSVP-TE statistics.
----End

1.1.3.42.5 Resetting the RSVP Process


Resetting the RSVP process triggers a node to re-establish all RSVP CR-LSPs or
verify the RSVP process.

Context

NOTICE

Resetting the RSVP process causes all RSVP CR-LSPs to be torn down and re-
established.

Procedure
Step 1 In the user view, run reset mpls rsvp-te [ lsp-id lspId-value ] [ tunnel-id
tunnelId-value ] [ ingress-id ingressId-value ] [ egress-id egressId-value ] [ name
name-value ]
The RSVP-TE process is restarted.

----End

1.1.3.42.6 Deleting an Automatic Bypass Tunnel and Re-establishing a New One


If MPLS TE Auto FRR is enabled, a command is used to instruct a node to tear
down an automatic bypass tunnel and reestablish a new one.

Procedure
Step 1 Run the reset mpls te auto-frr { lsp-id ingress-lsrid tunnel-id | name bypass-
tunnel-name } command to tear down an automatic bypass tunnel and re-
establish a new one.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 204


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.42.7 Loopback Detection for a Specified Static Bidirectional Co-Routed CR-LSP


Loopback detection for a specified static bidirectional co-routed CR-LSP locates
faults if a few packets are dropped or bit errors occur on links along the CR-LSP.

Context
On a network with a static bidirectional co-routed CR-LSP used to transmit
services, if a few packets are dropped or bit errors occur on links, no alarms
indicating link or LSP failures are generated, which poses difficulties in locating
the faults. To locate the faults, loopback detection can be enabled for the static
bidirectional co-routed CR-LSP.

Procedure
Step 1 (Optional) In the MPLS view, run lsp-loopback autoclear period period-value
The timeout period is set, after which loopback detection for a static bidirectional
co-routed LSP is automatically disabled.
Step 2 In the specified static bidirectional LSP transit view, run lsp-loopback start.
Loopback detection is enabled for the specified static bidirectional co-routed CR-
LSP.
Loopback detection enables a transit node on the CR-LSP to loop traffic back to
the ingress. A professional monitoring device connected to the ingress monitors
data packets that the ingress sends and receives and checks whether a fault occurs
on the link between the ingress and transit node. Figure 1-10 illustrates the
network on which loopback is enabled to monitor a static bidirectional co-routed
CR-LSP.

Figure 1-10 Loopback detection for a static bidirectional co-routed CR-LSP

NOTICE

During loopback detection, a loop occurs, which adversely affects service


transmission. After loopback detection is complete, immediately run the lsp-
loopback stop command to disable loopback detection. If you do not manually
disable loopback detection, loopback detection will be automatically disabled after
the specified timeout period elapses.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 205


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Perform one of the following operations to check the loopback status on a transit
node:
● Run the display mpls te bidirectional command.
● View the MPLS_LSPM_1.3.6.1.4.1.2011.5.25.121.2.1.75 hwMplsLspLoopBack
alarm that is generated after loopback detection is started.
● View the MPLS_LSPM_1.3.6.1.4.1.2011.5.25.121.2.1.76
hwMplsLspLoopBackClear alarm that is generated after loopback detection is
stopped.

----End

1.1.3.42.8 Enabling the Packet Loss-Free MPLS ECMP Switchback


The packet loss-free MPLS ECMP switchback can be enabled.

Context
In an L3VPN over BGP over TE or IP over BGP over TE scenario, after an MPLS TE
tunnel is configured, the mpls load-balance wtr command is run in the system
view to prevent packet loss during an MPLS ECMP switchback and set a
switchback WTR time.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls load-balance wtr wtr-value
The delay time is configured for MPLS ECMP switchback.

----End

1.1.3.43 Configuration Examples for MPLS TE


This section provides MPLS TE configuration examples.

1.1.3.43.1 Example for Establishing a Static MPLS TE Tunnel


This section provides an example for configuring a static MPLS TE tunnel, which
involves enabling MPLS TE, configuring the MPLS TE bandwidth, and setting up a
static CR-LSP.

Networking Requirements
On the carrier network shown in Figure 1-11, some devices have low routing and
processing performance. The carrier wants to use an MPLS TE tunnel to transmit
services. To meet this requirement, a static TE tunnel from LSRA to LSRC and a
static TE tunnel from LSRC to LSRA can be established. A static TE tunnel is
manually established, without using a dynamic signaling protocol or IGP routes,
which consumes a few device resources and has low requirement on device
performance.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 206


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-11 Networking diagram for static CR-LSP configuration


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 2/0/0, respectively.

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure an IP address for each interface and a loopback address to be used


as an MPLS LSR ID on each node.
2. Configure the LSR ID and globally enable MPLS and MPLS TE on each node
and interface.
3. Create a tunnel interface on the ingress and specify the IP address of the
tunnel, tunnel protocol, destination address, tunnel ID, and the signaling
protocol used to establish the tunnel.
4. Configure a static CR-LSP associated with the tunnel and specify the following
parameters on each type of node:
– Ingress: outgoing label and next-hop address
– Transit node: inbound interface name, next-hop address, and outgoing
label
– Egress: incoming label and inbound interface name

NOTE

● The outgoing label of each node is the incoming label of the next node.
● When running the static-cr-lsp ingress { tunnel-interface tunnel interface-number |
tunnel-name } destination destination-address { nexthop next-hop-address | outgoing-
interface interface-type interface-number } * out-label out-label command to configure
the ingress of a CR-LSP, note that tunnel-name must be the same as the tunnel
interface name specified in the interface tunnel interface-number command. The value
of tunnel-name is a string of case-sensitive character with no spaces. For example, the
name of the tunnel created by using the interface Tunnel 20 command is Tunnel20. In
this case, the parameter of the static CR-LSP on the ingress is Tunnel20. This restriction
does not apply to transit nodes or egresses.

Data Preparation
To complete the configuration, you need the following data:

● IP address of each interface


● Tunnel interface names, tunnel interface IP addresses, destination addresses,
tunnel IDs, and tunnel signaling protocol (CR-Static) on LSRA and LSRC
● Next-hop address and outgoing label of the ingress on the static CR-LSP

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 207


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Inbound interface name, next-hop address, and outgoing label of the transit
node on the static CR-LSP
● Inbound interface name of the egress on the static CR-LSP

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address and a mask to each interface.
For configuration details, see Configuration Files in this section.
Step 2 Configure basic MPLS functions and enable MPLS TE.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

Repeat this step for LSRB and LSRC. For configuration details, see Configuration
Files in this section.
Step 3 Configure an MPLS TE tunnel.
# Create an MPLS TE tunnel from LSRA to LSRC.
[~LSRA] interface Tunnel 10
[*LSRA-Tunnel10] ip address unnumbered interface loopback 1
[*LSRA-Tunnel10] tunnel-protocol mpls te
[*LSRA-Tunnel10] destination 3.3.3.3
[*LSRA-Tunnel10] mpls te tunnel-id 100
[*LSRA-Tunnel10] mpls te signal-protocol cr-static
[*LSRA-Tunnel10] commit
[~LSRA-Tunnel10] quit

# Create an MPLS TE tunnel from LSRC to LSRA.


[~LSRC] interface Tunnel 20
[*LSRC-Tunnel20] ip address unnumbered interface loopback 1
[*LSRC-Tunnel20] tunnel-protocol mpls te
[*LSRC-Tunnel20] destination 1.1.1.1
[*LSRC-Tunnel20] mpls te tunnel-id 200
[*LSRC-Tunnel20] mpls te signal-protocol cr-static
[*LSRC-Tunnel20] commit
[~LSRC-Tunnel20] quit

Step 4 Create a static CR-LSP from LSRA to LSRC.


# Configure LSRA as the ingress of the static CR-LSP.
[~LSRA] static-cr-lsp ingress tunnel-interface Tunnel 10 destination 3.3.3.3 nexthop 10.21.1.2 out-label
20
[*LSRA] commit

# Configure LSRB as the transit node of the static CR-LSP.


[~LSRB] static-cr-lsp transit Tunnel10 incoming-interface gigabitethernet 1/0/0 in-label 20 nexthop
10.32.1.2 out-label 30
[*LSRB] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 208


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure LSRC as the egress of the static CR-LSP.


[~LSRC] static-cr-lsp egress Tunnel10 incoming-interface gigabitethernet 2/0/0 in-label 30
[*LSRC] commit

Step 5 Create a static CR-LSP from LSRC to LSRA.


# Configure LSRC as the ingress of the static CR-LSP.
[~LSRC] static-cr-lsp ingress tunnel-interface Tunnel 20 destination 1.1.1.1 nexthop 10.32.1.1 out-label
120
[*LSRC] commit

# Configure LSRB as the transit node of the static CR-LSP.


[~LSRB] static-cr-lsp transit Tunnel20 incoming-interface gigabitethernet 2/0/0 in-label 120 nexthop
10.21.1.1 out-label 130
[*LSRB] commit

# Configure LSRA as the egress of the static CR-LSP.


[~LSRA] static-cr-lsp egress Tunnel20 incoming-interface gigabitethernet 1/0/0 in-label 130
[*LSRA] commit

Step 6 Verify the configuration.


After completing the configuration, run the display interface tunnel command
on LSRA. The command output shows that the status of the tunnel interface is Up.
Run the display mpls te tunnel command on each LSR to view the establishment
status of the MPLS TE tunnel.
[~LSRA] display mpls te tunnel
* means the LSP is detour LSP
------------------------------------------------------------------------------
Ingress LsrId Destination LSPID In/Out Label R Tunnel-name
------------------------------------------------------------------------------
1.1.1.1 3.3.3.3 1 --/20 I Tunnel10
- - - 130/-- E Tunnel20
------------------------------------------------------------------------------
R: Role, I: Ingress, T: Transit, E: Egress
[~LSRB] display mpls te tunnel
* means the LSP is detour LSP
------------------------------------------------------------------------------
Ingress LsrId Destination LSPID In/Out Label R Tunnel-name
------------------------------------------------------------------------------
- - - 20/30 T Tunnel10
- - - 120/130 T Tunnel20
------------------------------------------------------------------------------
R: Role, I: Ingress, T: Transit, E: Egress
[~LSRC] display mpls te tunnel
* means the LSP is detour LSP
------------------------------------------------------------------------------
Ingress LsrId Destination LSPID In/Out Label R Tunnel-name
------------------------------------------------------------------------------
- - - 30/-- E Tunnel10
3.3.3.3 1.1.1.1 1 --/120 I Tunnel20
------------------------------------------------------------------------------
R: Role, I: Ingress, T: Transit, E: Egress

Run the display mpls lsp or display mpls static-cr-lsp command on each LSR to
view the establishment status of the static CR-LSP.
# Check the configuration on LSRA.
[~LSRA] display mpls static-cr-lsp
TOTAL :2 STATIC CRLSP(S)
UP :2 STATIC CRLSP(S)

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 209


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

DOWN :0 STATIC CRLSP(S)


Name FEC I/O Label I/O If Status
Tunnel10 3.3.3.3/32 NULL/20 -/GE1/0/0 Up
Tunnel20 -/- 130/NULL GE1/0/0/- Up

# Check the configuration on LSRB.


[~LSRB] display mpls static-cr-lsp
TOTAL :2 STATIC CRLSP(S)
UP :2 STATIC CRLSP(S)
DOWN :0 STATIC CRLSP(S)
Name FEC I/O Label I/O If Status
Tunnel10 -/- 20/30 GE1/0/0/GE2/0/0 Up
Tunnel20 -/- 120/130 GE2/0/0/GE1/0/0 Up

# Check the configuration on LSRC.


[~LSRC] display mpls static-cr-lsp
TOTAL :2 STATIC CRLSP(S)
UP :2 STATIC CRLSP(S)
DOWN :0 STATIC CRLSP(S)
Name FEC I/O Label I/O If Status
Tunnel20 1.1.1.1/32 NULL/120 -/GE2/0/0 Up
Tunnel10 -/- 30/NULL GE2/0/0/- Up

When the static CR-LSP is used to establish the MPLS TE tunnel, the packets on
the transit node and the egress are forwarded directly based on the specified
incoming and outgoing labels. Therefore, no FEC information is displayed on LSRB
or LSRC.
----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
#
static-cr-lsp ingress tunnel-interface Tunnel10 destination 3.3.3.3 nexthop 10.21.1.2 out-label 20
#
static-cr-lsp egress Tunnel20 incoming-interface GigabitEthernet1/0/0 in-label 130
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.21.1.1 255.255.255.0
mpls
mpls te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te signal-protocol cr-static
mpls te tunnel-id 100
#
return
● LSRB configuration file
#
sysname LSRB

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 210


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
#
static-cr-lsp transit Tunnel10 incoming-interface GigabitEthernet1/0/0 in-label 20 nexthop 10.32.1.2
out-label 30
#
static-cr-lsp transit Tunnel20 incoming-interface GigabitEthernet2/0/0 in-label 120 nexthop 10.21.1.1
out-label 130
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.32.1.1 255.255.255.0
mpls
mpls te
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.21.1.2 255.255.255.0
mpls
mpls te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
return

● LSRC configuration file


#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
#
static-cr-lsp ingress tunnel-interface Tunnel20 destination 1.1.1.1 nexthop 10.32.1.1 out-label 120
#
static-cr-lsp egress Tunnel10 incoming-interface GigabitEthernet2/0/0 in-label 30
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.32.1.2 255.255.255.0
mpls
mpls te
#
interface GigabitEthernet1/0/0
undo shutdown
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
interface Tunnel20
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.1
mpls te signal-protocol cr-static
mpls te tunnel-id 200
#
return

1.1.3.43.2 Example for Configuring a Static Bidirectional Co-routed CR-LSP


This section provides an example for configuring a static bidirectional co-routed
CR-LSP, including how to enable MPLS TE, configure MPLS TE bandwidth
attributes, and configure an MPLS TE tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 211


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
Static bidirectional co-routed CR-LSPs are used to establish static bidirectional
tunnels for services on an MPLS network.
On the network shown in Figure 1-12, a static bidirectional co-routed CR-LSP is
established between LSRA and LSRC. The link bandwidth between LSRA and LSRC
is required to be 10 Mbit/s.

Figure 1-12 Networking diagram for a static bidirectional co-routed CR-LSP


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 1/0/1, respectively.

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address to each interface and configure a routing protocol.
2. Configure basic MPLS functions and enable MPLS TE.
3. Configure MPLS TE attributes for links.
4. Configure MPLS TE tunnels.
5. Configure the ingress, transit nodes, and the egress for the static bidirectional
co-routed CR-LSP.
6. Bind the tunnel interface configured on LSRC to the static bidirectional co-
routed CR-LSP.

Data Preparation
To complete the configuration, you need the following data:
● Tunnel interface names, tunnel interface IP addresses, destination addresses,
tunnel IDs, and tunnel signaling protocol (CR-Static) on LSRA and LSRC
● Maximum reservable bandwidth and BC bandwidth of each link
● Next-hop address and outgoing label on the ingress
● Inbound interface, next-hop address, and outgoing label on the transit node
● Inbound interface on the egress

Procedure
Step 1 Assign an IP address to each interface and configure a routing protocol.
# Assign an IP address and a mask to each interface and configure a routing
protocol so that all LSRs are interconnected.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 212


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

For configuration details, see Configuration Files in this section.


Step 2 Configure basic MPLS functions and enable MPLS TE.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

Repeat this step for LSRB, LSRC, and LSRD.


Step 3 Configure MPLS TE attributes for links.
# Configure the maximum reservable bandwidth and BC0 bandwidth for the link
on the outbound interface of each device along the tunnel. The BC0 bandwidth of
links must be greater than the tunnel bandwidth (10 Mbit/s).
# Configure LSRA.
[~LSRA] interface gigabitethernet 1/0/0
[~LSRA-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRA-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Configure LSRB.
[~LSRB] interface gigabitethernet 1/0/0
[~LSRB-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRB-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 1/0/1
[*LSRB-GigabitEthernet1/0/1] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRB-GigabitEthernet1/0/1] mpls te bandwidth bc0 100000
[*LSRB-GigabitEthernet1/0/1] commit
[~LSRB-GigabitEthernet1/0/1] quit

# Configure LSRC.
[~LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRC-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*LSRC-GigabitEthernet1/0/0] commit
[~LSRC-GigabitEthernet1/0/0] quit

Step 4 Configure MPLS TE tunnel interfaces.


# Create an MPLS TE tunnel from LSRA to LSRC.
[~LSRA] interface Tunnel 10
[*LSRA-Tunnel10] ip address unnumbered interface loopback 1
[*LSRA-Tunnel10] tunnel-protocol mpls te
[*LSRA-Tunnel10] destination 3.3.3.3
[*LSRA-Tunnel10] mpls te tunnel-id 100
[*LSRA-Tunnel10] mpls te signal-protocol cr-static
[*LSRA-Tunnel10] mpls te bidirectional
[*LSRA-Tunnel10] commit
[~LSRA-Tunnel10] quit

# Create an MPLS TE tunnel from LSRC to LSRA.


[~LSRC] interface Tunnel 20

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 213


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRC-Tunnel20] ip address unnumbered interface loopback 1


[*LSRC-Tunnel20] tunnel-protocol mpls te
[*LSRC-Tunnel20] destination 1.1.1.1
[*LSRC-Tunnel20] mpls te tunnel-id 200
[*LSRC-Tunnel20] mpls te signal-protocol cr-static
[*LSRC-Tunnel20] commit
[~LSRC-Tunnel20] quit

Step 5 Configure the ingress, transit nodes, and the egress for the static bidirectional co-
routed CR-LSP.
# Configure LSRA as the ingress.
[~LSRA] bidirectional static-cr-lsp ingress Tunnel 10
[*LSRA-bi-static-ingress-Tunnel10] forward nexthop 10.21.1.2 out-label 20 bandwidth ct0 10000 pir
10000
[*LSRA-bi-static-ingress-Tunnel10] backward in-label 20
[*LSRA-bi-static-ingress-Tunnel10] commit
[~LSRA-bi-static-ingress-Tunnel10] quit

# Configure LSRB as a transit node.


[~LSRB]bidirectional static-cr-lsp transit lsp1
[*LSRB-bi-static-transit-lsp1] forward in-label 20 nexthop 10.32.1.2 out-label 40 bandwidth ct0 10000
pir 10000
[*LSRB-bi-static-transit-lsp1] backward in-label 16 nexthop 10.21.1.1 out-label 20 bandwidth ct0 10000
pir 10000
[*LSRB-bi-static-transit-lsp1] commit
[~LSRB-bi-static-transit-lsp1] quit

# Configure LSRC as the egress.


[~LSRC] bidirectional static-cr-lsp egress Tunnel20
[*LSRC-bi-static-egress-Tunnel20] forward in-label 40 lsrid 1.1.1.1 tunnel-id 100
[*LSRC-bi-static-egress-Tunnel20] backward nexthop 10.32.1.1 out-label 16 bandwidth ct0 10000 pir
10000
[*LSRC-bi-static-egress-Tunnel20] commit
[~LSRC-bi-static-egress-Tunnel20] quit

Step 6 Bind the static bidirectional co-routed CR-LSP to the tunnel interface on LSRC.
[~LSRC] interface Tunnel20
[~LSRC-Tunnel20] mpls te passive-tunnel
[*LSRC-Tunnel20] mpls te binding bidirectional static-cr-lsp egress Tunnel20
[*LSRC-Tunnel20] commit
[~LSRC-Tunnel20] quit

Step 7 Verify the configuration.


After completing the configuration, run the display interface tunnel command
on LSRA. The command output shows that the tunnel interface is Up.
Run the display mpls te tunnel command on each LSR. The command output
shows that MPLS TE tunnels have been established.
# Check the configuration on LSRA.
[~LSRA] display mpls te tunnel
* means the LSP is detour LSP
-------------------------------------------------------------------------------
Ingress LsrId Destination LSPID In/OutLabel R Tunnel-name
-------------------------------------------------------------------------------
1.1.1.1 3.3.3.3 0 --/20 I Tunnel10
20/--
-------------------------------------------------------------------------------
R: Role, I: Ingress, T: Transit, E: Egress

# Check the configuration on LSRB.


[~LSRB] display mpls te tunnel
* means the LSP is detour LSP
-------------------------------------------------------------------------------

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 214


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Ingress LsrId Destination LSPID In/OutLabel R Tunnel-name


-------------------------------------------------------------------------------
- - - 20/40 T lsp1
16/20
-------------------------------------------------------------------------------
R: Role, I: Ingress, T: Transit, E: Egress

# Check the configuration results on LSRC.


[~LSRC] display mpls te tunnel
* means the LSP is detour LSP
-------------------------------------------------------------------------------
Ingress LsrId Destination LSPID In/OutLabel R Tunnel-name
-------------------------------------------------------------------------------
1.1.1.1 3.3.3.3 - 40/-- E Tunnel20
--/16
-------------------------------------------------------------------------------
R: Role, I: Ingress, T: Transit, E: Egress

Run the display mpls te bidirectional static-cr-lsp command on each LSR to


view information about the static bidirectional co-routed CR-LSP.
# Check the configuration on LSRA.
[~LSRA] display mpls te bidirectional static-cr-lsp
TOTAL :1 STATIC CRLSP(S)
UP :1 STATIC CRLSP(S)
DOWN :0 STATIC CRLSP(S)
Name FEC I/O Label I/O If Status
Tunnel10 3.3.3.3/32 NULL/20 -/GE1/0/0
20/NULL GE1/0/0/- Up

# Check the configuration on LSRB.


[~LSRB] display mpls te bidirectional static-cr-lsp
TOTAL :1 STATIC CRLSP(S)
UP :1 STATIC CRLSP(S)
DOWN :0 STATIC CRLSP(S)
Name FEC I/O Label I/O If Status
lsp1 -/32 20/40 GE1/0/0/GE2/0/0
16/20 GE2/0/0/GE1/0/0 Up

# Check the configuration on LSRC.


[~LSRC] display mpls te bidirectional static-cr-lsp
TOTAL :1 STATIC CRLSP(S)
UP :1 STATIC CRLSP(S)
DOWN :0 STATIC CRLSP(S)
Name FEC I/O Label I/O If Status
Tunnel20 1.1.1.1/32 40/NULL GE1/0/0/-
NULL/16 -/GE1/0/0 Up

After completing the configuration, run the ping command on LSRA. The static
bidirectional co-routed CR-LSP is reachable.
[~LSRA] ping lsp -a 1.1.1.1 te Tunnel 10
LSP PING FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel10 : 100 data bytes, press CTRL_C to break
Reply from 3.3.3.3: bytes=100 Sequence=1 time = 56 ms
Reply from 3.3.3.3: bytes=100 Sequence=2 time = 53 ms
Reply from 3.3.3.3: bytes=100 Sequence=3 time = 3 ms
Reply from 3.3.3.3: bytes=100 Sequence=4 time = 60 ms
Reply from 3.3.3.3: bytes=100 Sequence=5 time = 5 ms

--- FEC: RSVP IPV4 SESSION QUERY Tunnel10 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/35/60 ms

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 215


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
#
bidirectional static-cr-lsp ingress Tunnel10
forward nexthop 10.21.1.2 out-label 20 bandwidth ct0 10000 pir 10000
backward in-label 20

#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.21.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te signal-protocol cr-static
mpls te tunnel-id 100
mpls te bidirectional
#
ip route-static 2.2.2.2 255.255.255.255 10.21.1.2
ip route-static 3.3.3.3 255.255.255.255 10.21.1.2
#
return

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
#
bidirectional static-cr-lsp transit lsp1
forward in-label 20 nexthop 10.32.1.2 out-label 40 bandwidth ct0 10000 pir 10000
backward in-label 16 nexthop 10.21.1.1 out-label 20 bandwidth ct0 10000 pir 10000
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.21.1.2 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.32.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 216


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
ip route-static 1.1.1.1 255.255.255.255 10.21.1.1
ip route-static 3.3.3.3 255.255.255.255 10.32.1.2
#
return

● LSRC configuration file


#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
#
bidirectional static-cr-lsp egress Tunnel20
forward in-label 40 lsrid 1.1.1.1 tunnel-id 100
backward nexthop 10.32.1.1 out-label 16 bandwidth ct0 10000 pir 10000
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.32.1.2 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
interface Tunnel20
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.1
mpls te signal-protocol cr-static
mpls te tunnel-id 200
mpls te passive-tunnel
mpls te binding bidirectional static-cr-lsp egress Tunnel20
#
ip route-static 1.1.1.1 255.255.255.255 10.32.1.1
ip route-static 2.2.2.2 255.255.255.255 10.32.1.1
#
return

1.1.3.43.3 Example for Configuring an Associated Bidirectional Static CR-LSP


This section provides an example for configuring an associated bidirectional static
CR-LSP.

Networking Requirements
In Figure 1-13, a forward static CR-LSP is established along the path PE1 -> PE2,
and a reverse static CR-LSP is established along the path PE2 -> PE1. To allow a
traffic switchover to be performed on both CR-LSPs, bind the two static CR-LSPs to
each other to form an associated bidirectional static CR-LSP.

Figure 1-13 Associated bidirectional static CR-LSP


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 2/0/0, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 217


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address and its mask to every interface and configure a loopback
interface address as an LSR ID on every node.
2. Configure a forward static CR-LSP and a reverse static CR-LSP.
3. Bind the forward and reverse static CR-LSPs to each other.

Data Preparation
To complete the configuration, you need the following data:
NOTE

In this example, a forward static CR-LSP is established along the path PE1 -> PE2, and a
reverse static CR-LSP is established along the path PE2 -> PE1.

Table 1-16 Data to be prepared

Device Parameter Value


Name

PE1 Number of a tunnel Tunnel10


interface on the forward
CR-LSP

Tunnel ID of the forward 100


CR-LSP

Outgoing label of the 20


forward CR-LSP

Name of the reverse CR- Tunnel20


LSP

Incoming label of the 130


reverse CR-LSP

P Name of the forward CR- Tunnel10


LSP

Incoming label of the 20


forward CR-LSP

Outgoing label of the 30


forward CR-LSP

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 218


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Device Parameter Value


Name

Name of the reverse CR- Tunnel20


LSP

Incoming label of the 120


reverse CR-LSP

Outgoing label of the 130


reverse CR-LSP

PE2 Number of a tunnel Tunnel20


interface on the reverse
CR-LSP

Tunnel ID of the reverse 200


CR-LSP

Outgoing label of the 120


reverse CR-LSP

Name of the forward CR- Tunnel10


LSP

Incoming label of the 30


forward CR-LSP

Procedure
Step 1 Assign an IP address and a mask to each interface.
Assign IP addresses and masks to interfaces. For configuration details, see
Configuration Files in this section.
Step 2 Configure a forward static CR-LSP and a reverse static CR-LSP.
For configuration details, see Configuration Files in this section.
Step 3 Bind the forward and reverse static CR-LSPs to each other.
# Configure PE1.
[~PE1] interface Tunnel 10
[~PE1-Tunnel10] mpls te reverse-lsp protocol static lsp-name Tunnel20
[*PE1-Tunnel10] commit

# Configure PE2.
[~PE2] interface Tunnel 20
[~PE2-Tunnel20] mpls te reverse-lsp protocol static lsp-name Tunnel10
[*PE2-Tunnel20] commit

Step 4 Verify the configuration.


After completing the preceding configurations, run the display mpls te reverse-
lsp verbose command on PE1 and PE2 to view reserve static CR-LSP information.
The following example uses the command output on PE1.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 219


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~PE1] display mpls te reverse-lsp verbose


-------------------------------------------------------------------------------
LSP Information: STATIC LSP
-------------------------------------------------------------------------------
Obverse Tunnel : Tunnel10 //Tunnel interface on the forward CR-LSP
Reverse LSP Name : Tunnel20 //Name of the reverse CR-LSP
Reverse LSP State : Up //Status of the reverse CR-LSP
Incoming Label : 130
Incoming Interface : GE1/0/0

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
mpls
mpls te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te signal-protocol cr-static
mpls te reverse-lsp protocol static lsp-name Tunnel20
mpls te tunnel-id 100
#
static-cr-lsp ingress tunnel-interface Tunnel10 destination 3.3.3.3 nexthop 10.1.1.2 out-label 20
#
static-cr-lsp egress Tunnel20 incoming-interface GigabitEthernet1/0/0 in-label 130
#
return

● P configuration file
#
sysname P
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
mpls
mpls te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
mpls
mpls te
#
interface LoopBack1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 220


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 2.2.2.2 255.255.255.255


#
static-cr-lsp transit Tunnel10 incoming-interface GigabitEthernet1/0/0 in-label 20 nexthop 10.2.1.2 out-
label 30
#
static-cr-lsp transit Tunnel20 incoming-interface GigabitEthernet2/0/0 in-label 120 nexthop 10.1.1.1
out-label 130
#
return

● PE2 configuration file


#
sysname PE2
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
mpls
mpls te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
interface Tunnel20
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.1
mpls te signal-protocol cr-static
mpls te reverse-lsp protocol static lsp-name Tunnel10
mpls te tunnel-id 200
#
static-cr-lsp ingress tunnel-interface Tunnel20 destination 1.1.1.1 nexthop 10.2.1.1 out-label 120
#
static-cr-lsp egress Tunnel10 incoming-interface GigabitEthernet2/0/0 in-label 30
#
return

1.1.3.43.4 Example for Configuring an RSVP-TE Tunnel

Networking Requirements
On the network shown in Figure 1-14, LSRA, LSRB, LSRC, and LSRD are level-2
routers that run IS-IS.
RSVP-TE is used to establish a TE tunnel with 20 Mbit/s bandwidth between LSRA
and LSRD. The maximum reservable bandwidth for every link along the TE tunnel
is 100 Mbit/s and the BC0 bandwidth is 100 Mbit/s.

Figure 1-14 Networking diagram for an RSVP-TE tunnel


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 2/0/0, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 221


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Notes
None

Configuration Roadmap
The configuration roadmap is as follows:

1. Assign an IP address to each interface, including the loopback interface whose


address is to be used as an LSR ID on each involved node.
2. Enable IS-IS globally; configure the network entity name; set the cost type to
enable IS-IS TE; enable IS-IS on involved interfaces, including loopback
interfaces.
3. Set an MPLS LSR ID for every LSR and enable MPLS, MPLS TE, RSVP-TE, and
CSPF globally.
4. Enable MPLS, MPLS TE, and RSVP-TE on every interface.
5. Configure the maximum reservable link bandwidth and BC bandwidth on the
outbound interfaces of each involved tunnel.
6. Create a tunnel interface on the ingress and configure the source and
destination IP addresses for the tunnel, tunnel protocol, destination address,
and tunnel bandwidth.

Data Preparation
To complete the configuration, you need the following data:

● Origin AS number, IS-IS level, and area ID of every LSR


● BC bandwidth and maximum reservable bandwidth on every link along the TE
tunnel
● Tunnel interface number, IP address, destination IP address, tunnel ID, and
tunnel bandwidth

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 222


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Assign an IP address and its mask to every interface.
Assign an IP address and a mask to each interface according to Figure 1-14. The
configuration details are not provided.
Step 2 Configure IS-IS.
# Configure LSRA.
[~LSRA] isis 1
[*LSRA-isis-1] network-entity 00.0005.0000.0000.0001.00
[*LSRA-isis-1] is-level level-2
[*LSRA-isis-1] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] isis enable 1
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] interface loopback 1
[*LSRA-LoopBack1] isis enable 1
[*LSRA-LoopBack1] commit
[~LSRA-LoopBack1] quit

# Configure LSRB.
[~LSRB] isis 1
[*LSRB-isis-1] network-entity 00.0005.0000.0000.0002.00
[*LSRB-isis-1] is-level level-2
[*LSRB-isis-1] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-GigabitEthernet1/0/0] isis enable 1
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 2/0/0
[*LSRB-GigabitEthernet2/0/0] isis enable 1
[*LSRB-GigabitEthernet2/0/0] quit
[*LSRB] interface loopback 1
[*LSRB-LoopBack1] isis enable 1
[*LSRB-LoopBack1] commit
[~LSRB-LoopBack1] quit

# Configure LSRC.
[~LSRC] isis 1
[*LSRC-isis-1] network-entity 00.0005.0000.0000.0003.00
[*LSRC-isis-1] is-level level-2
[*LSRC-isis-1] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] isis enable 1
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] interface gigabitethernet 2/0/0
[*LSRC-GigabitEthernet2/0/0] isis enable 1
[*LSRC-GigabitEthernet2/0/0] quit
[*LSRC] interface loopback 1
[*LSRC-LoopBack1] isis enable 1
[*LSRC-LoopBack1] commit
[~LSRC-LoopBack1] quit

# Configure LSRD.
[~LSRD] isis 1
[*LSRD-isis-1] network-entity 00.0005.0000.0000.0004.00
[*LSRD-isis-1] is-level level-2
[*LSRD-isis-1] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-GigabitEthernet1/0/0] isis enable 1
[*LSRD-GigabitEthernet1/0/0] quit
[*LSRD] interface loopback 1
[*LSRD-LoopBack1] isis enable 1
[*LSRD-LoopBack1] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 223


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRD-LoopBack1] quit

After completing the configurations, run the display ip routing-table command


on each node. All nodes have learned routes from one another. The following
example uses the command output on LSRA.
[~LSRA] display ip routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 13 Routes : 13

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.9/32 Direct 0 0 D 127.0.0.1 LoopBack1


2.2.2.9/32 ISIS-L2 15 10 D 10.1.1.2 GigabitEthernet1/0/0
3.3.3.9/32 ISIS-L2 15 20 D 10.1.1.2 GigabitEthernet1/0/0
4.4.4.9/32 ISIS-L2 15 30 D 10.1.1.2 GigabitEthernet1/0/0
10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.2.1.0/24 ISIS-L2 15 20 D 10.1.1.2 GigabitEthernet1/0/0
10.3.1.0/24 ISIS-L2 15 30 D 10.1.1.2 GigabitEthernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Step 3 Configure basic MPLS functions and enable MPLS TE, RSVP-TE, and CSPF.

# Enable MPLS, MPLS TE, and RSVP-TE globally on each node and on all interfaces
along the tunnel, and enable CSPF on the ingress.

# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.9
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Configure LSRB.
[~LSRB] mpls lsr-id 2.2.2.9
[*LSRB] mpls
[*LSRB-mpls] mpls te
[*LSRB-mpls] mpls rsvp-te
[*LSRB-mpls] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] mpls te
[*LSRB-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 2/0/0
[*LSRB-GigabitEthernet2/0/0] mpls
[*LSRB-GigabitEthernet2/0/0] mpls te
[*LSRB-GigabitEthernet2/0/0] mpls rsvp-te
[*LSRB-GigabitEthernet2/0/0] commit
[~LSRB-GigabitEthernet2/0/0] quit

# Configure LSRC.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 224


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRC] mpls lsr-id 3.3.3.9


[*LSRC] mpls
[*LSRC-mpls] mpls te
[*LSRC-mpls] mpls rsvp-te
[*LSRC-mpls] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] mpls
[*LSRC-GigabitEthernet1/0/0] mpls te
[*LSRC-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] interface gigabitethernet 2/0/0
[*LSRC-GigabitEthernet2/0/0] mpls
[*LSRC-GigabitEthernet2/0/0] mpls te
[*LSRC-GigabitEthernet2/0/0] mpls rsvp-te
[*LSRC-GigabitEthernet2/0/0] commit
[~LSRC-GigabitEthernet2/0/0] quit

# Configure LSRD.
[~LSRD] mpls lsr-id 4.4.4.9
[*LSRD] mpls
[*LSRD-mpls] mpls te
[*LSRD-mpls] mpls rsvp-te
[*LSRD-mpls] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-GigabitEthernet1/0/0] mpls
[*LSRD-GigabitEthernet1/0/0] mpls te
[*LSRD-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRD-GigabitEthernet1/0/0] commit
[~LSRD-GigabitEthernet1/0/0] quit

Step 4 Configure IS-IS TE.


# Configure LSRA.
[~LSRA] isis 1
[~LSRA-isis-1] cost-style wide
[*LSRA-isis-1] traffic-eng level-2
[*LSRA-isis-1] commit
[~LSRA-isis-1] quit

# Configure LSRB.
[~LSRB] isis 1
[~LSRB-isis-1] cost-style wide
[*LSRB-isis-1] traffic-eng level-2
[*LSRB-isis-1] commit
[~LSRB-isis-1] quit

# Configure LSRC.
[~LSRC] isis 1
[~LSRC-isis-1] cost-style wide
[*LSRC-isis-1] traffic-eng level-2
[*LSRC-isis-1] commit
[~LSRC-isis-1] quit

# Configure LSRD.
[~LSRD] isis 1
[~LSRD-isis-1] cost-style wide
[*LSRD-isis-1] traffic-eng level-2
[*LSRD-isis-1] commit
[~LSRD-isis-1] quit

Step 5 Set MPLS TE bandwidth attributes for links.


# Set the maximum reservable bandwidth and BC0 bandwidth for a link on every
interface along the TE tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 225


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure LSRA.
[~LSRA] interface gigabitethernet 1/0/0
[~LSRA-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRA-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Configure LSRB.
[~LSRB] interface gigabitethernet 2/0/0
[~LSRB-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRB-GigabitEthernet2/0/0] mpls te bandwidth bc0 100000
[*LSRB-GigabitEthernet2/0/0] commit
[~LSRB-GigabitEthernet2/0/0] quit

# Configure LSRC.
[~LSRC] interface gigabitethernet 1/0/0
[~LSRC-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRC-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*LSRC-GigabitEthernet1/0/0] commit
[~LSRC-GigabitEthernet1/0/0] quit

Step 6 Configure an MPLS TE tunnel interface.


# Create a tunnel interface on the ingress; configure the source and destination IP
addresses for the tunnel, tunnel protocol, tunnel ID, and RSVP-TE signaling
protocol; run the commit command to make the configurations take effect.
# Configure LSRA.
[~LSRA] interface tunnel1
[*LSRA-Tunnel1] ip address unnumbered interface loopback 1
[*LSRA-Tunnel1] tunnel-protocol mpls te
[*LSRA-Tunnel1] destination 4.4.4.9
[*LSRA-Tunnel1] mpls te tunnel-id 1
[*LSRA-Tunnel1] mpls te bandwidth ct0 20000
[*LSRA-Tunnel1] commit
[~LSRA-Tunnel1] quit

Step 7 Verify the configuration.


After completing the configuration, run the display interface tunnel command
on LSRA. The tunnel interface is Up.
[~LSRA] display interface tunnel 1
Tunnel1 current state : Up (ifindex: 29)
Line protocol current state : Up
Last line protocol up time : 2012-11-30 05:58:08
Description:
Route Port,The Maximum Transmit Unit is 1500, Current BW: 20Mbps
Internet Address is unnumbered, using address of LoopBack1(1.1.1.9/32)
Encapsulation is TUNNEL, loopback not set
Tunnel destination 4.4.4.9
Tunnel up/down statistics 1
Tunnel protocol/transport MPLS/MPLS, ILM is available,
primary tunnel id is 0x61, secondary tunnel id is 0x0
Current system time: 2012-11-30 05:58:10
300 seconds output rate 0 bits/sec, 0 packets/sec
0 seconds output rate 0 bits/sec, 0 packets/sec
126 packets output, 34204 bytes
0 output error
18 output drop
Last 300 seconds input utility rate: 0.00%
Last 300 seconds output utility rate: 0.00%

Run the display mpls te tunnel-interface command on LSRA. Detailed


information about the tunnel interface is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 226


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRA] display mpls te tunnel-interface tunnel1


Tunnel Name : Tunnel1
Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID :1
Ingress LSR ID : 1.1.1.9 Egress LSR ID: 4.4.4.9
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid :1
Tie-Breaking Policy : None Metric Type : None
Bfd Cap : None
Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : 0 percent
Current Collected BW: 0 kbps Auto BW Freq : 0
Min BW : 0 kbps Max BW : 0 kbps
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name:
Tunnel Group :-
Interfaces Protected: -
Excluded IP Address : -
Referred LSP Count : 0
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status : Up Oam Status : -
IPTN InLabel :- Tunnel BFD Status : -
BackUp LSP Type : None BestEffort : Enabled
Secondary HopLimit : -
BestEffort HopLimit : -
Secondary Explicit Path Name: -
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : -
P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : --
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : No

Primary LSP ID : 1.1.1.9:19


LSP State : UP LSP Type : Primary
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 227


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0


CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : main Hop Limit: -
Record Route : Disabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal
Path Setup Type : CSPF
Create Modify LSP Reason: -
Self-Ping Status : -

Run the display mpls te cspf tedb all command on LSRA. Link information in the
TEDB is displayed.
[~LSRA] display mpls te cspf tedb all

Current Total Node Number: 4


Current Total Link Number: 6
Current Total SRLG Number: 0

Id Router-Id IGP Process-Id Area Link-Count


1 1.1.1.9 ISIS 1 Level-2 1
2 2.2.2.9 ISIS 1 Level-2 2
3 3.3.3.9 ISIS 1 Level-2 2
4 4.4.4.9 ISIS 1 Level-2 1

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.9
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0001.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
isis enable 1
#
interface Tunnel1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 228


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address unnumbered interface LoopBack1


tunnel-protocol mpls te
destination 4.4.4.9
mpls te bandwidth ct0 20000
mpls te tunnel-id 1
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.9
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
isis enable 1
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.9
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
mpls
mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 229


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te bandwidth max-reservable-bandwidth 100000


mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
isis enable 1
#
return

● LSRD configuration file


#
sysname LSRD
#
mpls lsr-id 4.4.4.9
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0004.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
isis enable 1
#
return

1.1.3.43.5 Example for Configuring an RSVP-TE over GRE Tunnel

Networking Requirements
On the network shown in Figure 1-15, OSPF runs on DeviceB, DeviceC, and
DeviceD, and a GRE tunnel is established between DeviceB and DeviceD. A TE
tunnel with 10 Mbit/s bandwidth is required between DeviceA and DeviceE. The
maximum reservable link bandwidth of the tunnel is 10 Mbit/s, as is the BC0
bandwidth.

Figure 1-15 Network diagram of an RSVP-TE over GRE tunnel


NOTE

Interface1 and interface2 in this example represent GE 1/0/0 and GE 2/0/0, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 230


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Precautions
In this example, an RSVP-TE over GRE tunnel is configured, and the GRE tunnel
interfaces cannot borrow the IP addresses of other interfaces. During
configuration, you can enable an IGP on GRE tunnel interfaces and configure
MPLS link attributes.

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address to each interface, including the loopback interface whose
address is to be used as an LSR ID on each involved node.
2. Configure OSPF on DeviceB, DeviceC, and DeviceD, and establish a GRE tunnel
between DeviceB and DeviceD.
3. Enable IS-IS globally, configure a network entity title (NET), specify the cost
type, and enable IS-IS TE. Enable IS-IS on each interface (including loopback
interfaces and GRE tunnel interfaces).
4. Configure MPLS LSR-IDs, and enable MPLS, MPLS TE, MPLS RSVP-TE, and
MPLS CSPF globally.
5. Enable MPLS, MPLS TE, and MPLS RSVP-TE on each interface.
6. Configure the maximum reservable link bandwidth and BC bandwidth on the
outbound interfaces of each involved tunnel.
7. Create a tunnel interface on the ingress and configure an IP address, tunnel
protocol, destination IP address, and tunnel bandwidth.

Data Preparation
To complete the configuration, you need the following data:
● IS-IS area ID, originating system ID, and IS-IS level of each node
● Maximum bandwidth and maximum reservable bandwidth for each link along
the tunnel
● Tunnel interface number, IP address, destination IP address, tunnel ID, and
tunnel bandwidth

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 231


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Configure an IP address for each interface.
Assign an IP address and a mask to each interface according to Figure 1-15. The
configuration details are not provided.
Step 2 Establish a GRE tunnel between DeviceB and DeviceD.
# Configure DeviceB.
[~DeviceB] ospf 1
[*DeviceB-ospf-1] area 0.0.0.0
[*DeviceB-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[*DeviceB-ospf-1-area-0.0.0.0] network 172.16.1.0 0.0.0.255
[*DeviceB-ospf-1-area-0.0.0.0] quit
[*DeviceB-ospf-1] quit
[*DeviceB] interface LoopBack1
[*DeviceB-LoopBack1] binding tunnel gre
[*DeviceB-LoopBack1] quit
[*DeviceB] interface Tunnel10
[*DeviceB-Tunnel10] ip address 10.2.1.1 255.255.255.252
[*DeviceB-Tunnel10] tunnel-protocol gre
[*DeviceB-Tunnel10] source 2.2.2.9
[*DeviceB-Tunnel10] destination 3.3.3.9
[*DeviceB-Tunnel10] quit
[*DeviceB] commit

# Configure DeviceC.
[~DeviceC] ospf 1
[*DeviceC-ospf-1] area 0.0.0.0
[*DeviceC-ospf-1-area-0.0.0.0] network 172.16.1.0 0.0.0.255
[*DeviceC-ospf-1-area-0.0.0.0] network 172.16.2.0 0.0.0.255
[*DeviceC-ospf-1-area-0.0.0.0] quit
[*DeviceC-ospf-1] quit
[*DeviceC] commit

# Configure DeviceD.
[~DeviceD] ospf 1
[*DeviceD-ospf-1] area 0.0.0.0
[*DeviceD-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[*DeviceD-ospf-1-area-0.0.0.0] network 172.16.2.0 0.0.0.255
[*DeviceD-ospf-1-area-0.0.0.0] quit
[*DeviceD-ospf-1] quit
[*DeviceD] interface LoopBack1
[*DeviceD-LoopBack1] binding tunnel gre
[*DeviceD-LoopBack1] quit
[*DeviceD] interface Tunnel10
[*DeviceD-Tunnel10] ip address 10.2.1.2 255.255.255.252
[*DeviceD-Tunnel10] tunnel-protocol gre
[*DeviceD-Tunnel10] source 3.3.3.9
[*DeviceD-Tunnel10] destination 2.2.2.9
[*DeviceD-Tunnel10] quit
[*DeviceD] commit

After completing the configuration, run the display interface tunnel command.
The command output shows that the tunnel interface is in the Up state. The
following example uses the command output on DeviceB.
[~DeviceB] display interface tunnel 10
Tunnel10 current state : UP (ifindex: 30)
Line protocol current state : UP
Last line protocol up time : 2021-05-12 03:38:08
Description:
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 10.2.1.1/30

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 232


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Encapsulation is TUNNEL, loopback not set


Tunnel source 2.2.2.9 (LoopBack1), destination 3.3.3.9
Tunnel protocol/transport GRE/IP, key disabled
keepalive disabled
Checksumming of packets disabled
Current system time: 2021-05-12 06:29:08
300 seconds input rate 0 bits/sec, 0 packets/sec
300 seconds output rate 0 bits/sec, 0 packets/sec
0 seconds input rate 0 bits/sec, 0 packets/sec
0 seconds output rate 0 bits/sec, 0 packets/sec
1834 packets input, 212950 bytes
0 input error
1837 packets output, 218381 bytes
0 output error
Input:
Unicast: 1834 packets, Multicast: 0 packets
Output:
Unicast: 1837 packets, Multicast: 0 packets
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%

Run the display tunnel-info all command to check information about all tunnels.
The following example uses the command output on DeviceB.
[~DeviceB] display tunnel-info all
Tunnel ID Type Destination Status
----------------------------------------------------------------------------------------
0x00000000050000001e gre 3.3.3.9 UP

Step 3 Configure IS-IS to advertise routes.

Note that IS-IS must also be enabled on the GRE tunnel interfaces.

# Configure DeviceA.
[~DeviceA] isis 1
[*DeviceA-isis-1] network-entity 00.0005.0000.0000.0001.00
[*DeviceA-isis-1] is-level level-2
[*DeviceA-isis-1] quit
[*DeviceA] interface gigabitethernet 1/0/0
[*DeviceA-GigabitEthernet1/0/0] isis enable 1
[*DeviceA-GigabitEthernet1/0/0] quit
[*DeviceA] interface loopback 1
[*DeviceA-LoopBack1] isis enable 1
[*DeviceA-LoopBack1] commit
[~DeviceA-LoopBack1] quit

# Configure DeviceB.
[~DeviceB] isis 1
[*DeviceB-isis-1] network-entity 00.0005.0000.0000.0002.00
[*DeviceB-isis-1] is-level level-2
[*DeviceB-isis-1] quit
[*DeviceB] interface Tunnel10
[*DeviceB-Tunnel10] isis enable 1
[*DeviceB-Tunnel10] quit
[*DeviceB] interface gigabitethernet 2/0/0
[*DeviceB-GigabitEthernet2/0/0] isis enable 1
[*DeviceB-GigabitEthernet2/0/0] quit
[*DeviceB] interface loopback 1
[*DeviceB-LoopBack1] isis enable 1
[*DeviceB-LoopBack1] commit
[~DeviceB-LoopBack1] quit

# Configure DeviceD.
[~DeviceD] isis 1
[*DeviceD-isis-1] network-entity 00.0005.0000.0000.0003.00
[*DeviceD-isis-1] is-level level-2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 233


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*DeviceD-isis-1] quit
[*DeviceD] interface Tunnel10
[*DeviceD-Tunnel10] isis enable 1
[*DeviceD-Tunnel10] quit
[*DeviceD] interface gigabitethernet 2/0/0
[*DeviceD-GigabitEthernet2/0/0] isis enable 1
[*DeviceD-GigabitEthernet2/0/0] quit
[*DeviceD] interface loopback 1
[*DeviceD-LoopBack1] isis enable 1
[*DeviceD-LoopBack1] commit
[~DeviceD-LoopBack1] quit

# Configure DeviceE.
[~DeviceE] isis 1
[*DeviceE-isis-1] network-entity 00.0005.0000.0000.0004.00
[*DeviceE-isis-1] is-level level-2
[*DeviceE-isis-1] quit
[*DeviceE] interface gigabitethernet 1/0/0
[*DeviceE-GigabitEthernet1/0/0] isis enable 1
[*DeviceE-GigabitEthernet1/0/0] quit
[*DeviceE] interface loopback 1
[*DeviceE-LoopBack1] isis enable 1
[*DeviceE-LoopBack1] commit
[~DeviceE-LoopBack1] quit

After completing the configuration, run the display ip routing-table command on


each node. The command output shows that all the nodes have learned routes
from each other. The following example uses the command output on DeviceA.
[~DeviceA] display ip routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 13 Routes : 13

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.9/32 Direct 0 0 D 127.0.0.1 LoopBack1


2.2.2.9/32 ISIS-L2 15 10 D 10.1.1.1 GigabitEthernet1/0/0
3.3.3.9/32 ISIS-L2 15 20 D 10.1.1.1 GigabitEthernet1/0/0
4.4.4.9/32 ISIS-L2 15 30 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.0/24 Direct 0 0 D 10.1.1.2 GigabitEthernet1/0/0
10.1.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.2.1.0/30 ISIS-L2 15 20 D 10.1.1.1 GigabitEthernet1/0/0
10.3.1.0/24 ISIS-L2 15 30 D 10.1.1.1 GigabitEthernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Step 4 Configure basic MPLS functions, and enable MPLS TE, RSVP-TE, and CSPF.
Enable MPLS, MPLS TE, and RSVP-TE globally on each node and on all interfaces
along the tunnel, and enable CSPF on the ingress. Note that you also need to
perform the related configurations on the GRE tunnel interfaces.
# Configure DeviceA.
[~DeviceA] mpls lsr-id 1.1.1.9
[*DeviceA] mpls
[*DeviceA-mpls] mpls te
[*DeviceA-mpls] mpls rsvp-te
[*DeviceA-mpls] mpls te cspf
[*DeviceA-mpls] quit
[*DeviceA] interface gigabitethernet 1/0/0
[*DeviceA-GigabitEthernet1/0/0] mpls
[*DeviceA-GigabitEthernet1/0/0] mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 234


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*DeviceA-GigabitEthernet1/0/0] mpls rsvp-te


[*DeviceA-GigabitEthernet1/0/0] commit
[~DeviceA-GigabitEthernet1/0/0] quit

# Configure DeviceB.
[~DeviceB] mpls lsr-id 2.2.2.9
[*DeviceB] mpls
[*DeviceB-mpls] mpls te
[*DeviceB-mpls] mpls rsvp-te
[*DeviceB-mpls] quit
[*DeviceB] interface Tunnel10
[*DeviceB-Tunnel10] mpls
[*DeviceB-Tunnel10] mpls te
[*DeviceB-Tunnel10] mpls rsvp-te
[*DeviceB-Tunnel10] quit
[*DeviceB] interface gigabitethernet 2/0/0
[*DeviceB-GigabitEthernet2/0/0] mpls
[*DeviceB-GigabitEthernet2/0/0] mpls te
[*DeviceB-GigabitEthernet2/0/0] mpls rsvp-te
[*DeviceB-GigabitEthernet2/0/0] commit
[~DeviceB-GigabitEthernet2/0/0] quit

# Configure DeviceD.
[~DeviceD] mpls lsr-id 3.3.3.9
[*DeviceD] mpls
[*DeviceD-mpls] mpls te
[*DeviceD-mpls] mpls rsvp-te
[*DeviceD-mpls] quit
[*DeviceD] interface Tunnel10
[*DeviceD-Tunnel10] mpls
[*DeviceD-Tunnel10] mpls te
[*DeviceD-Tunnel10] mpls rsvp-te
[*DeviceD-Tunnel10] quit
[*DeviceD] interface gigabitethernet 2/0/0
[*DeviceD-GigabitEthernet2/0/0] mpls
[*DeviceD-GigabitEthernet2/0/0] mpls te
[*DeviceD-GigabitEthernet2/0/0] mpls rsvp-te
[*DeviceD-GigabitEthernet2/0/0] commit
[~DeviceD-GigabitEthernet2/0/0] quit

# Configure DeviceE.
[~DeviceE] mpls lsr-id 4.4.4.9
[*DeviceE] mpls
[*DeviceE-mpls] mpls te
[*DeviceE-mpls] mpls rsvp-te
[*DeviceE-mpls] mpls te cspf
[*DeviceE-mpls] quit
[*DeviceE] interface gigabitethernet 1/0/0
[*DeviceE-GigabitEthernet1/0/0] mpls
[*DeviceE-GigabitEthernet1/0/0] mpls te
[*DeviceE-GigabitEthernet1/0/0] mpls rsvp-te
[*DeviceE-GigabitEthernet1/0/0] commit
[~DeviceE-GigabitEthernet1/0/0] quit

Step 5 Configure IS-IS TE.


# Configure DeviceA.
[~DeviceA] isis 1
[~DeviceA-isis-1] cost-style wide
[*DeviceA-isis-1] traffic-eng level-2
[*DeviceA-isis-1] commit
[~DeviceA-isis-1] quit

# Configure DeviceB.
[~DeviceB] isis 1
[~DeviceB-isis-1] cost-style wide

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 235


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*DeviceB-isis-1] traffic-eng level-2


[*DeviceB-isis-1] commit
[~DeviceB-isis-1] quit

# Configure DeviceD.
[~DeviceD] isis 1
[~DeviceD-isis-1] cost-style wide
[*DeviceD-isis-1] traffic-eng level-2
[*DeviceD-isis-1] commit
[~DeviceD-isis-1] quit

# Configure DeviceE.
[~DeviceE] isis 1
[~DeviceE-isis-1] cost-style wide
[*DeviceE-isis-1] traffic-eng level-2
[*DeviceE-isis-1] commit
[~DeviceE-isis-1] quit

Step 6 Configure MPLS TE bandwidth attributes for links.


Configure the maximum reservable link bandwidth and BC0 bandwidth on the
outbound interfaces of each involved tunnel. Note that you also need to perform
related configurations on the GRE tunnel interfaces.
# Configure DeviceA.
[~DeviceA] interface gigabitethernet 1/0/0
[~DeviceA-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 10000
[*DeviceA-GigabitEthernet1/0/0] mpls te bandwidth bc0 10000
[*DeviceA-GigabitEthernet1/0/0] commit
[~DeviceA-GigabitEthernet1/0/0] quit

# Configure DeviceB.
[~DeviceB] interface Tunnel10
[~DeviceB-Tunnel10] bandwidth 100000
[*DeviceB-Tunnel10] mpls te bandwidth max-reservable-bandwidth 10000
[*DeviceB-Tunnel10] mpls te bandwidth bc0 10000
[*DeviceB-Tunnel10] quit
[*DeviceB] interface gigabitethernet 2/0/0
[*DeviceB-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 10000
[*DeviceB-GigabitEthernet2/0/0] mpls te bandwidth bc0 10000
[*DeviceB-GigabitEthernet2/0/0] commit
[~DeviceB-GigabitEthernet2/0/0] quit

# Configure DeviceD.
[~DeviceD] interface Tunnel10
[~DeviceD-Tunnel10] bandwidth 100000
[*DeviceD-Tunnel10] mpls te bandwidth max-reservable-bandwidth 10000
[*DeviceD-Tunnel10] mpls te bandwidth bc0 10000
[*DeviceD-Tunnel10] quit
[~DeviceD] interface gigabitethernet 2/0/0
[~DeviceD-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 10000
[*DeviceD-GigabitEthernet2/0/0] mpls te bandwidth bc0 10000
[*DeviceD-GigabitEthernet2/0/0] commit
[~DeviceD-GigabitEthernet2/0/0] quit

# Configure DeviceE.
[~DeviceE] interface gigabitethernet 1/0/0
[~DeviceE-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 10000
[*DeviceE-GigabitEthernet1/0/0] mpls te bandwidth bc0 10000
[*DeviceE-GigabitEthernet1/0/0] commit
[~DeviceE-GigabitEthernet1/0/0] quit

Step 7 Configure MPLS TE tunnel interfaces.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 236


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure DeviceA.
[~DeviceA] interface tunnel1
[*DeviceA-Tunnel1] ip address unnumbered interface loopback 1
[*DeviceA-Tunnel1] tunnel-protocol mpls te
[*DeviceA-Tunnel1] destination 4.4.4.9
[*DeviceA-Tunnel1] mpls te tunnel-id 1
[*DeviceA-Tunnel1] mpls te bandwidth ct0 10000
[*DeviceA-Tunnel1] commit
[~DeviceA-Tunnel1] quit

# Configure DeviceE.
[~DeviceE] interface tunnel1
[*DeviceE-Tunnel1] ip address unnumbered interface loopback 1
[*DeviceE-Tunnel1] tunnel-protocol mpls te
[*DeviceE-Tunnel1] destination 1.1.1.9
[*DeviceE-Tunnel1] mpls te tunnel-id 1
[*DeviceE-Tunnel1] mpls te bandwidth ct0 10000
[*DeviceE-Tunnel1] commit
[~DeviceE-Tunnel1] quit

Step 8 Verify the configuration.


After completing the configuration, run the display interface tunnel command.
The command output shows that the tunnel interface is in the Up state. The
following example uses the command output on DeviceA.
[~DeviceA] display interface tunnel 1

Tunnel1 current state : UP (ifindex: 27)


Line protocol current state : UP
Last line protocol up time : 2021-05-12 04:36:14
Description:
Route Port,The Maximum Transmit Unit is 1500, Current BW: 10Mbps
Internet Address is unnumbered, using address of LoopBack1(1.1.1.9/32)
Encapsulation is TUNNEL, loopback not set
Tunnel destination 4.4.4.9
Tunnel up/down statistics 1
Tunnel ct0 bandwidth is 10000 Kbit/sec
Tunnel protocol/transport MPLS/MPLS, ILM is available
primary tunnel id is 0x2141, secondary tunnel id is 0x0
Current system time: 2021-05-12 06:38:42
0 seconds output rate 0 bits/sec, 0 packets/sec
0 seconds output rate 0 bits/sec, 0 packets/sec
0 packets output, 0 bytes
0 output error
0 output drop
Last 300 seconds input utility rate: 0.00%
Last 300 seconds output utility rate: 0.00%

Run the display mpls te tunnel-interface command. Detailed information about


the tunnel interface is displayed. The following example uses the command output
on DeviceA.
[~DeviceA] display mpls te tunnel-interface tunnel1

Tunnel Name : Tunnel1


Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID :1
Ingress LSR ID : 1.1.1.9 Egress LSR ID: 4.4.4.9
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid :1
Tie-Breaking Policy : None Metric Type : None

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 237


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Bfd Cap : None


Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : -
Current Collected BW: - Auto BW Freq : -
Min BW :- Max BW :-
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name: -
Tunnel Group : Primary
Interfaces Protected: -
Excluded IP Address : -
Referred LSP Count : 0
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status : Up Oam Status : None
IPTN InLabel :- Tunnel BFD Status : -
BackUp LSP Type : None BestEffort : Disabled
Secondary HopLimit : -
BestEffort HopLimit : -
Secondary Explicit Path Name: -
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : -
P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : -
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : - Reopt Remain Time :-
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : -

Primary LSP ID : 1.1.1.9:232


LSP State : UP LSP Type : Primary
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : - Hop Limit: -
Record Route : Disabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Disabled
Reroute Flag : Enabled
Pce Flag : Normal

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 238


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Path Setup Type : CSPF


Create Modify LSP Reason: -
Self-Ping Status : -

----End

Configuration Files
● DeviceA configuration file
#
sysname DeviceA
#
mpls lsr-id 1.1.1.9
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0001.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.9
mpls te bandwidth ct0 10000
mpls te tunnel-id 1
#
return

● DeviceB configuration file


#
sysname DeviceB
#
mpls lsr-id 2.2.2.9
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0002.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 172.16.1.1 255.255.255.0
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 239


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface GigabitEthernet2/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
isis enable 1
binding tunnel gre
#
interface Tunnel10
ip address 10.2.1.1 255.255.255.252
bandwidth 100000
tunnel-protocol gre
source 2.2.2.9
destination 3.3.3.9
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 172.16.1.0 0.0.0.255
#
return
● DeviceC configuration file
#
sysname DeviceC
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 172.16.1.2 255.255.255.0
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 172.16.2.1 255.255.255.0
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 172.16.1.0 0.0.0.255
network 172.16.2.0 0.0.0.255
● DeviceD configuration file
#
sysname DeviceD
#
mpls lsr-id 3.3.3.9
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0003.00
traffic-eng level-2
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 240


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface GigabitEthernet1/0/0
undo shutdown
ip address 172.16.2.2 255.255.255.0
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
isis enable 1
binding tunnel gre
#
interface Tunnel10
ip address 10.2.1.2 255.255.255.252
bandwidth 100000
tunnel-protocol gre
source 3.3.3.9
destination 2.2.2.9
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 172.16.2.0 0.0.0.255
#
return

● DeviceE configuration file


#
sysname DeviceE
#
mpls lsr-id 4.4.4.9
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0004.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
isis enable 1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 241


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te bandwidth ct0 10000
mpls te tunnel-id 1
#
return

1.1.3.43.6 Example for Configuring RSVP Authentication

Networking Requirements
On the network shown in Figure 1-16, GE 1/0/0, GE 2/0/0, and GE 3/0/0 on LSRA
and LSRB join Eth-Trunk1. An MPLS TE tunnel between LSRA and LSRC is
established through RSVP.

The handshake function, RSVP key authentication, and message window are
configured for LSRA and LSRB. The handshake function allows LSRA and LSRB to
perform RSVP key authentication. RSVP key authentication prevents forged
packets from requesting network resource usage. The message window function
prevents RSVP message mis-sequence.

Figure 1-16 Networking diagram for RSVP authentication


NOTE

Interfaces 1 through 4 in this example represent GE 1/0/1, GE 1/0/2, GE 1/0/3, and GE


1/0/4, respectively.

Configuration Notes
None.

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure MPLS and establish an MPLS TE tunnel.


2. Configure RSVP authentication on interfaces.
3. Configure the handshake function on interfaces.
4. Set the size for the message window to allow interfaces to store 32 sequence
numbers.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 242


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

The window size to 32 is recommended. If the window size is too small, received RSVP
messages outside the window are discarded, which terminates RSVP neighbor relationships.

Data Preparation
To complete the configuration, you need the following data:
● OSPF process ID and area ID for every LSR
● Password and key for RSVP authentication
● RSVP message window size

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address and its mask to every interface as shown in Figure 1-16. For
configuration details, see Configuration Files in this section.
Step 2 Configure OSPF.
Configure OSPF to advertise every network segment route and host route. For
configuration details, see Configuration Files in this section.
After completing the configurations, run the display ip routing-table command
on every node. All nodes have learned routes from each other.
Step 3 Configure basic MPLS functions and enable MPLS TE, RSVP-TE, and CSPF.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] quit
[*LSRA] interface eth-trunk 1
[*LSRA-Eth-Trunk1] mpls
[*LSRA-Eth-Trunk1] mpls te
[*LSRA-Eth-Trunk1] mpls rsvp-te
[*LSRA-Eth-Trunk1] commit
[~LSRA-Eth-Trunk1] quit

NOTE

Repeat this step for LSRB and LSRC. For configuration details, see Configuration Files in
this section.

Step 4 Configure OSPF TE.


# Configure LSRA.
[~LSRA] ospf 1
[~LSRA-ospf-1] opaque-capability enable
[*LSRA-ospf-1] area 0
[*LSRA-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRA-ospf-1-area-0.0.0.0] commit
[~LSRA-ospf-1-area-0.0.0.0] quit

# Configure LSRB.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 243


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRB] ospf 1
[~LSRB-ospf-1] opaque-capability enable
[*LSRB-ospf-1] area 0
[*LSRB-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRB-ospf-1-area-0.0.0.0] commit
[~LSRB-ospf-1-area-0.0.0.0] quit

# Configure LSRC.
[~LSRC] ospf 1
[~LSRC-ospf-1] opaque-capability enable
[*LSRC-ospf-1] area 0
[*LSRC-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRC-ospf-1-area-0.0.0.0] commit
[~LSRC-ospf-1-area-0.0.0.0] quit

Step 5 Configure an MPLS TE tunnel.


# Configure the MPLS TE tunnel on LSRA.
[~LSRA] interface tunnel1
[*LSRA-Tunnel1] ip address unnumbered interface loopback 1
[*LSRA-Tunnel1] tunnel-protocol mpls te
[*LSRA-Tunnel1] destination 3.3.3.3
[*LSRA-Tunnel1] mpls te tunnel-id 1
[*LSRA-Tunnel1] commit
[~LSRA-Tunnel1] quit

After completing the configuration, run the display interface tunnel command
on LSRA. The tunnel interface is Up.
[~LSRA] display interface tunnel1
Tunnel1 current state : UP (ifindex: 18)
Line protocol current state : UP
Last line protocol up time : 2012-02-23 10:00:00
Description:
Route Port,The Maximum Transmit Unit is 1500, Current BW: 0Mbps
Internet Address is unnumbered, using address of LoopBack1(1.1.1.1/32)
Encapsulation is TUNNEL, loopback not set
Tunnel destination 3.3.3.3
Tunnel up/down statistics 1
Tunnel protocol/transport MPLS/MPLS, ILM is available,
primary tunnel id is 0x161, secondary tunnel id is 0x0
Current system time: 2012-02-24 03:33:48
300 seconds output rate 0 bits/sec, 0 packets/sec
0 seconds output rate 0 bits/sec, 0 packets/sec
126 packets output, 34204 bytes
0 output error
18 output drop
Last 300 seconds input utility rate: 0.00%
Last 300 seconds output utility rate: 0.00%

Step 6 Configure RSVP authentication on MPLS TE interfaces of LSRA and LSRB.


# Configure LSRA.
[~LSRA] interface eth-trunk 1
[~LSRA-Eth-Trunk1] mpls rsvp-te authentication cipher YsHsjx_202206
[*LSRA-Eth-Trunk1] mpls rsvp-te authentication handshake
[*LSRA-Eth-Trunk1] mpls rsvp-te authentication window-size 32
[*LSRA-Eth-Trunk1] commit

# Configure LSRB.
[~LSRB] interface eth-trunk 1
[~LSRB-Eth-Trunk1] mpls rsvp-te authentication cipher YsHsjx_202206
[*LSRB-Eth-Trunk1] mpls rsvp-te authentication handshake
[*LSRB-Eth-Trunk1] mpls rsvp-te authentication window-size 32
[*LSRB-Eth-Trunk1] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 244


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 7 Verify the configuration.

Run the reset mpls rsvp-te and display interface tunnel commands in sequence
on LSRA. The tunnel interface is Up.

Run the display mpls rsvp-te interface command on LSRA or LSRB. RSVP
authentication information is displayed.
[~LSRA] display mpls rsvp-te interface eth-trunk 1
Interface: Eth-Trunk1
Interface Address: 10.1.1.1
Interface state: UP Interface Index: 0x15
Total-BW: 0 Used-BW: 0
Hello configured: NO Num of Neighbors: 1
SRefresh feature: DISABLE SRefresh Interval: 30 sec
Mpls Mtu: 1500 Retransmit Interval: 500 msec
Increment Value: 1
Authentication: ENABLE
Challenge: ENABLE WindowSize: 32
Next Seq # to be sent: 486866945 12 Key ID: 0x0101051d0101
Bfd Enabled: -- Bfd Min-Tx: --
Bfd Min-Rx: -- Bfd Detect-Multi: --
RSVP instance name: RSVP0

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
interface Eth-Trunk1
ip address 10.1.1.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te authentication cipher O'W3[_\M"`!./a!1$H@GYA!!
mpls rsvp-te authentication handshake
mpls rsvp-te authentication window-size 32
#
interface GigabitEthernet1/0/1
undo shutdown
eth-trunk 1
#
interface GigabitEthernet1/0/2
undo shutdown
eth-trunk 1
#
interface GigabitEthernet1/0/3
undo shutdown
eth-trunk 1
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 245


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te tunnel-id 1
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
#
interface Eth-Trunk1
ip address 10.1.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te authentication cipher O'W3[_\M"`!./a!1$H@GYA!!
mpls rsvp-te authentication handshake
mpls rsvp-te authentication window-size 32
#
interface GigabitEthernet1/0/1
undo shutdown
eth-trunk 1
#
interface GigabitEthernet1/0/2
undo shutdown
eth-trunk 1
#
interface GigabitEthernet1/0/3
undo shutdown
eth-trunk 1
#
interface GigabitEthernet1/0/4
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.2.1.0 0.0.0.255
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 246


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls rsvp-te
#
interface GigabiEthernet1/0/1
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 3.3.3.3 0.0.0.0
network 10.2.1.0 0.0.0.255
#
return

1.1.3.43.7 Example for Configuring the IP-Prefix Tunnel Function to Automatically


Establish MPLS TE Tunnels in a Batch
This section provides an example for configuring the IP-prefix tunnel function to
automatically establish MPLS TE tunnels in a batch.

Networking Requirements
In Figure 1-17, a customer expects to establish MPLS TE tunnels to form a full-
mesh network and configure Auto FRR for each tunnel. Establishing tunnels one
by one is laborious and complex. In this case, the IP-prefix tunnel function can be
configured to automatically establish MPLS tunnels in a batch.

Figure 1-17 Configuring the IP-prefix tunnel function to automatically establish


MPLS TE tunnels in a batch

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 247


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Table 1-17 Interfaces and their IP addresses on each device

Device Interface Name IP Address and Mask


Name

LSRA Loopback0 1.1.1.9/32

GE 1/0/0 10.1.1.1/24

GE 1/0/1 10.1.2.1/24

LSRB Loopback0 2.2.2.9/32

GE 1/0/0 10.1.1.2/24

GE 1/0/1 10.1.3.1/24

LSRC Loopback0 3.3.3.9/32

GE 1/0/1 10.1.2.2/24

GE 1/0/2 10.1.3.2/24

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure IS-IS and IS-IS TE.
2. Enable MPLS TE and BFD globally on each device.
3. Configure an IP prefix list.
4. Configure a P2P TE tunnel template.
5. Configure the automatic primary tunnel function.

Data Preparation
To complete the configuration, you need the following data:
● IP address of each interface on each node: values shown in Figure 1-17
● LSR ID of each node: loopback addresses shown in Figure 1-17
● IS-IS process number (1), IS-IS level (level-2), and network entity name of
each node:
– LSRA: 10.0000.0000.0001.00
– LSRC: 10.0000.0000.0002.00
– LSRB: 10.0000.0000.0003.00
● IP prefix name on each node: te-tunnel
● P2P TE tunnel template name on each node: te-tunnel

Procedure
Step 1 Assign an IP address to each interface. For configuration details, see
Configuration Files in this section.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 248


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Configure IS-IS and IS-IS TE. For configuration details, see Configuration Files in
this section.

Step 3 Enable MPLS TE and Auto FRR globally on each device. For configuration details,
see Configuration Files in this section.

Step 4 Configure an IP prefix list.

# Configure LSRA.
[~LSRA] ip ip-prefix te-tunnel permit 2.2.2.9 32
[*LSRA] ip ip-prefix te-tunnel permit 3.3.3.9 32
[*LSRA] commit

The configurations on LSRB and LSRC are similar to the configuration on LSRA. For
configuration details, see Configuration Files in this section.

Step 5 Configure a P2P TE tunnel template.

# Configure LSRA.
[~LSRA] mpls te p2p-template te-tunnel
[*LSRA-te-p2p-template-te-tunnel] bandwidth ct0 1000
[*LSRA-te-p2p-template-te-tunnel] fast-reroute
[*LSRA-te-p2p-template-te-tunnel] commit
[~LSRA-te-p2p-template-te-tunnel] quit

The configurations on LSRB and LSRC are similar to the configuration on LSRA. For
configuration details, see Configuration Files in this section.

Step 6 Configure the automatic primary tunnel function.

# Configure LSRA.
[~LSRA] mpls te auto-primary-tunnel ip-prefix te-tunnel p2p-template te-tunnel
[*LSRA] commit

The configurations on LSRB and LSRC are similar to the configuration on LSRA. For
configuration details, see Configuration Files in this section.

Step 7 Verify the configuration.

# After completing the preceding configuration, run the display mpls te tunnel
command on LSRA. The command output shows that MPLS TE tunnels have been
established.
[~LSRA] display mpls te tunnel
* means the LSP is detour LSP
-------------------------------------------------------------------------------
Ingress LsrId Destination LSPID In/OutLabel R Tunnel-name
-------------------------------------------------------------------------------
1.1.1.9 2.2.2.9 16 -/3 I AutoTunnel32769
2.2.2.9 1.1.1.9 10 3/- E AutoTunnel32769
1.1.1.9 3.3.3.9 17 -/3 I AutoTunnel32770
3.3.3.9 1.1.1.9 9 3/- E AutoTunnel32770
1.1.1.9 2.2.2.9 13 -/48060 I AutoBypassTunnel_1.1.1.9_2.2.2.9_32771
2.2.2.9 3.3.3.9 8 48061/3 T AutoBypassTunnel_2.2.2.9_3.3.3.9_32771
3.3.3.9 2.2.2.9 7 48060/3 T AutoBypassTunnel_3.3.3.9_2.2.2.9_32771
1.1.1.9 3.3.3.9 15 -/48060 I AutoBypassTunnel_1.1.1.9_3.3.3.9_32772
2.2.2.9 1.1.1.9 9 3/- E AutoBypassTunnel_2.2.2.9_1.1.1.9_32772
3.3.3.9 1.1.1.9 8 3/- E AutoBypassTunnel_3.3.3.9_1.1.1.9_32772
-------------------------------------------------------------------------------
R: Role, I: Ingress, T: Transit, E: Egress

Obtain a tunnel name, for example, AutoTunnel32769, displayed in the Tunnel-


name column. Run the display mpls te tunnel-interface auto-primary-tunnel

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 249


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

AutoTunnel32769 command to view detailed information about the specified


tunnel.
----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.9
#
mpls
mpls te
mpls te auto-frr
mpls rsvp-te
mpls te cspf
#
mpls te p2p-template te-tunnel
record-route label
bandwidth ct0 1000
fast-reroute
#
mpls te auto-primary-tunnel ip-prefix te-tunnel p2p-template te-tunnel
#
isis 1
is-level level-2
cost-style wide
network-entity 10.0000.0000.0001.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack0
ip address 1.1.1.9 255.255.255.255
isis enable 1
#
ip ip-prefix te-tunnel index 10 permit 2.2.2.9 32
ip ip-prefix te-tunnel index 20 permit 3.3.3.9 32
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.9
#
mpls

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 250


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te
mpls te auto-frr
mpls rsvp-te
mpls te cspf
#
mpls te p2p-template te-tunnel
record-route label
bandwidth ct0 1000
fast-reroute
#
mpls te auto-primary-tunnel ip-prefix te-tunnel p2p-template te-tunnel
#
isis 1
is-level level-2
cost-style wide
network-entity 10.0000.0000.0002.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.3.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack0
ip address 2.2.2.9 255.255.255.255
isis enable 1
#
ip ip-prefix te-tunnel index 10 permit 1.1.1.9 32
ip ip-prefix te-tunnel index 20 permit 3.3.3.9 32
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.9
#
mpls
mpls te
mpls te auto-frr
mpls rsvp-te
mpls te cspf
#
mpls te p2p-template te-tunnel
record-route label
bandwidth ct0 1000
fast-reroute
#
mpls te auto-primary-tunnel ip-prefix te-tunnel p2p-template te-tunnel
#
isis 1
is-level level-2
cost-style wide
network-entity 10.0000.0000.0003.00

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 251


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

traffic-eng level-2
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.3.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack0
ip address 3.3.3.9 255.255.255.255
isis enable 1
#
ip ip-prefix te-tunnel index 10 permit 1.1.1.9 32
ip ip-prefix te-tunnel index 20 permit 2.2.2.9 32
#
return

1.1.3.43.8 Example for Configuring the Affinity Attribute of an MPLS TE Tunnel

Networking Requirements
On the network shown in Figure 1-18, the bandwidth of the link between LSRA
and LSRB is 50 Mbit/s. The maximum reservable bandwidth of other links is 100
Mbit/s, and BC0 bandwidth is 100 Mbit/s.
Two tunnels named Tunnel1 and Tunnel2 from LSRA to LSRC are established on
LSRA. Both tunnels require 40 Mbit/s of bandwidth. The combined bandwidth of
these two tunnels is 80 Mbit/s, higher than the bandwidth of 50 Mbit/s provided
by the shared link between LSRA and LSRB. In addition, Tunnel2 has a higher
priority than Tunnel1, and preemption is enabled.
In this example, administrative group attributes, affinities, and masks for links are
used to allow Tunnel1 and Tunnel2 on LSRA to use separate links between LSRB
and LSRC.

Figure 1-18 Networking diagram for an MPLS TE tunnel with the affinity property
NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 2/0/0, and GE 3/0/0,


respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 252


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Notes
None.

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure an RSVP-TE tunnel. See "Configuration Roadmap" in Example for
Configuring an RSVP-TE Tunnel.
2. Configure an administrative group attribute on an outbound interface of
every LSR along each RSVP TE tunnel.
3. Configure the affinity and mask for each tunnel based on the administrative
groups of links and networking requirements.
4. Set a priority value for each tunnel.

Data Preparation
To complete the configuration, you need the following data:
● OSPF process ID and area ID for every LSR
● Maximum reservable bandwidth and BC bandwidth for every link along each
tunnel
● Administrative groups for links between LSRA and LSRB and between LSRB
and LSRC
● Affinity and mask for each tunnel
● Tunnel interface number, source and destination IP addresses, bandwidth,
priority values, and RSVP-TE signaling protocol of the tunnel

Procedure
Step 1 Assign an IP address and its mask to every interface.
Assign an IP address and its mask to every physical interface and configure a
loopback interface address as an LSR ID on every node according to Figure 1-18.
For configuration details, see Configuration Files in this section.
Step 2 Configure an IGP.
Configure OSPF on every LSR to advertise every network segment route and host
route.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 253


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

For configuration details, see Configuration Files in this section.


Step 3 Configure basic MPLS functions, enable MPLS TE, RSVP-TE, and OSPF TE on every
LSR, and enable CSPF on the ingress.
# Configure basic MPLS functions and enable MPLS TE and RSVP-TE on every LSR.
The following example uses the command output on LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/0] quit

# Enable OSPF TE on every LSR. The following example uses the command output
on LSRA.
[*LSRA] ospf
[*LSRA-ospf-1] opaque-capability enable
[*LSRA-ospf-1] area 0
[*LSRA-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRA-ospf-1-area-0.0.0.0] quit
[*LSRA-ospf-1] quit

Repeat this step for LSRB and LSRC. For configuration details, see Configuration
Files in this section.
# Enable CSPF on the ingress LSRA.
[*LSRA] mpls
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] commit
[~LSRA-mpls] quit

Step 4 Configure MPLS TE attributes on the outbound interface of every LSR.


# Set the maximum reservable link bandwidth and BC0 bandwidth to 50 Mbit/s
on LSRA.
[~LSRA] interface gigabitethernet 1/0/0
[~LSRA-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 50000
[*LSRA-GigabitEthernet1/0/0] mpls te bandwidth bc0 50000

# Set the administrative group to 0x10001 on LSRA.


[*LSRA-GigabitEthernet1/0/0] mpls te link administrative group 10001
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Configure MPLS TE attributes on LSRB.


[~LSRB] interface gigabitethernet 2/0/0
[~LSRB-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRB-GigabitEthernet2/0/0] mpls te bandwidth bc0 100000
[*LSRB-GigabitEthernet2/0/0] mpls te link administrative group 10101
[*LSRB-GigabitEthernet2/0/0] quit
[*LSRB] interface gigabitethernet 3/0/0
[*LSRB-GigabitEthernet3/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRB-GigabitEthernet3/0/0] mpls te bandwidth bc0 100000
[*LSRB-GigabitEthernet3/0/0] mpls te link administrative group 10011
[*LSRB-GigabitEthernet3/0/0] commit
[~LSRB-GigabitEthernet3/0/0] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 254


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

After completing the configurations, run the display mpls te cspf tedb node
command on LSRA. TEDB information contains maximum available and reservable
bandwidth for every link, and the administrative group attribute in the Color field.
[~LSRA] display mpls te cspf tedb node
Router ID: 1.1.1.1
IGP Type: OSPF Process ID: 1 IGP Area: 0
MPLS-TE Link Count: 1
Link[1]:
OSPF Router ID: 192.168.1.1 Opaque LSA ID: 1.0.0.1
Interface IP Address: 192.168.1.1
DR Address: 192.168.1.2
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x10001
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 50000 (kbps)
Maximum Reservable Bandwidth: 50000 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 50000 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 50000 (kbps), [1]: 50000 (kbps)
[2]: 50000 (kbps), [3]: 50000 (kbps)
[4]: 50000 (kbps), [5]: 50000 (kbps)
[6]: 50000 (kbps), [7]: 50000 (kbps)
Router ID: 2.2.2.2
IGP Type: OSPF Process ID: 1 IGP Area: 0
MPLS-TE Link Count: 3
Link[1]:
OSPF Router ID: 192.168.1.2 Opaque LSA ID: 1.0.0.1
Interface IP Address: 192.168.1.2
DR Address: 192.168.1.2
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x0
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 0 (kbps)
Maximum Reservable Bandwidth: 0 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 0 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 0 (kbps), [1]: 0 (kbps)
[2]: 0 (kbps), [3]: 0 (kbps)
[4]: 0 (kbps), [5]: 0 (kbps)
[6]: 0 (kbps), [7]: 0 (kbps)
Link[2]:
OSPF Router ID: 192.168.1.2 Opaque LSA ID: 1.0.0.3
Interface IP Address: 192.168.2.1
DR Address: 192.168.2.1
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x10101
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 100000 (kbps)
Maximum Reservable Bandwidth: 100000 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 100000 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 100000 (kbps), [1]: 100000 (kbps)
[2]: 100000 (kbps), [3]: 100000 (kbps)
[4]: 100000 (kbps), [5]: 100000 (kbps)
[6]: 100000 (kbps), [7]: 100000 (kbps)
Link[3]:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 255


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

OSPF Router ID: 192.168.1.2 Opaque LSA ID: 1.0.0.2


Interface IP Address: 192.168.3.1
DR Address: 192.168.3.1
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x10011
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 100000 (kbps)
Maximum Reservable Bandwidth: 100000 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 100000 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 100000 (kbps), [1]: 100000 (kbps)
[2]: 100000 (kbps), [3]: 100000 (kbps)
[4]: 100000 (kbps), [5]: 100000 (kbps)
[6]: 100000 (kbps), [7]: 100000 (kbps)
Router ID: 3.3.3.3
IGP Type: OSPF Process ID: 1 IGP Area: 0
MPLS-TE Link Count: 2
Link[1]:
OSPF Router ID: 4.4.4.4 Opaque LSA ID: 1.0.0.2
Interface IP Address: 192.168.2.2
DR Address: 192.168.2.1
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x0
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 0 (kbps)
Maximum Reservable Bandwidth: 0 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 0 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 0 (kbps), [1]: 0 (kbps)
[2]: 0 (kbps), [3]: 0 (kbps)
[4]: 0 (kbps), [5]: 0 (kbps)
[6]: 0 (kbps), [7]: 0 (kbps)
Link[2]:
OSPF Router ID: 4.4.4.4 Opaque LSA ID: 1.0.0.1
Interface IP Address: 192.168.3.2
DR Address: 192.168.3.1
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x0
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 0 (kbps)
Maximum Reservable Bandwidth: 0 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 0 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 0 (kbps), [1]: 0 (kbps)
[2]: 0 (kbps), [3]: 0 (kbps)
[4]: 0 (kbps), [5]: 0 (kbps)
[6]: 0 (kbps), [7]: 0 (kbps)

Step 5 Configure an MPLS TE tunnel.


# Configure a tunnel named Tunnel1 on LSRA.
[~LSRA] interface tunnel1
[*LSRA-Tunnel1] ip address unnumbered interface loopback 1
[*LSRA-Tunnel1] tunnel-protocol mpls te
[*LSRA-Tunnel1] destination 3.3.3.3
[*LSRA-Tunnel1] mpls te tunnel-id 1
[*LSRA-Tunnel1] mpls te bandwidth ct0 40000

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 256


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRA-Tunnel1] mpls te affinity property 10101 mask 11011


[*LSRA-Tunnel1] commit
[~LSRA-Tunnel1] quit

The default setup and hold priorities (lowest: 7) are used.


The mask of Tunnel1's affinity attribute is 0x11011. As such, the first two bits of
the affinity attribute value need to be compared, so do the last two bits. In
contrast, the third bit in the middle is ignored. Because the affinity value of
Tunnel1 is 0x10101, this tunnel selects the link with the second and fourth bits of
the administrative group attribute being 0 and at least one of the first and fifth
bits being 1. According to the preceding rules, if the value of the administrative
group attribute is 0x10001, 0x10000, 0x00001, 0x10101, 0x10100, or 0x00101, the
value meets requirements. Tunnel1 then selects the link between GE 1/0/0 of LSRA
(the administrative group value is 0x10001) and GE 2/0/0 of LSRB (the
administrative group value is 0x10101).
After completing the configuration, run the display mpls te tunnel-interface
command on LSRA. The tunnel status is displayed.
[~LSRA] display mpls te tunnel-interface
Tunnel Name : Tunnel1
Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID :1
Ingress LSR ID : 1.1.1.1 Egress LSR ID: 3.3.3.3
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid :1
Tie-Breaking Policy : None Metric Type : None
Bfd Cap : None
Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : 0 percent
Current Collected BW: 0 kbps Auto BW Freq : 0
Min BW : 0 kbps Max BW : 0 kbps
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name:
Tunnel Group :-
Interfaces Protected: -
Excluded IP Address : -
Referred LSP Count : 0
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status : Up Oam Status : -
IPTN InLabel :- Tunnel BFD Status : -
BackUp LSP Type : None BestEffort : Enabled
Secondary HopLimit : -
BestEffort HopLimit : -
Secondary Explicit Path Name: -
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : -
P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 257


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Path Verification : --
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : No

Primary LSP ID : 1.1.1.1:19


LSP State : UP LSP Type : Primary
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : - Hop Limit: -
Record Route : Disabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal
Path Setup Type : CSPF
Create Modify LSP Reason: -
Self-Ping Status : -

Run the display mpls te cspf tedb node command on LSRA. TEDB information
contains bandwidth for every link.
[~LSRA] display mpls te cspf tedb node
Router ID: 1.1.1.1
IGP Type: OSPF Process ID: 1 IGP Area: 0
MPLS-TE Link Count: 1
Link[1]:
OSPF Router ID: 192.168.1.1 Opaque LSA ID: 1.0.0.1
Interface IP Address: 192.168.1.1
DR Address: 192.168.1.2
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x10001
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 50000 (kbps)
Maximum Reservable Bandwidth: 50000 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 50000 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 50000 (kbps), [1]: 50000 (kbps)
[2]: 50000 (kbps), [3]: 50000 (kbps)
[4]: 50000 (kbps), [5]: 50000 (kbps)
[6]: 50000 (kbps), [7]: 10000 (kbps)
Router ID: 2.2.2.2
IGP Type: OSPF Process ID: 1 IGP Area: 0
MPLS-TE Link Count: 3
Link[1]:
OSPF Router ID: 192.168.1.2 Opaque LSA ID: 1.0.0.1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 258


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Interface IP Address: 192.168.1.2


DR Address: 192.168.1.2
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x0
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 0 (kbps)
Maximum Reservable Bandwidth: 0 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 0 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 0 (kbps), [1]: 0 (kbps)
[2]: 0 (kbps), [3]: 0 (kbps)
[4]: 0 (kbps), [5]: 0 (kbps)
[6]: 0 (kbps), [7]: 0 (kbps)
Link[2]:
OSPF Router ID: 192.168.1.2 Opaque LSA ID: 1.0.0.3
Interface IP Address: 192.168.2.1
DR Address: 192.168.2.1
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x10101
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 100000 (kbps)
Maximum Reservable Bandwidth: 100000 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 100000 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 100000 (kbps), [1]: 100000 (kbps)
[2]: 100000 (kbps), [3]: 100000 (kbps)
[4]: 100000 (kbps), [5]: 100000 (kbps)
[6]: 100000 (kbps), [7]: 60000 (kbps)
Link[3]:
OSPF Router ID: 192.168.1.2 Opaque LSA ID: 1.0.0.2
Interface IP Address: 192.168.3.1
DR Address: 192.168.3.1
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x10011
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 100000 (kbps)
Maximum Reservable Bandwidth: 100000 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 100000 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 100000 (kbps), [1]: 100000 (kbps)
[2]: 100000 (kbps), [3]: 100000 (kbps)
[4]: 100000 (kbps), [5]: 100000 (kbps)
[6]: 100000 (kbps), [7]: 100000 (kbps)
Router ID: 3.3.3.3
IGP Type: OSPF Process ID: 1 IGP Area: 0
MPLS-TE Link Count: 2
Link[1]:
OSPF Router ID: 4.4.4.4 Opaque LSA ID: 1.0.0.2
Interface IP Address: 192.168.2.2
DR Address: 192.168.2.1
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x0
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 0 (kbps)
Maximum Reservable Bandwidth: 0 (kbps)
Operational Mode of Router: TE

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 259


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Bandwidth Constraints: Local Overbooking Multiplier:


BC[0]: 0 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 0 (kbps), [1]: 0 (kbps)
[2]: 0 (kbps), [3]: 0 (kbps)
[4]: 0 (kbps), [5]: 0 (kbps)
[6]: 0 (kbps), [7]: 0 (kbps)
Link[2]:
OSPF Router ID: 4.4.4.4 Opaque LSA ID: 1.0.0.1
Interface IP Address: 192.168.3.2
DR Address: 192.168.3.1
IGP Area: 0
Link Type: Multi-access Link Status: Active
IGP Metric: 1 TE Metric: 1 Color: 0x0
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 0 (kbps)
Maximum Reservable Bandwidth: 0 (kbps)
Operational Mode of Router: TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 0 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 0 (kbps), [1]: 0 (kbps)
[2]: 0 (kbps), [3]: 0 (kbps)
[4]: 0 (kbps), [5]: 0 (kbps)
[6]: 0 (kbps), [7]: 0 (kbps)

The BW Unreserved field indicates the remaining bandwidth reserved for tunnel
links with various priorities. The command output shows that the value of [7]
changes on the outbound interface of each node along the tunnel, indicating that
bandwidth of 40 Mbit/s has been successfully reserved for a tunnel. The
bandwidth information also matches the path of a tunnel. This proves that the
affinity and mask match the administrative group of every link.
Alternatively, run the display mpls te tunnel diagnostic command to check the
outbound interfaces of links along the tunnel on LSRB.
[~LSRB]display mpls te tunnel diagnostic
* means the LSP is detour LSP
--------------------------------------------------------------------------------
LSP-Id Destination In/Out-If
--------------------------------------------------------------------------------
1.1.1.1:1:3 3.3.3.3 GE1/0/0/GE2/0/0
--------------------------------------------------------------------------------

# Configure a tunnel named Tunnel2 on LSRA.


[~LSRA] interface tunnel2
[*LSRA-Tunnel2] ip address unnumbered interface loopback 1
[*LSRA-Tunnel2] tunnel-protocol mpls te
[*LSRA-Tunnel2] destination 3.3.3.3
[*LSRA-Tunnel2] mpls te tunnel-id 101
[*LSRA-Tunnel2] mpls te bandwidth ct0 40000
[*LSRA-Tunnel2] mpls te affinity property 10011 mask 11101
[*LSRA-Tunnel2] mpls te priority 6
[*LSRA-Tunnel2] commit
[~LSRA-Tunnel2] quit

The mask of Tunnel2's affinity attribute is 0x11101. As such, the first three bits of
the affinity attribute value need to be compared, so do the last bit. In contrast, the
fourth bit is ignored. Because the affinity value of Tunnel2 is 0x10011, this tunnel
selects the link with the second and third bits of the administrative group attribute
being 0 and at least one of the first and fifth bits being 1. According to the
preceding rules, if the value of the administrative group attribute is 0x10001,
0x10000, 0x00001, 0x10011, 0x10010, or 0x00011, the value meets requirements.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 260


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Tunnel2 then selects the link between GE 1/0/0 of LSRA (the administrative group
value is 0x10001) and GE 3/0/0 of LSRB (the administrative group value is
0x10011).
Step 6 Verify the configuration.
After completing the configurations, run the display interface tunnel or display
mpls te tunnel-interface command on LSRA. The status of Tunnel1 is Down. This
is because since the maximum reservable bandwidth is insufficient, Tunnel2 is of a
higher priority and has preempted the bandwidth reserved for Tunnel1.
Run the display mpls te cspf tedb node command. TEDB information contains
the bandwidth for every link, which indicates that Tunnel2 indeed passes through
GE 3/0/0 of LSRB.
Alternatively, run the display mpls te tunnel diagnostic command to check
outbound interfaces of links along the tunnel on LSRB.
[~LSRB] display mpls te tunnel diagnostic
* means the LSP is detour LSP
--------------------------------------------------------------------------------
LSP-Id Destination In/Out-If
--------------------------------------------------------------------------------
1.1.1.1:1:4 3.3.3.3 GE1/0/0/GE3/0/0
--------------------------------------------------------------------------------

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 1.1.1.1 0.0.0.0
network 192.168.1.0 0.0.0.255
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 192.168.1.1 255.255.255.0
mpls
mpls te
mpls te link administrative group 10001
mpls te bandwidth max-reservable-bandwidth 50000
mpls te bandwidth bc0 50000
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 261


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te tunnel-id 1
mpls te affinity property 10101 mask 11011
mpls te bandwidth ct0 40000
#
interface Tunnel2
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te tunnel-id 101
mpls te priority 6
mpls te affinity property 10011 mask 11101
mpls te bandwidth ct0 40000
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 2.2.2.2 0.0.0.0
network 192.168.1.0 0.0.0.255
network 192.168.2.0 0.0.0.255
network 192.168.3.0 0.0.0.255
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 192.168.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 192.168.2.1 255.255.255.0
mpls
mpls te
mpls te link administrative group 10101
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 192.168.3.1 255.255.255.0
mpls
mpls te
mpls te link administrative group 10011
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
return
● LSRC configuration file
#
sysname LSRC
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 262


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls lsr-id 3.3.3.3


#
mpls
mpls te
mpls rsvp-te
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 3.3.3.3 0.0.0.0
network 192.168.2.0 0.0.0.255
network 192.168.3.0 0.0.0.255
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 192.168.2.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 192.168.3.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
return

1.1.3.43.9 Example for Configuring SRLGs in TE FRR

Networking Requirements
Figure 1-19 illustrates an MPLS network. An RSVP-TE tunnel is established along
the path PE1 -> P1 -> PE2 between PE1 and PE2. The outbound interface of the
primary tunnel on P1 is GE 2/0/0.
The links on network segments of 10.2.1.0/30 and 10.5.1.0/30 are in SRLG1.
TE Auto FRR is required on P1 to improve reliability. The automatic bypass tunnel
uses links in an SRLG different from those used by the primary tunnel.

Figure 1-19 Networking diagram for SRLGs in TE FRR


NOTE

Interfaces 1 through 4 in this example represent GE 1/0/0, GE 1/0/1, GE 2/0/0, and GE


2/0/1, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 263


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Notes
None.

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign IP addresses to interfaces and configure an IGP on all LSRs to
implement network connectivity.
2. Enable MPLS, MPLS TE, and RSVP-TE on all LSRs and their interfaces.
3. Configure IS-IS TE on all LSRs and enable CSPF on PE1 and P1.
4. Set SRLG numbers for SRLG member interfaces.
5. Configure an SRLG mode in the system view on the PLR.
6. Establish an RSVP-TE tunnel between PE1 and PE2 over an explicit path PE1 -
> P1 -> PE2.
7. Enable TE FRR in the tunnel interface view and TE Auto FRR on the outbound
interface of the primary tunnel on the PLR.

Data Preparation
To complete the configuration, you need an SRLG number.

Configuration Procedure
1. Assign an IP address and its mask to every interface.
Assign an IP address and its mask to every physical interface and configure a
loopback interface address as an LSR ID on every LSR according to Figure
1-19.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 264


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

For configuration details, see Configuration Files in this section.


2. Configure IGP.
Configure OSPF or IS-IS on every node to implement connectivity between
them. IS-IS is used in this example. IS-IS is used as an example.
For configuration details, see Configuration Files in this section.
3. Configure basic MPLS functions.
Set an LSR ID for every node and enable MPLS in the system and interface
views.
For configuration details, see Configuration Files in this section.
4. Configure MPLS TE and RSVP-TE.
Enable MPLS TE and RSVP-TE in the MPLS and interface views of every node.
For configuration details, see Configuration Files in this section.
5. Configure IS-IS TE and CSPF.
Configure IS-IS TE on each node and enable CSPF on PE1 and P1. For
configuration details, see Configuration Files in this section.
6. Configure an SRLG.
# Add links with network segment addresses 10.2.1.0/30 and 10.5.1.0/30 to
SRLG1 on P1.
[~P1] interface gigabitethernet 2/0/0
[~P1-GigabitEthernet2/0/0] mpls te srlg 1
[*P1-GigabitEthernet2/0/0] quit
[*P1] interface gigabitethernet 1/0/1
[*P1-GigabitEthernet1/0/1] mpls te srlg 1
[*P1-GigabitEthernet1/0/1] commit
[~P1-GigabitEthernet1/0/1] quit

# Run the display mpls te srlg command on P1. Information about the SRLG
and SRLG member interfaces is displayed. The following example uses the
command output on P1.
[~P1] display mpls te srlg 1
SRLG 1: GE2/0/0 GE1/0/1

# Run the display mpls te link-administration srlg-information command


on P1. Mappings between interfaces and SRLGs are displayed.
[~P1] display mpls te link-administration srlg-information

SRLGs on GigabitEthernet2/0/0:
1

SRLGs on GigabitEthernet1/0/1:
1

# Run the display mpls te cspf tedb srlg command on P1. Information about
the SRLG TEDB is displayed.
[~P1] display mpls te cspf tedb srlg 1
Interface-Address IGP-Type Area
10.2.1.1 ISIS 1
10.5.1.1 ISIS 1
10.2.1.1 ISIS 2
10.5.1.1 ISIS 2

7. Configure an explicit path for a primary tunnel.


# Specify an explicit path for the primary tunnel on PE1.
<PE1> system-view
[~PE1] explicit-path main
[*PE1-explicit-path-main] next hop 10.1.1.2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 265


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-explicit-path-main] next hop 10.2.1.2


[*PE1-explicit-path-main] next hop 5.5.5.5
[*PE1-explicit-path-main] commit
[~PE1-explicit-path-main] quit
# Run the display explicit-path main command on PE1. Information about
the explicit path for the primary tunnel is displayed.
[~PE1] display explicit-path main
Path Name : main Path Status : Enabled
1 10.1.1.2 Strict Include
2 10.2.1.2 Strict Include
3 5.5.5.5 Strict Include
8. Configure the tunnel interface for the primary CR-LSP.
# Create a tunnel interface on PE1 and specify the explicit path and tunnel
bandwidth.
[~PE1] interface tunnel1
[*PE1-Tunnel1] ip address unnumbered interface loopback 1
[*PE1-Tunnel1] tunnel-protocol mpls te
[*PE1-Tunnel1] destination 5.5.5.5
[*PE1-Tunnel1] mpls te tunnel-id 100
[*PE1-Tunnel1] mpls te path explicit-path main
[*PE1-Tunnel1] mpls te bandwidth ct0 10000
[*PE1-Tunnel1] commit
Run the display interface tunnel1 command on PE1. The command output
shows that the tunnel is Up.
[~PE1] display interface tunnel1
Tunnel1 current state : UP (ifindex: 26)
Line protocol current state : UP
...

NOTE

The preceding information is only a part of command output.


9. Configure TE Auto FRR.
# Enable TE Auto FRR on GE 2/0/0 of P1.
[~P1] interface gigabitethernet 2/0/0
[~P1-GigabitEthernet2/0/0] mpls te auto-frr link
[*P1-GigabitEthernet2/0/0] commit
[~P1-GigabitEthernet2/0/0] quit
# Enable TE FRR on the tunnel interface of PE1.
[~PE1] interface tunnel1
[~PE1-Tunnel1] mpls te fast-reroute
[*PE1-Tunnel1] commit
Run the display mpls te tunnel path Tunnel1 command on PE1. The
outbound interface (10.2.1.1) on P1 along the primary tunnel is enabled with
Local-Protection.
[~PE1] display mpls te tunnel path Tunnel1
Tunnel Interface Name : Tunnel1
Lsp ID : 5.5.5.5 :100 :1
Hop Information
Hop 0 10.1.1.1
Hop 1 10.1.1.2 Label 65536
Hop 2 1.1.1.1 Label 65536
Hop 3 10.2.1.1 Local-Protection available
Hop 4 10.2.1.2 Label 3
Hop 5 5.5.5.5 Label 3
10. Verify the configuration.
# Run the display mpls te tunnel name Tunnel1 verbose command on P1.
The primary tunnel is bound to a bypass tunnel named Tunnel12, and the
FrrNextHop field displays 5.5.5.5.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 266


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~P1] display mpls te tunnel name Tunnel1 verbose


No : 1
Tunnel-Name : Tunnel1
Tunnel Interface Name : Tunnel1
TunnelIndex : -
Session ID : 100 LSP ID : 1
Lsr Role : Transit
Ingress LSR ID : 4.4.4.4
Egress LSR ID : 5.5.5.5
In-Interface : GE1/0/0
Out-Interface : GE2/0/0
Sign-Protocol : RSVP TE Resv Style : SE
IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0
IncludeAllAff : 0x0
ER-Hop Table Index : - AR-Hop Table Index: 2
C-Hop Table Index : -
PrevTunnelIndexInSession: - NextTunnelIndexInSession: -
PSB Handle : 65546
Created Time : 2010/10/15 09:52:03
--------------------------------
DS-TE Information
--------------------------------
Bandwidth Reserved Flag : Reserved
CT0 Bandwidth(Kbit/sec) : 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec) : 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec) : 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec) : 0 CT7 Bandwidth(Kbit/sec): 0
Setup-Priority : 7 Hold-Priority : 7
--------------------------------
FRR Information
--------------------------------
Primary LSP Info
Bypass In Use : Not Used
Bypass Tunnel Id : 67141670
BypassTunnel : Tunnel Index[AutoTunnel67141670], InnerLabel[3]
Bypass Lsp ID : 1 FrrNextHop : 5.5.5.5
ReferAutoBypassHandle : -
FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: -
Bypass Attribute(Not configured)
Setup Priority : - Hold Priority : -
HopLimit : - Bandwidth : -
IncludeAnyGroup : - ExcludeAnyGroup : -
IncludeAllGroup : -
Bypass Unbound Bandwidth Info(Kbit/sec)
CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: -
CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: -
CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: -
CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: -
--------------------------------
BFD Information
--------------------------------
NextSessionTunnelIndex : - PrevSessionTunnelIndex: -
NextLspId : - PrevLspId : -

# Run the display mpls te tunnel path AutoTunnel67141670 command on


P1. The automatic bypass tunnel is along the path P1 -> P2 -> PE2.
[~P1] display mpls te tunnel path AutoTunnel67141670
Tunnel Interface Name : AutoTunnel67141670
Lsp ID : 1.1.1.1 :67141670 :1
Hop Information
Hop 0 10.3.1.1
Hop 1 10.3.1.2
Hop 2 2.2.2.2
Hop 3 10.4.1.1
Hop 4 10.4.1.2
Hop 5 5.5.5.5

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 267


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Files
● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
explicit-path main
next hop 10.1.1.2
next hop 10.2.1.2
next hop 5.5.5.5
#
isis 1
cost-style wide
network-entity 10.0000.0000.0004.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 5.5.5.5
mpls te tunnel-id 100
mpls te record-route
mpls te bandwidth ct0 10000
mpls te path explicit-path main
mpls te fast-reroute
#
return

● P1 configuration file
#
sysname P1
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
mpls te srlg path-calculation preferred
#
isis 1
cost-style wide
network-entity 10.0000.0000.0001.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
mpls
mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 268


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
mpls
mpls te
mpls te auto-frr link
mpls te srlg 1
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.5.1.1 255.255.255.252
mpls
mpls te
mpls te srlg 1
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/1
undo shutdown
ip address 10.3.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
return
● P2 configuration file
#
sysname P2
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0002.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 269


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
return
● PE2 configuration file
#
sysname PE2
#
mpls lsr-id 5.5.5.5
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0006.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.5.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.4.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
isis enable 1
#
return

1.1.3.43.10 Example for Configuring SRLGs in Hot Standby

Networking Requirements
Figure 1-20 illustrates an MPLS network. An RSVP-TE tunnel is established
between PE1 and PE2 over an explicit path PE1 -> P4 -> PE2.
The path PE1 -> P1 -> P2 -> P4 and the path from PE1 to P4 are in SRLG1.
Hot standby is enabled. The primary and hot-standby CR-LSP must be in different
SRLGs.

Figure 1-20 Networking diagram for SRLGs in hot standby


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 1/0/1, and GE 2/0/0,


respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 270


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Notes
None.

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure IP addresses and an IGP on all LSRs to implement network


connectivity.
2. Enable MPLS, MPLS TE, and RSVP-TE on all LSRs and their interfaces.
3. Establish an RSVP-TE tunnel between PE1 and PE2 over an explicit path PE1 -
> P4 -> PE2.
4. Set SRLG numbers for SRLG member interfaces.
5. Configure an SRLG mode in the system view on the ingress.
6. Configure CR-LSP hot standby.

Data Preparation
To complete the configuration, you need the following data:

● SRLG numbers
● Either preferred or strict SRLG mode

Configuration Procedure
1. Assign an IP address and its mask to every interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 271


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Assign an IP address and its mask to every physical interface and configure a
loopback interface address as an LSR ID on every LSR according to Figure
1-20.
For configuration details, see Configuration Files in this section.
2. Configure an IGP.
Configure OSPF or IS-IS on every node to implement IP connectivity between
them. IS-IS is used as an example.
For configuration details, see Configuration Files in this section.
3. Configure basic MPLS functions.
Set an MPLS LSR ID for every node and enable MPLS in the system and
interface views.
For configuration details, see Configuration Files in this section.
4. Configure MPLS TE and RSVP-TE.
Enable MPLS TE and RSVP-TE in the system and interface views of each node.
For configuration details, see Configuration Files in this section.
5. Configure IS-IS TE and CSPF.
Configure IS-IS TE on each node and enable CSPF on PE1. For configuration
details, see Configuration Files in this section.
6. Configure an explicit path for the primary CR-LSP.
# Configure the explicit path for the primary CR-LSP on PE1.
<PE1> system-view
[~PE1] explicit-path main
[*PE1-explicit-path-main] next hop 10.3.1.2
[*PE1-explicit-path-main] next hop 10.6.1.2
[*PE1-explicit-path-main] next hop 6.6.6.6
[*PE1-explicit-path-main] commit
[~PE1-explicit-path-main] quit

# Run the display explicit-path main command on PE1. Information about


the explicit path for the primary CR-LSP is displayed.
[~PE1] display explicit-path main
Path Name : main Path Status : Enabled
1 10.3.1.2 Strict Include
2 10.6.1.2 Strict Include
3 6.6.6.6 Strict Include

7. Configure the tunnel interface for the primary CR-LSP.


# Create a tunnel interface on PE1 and specify the explicit path and tunnel
bandwidth.
[~PE1] interface tunnel1
[*PE1-Tunnel1] ip address unnumbered interface loopback 1
[*PE1-Tunnel1] tunnel-protocol mpls te
[*PE1-Tunnel1] destination 6.6.6.6
[*PE1-Tunnel1] mpls te tunnel-id 100
[*PE1-Tunnel1] mpls te path explicit-path main
[*PE1-Tunnel1] mpls te bandwidth ct0 10000
[*PE1-Tunnel1] commit

Run the display interface tunnel1 command on PE1. The tunnel is Up.
[~PE1] display interface tunnel1
Tunnel1 current state : UP (ifindex: 26)
Line protocol current state : UP
...

The preceding information is only a part of command output.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 272


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

8. Configure an SRLG.
# Add links from PE1 to P1 and from PE1 to P4 to SRLG1.
[~PE1] interface gigabitethernet 1/0/0
[~PE1-GigabitEthernet1/0/0] mpls te srlg 1
[*PE1-GigabitEthernet1/0/0] quit
[*PE1] interface gigabitethernet 2/0/0
[*PE1-GigabitEthernet2/0/0] mpls te srlg 1
[*PE1-GigabitEthernet2/0/0] commit
# Configure an SRLG mode on PE1.
[~PE1] mpls
[~PE1-mpls] mpls te srlg path-calculation strict
[*PE1-mpls] commit
[~PE1-mpls] quit
# Run the display mpls te srlg command on P1. Information about the SRLG
and SRLG member interfaces is displayed. The following example uses the
command output on P1.
[~P1] display mpls te srlg all
Total SRLG supported : 1024
Total SRLG configured : 1

SRLG 1: GE1/0/0 GE2/0/0


# Run the display mpls te link-administration srlg-information command
on PE1. Mappings between interfaces and SRLGs are displayed.
[~PE1] display mpls te link-administration srlg-information

SRLGs on GigabitEthernet1/0/0:
1

SRLGs on GigabitEthernet2/0/0:
1
# Run the display mpls te cspf tedb srlg command. Information about the
SRLG TEDB is displayed. The following example uses the command output on
PE1.
[~PE1] display mpls te cspf tedb srlg 1
Interface-Address IGP-Type Area
10.1.1.1 ISIS Level-1
10.3.1.1 ISIS Level-1
10.1.1.1 ISIS Level-2
10.3.1.1 ISIS Level-2
9. Configure hot standby on the ingress PE1.
# Configure PE1.
[~PE1] interface tunnel1
[~PE1-Tunnel1] mpls te backup hot-standby
[~PE1-Tunnel1] commit
# Run the display mpls te hot-standby state interface tunnel1 command.
Information about hot standby is displayed.
10. Verify the configuration.
# Run the shutdown command on GE 1/0/1 on PE1.
[~PE1] interface gigabitethernet 1/0/1
[~PE1-GigabitEthernet1/0/1] shutdown
[*PE1-GigabitEthernet1/0/1] commit
[~PE1-GigabitEthernet1/0/1] quit
# Run the display mpls te hot-standby state interface tunnel1 command
on PE1. The hot-standby CR-LSP index is 0x0. The command output shows
that no hot-standby CR-LSP is established, preventing the hot-standby CR-LSP
from sharing the same SRLG with the primary CR-LSP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 273


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Files
● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 5.5.5.5
#
mpls
mpls te
mpls te srlg path-calculation strict
mpls te cspf
mpls rsvp-te
#
explicit-path main
next hop 10.3.1.2
next hop 10.6.1.2
next hop 6.6.6.6
#
isis 1
cost-style wide
network-entity 10.0000.0000.0005.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
mpls
mpls te
mpls te srlg 1
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
mpls
mpls te
mpls te srlg 1
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.8.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 6.6.6.6
mpls te tunnel-id 100
mpls te record-route
mpls te bandwidth ct0 10000
mpls te backup hot-standby
mpls te path explicit-path main
#
return

● P1 configuration file
#
sysname P1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 274


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0001.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
return
● P2 configuration file
#
sysname P2
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0002.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.5.1.1 255.255.255.252
mpls
mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 275


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
return
● P3 configuration file
#
sysname P3
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0003.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.7.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return
● P4 configuration file
#
sysname P4
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0004.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 276


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

undo shutdown
ip address 10.5.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.6.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
return

● PE2 configuration file


#
sysname PE2
#
mpls lsr-id 6.6.6.6
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0006.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.6.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.7.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.8.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 6.6.6.6 255.255.255.255
isis enable 1
#
return

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 277


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.43.11 Example for Configuring an Inter-area Tunnel

Networking Requirements
Figure 1-21 illustrates a network:
● IS-IS runs on LSRA, LSRB, LSRC, LSRD, and LSRE.
– LSRA and LSRE are level-1 routers.
– LSRB and LSRD are level-1-2 routers.
– LSRC is a level-2 router.
● RSVP-TE is used to establish a TE tunnel between LSRA and LSRE over IS-IS
areas. The bandwidth for the TE tunnel is 20 Mbit/s.
● Both the maximum reservable bandwidth and BC0 bandwidth for every link
along the TE tunnel are 100 Mbit/s.

Figure 1-21 Inter-area tunnel networking


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 2/0/0, respectively.

Configuration Notes
None.

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address to every interface and configure a loopback address that
is used as an LSR ID on every LSR.
2. Enable IS-IS globally and enable IS-IS TE.
3. Configure a loose explicit path on which LSRB, LSRC, and LSRD functioning as
area border routers (ABRs) are located.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 278


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

4. Configure MPLS RSVP-TE.


5. Set bandwidth attributes for every outbound interface on every LSR along the
TE tunnel.
6. Create a tunnel interface on the ingress and configure the source and
destination IP addresses, protocol, ID, RSVP-TE signaling protocol, and
bandwidth for the tunnel.

Data Preparation
To complete the configuration, you need the following data:
● Origin AS number, IS-IS level, and area ID of every LSR
● Maximum reservable bandwidth and BC bandwidth for every link along the
TE tunnel
● Tunnel interface number, IP address, destination address, tunnel ID, signaling
protocol (RSVP-TE), and tunnel bandwidth

Procedure
Step 1 Assign an IP address and its mask to every interface.
Assign an IP address and a mask to each interface according to Figure 1-21. The
configuration details are not provided.
Step 2 Configure IS-IS.
# Configure LSRA.
[~LSRA] isis 1
[*LSRA-isis-1] network-entity 00.0005.0000.0000.0001.00
[*LSRA-isis-1] is-level level-1
[*LSRA-isis-1] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] isis enable 1
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] interface loopback 1
[*LSRA-LoopBack1] isis enable 1
[*LSRA-LoopBack1] commit
[~LSRA-LoopBack1] quit

# Configure LSRB.
[~LSRB] isis 1
[*LSRB-isis-1] network-entity 00.0005.0000.0000.0002.00
[*LSRB-isis-1] is-level level-1-2
[*LSRB-isis-1] import-route isis level-2 into level-1
[*LSRB-isis-1] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-GigabitEthernet1/0/0] isis enable 1
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 2/0/0
[*LSRB-GigabitEthernet2/0/0] isis enable 1
[*LSRB-GigabitEthernet2/0/0] quit
[*LSRB] interface loopback 1
[*LSRB-LoopBack1] isis enable 1
[*LSRB-LoopBack1] commit
[~LSRB-LoopBack1] quit

# Configure LSRC.
[~LSRC] isis 1
[*LSRC-isis-1] network-entity 00.0006.0000.0000.0003.00

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 279


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRC-isis-1] is-level level-2


[*LSRC-isis-1] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] isis enable 1
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] interface gigabitethernet 2/0/0
[*LSRC-GigabitEthernet2/0/0] isis enable 1
[*LSRC-GigabitEthernet2/0/0] quit
[*LSRC] interface loopback 1
[*LSRC-LoopBack1] isis enable 1
[*LSRC-LoopBack1] commit
[~LSRC-LoopBack1] quit

# Configure LSRD.
[~LSRD] isis 1
[*LSRD-isis-1] network-entity 00.0007.0000.0000.0004.00
[*LSRD-isis-1] is-level level-1-2
[*LSRD-isis-1] import-route isis level-2 into level-1
[*LSRD-isis-1] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-GigabitEthernet1/0/0] isis enable 1
[*LSRD-GigabitEthernet1/0/0] quit
[*LSRD] interface gigabitethernet 2/0/0
[*LSRD-GigabitEthernet2/0/0] isis enable 1
[*LSRD-GigabitEthernet2/0/0] quit
[*LSRD] interface loopback 1
[*LSRD-LoopBack1] isis enable 1
[*LSRD-LoopBack1] commit
[~LSRD-LoopBack1] quit

# Configure LSRE.
[~LSRE] isis 1
[*LSRE-isis-1] network-entity 00.0007.0000.0000.0005.00
[*LSRE-isis-1] is-level level-1
[*LSRE-isis-1] quit
[*LSRE] interface gigabitethernet 1/0/0
[*LSRE-GigabitEthernet1/0/0] isis enable 1
[*LSRE-GigabitEthernet1/0/0] quit
[*LSRE] interface loopback 1
[*LSRE-LoopBack1] isis enable 1
[*LSRE-LoopBack1] commit
[~LSRE-LoopBack1] quit

After completing the configurations, run the display ip routing-table command


on every node. All nodes have learned routes from one another.
Step 3 Configure basic MPLS functions and enable MPLS TE, RSVP-TE, and CSPF on the
ingress of the TE tunnel.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Configure LSRB.
[~LSRB] mpls lsr-id 2.2.2.2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 280


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRB] mpls
[*LSRB-mpls] mpls te
[*LSRB-mpls] mpls rsvp-te
[*LSRB-mpls] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] mpls te
[*LSRB-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 2/0/0
[*LSRB-GigabitEthernet2/0/0] mpls
[*LSRB-GigabitEthernet2/0/0] mpls te
[*LSRB-GigabitEthernet2/0/0] mpls rsvp-te
[*LSRB-GigabitEthernet2/0/0] commit
[~LSRB-GigabitEthernet2/0/0] quit

# Configure LSRC.
[~LSRC] mpls lsr-id 3.3.3.3
[*LSRC] mpls
[*LSRC-mpls] mpls te
[*LSRC-mpls] mpls rsvp-te
[*LSRC-mpls] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] mpls
[*LSRC-GigabitEthernet1/0/0] mpls te
[*LSRC-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] interface gigabitethernet 2/0/0
[*LSRC-GigabitEthernet2/0/0] mpls
[*LSRC-GigabitEthernet2/0/0] mpls te
[*LSRC-GigabitEthernet2/0/0] mpls rsvp-te
[*LSRC-GigabitEthernet2/0/0] commit
[~LSRC-GigabitEthernet2/0/0] quit

# Configure LSRD.
[~LSRD] mpls lsr-id 4.4.4.4
[*LSRD] mpls
[*LSRD-mpls] mpls te
[*LSRD-mpls] mpls rsvp-te
[*LSRD-mpls] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-GigabitEthernet1/0/0] mpls
[*LSRD-GigabitEthernet1/0/0] mpls te
[*LSRD-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRD-GigabitEthernet1/0/0] quit
[*LSRD] interface gigabitethernet 2/0/0
[*LSRD-GigabitEthernet2/0/0] mpls
[*LSRD-GigabitEthernet2/0/0] mpls te
[*LSRD-GigabitEthernet2/0/0] mpls rsvp-te
[*LSRD-GigabitEthernet2/0/0] commit
[~LSRD-GigabitEthernet2/0/0] quit

# Configure LSRE.
[~LSRE] mpls lsr-id 5.5.5.5
[*LSRE] mpls
[*LSRE-mpls] mpls te
[*LSRE-mpls] mpls rsvp-te
[*LSRE-mpls] quit
[*LSRE] interface gigabitethernet 1/0/0
[*LSRE-GigabitEthernet1/0/0] mpls
[*LSRE-GigabitEthernet1/0/0] mpls te
[*LSRE-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRE-GigabitEthernet1/0/0] commit
[~LSRE-GigabitEthernet1/0/0] quit

Step 4 Configure IS-IS TE.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 281


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure LSRA.
[~LSRA] isis 1
[~LSRA-isis-1] cost-style wide
[*LSRA-isis-1] traffic-eng level-1
[*LSRA-isis-1] commit
[~LSRA-isis-1] quit

# Configure LSRB.
[~LSRB] isis 1
[~LSRB-isis-1] cost-style wide
[*LSRB-isis-1] traffic-eng level-1-2
[*LSRB-isis-1] commit
[~LSRB-isis-1] quit

# Configure LSRC.
[~LSRC] isis 1
[~LSRC-isis-1] cost-style wide
[*LSRC-isis-1] traffic-eng level-2
[*LSRC-isis-1] commit
[~LSRC-isis-1] quit

# Configure LSRD.
[~LSRD] isis 1
[~LSRD-isis-1] cost-style wide
[*LSRD-isis-1] traffic-eng level-1-2
[*LSRD-isis-1] commit
[~LSRD-isis-1] quit

# Configure LSRE.
[~LSRE] isis 1
[~LSRE-isis-1] cost-style wide
[*LSRE-isis-1] traffic-eng level-1
[*LSRE-isis-1] commit
[~LSRE-isis-1] quit

Step 5 Configure a loose explicit path.


[~LSRA] explicit-path atoe
[*LSRA-explicit-path-atoe] next hop 10.1.1.2 include loose
[*LSRA-explicit-path-atoe] next hop 10.2.1.2 include loose
[*LSRA-explicit-path-atoe] next hop 10.3.1.2 include loose
[*LSRA-explicit-path-atoe] next hop 10.4.1.2 include loose
[*LSRA-explicit-path-atoe] commit

Step 6 Configure MPLS TE attributes for links.


# Set the maximum reservable bandwidth and BC0 bandwidth for links on LSRA.
[~LSRA] interface gigabitethernet 1/0/0
[~LSRA-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRA-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Set the maximum bandwidth and reservable bandwidth for links on LSRB.
[~LSRB] interface gigabitethernet 2/0/0
[~LSRB-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRB-GigabitEthernet2/0/0] mpls te bandwidth bc0 100000
[*LSRB-GigabitEthernet2/0/0] commit
[~LSRB-GigabitEthernet2/0/0] quit

# Set the maximum bandwidth and reservable bandwidth for links on LSRC.
[~LSRC] interface gigabitethernet 1/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 282


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRC-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000


[*LSRC-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*LSRC-GigabitEthernet1/0/0] commit
[~LSRC-GigabitEthernet1/0/0] quit

# Set the maximum bandwidth and reservable bandwidth for links on LSRD.
[~LSRD] interface gigabitethernet 2/0/0
[~LSRD-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*LSRD-GigabitEthernet2/0/0] mpls te bandwidth bc0 100000
[*LSRD-GigabitEthernet2/0/0] commit
[~LSRD-GigabitEthernet2/0/0] quit

Step 7 Configure an MPLS TE tunnel.


# Configure the MPLS TE tunnel on LSRA.
[~LSRA] interface tunnel1
[*LSRA-Tunnel1] ip address unnumbered interface loopback 1
[*LSRA-Tunnel1] tunnel-protocol mpls te
[*LSRA-Tunnel1] destination 5.5.5.5
[*LSRA-Tunnel1] mpls te tunnel-id 1
[*LSRA-Tunnel1] mpls te bandwidth ct0 20000
[*LSRA-Tunnel1] mpls te path explicit-path atoe
[*LSRA-Tunnel1] commit
[~LSRA-Tunnel1] quit

Step 8 Verify the configuration.


After completing the configuration, run the display interface tunnel command
on LSRA. The tunnel interface is Up.
[~LSRA] display interface Tunnel
Tunnel1 current state : UP (ifindex: 26)
Line protocol current state : UP
Last line protocol up time : 2012-03-08 04:52:40
Description:
Route Port,The Maximum Transmit Unit is 1500
Internet Address is unnumbered, using address of LoopBack1(1.1.1.1/32)
Encapsulation is TUNNEL, loopback not set
Tunnel destination 5.5.5.5
Tunnel up/down statistics 1
Tunnel protocol/transport MPLS/MPLS, ILM is available,
primary tunnel id is 0x97, secondary tunnel id is 0x0
Current system time: 2012-03-08 08:33:55
300 seconds output rate 0 bits/sec, 0 packets/sec
0 seconds output rate 0 bits/sec, 0 packets/sec
126 packets output, 34204 bytes
0 output error
18 output drop
Last 300 seconds input utility rate: 0.00%
Last 300 seconds output utility rate: 0.00%

# Run the display mpls te tunnel-interface command on LSRA. Detailed


information about the TE tunnel interface is displayed.
[~LSRA] display mpls te tunnel-interface tunnel1
Tunnel Name : Tunnel1
Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID :1
Ingress LSR ID : 1.1.1.1 Egress LSR ID: 5.5.5.5
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid :1
Tie-Breaking Policy : None Metric Type : None

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 283


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Bfd Cap : None


Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : 0 percent
Current Collected BW: 0 kbps Auto BW Freq : 0
Min BW : 0 kbps Max BW : 0 kbps
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name:
Tunnel Group :-
Interfaces Protected: -
Excluded IP Address : -
Referred LSP Count : 0
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status : Up Oam Status : -
IPTN InLabel :- Tunnel BFD Status : -
BackUp LSP Type : None BestEffort : Enabled
Secondary HopLimit : -
BestEffort HopLimit : -
Secondary Explicit Path Name: -
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : -
P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : --
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : No

Primary LSP ID : 1.1.1.1:19


LSP State : UP LSP Type : Primary
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : main Hop Limit: -
Record Route : Disabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal Path Setup Type : EXPLICIT

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 284


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Create Modify LSP Reason: -


Self-Ping Status : -

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
explicit-path atoe
next hop 10.1.1.2 include loose
next hop 10.2.1.2 include loose
next hop 10.3.1.2 include loose
next hop 10.4.1.2 include loose
#
isis 1
is-level level-1
cost-style wide
traffic-eng level-1
network-entity 00.0005.0000.0000.0001.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 5.5.5.5
mpls te tunnel-id 1
mpls te bandwidth ct0 20000
mpls te path explicit-path atoe
#
return

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-1-2
cost-style wide
traffic-eng level-1-2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 285


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

import-route isis level-2 into level-1


network-entity 00.0005.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0006.0000.0000.0003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return
● LSRD configuration file
#
sysname LSRD

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 286


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-1-2
cost-style wide
traffic-eng level-1-2
network-entity 00.0007.0000.0000.0004.00
import-route isis level-2 into level-1
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
return

● LSRE configuration file


#
sysname LSRE
#
mpls lsr-id 5.5.5.5
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-1
cost-style wide
traffic-eng level-1
network-entity 00.0007.0000.0000.0005.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
isis enable 1
#
return

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 287


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.43.12 Example for Configuring the Threshold for Flooding Bandwidth


Information

Networking Requirements
On the network shown in Figure 1-22, an RSVP-TE tunnel between LSRA and
LSRD is established. The bandwidth is 50 Mbit/s. The maximum reservable
bandwidth and BC0 bandwidth for every link are 100 Mbit/s. The RDM is used.
The threshold for flooding bandwidth information is set to 20%. This reduces the
number of attempts to flood bandwidth information and saves network resources.
If the proportion of the bandwidth used or released by an MPLS TE tunnel to the
available bandwidth in the TEDB is greater than or equal to 20%, an IGP floods
the bandwidth information, and CSPF updates TEDB information.

Figure 1-22 Networking diagram for the threshold for flooding bandwidth
information
NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 2/0/0, respectively.

Configuration Notes
None.

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure an RSVP-TE tunnel. See "Configuration Roadmap" in Example for
Configuring an RSVP-TE Tunnel.
2. Configure bandwidth and the threshold for flooding bandwidth information

Data Preparation
To complete the configuration, you need the following data:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 288


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● OSPF process ID and area ID for every LSR


● Maximum reservable bandwidth and BC bandwidth for every link along the
TE tunnel
● Tunnel interface number, IP address, destination address, tunnel ID, signaling
protocol (RSVP-TE by default)
● Threshold for flooding bandwidth information

Procedure
Step 1 Assign an IP address and its mask to every interface.
Assign an IP address and its mask to every physical interface and configure a
loopback interface address as an LSR ID on every node according to Figure 1-22.
For configuration details, see Configuration Files in this section.
Step 2 Configure an IGP.
Configure OSPF or IS-IS on every node to implement connectivity between them.
IS-IS is used in this example.
For configuration details, see Configuration Files in this section.
Step 3 Configure basic MPLS functions and enable MPLS TE, RSVP-TE, and CSPF.
# Enable MPLS, MPLS TE, and RSVP-TE on every LSR and their interfaces along a
tunnel, and enable CSPF in the system view of the ingress.
For configuration details, see Configuration Files in this section.
Step 4 Set MPLS TE bandwidth for links.
# Set the maximum reservable bandwidth and BC0 bandwidth for a link on every
interface along the TE tunnel.
For configuration details, see Configuration Files in this section.
Step 5 Configure the threshold for flooding bandwidth information.
# Set the threshold for flooding bandwidth information to 20% on a physical
interface on LSRA. If the proportion of the bandwidth used or released by an
MPLS TE tunnel to the available bandwidth in the TEDB is greater than or equal to
20%, an IGP floods the bandwidth information, and CSPF updates TEDB
information.
[~LSRA] interface gigabitethernet 1/0/0
[~LSRA-GigabitEthernet1/0/0] mpls te bandwidth change thresholds up 20
[*LSRA-GigabitEthernet1/0/0] mpls te bandwidth change thresholds down 20
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

Run the display mpls te cspf tedb command on LSRA. TEDB information is
displayed.
[~LSRA] display mpls te cspf tedb interface 10.1.1.1
Router ID: 1.1.1.9
IGP Type: ISIS Process Id: 1
Link[1]:
ISIS System ID: 0000.0000.0001.00 Opaque LSA ID: 0000.0000.0001.00:00
Interface IP Address: 10.1.1.1
DR Address: 10.1.1.1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 289


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

DR ISIS System ID: 0000.0000.0001.01


IGP Area: Level-2
Link Type: Multi-access Link Status: Active
IGP Metric: 10 TE Metric: 10 Color: 0x0
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 100000 (kbps)
Maximum Reservable Bandwidth: 100000 (kbps)
Operational Mode of Router : TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 100000 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 100000 (kbps), [1]: 100000 (kbps)
[2]: 100000 (kbps), [3]: 100000 (kbps)
[4]: 100000 (kbps), [5]: 100000 (kbps)
[6]: 100000 (kbps), [7]: 100000 (kbps)

Step 6 Configure an MPLS TE tunnel.


# Configure a tunnel named Tunnel1 on LSRA.
[~LSRA]interface tunnel1
[*LSRA-Tunnel1] ip address unnumbered interface loopback 1
[*LSRA-Tunnel1] destination 4.4.4.9
[*LSRA-Tunnel1] tunnel-protocol mpls te
[*LSRA-Tunnel1] mpls te bandwidth ct0 10000
[*LSRA-Tunnel1] mpls te tunnel-id 1
[*LSRA-Tunnel1] commit
[~LSRA-Tunnel1] quit

After completing the configuration, run the display mpls te tunnel-interface


command on LSRA. The tunnel interface is Up.
[~LSRA] display mpls te tunnel-interface tunnel1
Tunnel Name : Tunnel1
Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID :1
Ingress LSR ID : 1.1.1.9 Egress LSR ID: 4.4.4.9
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid :1
Tie-Breaking Policy : None Metric Type : None
Bfd Cap : None
Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : 0 percent
Current Collected BW: 0 kbps Auto BW Freq : 0
Min BW : 0 kbps Max BW : 0 kbps
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name:
Tunnel Group :-
Interfaces Protected: -
Excluded IP Address : -
Referred LSP Count : 0
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status : Up Oam Status : -
IPTN InLabel :- Tunnel BFD Status : -
BackUp LSP Type : None BestEffort : Enabled
Secondary HopLimit : -
BestEffort HopLimit : -
Secondary Explicit Path Name: -
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 290


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : -
P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : --
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : No

Primary LSP ID : 1.1.1.9:19


LSP State : UP LSP Type : Primary
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : - Hop Limit: -
Record Route : Disabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal Path Setup Type : CSPF
Create Modify LSP Reason: -
Self-Ping Status : -

Run the display mpls te cspf tedb command on LSRA. Bandwidth information is
unchanged.
[~LSRA] display mpls te cspf tedb interface 10.1.1.1
Router ID: 1.1.1.9
IGP Type: ISIS Process Id: 1
Link[1]:
ISIS System ID: 0000.0000.0001.00 Opaque LSA ID: 0000.0000.0001.00:00
Interface IP Address: 10.1.1.1
DR Address: 10.1.1.1
DR ISIS System ID: 0000.0000.0001.01
IGP Area: Level-2
Link Type: Multi-access Link Status: Active
IGP Metric: 10 TE Metric: 10 Color: 0x0
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 100000 (kbps)
Maximum Reservable Bandwidth: 100000 (kbps)
Operational Mode of Router : TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 100000 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 291


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[0]: 100000 (kbps), [1]: 100000 (kbps)


[2]: 100000 (kbps), [3]: 100000 (kbps)
[4]: 100000 (kbps), [5]: 100000 (kbps)
[6]: 100000 (kbps), [7]: 100000 (kbps)

Step 7 Verify the configuration.


After completing the configuration, change the bandwidth to 20000 kbit/s.
[~LSRA] interface tunnel1
[~LSRA-Tunnel1] mpls te bandwidth ct0 20000
[*LSRA-Tunnel1] commit
[~LSRA-Tunnel1] quit

Run the display mpls te cspf tedb interface 10.1.1.1 command on LSRA. TEDB
information shows that the TE tunnel named Tunnel1 has been reestablished
successfully. Its bandwidth is 20,000 kbit/s, reaching 20%, the threshold for
flooding bandwidth information. Therefore, CSPF TEDB information has been
updated.
[~LSRA] display mpls te cspf tedb interface 10.1.1.1
Router ID: 1.1.1.9
IGP Type: ISIS Process Id: 1
Link[1]:
ISIS System ID: 0000.0000.0001.00 Opaque LSA ID: 0000.0000.0001.00:00
Interface IP Address: 10.1.1.1
DR Address: 10.1.1.1
DR ISIS System ID: 0000.0000.0001.01
IGP Area: Level-2
Link Type: Multi-access Link Status: Active
IGP Metric: 10 TE Metric: 10 Color: 0x0
Bandwidth Allocation Model : -
Maximum Link-Bandwidth: 100000 (kbps)
Maximum Reservable Bandwidth: 100000 (kbps)
Operational Mode of Router : TE
Bandwidth Constraints: Local Overbooking Multiplier:
BC[0]: 100000 (kbps) LOM[0]: 1
BW Unreserved:
Class ID:
[0]: 100000 (kbps), [1]: 100000 (kbps)
[2]: 100000 (kbps), [3]: 100000 (kbps)
[4]: 100000 (kbps), [5]: 100000 (kbps)
[6]: 100000 (kbps), [7]: 80000 (kbps)

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.9
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0001.00
#
interface GigabitEthernet1/0/0
undo shutdown

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 292


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 10.1.1.1 255.255.255.0


mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
mpls te bandwidth change thresholds up 20
mpls te bandwidth change thresholds down 20
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.9
mpls te tunnel-id 1
mpls te bandwidth ct0 20000
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.9
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
mpls te bandwidth change thresholds up 20
mpls te bandwidth change thresholds down 20
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
isis enable 1
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.9

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 293


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
isis enable 1
#
return

● LSRD configuration file


#
sysname LSRD
#
mpls lsr-id 4.4.4.9
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0004.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
isis enable 1
#
return

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 294


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.43.13 Example for Configuring MPLS TE Manual FRR

Networking Requirements
On the network shown in Figure 1-23, a primary LSP is along the path LSRA ->
LSRB -> LSRC -> LSRD. FRR is enabled on LSRB to protect traffic on the link
between LSRB and LSRC.
A bypass CR-LSP is established over the path LSRB -> LSRE -> LSRC. LSRB is a PLR,
and LSRC is an MP.
Explicit paths are used to establish the primary and bypass CR-LSPs. RSVP-TE is
used as a signaling protocol.

Figure 1-23 Networking diagram for MPLS TE manual FRR


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 2/0/0, and GE 3/0/0,


respectively.

Configuration Notes
None.

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure a primary CR-LSP and enable TE FRR on the tunnel interface of the
primary CR-LSP.
2. Configure a bypass CR-LSP on the PLR (ingress) and specify the interface of
the protected link.

Data Preparation
To complete the configuration, you need the following data:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 295


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● IS-IS area ID, originating system ID, and IS-IS level of each node
● Explicit paths for the primary and bypass CR-LSPs
● Tunnel interface number, source and destination IP addresses, ID, and RSVP-TE
signaling protocol for each of the primary and bypass CR-LSPs
● Protected bandwidth and type and number of the interface on the protected
link

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address and its mask to every physical interface and configure a
loopback interface address as an LSR ID on every node shown in Figure 1-23. For
configuration details, see Configuration Files in this section.
Step 2 Configure an IGP.
Configure IS-IS on all nodes to advertise host routes. For configuration details, see
Configuration Files in this section.
After completing the configurations, run the display ip routing-table command
on every node. All nodes have learned routes from each other.
Step 3 Configure basic MPLS functions and enable MPLS TE, CSPF, RSVP-TE, and IS-IS TE.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] isis
[*LSRA-isis-1] cost-style wide
[*LSRA-isis-1] traffic-eng level-2
[*LSRA-isis-1] commit

NOTE

The configurations of LSRB, LSRC, LSRD and LSRE are similar to the configuration of LSRA.
For configuration details, see Configuration Files in this section. CSPF needs to be enabled
only on LSRA and LSRB, which are ingress nodes of the primary and bypass CR-LSPs,
respectively.

Step 4 Configure an MPLS TE tunnel on LSRA.


# Configure an explicit path for the primary CR-LSP.
[~LSRA] explicit-path pri-path
[*LSRA-explicit-path-pri-path] next hop 10.21.1.2
[*LSRA-explicit-path-pri-path] next hop 10.31.1.2
[*LSRA-explicit-path-pri-path] next hop 10.41.1.2
[*LSRA-explicit-path-pri-path] next hop 4.4.4.4
[*LSRA-explicit-path-pri-path] quit

# Configure the MPLS TE tunnel for the primary CR-LSP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 296


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRA] interface tunnel 1


[*LSRA-Tunnel1] ip address unnumbered interface loopback 1
[*LSRA-Tunnel1] tunnel-protocol mpls te
[*LSRA-Tunnel1] destination 4.4.4.4
[*LSRA-Tunnel1] mpls te tunnel-id 1
[*LSRA-Tunnel1] mpls te path explicit-path pri-path

# Enable FRR.
[*LSRA-Tunnel1] mpls te fast-reroute
[*LSRA-Tunnel1] commit
[~LSRA-Tunnel1] quit

After completing the configuration, run the display interface tunnel command
on LSRA. Tunnel1 is Up.
[~LSRA] display interface tunnel
Tunnel1 current state : UP (ifindex: 20)
Line protocol current state : UP
Last line protocol up time : 2011-05-31 06:30:58
Description:
Route Port,The Maximum Transmit Unit is 1500, Current BW: 50Mbps
Internet Address is unnumbered, using address of LoopBack1(1.1.1.1/32)
Encapsulation is TUNNEL, loopback not set
Tunnel destination 4.4.4.4
Tunnel up/down statistics 1
Tunnel protocol/transport MPLS/MPLS, ILM is available,
primary tunnel id is 0x321, secondary tunnel id is 0x0
Current system time: 2011-05-31 07:32:31
300 seconds output rate 0 bits/sec, 0 packets/sec
0 seconds output rate 0 bits/sec, 0 packets/sec
126 packets output, 34204 bytes
0 output error
18 output drop
Last 300 seconds input utility rate: 0.00%
Last 300 seconds output utility rate: 0.00%

# Run the display mpls te tunnel-interface command on LSRA. Detailed


information about the TE tunnel interface is displayed.
[~LSRA] display mpls te tunnel-interface
Tunnel Name : Tunnel1
Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID :1
Ingress LSR ID : 1.1.1.1 Egress LSR ID: 4.4.4.4
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid :1
Tie-Breaking Policy : None Metric Type : None
Bfd Cap : None
Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : 0 percent
Current Collected BW: 0 kbps Auto BW Freq : 0
Min BW : 0 kbps Max BW : 0 kbps
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name:
Tunnel Group :-
Interfaces Protected: -
Excluded IP Address : -
Referred LSP Count : 0
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 297


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Group Status : Up Oam Status : -


IPTN InLabel :- Tunnel BFD Status : -
BackUp LSP Type : Hot-Standby BestEffort : Enabled
Secondary HopLimit : -
BestEffort HopLimit : -
Secondary Explicit Path Name: -
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : -
P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : -
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : No

Primary LSP ID : 1.1.1.1:19


LSP State : UP LSP Type : Primary
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : pri-path Hop Limit: -
Record Route : Disabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal
Path Setup Type : EXPLICIT
Create Modify LSP Reason: -
Self-Ping Status : -

Backup LSP ID : 1.1.1.1:46945


IsBestEffortPath : No
LSP State : UP LSP Type : Hot-Standby
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 298


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0


Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : - Hop Limit: -
Record Route : Enabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Enabled
Pce Flag : Normal
Path Setup Type : CSPF
Create Modify LSP Reason: -
Self-Ping Status : -

Step 5 Configure a bypass CR-LSP on LSRB that functions as the PLR.


# Configure an explicit path for the bypass CR-LSP.
[~LSRB] explicit-path by-path
[*LSRB-explicit-path-by-path] next hop 10.32.1.2
[*LSRB-explicit-path-by-path] next hop 10.33.1.2
[*LSRB-explicit-path-by-path] next hop 3.3.3.3
[*LSRB-explicit-path-by-path] quit

# Configure the bypass CR-LSP.


[*LSRB] interface tunnel 3
[*LSRB-Tunnel3] ip address unnumbered interface loopback 1
[*LSRB-Tunnel3] tunnel-protocol mpls te
[*LSRB-Tunnel3] destination 3.3.3.3
[*LSRB-Tunnel3] mpls te tunnel-id 2
[*LSRB-Tunnel3] mpls te path explicit-path by-path
[*LSRB-Tunnel3] mpls te bypass-tunnel

# Bind the bypass CR-LSP to the interface of the protected link.


[*LSRB-Tunnel3] mpls te protected-interface gigabitethernet 2/0/0
[*LSRB-Tunnel3] commit
[~LSRB-Tunnel3] quit

After completing the configuration, run the display interface tunnel command
on LSRB. The tunnel named Tunnel3 is Up.
Run the display mpls te tunnel name Tunnel1 verbose command on LSRB. The
bypass tunnel is bound to the outbound interface GE 2/0/0 and is not in use.
[~LSRB] display mpls te tunnel name Tunnel1 verbose
No : 1
Tunnel-Name : Tunnel1
Tunnel Interface Name : Tunnel1
TunnelIndex : -
Session ID : 1 LSP ID : 95
Lsr Role : Transit
Ingress LSR ID : 1.1.1.1
Egress LSR ID : 4.4.4.4
In-Interface : GE1/0/0
Out-Interface : GE2/0/0
Sign-Protocol : RSVP TE Resv Style : SE
IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0
IncludeAllAff : 0x0
ER-Hop Table Index : - AR-Hop Table Index: -
C-Hop Table Index : -
PrevTunnelIndexInSession: - NextTunnelIndexInSession: -
PSB Handle : -

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 299


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Created Time : 2012/02/01 04:53:22


--------------------------------
DS-TE Information
--------------------------------
Bandwidth Reserved Flag : Reserved
CT0 Bandwidth(Kbit/sec) : 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec) : 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec) : 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec) : 0 CT7 Bandwidth(Kbit/sec): 0
Setup-Priority : 7 Hold-Priority : 7
--------------------------------
FRR Information
--------------------------------
Primary LSP Info
Bypass In Use : Not Used
Bypass Tunnel Id : 1
BypassTunnel : Tunnel Index[Tunnel3], InnerLabel[16]
Bypass Lsp ID : 8 FrrNextHop : 10.33.1.1
ReferAutoBypassHandle : -
FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: -
Bypass Attribute
Setup Priority : 7 Hold Priority : 7
HopLimit : 32 Bandwidth : 0
IncludeAnyGroup : 0 ExcludeAnyGroup : 0
IncludeAllGroup : 0
Bypass Unbound Bandwidth Info(Kbit/sec)
CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: -
CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: -
CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: -
CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: -
--------------------------------
BFD Information
--------------------------------
NextSessionTunnelIndex : - PrevSessionTunnelIndex: -
NextLspId : - PrevLspId : -

Step 6 Verify the configuration.


# Shut down the outbound interface of the protected link on the PLR.
[~LSRB] interface gigabitethernet 2/0/0
[~LSRB-GigabitEthernet2/0/0] shutdown
[*LSRB-GigabitEthernet2/0/0] commit

Run the display interface tunnel 1 command on LSRA. The tunnel interface of
the primary CR-LSP is still Up.
Run the tracert lsp te tunnel1 command on LSRA. The path through which the
primary CR-LSP passes is displayed.
[~LSRA] tracert lsp te tunnel1
LSP Trace Route FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel1 , press CTRL_C to break.
TTL Replier Time Type Downstream
0 Ingress 10.21.1.2/[25 ]
1 10.21.1.2 3 Transit 10.32.1.2/[16 16 ]
2 10.32.1.2 4 Transit 10.33.1.2/[3 ]
3 10.33.1.2 4 Transit 10.41.1.2/[3 ]
4 4.4.4.4 3 Egress

The preceding command output shows that traffic has switched to the bypass CR-
LSP.

NOTE

If the display mpls te tunnel-interface command is run immediately after FRR switching
has been performed, two CR-LSPs are both Up. This is because FRR uses the make-before-
break mechanism to establish a bypass CR-LSP. The original CR-LSP will be deleted after a
new CR-LSP has been established.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 300


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Run the display mpls te tunnel name Tunnel1 verbose command on LSRB. The
bypass CR-LSP is being used.
[~LSRB] display mpls te tunnel name Tunnel1 verbose
No : 1
Tunnel-Name : Tunnel1
Tunnel Interface Name : Tunnel1
TunnelIndex : -
Session ID : 1 LSP ID : 95
Lsr Role : Transit
Ingress LSR ID : 1.1.1.1
Egress LSR ID : 4.4.4.4
In-Interface : GE1/0/0
Out-Interface : GE2/0/0
Sign-Protocol : RSVP TE Resv Style : SE
IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0
IncludeAllAff : 0x0
ER-Hop Table Index : - AR-Hop Table Index: -
C-Hop Table Index : -
PrevTunnelIndexInSession: - NextTunnelIndexInSession: -
PSB Handle : -
Created Time : 2012/02/01 04:53:22
--------------------------------
DS-TE Information
--------------------------------
Bandwidth Reserved Flag : Reserved
CT0 Bandwidth(Kbit/sec) : 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec) : 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec) : 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec) : 0 CT7 Bandwidth(Kbit/sec): 0
Setup-Priority : 7 Hold-Priority : 7
--------------------------------
FRR Information
--------------------------------
Primary LSP Info
Bypass In Use : In Use
Bypass Tunnel Id : 1
BypassTunnel : Tunnel Index[Tunnel3], InnerLabel[16]
Bypass Lsp ID : 8 FrrNextHop : 3.3.3.3
ReferAutoBypassHandle : -
FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: -
Bypass Attribute
Setup Priority : 7 Hold Priority : 7
HopLimit : 32 Bandwidth : 0
IncludeAnyGroup : 0 ExcludeAnyGroup : 0
IncludeAllGroup : 0
Bypass Unbound Bandwidth Info(Kbit/sec)
CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: -
CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: -
CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: -
CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: -
--------------------------------
BFD Information
--------------------------------
NextSessionTunnelIndex : - PrevSessionTunnelIndex: -
NextLspId : - PrevLspId : -

# Start the outbound interface of the protected link on the PLR.


[~LSRB] interface gigabitethernet 2/0/0
[~LSRB-GigabitEthernet2/0/0] undo shutdown
[*LSRB-GigabitEthernet2/0/0] commit

Run the display interface tunnel1 command on LSRA. The tunnel interface of the
primary CR-LSP is UP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 301


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

After specified period of time elapses, run the display mpls te tunnel name
tunnel1 verbose command on LSRB. Tunnel1's Bypass In Use status is Not Used,
indicating that traffic has switched back to GE 2/0/0.

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
explicit-path pri-path
next hop 10.21.1.2
next hop 10.31.1.2
next hop 10.41.1.2
next hop 4.4.4.4
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0001.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.21.1.1 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.4
mpls te tunnel-id 1
mpls te record-route label
mpls te path explicit-path pri-path
mpls te fast-reroute
#
return

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
explicit-path by-path
next hop 10.32.1.2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 302


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

next hop 10.33.1.2


next hop 3.3.3.3
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.21.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.31.1.1 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.32.1.1 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
interface Tunnel3
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te tunnel-id 2
mpls te record-route
mpls te path explicit-path by-path
mpls te bypass-tunnel
mpls te protected-interface GigabitEthernet 2/0/0
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.41.1.1 255.255.255.0
mpls
mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 303


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.31.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.33.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return
● LSRD configuration file
#
sysname LSRD
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0004.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.41.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
return
● LSRE configuration file
#
sysname LSRE
#
mpls lsr-id 5.5.5.5
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0005.00

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 304


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.32.1.2 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.33.1.1 255.255.255.0
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
isis enable 1
#
return

1.1.3.43.14 Example for Configuring MPLS TE Auto FRR

Networking Requirements
On the network shown in Figure 1-24, a primary CR-LSP is established over an
explicit path LSRA -> LSRB -> LSRC. Bypass CR-LSPs need to be established on the
ingress LSRA and the transit node LSRB respectively. These bypass CR-LSPs are
required to provide bandwidth protection. A node protection tunnel is a bypass
tunnel that originates from LSRA's inbound interface, terminates at LSRC's
outbound interface, and passes through the intermediate LSRB. A link protection
tunnel is a bypass tunnel that originates from LSRB's outbound interface,
terminates at LSRC's inbound interface, and passes through the intermediate LSRD
or is a direct link between LSRB's outbound interface and LSRC's inbound
interface.

Figure 1-24 Networking diagram for MPLS TE Auto FRR


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 2/0/0, and GE 3/0/0,


respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 305


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Notes
None.

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure a primary CR-LSP, and enable TE FRR in the tunnel interface view
and MPLS auto FRR in the MPLS view.
2. Set the protected bandwidth and priorities for the bypass CR-LSP in the tunnel
interface view.

Data Preparation
To complete the configuration, you need the following data:
● OSPF process ID and OSPF area ID for every node
● Path for the primary CR-LSP
● Tunnel interface number, source and destination IP addresses of the primary
tunnel, tunnel ID, RSVP-TE signaling protocol, and tunnel bandwidth

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address and its mask to every physical interface and configure a
loopback interface address as an LSR ID on every node shown in Figure 1-24. For
configuration details, see Configuration Files in this section.
Step 2 Configure OSPF to advertise every network segment route and host route.
Configure OSPF on all nodes to advertise host routes. For configuration details,
see Configuration Files in this section.
After completing the configurations, run the display ip routing-table command
on every node. All nodes have learned routes from one another.
Step 3 Configure basic MPLS functions and enable MPLS TE, RSVP-TE, and CSPF.
# Configure LSRA.
[*LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] quit
[*LSRA] interface gigabitethernet 2/0/0
[*LSRA-GigabitEthernet2/0/0] mpls
[*LSRA-GigabitEthernet2/0/0] mpls te
[*LSRA-GigabitEthernet2/0/0] mpls rsvp-te
[*LSRA-GigabitEthernet2/0/0] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 306


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

Repeat this step for LSRB, LSRC, and LSRD. For configuration details, see Configuration
Files in this section.

Step 4 Configure OSPF TE.


# Configure LSRA.
[~LSRA] ospf
[~LSRA-ospf-1] opaque-capability enable
[*LSRA-ospf-1] area 0
[*LSRA-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRA-ospf-1-area-0.0.0.0] commit
[~LSRA-ospf-1-area-0.0.0.0] quit
[~LSRA-ospf-1] quit

NOTE

Repeat this step for LSRB, LSRC, and LSRD. For configuration details, see Configuration
Files in this section.

Step 5 Configure an explicit path for the primary CR-LSP.


[~LSRA] explicit-path master
[*LSRA-explicit-path-master] next hop 10.21.1.1
[*LSRA-explicit-path-master] next hop 10.31.1.1
[*LSRA-explicit-path-master] commit

Step 6 Configure TE Auto FRR.


# Configure LSRA.
[~LSRA] mpls
[~LSRA-mpls] mpls te auto-frr
[*LSRA-mpls] commit

# Configure LSRB.
[~LSRB] mpls
[~LSRB-mpls] mpls te auto-frr
[*LSRB-mpls] commit

Step 7 Configure a primary tunnel.


[~LSRA] interface tunnel2
[*LSRA-Tunnel2] ip address unnumbered interface loopBack1
[*LSRA-Tunnel2] tunnel-protocol mpls te
[*LSRA-Tunnel2] destination 3.3.3.3
[*LSRA-Tunnel2] mpls te tunnel-id 200
[*LSRA-Tunnel2] mpls te record-route label
[*LSRA-Tunnel2] mpls te path explicit-path master
[*LSRA-Tunnel2] mpls te bandwidth ct0 400
[*LSRA-Tunnel2] mpls te priority 4 3
[*LSRA-Tunnel2] mpls te fast-reroute bandwidth
[*LSRA-Tunnel2] mpls te bypass-attributes bandwidth 200 priority 5 4
[*LSRA-Tunnel2] commit
[~LSRA-Tunnel2] quit

Step 8 Verify the configuration.


Run the display mpls te tunnel name Tunnel2 verbose command on LSRA.
Information about the primary and bypass CR-LSPs is displayed.
[~LSRA] display mpls te tunnel name Tunnel2 verbose
No : 1
Tunnel-Name : Tunnel2
Tunnel Interface Name : Tunnel2
TunnelIndex : -

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 307


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Session ID : 200 LSP ID : 164


LSR Role : Ingress
Ingress LSR ID : 1.1.1.1
Egress LSR ID : 3.3.3.3
In-Interface : -
Out-Interface : GE2/0/0
Sign-Protocol : RSVP TE Resv Style : SE
IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0
IncludeAllAff : 0x0
ER-Hop Table Index : 1 AR-Hop Table Index: 674
C-Hop Table Index : 579
PrevTunnelIndexInSession: - NextTunnelIndexInSession: -
PSB Handle : -
Created Time : 2015-01-28 11:10:32
RSVP LSP Type : -
--------------------------------
DS-TE Information
--------------------------------
Bandwidth Reserved Flag : Reserved
CT0 Bandwidth(Kbit/sec) : 400 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec) : 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec) : 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec) : 0 CT7 Bandwidth(Kbit/sec): 0
Setup-Priority : 4 Hold-Priority : 3
--------------------------------
FRR Information
--------------------------------
Primary LSP Info
Bypass In Use : Not Used
Bypass Tunnel Id : 32866
BypassTunnel : Tunnel Index[AutoTunnel32866], InnerLabel[3]
Bypass LSP ID : 165 FrrNextHop : 10.1.1.1
ReferAutoBypassHandle : -
FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: -
Bypass Attribute
Setup Priority : 5 Hold Priority : 4
HopLimit : 32 Bandwidth : 200
IncludeAnyGroup : 0 ExcludeAnyGroup : 0
IncludeAllGroup : 0
Bypass Unbound Bandwidth Info(Kbit/sec)
CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: -
CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: -
CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: -
CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: -
--------------------------------
BFD Information
--------------------------------
NextSessionTunnelIndex : - PrevSessionTunnelIndex: -
NextLspId : - PrevLspId : -

The primary CR-LSP has been bound to a bypass CR-LSP named


AutoTunnel32866.
Run the display mpls te tunnel-interface auto-bypass-tunnel command.
Detailed information about the automatic bypass CR-LSP is displayed. Its
bandwidth, and setup and holding priorities are the same as bypass attributes in
the primary CR-LSP information.
[~LSRA] display mpls te tunnel-interface auto-bypass-tunnel AutoTunnel32866
Tunnel Name : AutoTunnel32866
Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID : 32866
Ingress LSR ID : 1.1.1.1 Egress LSR ID: 3.3.3.3
Admin State : UP Oper State : UP
Signaling Protocol : RSVP

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 308


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

FTid : 130
Tie-Breaking Policy : None Metric Type : None
Bfd Cap : None
Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : -
Current Collected BW: - Auto BW Freq : -
Min BW :- Max BW :-
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name: -
Tunnel Group : Primary
Interfaces Protected: GigabitEthernet2/0/0
Excluded IP Address : 10.21.1.1
10.21.1.2
2.2.2.2
Referred LSP Count : 1
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status : Down Oam Status : None
IPTN InLabel :-
BackUp LSP Type : None BestEffort : Disabled
Secondary HopLimit : -
BestEffort HopLimit : -
Secondary Explicit Path Name: -
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : -
P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : --
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : No

Primary LSP ID : 1.1.1.1:165


LSP State : UP LSP Type : Primary
Setup Priority : 5 Hold Priority: 4
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 200 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 200 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : master Hop Limit: -
Record Route : Enabled Record Label : Enabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 309


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

BFD Status :-
Soft Preemption : Disabled
Reroute Flag : Disabled
Pce Flag : Normal
Path Setup Type : EXPLICIT
Create Modify LSP Reason: -
Self-Ping Status : -

The automatic bypass CR-LSP protects traffic on GE 2/0/0, the outbound interface
of the primary CR-LSP, not other three interfaces. The bandwidth is 200 kbit/s, and
the setup and holding priority values are 5 and 4, respectively.
Run the display mpls te tunnel path command on LSRA. The bypass CR-LSP is
providing both node and bandwidth protection for the primary CR-LSP.
[~LSRA] display mpls te tunnel path
Tunnel Interface Name : Tunnel2
Lsp ID : 1.1.1.1 :200 :164
Hop Information
Hop 0 10.21.1.1 Local-Protection available | bandwidth | node
Hop 1 10.21.1.2 Label 32846
Hop 2 2.2.2.2 Label 32846
Hop 3 10.31.1.1 Local-Protection available | bandwidth
Hop 4 10.31.1.2 Label 3
Hop 5 3.3.3.3 Label 3

Tunnel Interface Name : AutoTunnel32866


Lsp ID : 1.1.1.1 :32866 :165
Hop Information
Hop 0 10.1.1.2
Hop 1 10.1.1.1 Label 3
Hop 2 3.3.3.3 Label 3

Run the display mpls te tunnel name Tunnel2 verbose command on the transit
LSRB. Information about the primary and bypass CR-LSPs is displayed.
[~LSRB] display mpls te tunnel name Tunnel2 verbose
No : 1
Tunnel-Name : Tunnel2
Tunnel Interface Name : -
TunnelIndex : -
Session ID : 200 LSP ID : 164
LSR Role : Transit
Ingress LSR ID : 1.1.1.1
Egress LSR ID : 3.3.3.3
In-Interface : GE3/0/0
Out-Interface : GE2/0/0
Sign-Protocol : RSVP TE Resv Style : SE
IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0
IncludeAllAff : 0x0
ER-Hop Table Index : - AR-Hop Table Index: -
C-Hop Table Index : -
PrevTunnelIndexInSession: - NextTunnelIndexInSession: -
PSB Handle : -
Created Time : 2015-01-28 11:10:32
RSVP LSP Type : -
--------------------------------
DS-TE Information
--------------------------------
Bandwidth Reserved Flag : Reserved
CT0 Bandwidth(Kbit/sec) : 400 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec) : 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec) : 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec) : 0 CT7 Bandwidth(Kbit/sec): 0
Setup-Priority : 4 Hold-Priority : 3
--------------------------------
FRR Information
--------------------------------
Primary LSP Info

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 310


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Bypass In Use : Not Used


Bypass Tunnel Id : 32865
BypassTunnel : Tunnel Index[AutoTunnel32865], InnerLabel[3]
Bypass LSP ID : 6 FrrNextHop : 10.41.1.2
ReferAutoBypassHandle : -
FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: -
Bypass Attribute
Setup Priority : 5 Hold Priority : 4
HopLimit : 32 Bandwidth : 200
IncludeAnyGroup : 0 ExcludeAnyGroup : 0
IncludeAllGroup : 0
Bypass Unbound Bandwidth Info(Kbit/sec)
CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: -
CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: -
CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: -
CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: -
--------------------------------
BFD Information
--------------------------------
NextSessionTunnelIndex : - PrevSessionTunnelIndex: -
NextLspId : - PrevLspId : -

The primary CR-LSP has been bound to a bypass CR-LSP named


AutoTunnel32865.
Run the display mpls te tunnel-interface auto-bypass-tunnel command.
Detailed information about the automatic bypass CR-LSP is displayed. Its
bandwidth, and setup and holding priorities are the same as bypass attributes in
the primary CR-LSP information.
[~LSRB] display mpls te tunnel-interface auto-bypass-tunnel AutoTunnel32865
Tunnel Name : AutoTunnel32865
Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID : 32865
Ingress LSR ID : 2.2.2.2 Egress LSR ID: 3.3.3.3
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid : 97
Tie-Breaking Policy : None Metric Type : None
Bfd Cap : None
Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : -
Current Collected BW: - Auto BW Freq : -
Min BW :- Max BW :-
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name: -
Tunnel Group : Primary
Interfaces Protected: GigabitEthernet2/0/0
Excluded IP Address : 10.31.1.1
10.31.1.2
Referred LSP Count : 1
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status : Down Oam Status : None
IPTN InLabel :-
BackUp LSP Type : None BestEffort : Disabled
Secondary HopLimit : -
BestEffort HopLimit : -
Secondary Explicit Path Name: -
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 311


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Hot-Standby Revertive Mode: Revertive


Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : -
P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : -
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : No

Primary LSP ID : 2.2.2.2:6


LSP State : UP LSP Type : Primary
Setup Priority :5 Hold Priority: 4
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 200 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 200 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : - Hop Limit: -
Record Route : Enabled Record Label : Enabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Disabled
Reroute Flag : Disabled
Pce Flag : Normal
Path Setup Type : CSPF
Create Modify LSP Reason: -
Self-Ping Status : -

The automatic bypass CR-LSP protects traffic on GE 2/0/0, the outbound interface
of the primary CR-LSP. The bandwidth is 200 kbit/s, and the setup and holding
priority values are 5 and 4, respectively.
Run the display mpls te tunnel path command on LSRB. Information about the
path of both primary CR-LSP and automatic bypass CR-LSP is displayed.
[~LSRB] display mpls te tunnel path
Tunnel Interface Name : Tunnel2
Lsp ID : 1.1.1.1 :200 :164
Hop Information
Hop 0 1.1.1.1
Hop 1 10.21.1.1 Local-Protection available | bandwidth | node
Hop 2 10.21.1.2 Label 32846
Hop 3 2.2.2.2 Label 32846
Hop 4 10.31.1.1 Local-Protection available | bandwidth
Hop 5 10.31.1.2 Label 3
Hop 6 3.3.3.3 Label 3

Tunnel Interface Name : AutoTunnel32865


Lsp ID : 2.2.2.2 :32865 :6

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 312


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Hop Information
Hop 0 10.32.1.1
Hop 1 10.32.1.2 Label 32839
Hop 2 4.4.4.4 Label 32839
Hop 3 10.41.1.1
Hop 4 10.41.1.2 Label 3
Hop 5 3.3.3.3 Label 3

----End

Configuration Files
● LSRA configuration file
#
sysname LSR A
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls te auto-frr
mpls te cspf
mpls rsvp-te
#
explicit-path master
next hop 10.21.1.1
next hop 10.31.1.1
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 10.1.1.0 0.0.0.255
network 10.21.1.0 0.0.0.255
network 1.1.1.1 0.0.0.0
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.21.1.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel2
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te tunnel-id 200
mpls te record-route label
mpls te priority 4 3
mpls te bandwidth ct0 400
mpls te path explicit-path master
mpls te fast-reroute bandwidth
mpls te bypass-attributes bandwidth 200 priority 5 4
#
return
● LSRB configuration file
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 313


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls te auto-frr
mpls te cspf
mpls rsvp-te
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 10.31.1.0 0.0.0.255
network 10.32.1.0 0.0.0.255
network 10.21.1.0 0.0.0.255
network 2.2.2.2 0.0.0.0
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.32.1.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.31.1.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.21.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 10.1.1.0 0.0.0.255
network 10.31.1.0 0.0.0.255
network 10.41.1.0 0.0.0.255
network 3.3.3.3 0.0.0.0
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls te
mpls rsvp-te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 314


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.41.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.31.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
return
● LSRD configuration file
#
sysname LSRD
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
#
ospf 1
opaque-capability enable
area 0.0.0.0
mpls-te enable
network 10.32.1.0 0.0.0.255
network 10.41.1.0 0.0.0.255
network 4.4.4.4 0.0.0.0
#
interface GigabitEthernet2/0/0
undo shutdown
mpls
ip address 10.41.1.1 255.255.255.0
mpls te
mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.32.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
Return

1.1.3.43.15 Example for Configuring MPLS Detour FRR


This section provides an example for configuring MPLS detour FRR on an RSVP-TE
tunnel.

Networking Requirements
Traffic engineering (TE) fast reroute (FRR) provides local link and node protection
for MPLS TE tunnels. If a link or node fails, traffic is rapidly switched to a backup
path, which minimizes traffic loss. TE FRR is working in facility or one-to-one

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 315


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

backup mode. TE FRR in one-to-one backup mode is also called MPLS detour FRR.
MPLS detour FRR automatically creates a detour LSP on each eligible node along
primary CR-LSP to protect downstream links or nodes. This mode is easy to
configure, eliminates manual network planning, and provides flexibility on a
complex network.

Figure 1-25 shows a primary RSVP-TE tunnel along the path LSRA -> LSRC ->
LSRE. To improve tunnel reliability, MPLS detour FRR must be configured.

NOTE

For information about how to configure TE FRR in facility backup mode, see 1.1.3.43.13
Example for Configuring MPLS TE Manual FRR and 1.1.3.43.14 Example for Configuring
MPLS TE Auto FRR.

Figure 1-25 MPLS detour FRR networking


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/1, GE 1/0/2, and GE 1/0/3,


respectively.

Configuration Notes
● The facility backup and one-to-one backup modes are mutually exclusive on
the same TE tunnel interface. If both modes are configured, the latest
configured mode overrides the previous one.
● The shared explicit (SE) style must be used for the MPLS detour FRR-enabled
tunnel.
● CSPF must be enabled on each node along both the primary and backup
RSVP-TE tunnels.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 316


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure an RSVP-TE tunnel.
2. Enable MPLS detour FRR on an RSVP-TE tunnel interface.

Data Preparation
To complete the configuration, you need the following data:
● IP addresses of interfaces
● IGP protocol (IS-IS), process ID (1), system ID (converted using loopback1
address), and IS-IS level (level-2)
● LSR ID (loopback interface address) of every MPLS node
● Tunnel interface name (Tunnel1), tunnel IP address (loopback interface IP
address), tunnel ID (100), and destination IP address (5.5.5.5)

Procedure
Step 1 Assign an IP address and a mask to each interface.
Assign an IP address to each interface and create a loopback interface on each
node. For configuration details, see Configuration Files in this section.
Step 2 Configure IS-IS to advertise the route to each network segment to which each
interface is connected and to advertise the host route to each loopback address
that is used as an LSR ID.
Configure IS-IS on each node to implement network layer connectivity. For
configuration details, see Configuration Files in this section.
Step 3 Enable MPLS, MPLS TE, MPLS RSVP-TE, and CSPF globally on each node.
# Configure LSRA.
<LSRA> system-view
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] commit
[~LSRA-mpls] quit

Repeat this step for LSRB, LSRC, LSRD, LSRE, and LSRF. For configuration details,
see Configuration Files in this section.
Step 4 Enable IGP TE on each node.
# Configure LSRA.
[~LSRA] isis 1
[~LSRA-isis-1] cost-style wide
[*LSRA-isis-1] traffic-eng level-2
[*LSRA-isis-1] commit
[~LSRA-isis-1] quit

Repeat this step for LSRB, LSRC, LSRD, LSRE, and LSRF. For configuration details,
see Configuration Files in this section.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 317


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 5 Enable RSVP-TE on interfaces of each node.


# Configure LSRA.
[~LSRA] interface gigabitethernet 1/0/1
[~LSRA-GigabitEthernet1/0/1] mpls
[*LSRA-GigabitEthernet1/0/1] mpls te
[*LSRA-GigabitEthernet1/0/1] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/1] commit
[~LSRA-GigabitEthernet1/0/1] quit
[~LSRA] interface gigabitethernet 1/0/2
[~LSRA-GigabitEthernet1/0/2] mpls
[*LSRA-GigabitEthernet1/0/2] mpls te
[*LSRA-GigabitEthernet1/0/2] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/2] commit
[~LSRA-GigabitEthernet1/0/2] quit

Repeat this step for LSRB, LSRC, LSRD, LSRE, and LSRF. For configuration details,
see Configuration Files in this section.
Step 6 Configure an RSVP-TE tunnel interface on LSRA (ingress).
# Configure LSRA.
[~LSRA] interface tunnel 1
[*LSRA-Tunnel1] ip address unnumbered interface loopback 1
[*LSRA-Tunnel1] tunnel-protocol mpls te
[*LSRA-Tunnel1] mpls te tunnel-id 100
[*LSRA-Tunnel1] destination 5.5.5.5

Step 7 Enable MPLS detour FRR on an RSVP-TE tunnel interface.


# Configure LSRA.
[*LSRA-Tunnel1] mpls te detour
[*LSRA-Tunnel1] commit
[~LSRA-Tunnel1] quit

Step 8 Verify the configuration.


After completing the configurations, run the display mpls te tunnel command on
LSRA to view detour LSP information.
[~LSRA] display mpls te tunnel
* means the LSP is detour LSP
-------------------------------------------------------------------------------
Ingress LsrId Destination LSPID In/OutLabel R Tunnel-name
-------------------------------------------------------------------------------
1.1.1.1 5.5.5.5 25 -/32832 I Tunnel1
1.1.1.1 5.5.5.5 25 *-/32831 I Tunnel1
-------------------------------------------------------------------------------
R: Role, I: Ingress, T: Transit, E: Egress

Run the display mpls te tunnel path command on LSRA to view the primary CR-
LSP and detour LSP information. The command output shows that a detour LSP
has been established to provide node protection on LSRA, and another detour LSP
has been established to provide link protection on LSRC.
[~LSRA] display mpls te tunnel path
Tunnel Interface Name : Tunnel1
Lsp ID : 1.1.1.1 :100 :25
Hop Information
Hop 0 10.1.1.1 Local-Protection available | node
Hop 1 10.1.1.2 Label 32832
Hop 2 3.3.3.3 Label 32832
Hop 3 10.1.3.1 Local-Protection available
Hop 4 10.1.3.2 Label 3
Hop 5 5.5.5.5 Label 3

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 318


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Tunnel Interface Name : Tunnel1


Lsp ID : 1.1.1.1 :100 :25
Detour Lsp PLR ID :10.1.2.1
Hop Information
Hop 0 10.1.2.1
Hop 1 10.1.2.2 Label 32831
Hop 2 2.2.2.2 Label 32831
Hop 3 10.1.6.1
Hop 4 10.1.6.2 Label 32832
Hop 5 4.4.4.4 Label 32832
Hop 6 10.1.7.1
Hop 7 10.1.7.2 Label 32831
Hop 8 6.6.6.6 Label 32831
Hop 9 10.1.5.2
Hop 10 10.1.5.1 Label 3
Hop 11 5.5.5.5 Label 3

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
isis 1
is-level level-2
cost-style wide
network-entity 10.0001.0010.0100.1001.00
traffic-eng level-2
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.2.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 5.5.5.5
mpls te record-route label
mpls te detour
mpls te tunnel-id 100
#
return

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 319


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
isis 1
is-level level-2
cost-style wide
network-entity 10.0001.0020.0200.2002.00
traffic-eng level-2
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.6.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
return

● LSRC configuration file


#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
isis 1
is-level level-2
cost-style wide
network-entity 10.0001.0030.0300.3003.00
traffic-eng level-2
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.4.1 255.255.255.0
isis enable 1
mpls

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 320


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/3
undo shutdown
ip address 10.1.3.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return
● LSRD configuration file
#
sysname LSRD
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
isis 1
is-level level-2
cost-style wide
network-entity 10.0001.0040.0400.4004.00
traffic-eng level-2
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.6.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.4.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/3
undo shutdown
ip address 10.1.7.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
return
● LSRE configuration file
#
sysname LSRE
#
mpls lsr-id 5.5.5.5
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 321


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls
mpls te
mpls rsvp-te
mpls te cspf
#
isis 1
is-level level-2
cost-style wide
network-entity 10.0001.0050.0500.5005.00
traffic-eng level-2
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.3.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.5.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
isis enable 1
#
return

● LSRF configuration file


#
sysname LSRF
#
mpls lsr-id 6.6.6.6
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
isis 1
is-level level-2
cost-style wide
network-entity 10.0001.0060.0600.6006.00
traffic-eng level-2
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.5.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.7.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 6.6.6.6 255.255.255.255
isis enable 1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 322


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
return

1.1.3.43.16 Example for Configure a Hot-standby CR-LSP

Networking Requirements
Figure 1-26 illustrates an MPLS VPN network. A TE tunnel is established from PE1
to PE2. A hot-standby CR-LSP and a best-effort path are configured. The
networking is as follows:
● The primary CR-LSP is along the path PE1 -> P1 -> PE2.
● The hot-standby CR-LSP is along the path PE1 -> P2 -> PE2.
If the primary CR-LSP fails, traffic switches to the backup CR-LSP. After the primary
CR-LSP recovers, traffic switches back to the primary CR-LSP after a 15-second
delay. If both the primary and backup CR-LSPs fail, traffic switches to the best-
effort path. Explicit paths can be configured for the primary and backup CR-LSPs.
A best-effort path can be generated automatically. In this example, the best-effort
path is PE1 -> P2 -> P1 -> PE2. The calculated best-effort path varies according to
the faulty node.

Figure 1-26 Networking diagram for a hot-standby CR-LSP


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 2/0/0, and GE 3/0/0,


respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 323


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Notes
None.

Configuration Roadmap
The configuration roadmap is as follows:

1. Assign an IP address to every interface and configure an IGP to implement


connectivity.
2. Configure basic MPLS and MPLS TE functions.
3. Configure explicit paths on PE1 for the primary and hot-standby CR-LSPs.
4. Create a tunnel destined for PE2; specify explicit paths; enable hot standby;
configure a best-effort path; set the switchback delay time to 15 seconds on
PE1.

Data Preparation
To complete the configuration, you need the following data:

● IGP type and data


● MPLS LSR IDs
● Tunnel interface number and bandwidth
● Explicit paths for the primary and hot-standby CR-LSPs

Procedure
Step 1 Assign an IP address to each interface.

Assign an IP address and its mask to every interface and configure a loopback
interface address as an LSR ID on every node. For configuration details, see
Configuration Files in this section.

Step 2 Configure an IGP.

Configure OSPF or IS-IS on every node to implement connectivity between them.


IS-IS is used in this example. For configuration details, see Configuration Files in
this section.

Step 3 Configure basic MPLS functions.

Set an LSR ID in the system view, and enable MPLS in the system and physical
interface views on every node. For configuration details, see Configuration Files
in this section.

Step 4 Configure basic MPLS TE functions.

Enable MPLS TE and RSVP-TE in the MPLS and interface views on every node. For
configuration details, see Configuration Files in this section.

Step 5 Configure IS-IS TE and CSPF.

Configure IS-IS TE on all nodes and enable CSPF on PE1. For configuration details,
see Configuring an RSVP-TE Tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 324


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 6 Configure explicit paths for the primary and hot-standby CR-LSPs.
# Configure an explicit path for the primary CR-LSP on PE1.
<PE1> system-view
[~PE1] explicit-path main
[*PE1-explicit-path-main] next hop 10.4.1.2
[*PE1-explicit-path-main] next hop 10.2.1.2
[*PE1-explicit-path-main] next hop 3.3.3.3
[*PE1-explicit-path-main] quit

# Configure an explicit path for the hot-standby CR-LSP on PE1.


[*PE1] explicit-path backup
[*PE1-explicit-path-backup] next hop 10.3.1.2
[*PE1-explicit-path-backup] next hop 10.5.1.2
[*PE1-explicit-path-backup] next hop 3.3.3.3
[*PE1-explicit-path-backup] commit
[~PE1-explicit-path-backup] quit

# After completing the configurations, run the display explicit-path main


command on PE1. Information about the explicit paths for the primary and hot-
standby CR-LSPs is displayed.
[~PE1] display explicit-path main
Path Name : main Path Status : Enabled
1 10.4.1.2 Strict Include
2 10.2.1.2 Strict Include
3 3.3.3.3 Strict Include
[~PE1] display explicit-path backup
Path Name : backup Path Status : Enabled
1 10.3.1.2 Strict Include
2 10.5.1.2 Strict Include
3 3.3.3.3 Strict Include

Step 7 Configure tunnel interfaces.


# Create a tunnel interface on PE1 and specify an explicit path on PE1.
[~PE1] interface tunnel1
[*PE1-Tunnel1] ip address unnumbered interface loopback 1
[*PE1-Tunnel1] tunnel-protocol mpls te
[*PE1-Tunnel1] destination 3.3.3.3
[*PE1-Tunnel1] mpls te tunnel-id 502
[*PE1-Tunnel1] mpls te path explicit-path main

# Configure hot standby on the tunnel interface; set the switchback delay time to
15 seconds; specify an explicit path; configure a best-effort path.
[*PE1-Tunnel1] mpls te backup hot-standby mode revertive wtr 15
[*PE1-Tunnel1] mpls te path explicit-path backup secondary
[*PE1-Tunnel1] mpls te backup ordinary best-effort
[*PE1-Tunnel1] commit
[~PE1-Tunnel1] quit

After completing the configurations, run the display mpls te tunnel-interface


tunnel1 command on PE1. Both the primary and hot-standby CR-LSPs have been
established.
[~PE1] display mpls te tunnel-interface tunnel1
Tunnel Name : Tunnel1
Signalled Tunnel Name: -
Tunnel State Desc : Primary CR-LSP Up and HotBackup CR-LSP Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID : 502
Ingress LSR ID : 4.4.4.4 Egress LSR ID: 3.3.3.3

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 325


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Admin State : UP Oper State : UP


Signaling Protocol : RSVP
FTid : 161
Tie-Breaking Policy : None Metric Type : None
Bfd Cap : None
Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : 0 percent
Current Collected BW: 0 kbps Auto BW Freq : 0
Min BW : 0 kbps Max BW : 0 kbps
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name: -
Tunnel Group :-
Interfaces Protected: -
Excluded IP Address : -
Referred LSP Count : 0
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status :- Oam Status : -
IPTN InLabel :- Tunnel BFD Status : -
BackUp LSP Type : Hot-Standby BestEffort : Enabled
Secondary HopLimit : 32
BestEffort HopLimit : -
Secondary Explicit Path Name: backup
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : - P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : --
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : -

Primary LSP ID : 4.4.4.4:424


LSP State : UP LSP Type : Primary
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : main Hop Limit: 32
Record Route : Enabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 326


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Soft Preemption : Enabled


Reroute Flag : Disabled
Pce Flag : Normal Path Setup Type : EXPLICIT
Create Modify LSP Reason: -
Self-Ping Status : -

Backup LSP ID : 4.4.4.4:423


IsBestEffortPath : No
LSP State : UP LSP Type : Hot-Standby
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : backup Hop Limit: 32
Record Route : Enabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal Path Setup Type : EXPLICIT
Create Modify LSP Reason: -
Self-Ping Status : -

# Run the following command. Hot standby information is displayed.


[~PE1] display mpls te hot-standby state interface Tunnel1
----------------------------------------------------------------
Verbose information about the Tunnel1 hot-standby state
----------------------------------------------------------------
Tunnel Name : Tunnel1
Session ID : 502
Main LSP index : 0xC1
Hot-Standby LSP index : 0xE1
HSB switch result : main LSP
HSB switch reason :-
WTR config time : 15 s WTR remain time :-
Using overlapped path : no
Fast switch status : no

# Run the ping lsp te command. The hot-standby CR-LSP is reachable.


[~PE1] ping lsp te tunnel1 hot-standby
LSP PING FEC: RSVP IPV4 SESSION QUERY Tunnel1 : 100 data bytes, press CTRL_C to break
Reply from 3.3.3.3: bytes=100 Sequence=1 time = 4 ms
Reply from 3.3.3.3: bytes=100 Sequence=2 time = 3 ms
Reply from 3.3.3.3: bytes=100 Sequence=3 time = 3 ms
Reply from 3.3.3.3: bytes=100 Sequence=4 time = 3 ms
Reply from 3.3.3.3: bytes=100 Sequence=5 time = 6 ms
--- FEC: RSVP IPV4 SESSION QUERY Tunnel1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/3/6 ms

# Run the tracert lsp te command. The path for the hot-standby CR-LSP is
reachable.
[~PE1] tracert lsp te tunnel1 hot-standby
LSP Trace Route FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel1 , press CTRL_C to break.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 327


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

TTL Replier Time Type Downstream


0 Ingress 10.3.1.2/[13313 ]
1 10.3.1.2 90 ms Transit 10.5.1.2/[3 ]
2 3.3.3.3 130 ms Egress

Step 8 Verify the configuration.


Connect port 1 and port 2 on a tester to PE1 and PE2, respectively. Set correct
label values. Inject MPLS traffic from port 1 to port 2. After the cable is removed
from GE 2/0/0 on PE1 or GE 2/0/0 on P1, traffic is restored within milliseconds.
Run the display mpls te hot-standby state interface tunnel1 command on PE1.
Traffic has switched to the hot-standby CR-LSP.
[~PE1] display mpls te hot-standby state interface tunnel1
----------------------------------------------------------------
Verbose information about the Tunnel1 hot-standby state
----------------------------------------------------------------
Tunnel Name : Tunnel1
Session ID : 502
Main LSP index : 0x0
Hot-Standby LSP index : 0xE1
HSB switch result : hot-standby LSP
HSB switch reason : signal fail WTR config time : 10 s WTR remain time :-
Using overlapped path : no
Fast switch status : no

Insert the cable into GE 2/0/0 and wait 15 seconds. It can be seen that traffic
switches back to the primary CR-LSP.
If the cables to GE 2/0/0 on PE1 (or GE 2/0/0 on P1) and PE2 (or P2) are removed,
the tunnel interface goes Down and then Up. A best-effort path is established and
takes over traffic.
[~PE1] display mpls te tunnel-interface tunnel1
Tunnel Name : Tunnel1
Signalled Tunnel Name: -
Tunnel State Desc : Backup CR-LSP In use and Primary CR-LSP setting Up
Tunnel Attributes :
Active LSP : BestEffort LSP
Traffic Switch :-
Session ID : 502
Ingress LSR ID : 4.4.4.4 Egress LSR ID: 3.3.3.3
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid : 161
Tie-Breaking Policy : None Metric Type : None
Bfd Cap : None
Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : 0 percent
Current Collected BW: 0 kbps Auto BW Freq : 0
Min BW : 0 kbps Max BW : 0 kbps
Offload : Disabled Offload Freq : 0 sec
Low Value : 0 kbps High Value : 0 kbps
Readjust Value : 0 kbps
Offload Explicit Path Name: -
Tunnel Group :-
Interfaces Protected: -
Excluded IP Address : -
Referred LSP Count : 0
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status :- Oam Status : -
IPTN InLabel :- Tunnel BFD Status : -
BackUp LSP Type : BestEffort BestEffort : Enabled
Secondary HopLimit : 32
BestEffort HopLimit : -
Secondary Explicit Path Name: backup

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 328


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Secondary Affinity Prop/Mask: 0x0/0x0


BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled Bit Error Detection Switch Threshold: - Bit Error Detection Resume
Threshold: -
Ip-Prefix Name : - P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : --
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None
Binding Sid :- Reverse Binding Sid : -
Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : No

Primary LSP ID : 4.4.4.4:436


LSP State : DOWN LSP Type : Primary
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : main Hop Limit: 32
Record Route : Enabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal Path Setup Type : EXPLICIT
Create Modify LSP Reason: -
Self-Ping Status : -

Backup LSP ID : 4.4.4.4:440


IsBestEffortPath : No
LSP State : DOWN LSP Type : Hot-Standby
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : backup Hop Limit: 32
Record Route : Enabled Record Label : Disabled
Route Pinning : Disabled

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 329


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

FRR Flag : Disabled


IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal Path Setup Type : EXPLICIT
Create Modify LSP Reason: -
Self-Ping Status : -

Backup LSP ID : 4.4.4.4:439


IsBestEffortPath : Yes
LSP State : UP LSP Type : BestEffort
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : - Hop Limit: -
Record Route : Enabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal Path Setup Type : CSPF
Create Modify LSP Reason: -
Self-Ping Status : -
[~PE1] display mpls te tunnel path
Tunnel Interface Name : Tunnel1
Lsp ID : 4.4.4.4 :502 :32776
Hop Information
Hop 0 10.3.1.1
Hop 1 10.3.1.2
Hop 2 2.2.2.2
Hop 3 10.1.1.2
Hop 4 10.1.1.1
Hop 5 1.1.1.1
Hop 6 10.2.1.1
Hop 7 10.2.1.2
Hop 8 3.3.3.3

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
explicit-path backup

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 330


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

next hop 10.3.1.2


next hop 10.5.1.2
next hop 3.3.3.3
#
explicit-path main
next hop 10.4.1.2
next hop 10.2.1.2
next hop 3.3.3.3
#
isis 1
cost-style wide
traffic-eng level-1-2
network-entity 10.0000.0000.0004.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te record-route
mpls te backup ordinary best-
effort
mpls te backup hot-standby mode revertive wtr 15
mpls te tunnel-id 502
mpls te path explicit-path main
mpls te path explicit-path backup secondary
#
return
● P1 configuration file
#
sysname P1
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
traffic-eng level-1-2
network-entity 10.0000.0000.0001.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 331


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
isis enable 1
ip address 1.1.1.1 255.255.255.255
#
return
● P2 configuration file
#
sysname P2
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
traffic-eng level-1-2
network-entity 10.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.5.1.1 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
return
● PE2 configuration file
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 332


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

sysname PE2
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
traffic-eng level-1-2
network-entity 10.0000.0000.0003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.5.1.2 255.255.255.252
mpls
mpls te
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return

1.1.3.43.17 Example for Configuring a Tunnel Protection Group Consisting of


Bidirectional Co-routed CR-LSPs
A tunnel protection group provides end-to-end protection for MPLS TE traffic if a
network fault occurs. This section provides an example for configuring a tunnel
protection group consisting of static bidirectional co-routed CR-LSPs.

Context
A tunnel protection group consists of static bidirectional co-routed CR-LSPs. If the
working tunnel fails, forward traffic and reverse traffic are both switched to the
protection tunnel, which helps improve network reliability.

On the MPLS network shown in Figure 1-27, a working tunnel is established over
the path LSRA -> LSRB -> LSRC, and a protection tunnel is established over the
path LSRA -> LSRD -> LSRC. To ensure that MPLS TE traffic is not interrupted if a
fault occurs, configure static bidirectional co-routed CR-LSPs for both working and
protection tunnels and combine them into a tunnel protection group.

Figure 1-27 Networking diagram for a tunnel protection group consisting of static
bidirectional co-routed CR-LSPs
NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 1/0/1, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 333


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address to each interface and configure a routing protocol.
2. Configure basic MPLS functions and enable MPLS TE.
3. Configure the ingress, transit nodes, and egress for each static bidirectional
co-routed CR-LSP.
4. Configure MPLS TE tunnel interfaces for the working and protection tunnels
and bind a specific static bidirectional co-routed CR-LSP to each tunnel
interface.
5. Configure an MPLS TE tunnel protection group.
6. Configure a detection mechanism to monitor the configured tunnel protection
group. MPLS-TP OAM is used in this example.

Data Preparation
To complete the configuration, you need the following data:
● Tunnel interface names, tunnel interface IP addresses, destination addresses,
tunnel IDs, and tunnel signaling protocol (CR-Static) on LSRA and LSRC
● Next-hop address and outgoing label on the ingress
● Inbound interface name, next-hop address, and outgoing label on the transit
node
● Inbound interface name on the egress

Procedure
Step 1 Assign an IP address to each interface and configure a routing protocol.
# Assign an IP address and a mask to each interface and configure static routes so
that all LSRs can interconnect with each other.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 334


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

For configuration details, see Configuration Files in this section.

Step 2 Configure basic MPLS functions and enable MPLS TE.

# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] interface gigabitethernet 1/0/1
[*LSRA-GigabitEthernet1/0/1] mpls
[*LSRA-GigabitEthernet1/0/1] mpls te
[*LSRA-GigabitEthernet1/0/1] commit
[~LSRA-GigabitEthernet1/0/1] quit

Repeat this step for LSRB, LSRC, and LSRD. For configuration details, see
Configuration Files in this section.

Step 3 Configure the ingress, transit nodes, and egress for each static bidirectional co-
routed CR-LSP.

# Configure LSRA as the ingress on both the working and protection static
bidirectional co-routed CR-LSPs.
[~LSRA] bidirectional static-cr-lsp ingress Tunnel10
[*LSRA-bi-static-ingress-Tunnel10] forward nexthop 10.21.1.2 out-label 20
[*LSRA-bi-static-ingress-Tunnel10] backward in-label 20
[*LSRA-bi-static-ingress-Tunnel10] quit
[*LSRA] bidirectional static-cr-lsp ingress Tunnel11
[*LSRA-bi-static-ingress-Tunnel11] forward nexthop 10.41.1.2 out-label 21
[*LSRA-bi-static-ingress-Tunnel11] backward in-label 21
[*LSRA-bi-static-ingress-Tunnel11] commit
[~LSRA-bi-static-ingress-Tunnel11] quit

# Configure LSRB as a transit node on the working static bidirectional co-routed


CR-LSP.
[~LSRB]bidirectional static-cr-lsp transit lsp1
[*LSRB-bi-static-transit-lsp1] forward in-label 20 nexthop 10.32.1.2 out-label 40
[*LSRB-bi-static-transit-lsp1] backward in-label 16 nexthop 10.21.1.1 out-label 20
[*LSRB-bi-static-transit-lsp1] commit
[~LSRB-bi-static-transit-lsp1] quit

# Configure LSRD as a transit node on the protection static bidirectional co-routed


CR-LSP.
[~LSRD]bidirectional static-cr-lsp transit lsp2
[*LSRD-bi-static-transit-lsp2] forward in-label 21 nexthop 10.34.1.2 out-label 41
[*LSRD-bi-static-transit-lsp2] backward in-label 17 nexthop 10.41.1.1 out-label 21
[*LSRD-bi-static-transit-lsp2] commit
[~LSRD-bi-static-transit-lsp2] quit

# Configure LSRC as the egress on both the working and protection static
bidirectional co-routed CR-LSPs.
[~LSRC] bidirectional static-cr-lsp egress lsp1
[*LSRC-bi-static-egress-lsp1] forward in-label 40 lsrid 1.1.1.1 tunnel-id 100
[*LSRC-bi-static-egress-lsp1] backward nexthop 10.32.1.1 out-label 16
[*LSRC-bi-static-egress-lsp1] quit
[*LSRC] bidirectional static-cr-lsp egress lsp2
[*LSRC-bi-static-egress-lsp2] forward in-label 41 lsrid 1.1.1.1 tunnel-id 101
[*LSRC-bi-static-egress-lsp2] backward nexthop 10.34.1.1 out-label 17
[*LSRC-bi-static-egress-lsp2] commit
[~LSRC-bi-static-egress-lsp2] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 335


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 4 Configure MPLS TE tunnel interfaces for the working and protection tunnels and
bind a specific static bidirectional co-routed CR-LSP to each tunnel interface.
# On LSRA, configure MPLS TE tunnel interfaces named Tunnel 10 and Tunnel 11.
[~LSRA] interface Tunnel 10
[*LSRA-Tunnel10] ip address unnumbered interface loopback 1
[*LSRA-Tunnel10] tunnel-protocol mpls te
[*LSRA-Tunnel10] destination 3.3.3.3
[*LSRA-Tunnel10] mpls te tunnel-id 100
[*LSRA-Tunnel10] mpls te signal-protocol cr-static
[*LSRA-Tunnel10] mpls te bidirectional
[*LSRA-Tunnel10] quit
[*LSRA] interface Tunnel 11
[*LSRA-Tunnel11] ip address unnumbered interface loopback 1
[*LSRA-Tunnel11] tunnel-protocol mpls te
[*LSRA-Tunnel11] destination 3.3.3.3
[*LSRA-Tunnel11] mpls te tunnel-id 101
[*LSRA-Tunnel11] mpls te signal-protocol cr-static
[*LSRA-Tunnel11] mpls te bidirectional
[*LSRA-Tunnel11] commit
[~LSRA-Tunnel11] quit

# On LSRC, configure MPLS TE tunnel interfaces named Tunnel 20 and Tunnel 21.
[~LSRC] interface Tunnel 20
[*LSRC-Tunnel20] ip address unnumbered interface loopback 1
[*LSRC-Tunnel20] tunnel-protocol mpls te
[*LSRC-Tunnel20] destination 1.1.1.1
[*LSRC-Tunnel20] mpls te tunnel-id 200
[*LSRC-Tunnel20] mpls te signal-protocol cr-static
[*LSRC-Tunnel20] mpls te passive-tunnel
[*LSRC-Tunnel20] mpls te binding bidirectional static-cr-lsp egress lsp1
[*LSRC-Tunnel20] quit
[*LSRC] interface Tunnel 21
[*LSRC-Tunnel21] ip address unnumbered interface loopback 1
[*LSRC-Tunnel21] tunnel-protocol mpls te
[*LSRC-Tunnel21] destination 1.1.1.1
[*LSRC-Tunnel21] mpls te tunnel-id 201
[*LSRC-Tunnel21] mpls te signal-protocol cr-static
[*LSRC-Tunnel21] mpls te passive-tunnel
[*LSRC-Tunnel21] mpls te binding bidirectional static-cr-lsp egress lsp2
[*LSRC-Tunnel21] commit
[~LSRC-Tunnel21] quit

Step 5 Configure an MPLS TE tunnel protection group.


# On LSRA, configure a tunnel protection group that consists of a working tunnel
named Tunnel 10 and its protection tunnel named Tunnel 11.
[~LSRA] interface Tunnel 10
[*LSRA-Tunnel10] mpls te protection tunnel 101 mode revertive wtr 0
[*LSRA-Tunnel10] commit
[~LSRA-Tunnel10] quit

# On LSRC, configure a tunnel protection group that consists of a working tunnel


named Tunnel 20 and its protection tunnel named Tunnel 21.
[~LSRC] interface Tunnel 20
[*LSRC-Tunnel20] mpls te protection tunnel 201 mode revertive wtr 0
[*LSRC-Tunnel20] commit
[~LSRC-Tunnel20] quit

Step 6 Configure a detection mechanism to monitor the configured tunnel protection


group. MPLS-TP OAM is used in this example.
On LSRA, configure MPLS-TP OAM on Tunnel 10.
[~LSRA] mpls-tp meg abc
[~LSRA-mpls-tp-meg-abc] me te interface Tunnel10 mep-id 1 remote-mep-id 2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 336


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRA-mpls-tp-meg-abc] commit
[~LSRA-mpls-tp-meg-abc] quit

On LSRC, configure MPLS-TP OAM on Tunnel 20.


[~LSRC] mpls-tp meg abc
[~LSRC-mpls-tp-meg-abc] me te interface Tunnel20 mep-id 2 remote-mep-id 1
[*LSRC-mpls-tp-meg-abc] commit
[~LSRC-mpls-tp-meg-abc] quit

Step 7 Verify the configuration.


After completing the configuration, run the display mpls te protection tunnel all
verbose command on LSRA. The command output shows that the tunnel
interfaces are working properly.
# Check the configuration results on LSRA.
[~LSRA] display mpls te protection tunnel all verbose

----------------------------------------------------------------
Verbose information about the No."1" protection-group
----------------------------------------------------------------
Work-tunnel id : 100
Protect-tunnel id : 101
Work-tunnel name : Tunnel10
Protect-tunnel name : Tunnel11
Work-tunnel reverse-lsp :-
Protect-tunnel reverse-lsp :-
Bridge type : 1:1
Switch type : bidirectional
Switch result : work-tunnel
Tunnel using Best-Effort : none
Tunnel using Ordinary : none
Work-tunnel frr in use : none
Work-tunnel defect state : non-defect
Protect-tunnel defect state : non-defect
Work-tunnel forward-lsp defect state : non-defect
Protect-tunnel forward-lsp defect state : non-defect
Work-tunnel reverse-lsp defect state : non-defect
Protect-tunnel reverse-lsp defect state : non-defect
HoldOff config time : 0ms
HoldOff remain time :-
WTR config time : 0s
WTR remain time :-
Mode : revertive
Using same path :-
Local state : no request
Far end request : no request

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
#
bidirectional static-cr-lsp ingress Tunnel10
forward nexthop 10.21.1.2 out-label 20
backward in-label 20
#
bidirectional static-cr-lsp ingress Tunnel11
forward nexthop 10.41.1.2 out-label 21

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 337


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

backward in-label 21
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.21.1.1 255.255.255.0
mpls
mpls te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.41.1.1 255.255.255.0
mpls
mpls te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te signal-protocol cr-static
mpls te tunnel-id 100
mpls te bidirectional
mpls te protection tunnel 101 mode revertive wtr 0
#
interface Tunnel11
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te signal-protocol cr-static
mpls te tunnel-id 101
mpls te bidirectional
#
ip route-static 2.2.2.2 255.255.255.255 10.21.1.2
ip route-static 3.3.3.3 255.255.255.255 10.21.1.2
ip route-static 3.3.3.3 255.255.255.255 10.41.1.2
ip route-static 4.4.4.4 255.255.255.255 10.41.1.2
#
mpls-tp meg abc
me te interface Tunnel10 mep-id 1 remote-mep-id 2
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
#
bidirectional static-cr-lsp transit lsp1
forward in-label 20 nexthop 10.32.1.2 out-label 40
backward in-label 16 nexthop 10.21.1.1 out-label 20
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.21.1.2 255.255.255.0
mpls
mpls te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.32.1.1 255.255.255.0
mpls
mpls te
#
interface LoopBack1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 338


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 2.2.2.2 255.255.255.255


#
ip route-static 1.1.1.1 255.255.255.255 10.21.1.1
ip route-static 3.3.3.3 255.255.255.255 10.32.1.2
#
return

● LSRC configuration file


#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
#
bidirectional static-cr-lsp egress lsp1
forward in-label 40 lsrid 1.1.1.1 tunnel-id 100
backward nexthop 10.32.1.1 out-label 16
#
bidirectional static-cr-lsp egress lsp2
forward in-label 41 lsrid 1.1.1.1 tunnel-id 101
backward nexthop 10.34.1.1 out-label 17
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.32.1.2 255.255.255.0
mpls
mpls te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.34.1.2 255.255.255.0
mpls
mpls te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
interface Tunnel20
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.1
mpls te signal-protocol cr-static
mpls te tunnel-id 200
mpls te passive-tunnel
mpls te binding bidirectional static-cr-lsp egress lsp1
mpls te protection tunnel 201 mode revertive wtr 0
#
interface Tunnel21
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.1
mpls te signal-protocol cr-static
mpls te tunnel-id 201
mpls te passive-tunnel
mpls te binding bidirectional static-cr-lsp egress lsp2
#
ip route-static 1.1.1.1 255.255.255.255 10.32.1.1
ip route-static 1.1.1.1 255.255.255.255 10.34.1.1
ip route-static 2.2.2.2 255.255.255.255 10.32.1.1
ip route-static 4.4.4.4 255.255.255.255 10.34.1.1
#
mpls-tp meg abc
me te interface Tunnel20 mep-id 2 remote-mep-id 1
#
return

● LSRD configuration file

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 339


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
sysname LSRD
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
#
bidirectional static-cr-lsp transit lsp2
forward in-label 21 nexthop 10.34.1.2 out-label 41
backward in-label 17 nexthop 10.41.1.1 out-label 21
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.41.1.2 255.255.255.0
mpls
mpls te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.34.1.1 255.255.255.0
mpls
mpls te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
ip route-static 1.1.1.1 255.255.255.255 10.41.1.1
ip route-static 3.3.3.3 255.255.255.255 10.34.1.2
#
return

1.1.3.43.18 Example for Configuring Isolated LSP Computation


This section provides an example for configuring isolated label switched path
(LSP) computation.

Networking Requirements
Isolated primary and hot-standby LSPs are necessary to improve the LSP reliability
on IP radio access networks (IP RANs) that use Multiprotocol Label Switching
(MPLS) Traffic Engineering (TE). The constrained shortest path first (CSPF)
algorithm does not meet this reliability requirement because CSPF may compute
two LSPs that intersect at aggregation nodes. Specifying explicit paths for LSPs
can improve reliability but this method does not adapt to topology changes. Each
time a node is added to or deleted from the IP RAN, operators must configure
new explicit paths, which is time-consuming and laborious. Isolated LSP
computation is another method to improve reliability. After this function is
configured, the device uses both the disjoint and CSPF algorithms to compute
isolated primary and hot-standby LSPs.

Figure 1-28 illustrates an IP RAN that uses a Resource Reservation Protocol -


Traffic Engineering (RSVP-TE) tunnel. Devices on this network use the Open
Shortest Path First (OSPF) protocol for communication. The numeral on each link
represents the link TE metric. An RSVP-TE tunnel needs to be established between
LSRA and LSRF. The constraint-based routed label switched path (CR-LSP) hot
standby function needs to be enabled.

Two isolated LSPs exist on this topology: LSRA -> LSRC -> LSRE -> LSRF and LSRA
-> LSRB -> LSRD -> LSRF. However, if the disjoint algorithm is not enabled, CSPF
computes LSRA -> LSRC-> LSRD-> LSRF as the primary LSP and cannot compute

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 340


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

an isolated hot-standby LSP. To improve LSP reliability, configure isolated LSP


computation.

Figure 1-28 RSVP-TE tunnel networking

Table 1-18 Interfaces and IP addresses


Device Interface IP Address Device Interface IP Address
Name Name and Mask Name Name and Mask

LSRA Loopback1 1.1.1.1/32 LSRB Loopback1 2.2.2.2/32

GE 1/0/0 10.1.1.1/24 GE 1/0/0 10.1.2.2/24

GE 1/0/1 10.1.2.1/24 GE 1/0/1 10.1.6.1/24

LSRC Loopback1 3.3.3.3/32 LSRD Loopback1 4.4.4.4/32

GE 1/0/0 10.1.1.2/24 GE 1/0/0 10.1.6.2/24

GE 1/0/1 10.1.3.1/24 GE 1/0/1 10.1.3.2/24

GE 1/0/2 10.1.4.1/24 GE 1/0/2 10.1.7.1/24

LSRE Loopback1 5.5.5.5/32 LSRF Loopback1 6.6.6.6/32

GE 1/0/0 10.1.4.2/24 GE 1/0/0 10.1.7.2/24

GE 1/0/1 10.1.5.1/24 GE 1/0/1 10.1.5.2/24

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign addresses to all physical and loopback interfaces listed in Table 1-18.
2. Globally enable OSPF on each device so that OSPF advertises segment routes
of each physical and loopback interface. Enable OSPF TE in the area where
the devices reside.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 341


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

3. Set MPLS label switching router (LSR) IDs for all devices and globally enable
MPLS, TE, RSVP-TE, and CSPF.
4. Enable MPLS, TE, and RSVP-TE on the outbound interfaces of all links along
the TE tunnel. Set a TE metric for each link according to Figure 1-28.
5. Create a tunnel interface on LSRA and specify the IP address, tunnel protocol,
destination address, tunnel ID, and signaling protocol RSVP-TE for the tunnel
interface.
6. Enable the CR-LSP hot standby function and the disjoint algorithm on the
tunnel interface.

Data Preparation
To complete the configuration, you need the following data:
● IP address for each interface (see Table 1-18.)
● OSPF process ID (1) and area ID (0.0.0.0)
● TE metric for each link (see Figure 1-28.)
● Loopback interface address for each MPLS LSR ID
● Tunnel interface number (Tunnel1), tunnel ID (1), loopback interface address
to be borrowed, destination address (6.6.6.6), and signaling protocol (RSVP-
TE)

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address to each interface and create a loopback interface on each
device, according to Table 1-18. For detailed configurations, see Configuration
Files in this section.
Step 2 Enable OSPF on each device.
Enable basic OSPF functions and MPLS TE on each device.
# Configure LSRA.
<LSRA> system-view
[~LSRA] ospf 1
[*LSRA-ospf-1] opaque-capability enable
[*LSRA-ospf-1] area 0.0.0.0
[*LSRA-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[*LSRA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[*LSRA-ospf-1-area-0.0.0.0] network 10.1.2.0 0.0.0.255
[*LSRA-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRA-ospf-1-area-0.0.0.0] commit
[~LSRA-ospf-1-area-0.0.0.0] quit
[~LSRA-ospf-1] quit

Repeat this step for LSRB, LSRC, LSRD, LSRE, and LSRF. For configuration details,
see Configuration Files in this section.
Step 3 Configure basic MPLS functions and enable MPLS TE, RSVP-TE, and CSPF.
Enable MPLS, MPLS TE, RSVP-TE, and CSPF on each device. Enable MPLS, TE, and
RSVP-TE on the outbound interface of each link. Set a TE metric for each link.
# Configure LSRA.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 342


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRA] mpls lsr-id 1.1.1.1


[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/0] mpls te metric 1
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] interface gigabitethernet 1/0/1
[*LSRA-GigabitEthernet1/0/1] mpls
[*LSRA-GigabitEthernet1/0/1] mpls te
[*LSRA-GigabitEthernet1/0/1] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/1] mpls te metric 10
[*LSRA-GigabitEthernet1/0/1] quit
[*LSRA] commit

Repeat this step for LSRB, LSRC, LSRD, LSRE, and LSRF. For configuration details,
see Configuration Files in this section.
Step 4 Configure an MPLS TE tunnel interface.
# Configure LSRA.
[~LSRA] interface tunnel1
[*LSRA-Tunnel1] ip address unnumbered interface LoopBack1
[*LSRA-Tunnel1] tunnel-protocol mpls te
[*LSRA-Tunnel1] destination 6.6.6.6
[*LSRA-Tunnel1] mpls te tunnel-id 1
[*LSRA-Tunnel1] mpls te signal-protocol rsvp-te
[*LSRA-Tunnel1] commit

Step 5 Configure isolated LSP computation.


Enable the CR-LSP hot standby function and the disjoint algorithm on the tunnel
interface.
# Configure LSRA.
[~LSRA-Tunnel1] mpls te backup hot-standby
[*LSRA-Tunnel1] mpls te cspf disjoint
[*LSRA-Tunnel1] commit
[~LSRA-Tunnel1] quit

Step 6 Verify the configuration.


# Run the display mpls te cspf destination 6.6.6.6 computation-mode disjoint
command on LSRA. The command output shows that the primary LSP is LSRA ->
LSRC -> LSRE -> LSRF and the hot-standby LSP is LSRA-> LSRB-> LSRD-> LSRF. The
two LSPs do not intersect.
[~LSRA] display mpls te cspf destination 6.6.6.6 computation-mode disjoint
Main path for the given constraints is:
1.1.1.1 Include LSR-ID
10.1.1.1 Include
10.1.1.2 Include
3.3.3.3 Include LSR-ID
10.1.4.1 Include
10.1.4.2 Include
5.5.5.5 Include LSR-ID
10.1.5.1 Include
10.1.5.2 Include
6.6.6.6 Include LSR-ID
The total metrics of the calculated path is : 16

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 343


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Hot-standby path for the given constraints is:


1.1.1.1 Include LSR-ID
10.1.2.1 Include
10.1.2.2 Include
2.2.2.2 Include LSR-ID
10.1.6.1 Include
10.1.6.2 Include
4.4.4.4 Include LSR-ID
10.1.7.1 Include
10.1.7.2 Include
6.6.6.6 Include LSR-ID
Complete disjoint path computed and the total metrics of the calculated path is : 21

# Run the display mpls te tunnel-interface Tunnel1 and display mpls te tunnel
path Tunnel1 commands on LSRA to view information about the primary and
hot-standby LSPs.
[~LSRA] display mpls te tunnel-interface Tunnel1
Tunnel Name : Tunnel1
Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID :1
Ingress LSR ID : 1.1.1.1 Egress LSR ID: 6.6.6.6
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid :1
Tie-Breaking Policy : None Metric Type : None
Bfd Cap : None
Reopt : Disabled Reopt Freq : -
Inter-area Reopt : Disabled
Auto BW : Disabled Threshold : 0 percent
Current Collected BW: 0 kbps Auto BW Freq : 0
Min BW : 0 kbps Max BW : 0 kbps
Offload : Disabled Offload Freq : -
Low Value :- High Value : -
Readjust Value :-
Offload Explicit Path Name:
Tunnel Group :-
Interfaces Protected: -
Excluded IP Address : -
Referred LSP Count : 0
Primary Tunnel :- Pri Tunn Sum : -
Backup Tunnel :-
Group Status : Up Oam Status : -
IPTN InLabel :- Tunnel BFD Status : -
BackUp LSP Type : Hot-Standby BestEffort : Enabled
Secondary HopLimit : -
BestEffort HopLimit : -
Secondary Explicit Path Name: -
Secondary Affinity Prop/Mask: 0x0/0x0
BestEffort Affinity Prop/Mask: 0x0/0x0
IsConfigLspConstraint: -
Hot-Standby Revertive Mode: Revertive
Hot-Standby Overlap-path: Disabled
Hot-Standby Switch State: CLEAR
Bit Error Detection: Disabled
Bit Error Detection Switch Threshold: -
Bit Error Detection Resume Threshold: -
Ip-Prefix Name : -
P2p-Template Name : -
PCE Delegate : No LSP Control Status : Local control
Path Verification : --
Entropy Label : None
Associated Tunnel Group ID: - Associated Tunnel Group Type: -
Auto BW Remain Time : 200 s Reopt Remain Time : 100 s
Metric Inherit IGP : None

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 344


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Binding Sid :- Reverse Binding Sid : -


Self-Ping : Disable Self-Ping Duration : 1800 sec
FRR Attr Source : - Is FRR degrade down : No

Primary LSP ID : 1.1.1.1:19


LSP State : UP LSP Type : Primary
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 10000 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : - Hop Limit: -
Record Route : Disabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Disabled
Pce Flag : Normal
Path Setup Type : CSPF
Create Modify LSP Reason: -
Self-Ping Status : -

Backup LSP ID : 1.1.1.9:46945


IsBestEffortPath : No
LSP State : UP LSP Type : Hot-Standby
Setup Priority :7 Hold Priority: 7
IncludeAll : 0x0
IncludeAny : 0x0
ExcludeAny : 0x0
Affinity Prop/Mask : 0x0/0x0 Resv Style : SE
Configured Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Actual Bandwidth Information:
CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0
CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0
CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0
CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0
Explicit Path Name : - Hop Limit: -
Record Route : Enabled Record Label : Disabled
Route Pinning : Disabled
FRR Flag : Disabled
IdleTime Remain :-
BFD Status :-
Soft Preemption : Enabled
Reroute Flag : Enabled
Pce Flag : Normal
Path Setup Type : CSPF
Create Modify LSP Reason: -
Self-Ping Status : -
[~LSRA] display mpls te tunnel path Tunnel1
Tunnel Interface Name : Tunnel1
Lsp ID : 1.1.1.1 :1 :2
Hop Information
Hop 0 10.1.1.1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 345


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Hop 1 10.1.1.2
Hop 2 3.3.3.3
Hop 3 10.1.4.1
Hop 4 10.1.4.2
Hop 5 5.5.5.5
Hop 6 10.1.5.1
Hop 7 10.1.5.2
Hop 8 6.6.6.6

Tunnel Interface Name : Tunnel1


Lsp ID : 1.1.1.1 :1 :3
Hop Information
Hop 0 10.1.2.1
Hop 1 10.1.2.2
Hop 2 2.2.2.2
Hop 3 10.1.6.1
Hop 4 10.1.6.2
Hop 5 4.4.4.4
Hop 6 10.1.7.1
Hop 7 10.1.7.2
Hop 8 6.6.6.6

The command outputs show that the computed primary and hot-standby LSPs are
the same as the actual primary and hot-standby LSPs, indicating that the device
has computed two isolated LSPs.
----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls te
mpls te metric 1
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.1 255.255.255.0
mpls
mpls te
mpls te metric 10
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 6.6.6.6
mpls te record-route
mpls te backup hot-standby
mpls te tunnel-id 1
mpls te cspf disjoint

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 346


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
ospf 1
opaque-capability enable
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
mpls-te enable
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.2.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.6.1 255.255.255.0
mpls
mpls te
mpls te metric 10
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.6.0 0.0.0.255
mpls-te enable
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 347


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 10.1.3.1 255.255.255.0


mpls
mpls te
mpls te metric 1
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.4.1 255.255.255.0
mpls
mpls te
mpls te metric 5
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.1.3.0 0.0.0.255
network 10.1.4.0 0.0.0.255
mpls-te enable
#
return
● LSRD configuration file
#
sysname LSRD
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.6.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.3.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.7.1 255.255.255.0
mpls
mpls te
mpls te metric 1
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.1.3.0 0.0.0.255
network 10.1.6.0 0.0.0.255

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 348


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

network 10.1.7.0 0.0.0.255


mpls-te enable
#
return
● LSRE configuration file
#
sysname LSRE
#
mpls lsr-id 5.5.5.5
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.4.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.5.1 255.255.255.0
mpls
mpls te
mpls te metric 10
mpls rsvp-te
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 10.1.4.0 0.0.0.255
network 10.1.5.0 0.0.0.255
mpls-te enable
#
return
● LSRF configuration file
#
sysname LSRF
#
mpls lsr-id 6.6.6.6
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.7.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.5.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 349


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 6.6.6.6 255.255.255.255


#
ospf 1
opaque-capability enable
area 0.0.0.0
network 6.6.6.6 0.0.0.0
network 10.1.5.0 0.0.0.255
network 10.1.7.0 0.0.0.255
mpls-te enable
#
return

1.1.3.43.19 Example for Configuring Static BFD for TE CR-LSP


By configuring static BFD for TE CR-LSP, enable a device to switch traffic to the
backup CR-LSP if the primary CR-LSP fails. When the primary CR-LSP recovers, the
traffic can switch back from the backup CR-LSP to the primary CR-LSP.

Networking Requirements
Figure 1-29 illustrates CR-LSP hot standby. A TE tunnel between PE1 and PE2 is
established. The tunnel is enabled with hot standby and configured with the best-
effort path. The following requirements must be met:
● The primary CR-LSP is PE1 → P1 → PE2.
● The backup CR-LSP is PE1 → P2 → PE2.
If the primary CR-LSP fails, traffic switches to the backup CR-LSP. After the primary
CR-LSP recovers, traffic switches back to the primary CR-LSP after a 15-second
delay. If both the primary and backup CR-LSPs fail, traffic switches to the best-
effort path. Explicit paths can be configured for the primary and backup CR-LSPs.
A best-effort path can be generated automatically. In this example, the best-effort
path is PE1 -> P2 -> P1 -> PE2. The calculated best-effort path varies according to
the faulty node.
Two static BFD sessions are established to monitor the primary and backup CR-
LSPs. After the configuration, the following objects are achieved:
● If the primary CR-LSP fails, traffic is rapidly switched to the backup CR-LSP.
● If the primary CR-LSP recovers and the backup CR-LSP fails during the
switchover time (15s), traffic switches back to the primary CR-LSP.

Figure 1-29 Networking diagram for CR-LSP hot standby


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 2/0/0, and GE 3/0/0,


respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 350


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Precautions
None.

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure CR-LSP hot standby.


2. Configure reverse CR-LSPs for a BFD session.
NOTE

A reverse CR-LSP must be established for each of the primary and hot-standby CR-
LSPs.
3. On PE1, establish two BFD sessions and bind one to the primary CR-LSP and
the other to the hot-standby CR-LSP; on PE2, establish two BFD sessions and
bind both sessions to the IP link (PE2 → PE1).

Data Preparation
To complete the configuration, you need the following data:

● Name of a BFD session


● Local and remote discriminators of BFD sessions

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 351


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Minimum intervals at which BFD packets are sent and received


● For other data, see "Example for Configure a Hot-standby CR-LSP."

Procedure
Step 1 Configure CR-LSP hot standby.
NOTE

For configuration details, see "Example for Configuring a Hot-standby CR-LSP."

Step 2 Configure reverse CR-LSPs.


The reverse CR-LSP configuration on PE2 is similar to the forward CR-LSP
configuration on PE1. For configuration details, see Configuration Files in this
section.
Step 3 Configure BFD for TE CR-LSP.
# Establish BFD sessions between PE1 and PE2 to monitor the primary and backup
CR-LSPs. Bind the BFD sessions on PE1 to the primary and backup CR-LSP and the
BFD session on PE2 to the IP link. Set the minimum intervals at which BFD packets
are sent and received to 100 milliseconds.
# Configure PE1.
<HUAWEI> system-view
[~HUAWEI] sysname PE1
[*HUAWEI] commit
[*PE1] bfd
[*PE1-bfd] quit
[*PE1] bfd mainlsptope2 bind mpls-te interface tunnel 1 te-lsp
[*PE1-bfd-lsp-session-mainlsptope2] discriminator local 413
[*PE1-bfd-lsp-session-mainlsptope2] discriminator remote 314
[*PE1-bfd-lsp-session-mainlsptope2] min-tx-interval 100
[*PE1-bfd-lsp-session-mainlsptope2] min-rx-interval 100
[*PE1-bfd-lsp-session-mainlsptope2] process-pst
[*PE1-bfd-lsp-session-mainlsptope2] quit
[*PE1] bfd backuplsptope2 bind mpls-te interface tunnel 1 te-lsp backup
[*PE1-bfd-lsp-session-backuplsptope2] discriminator local 423
[*PE1-bfd-lsp-session-backuplsptope2] discriminator remote 324
[*PE1-bfd-lsp-session-backuplsptope2] min-tx-interval 100
[*PE1-bfd-lsp-session-backuplsptope2] min-rx-interval 100
[*PE1-bfd-lsp-session-backuplsptope2] process-pst
[*PE1-bfd-lsp-session-backuplsptope2] commit
[~PE1-bfd-lsp-session-backuplsptope2] quit

# Configure PE2.
<HUAWEI> system-view
[~HUAWEI] sysname PE2
[*HUAWEI] commit
[*PE2] bfd
[*PE2-bfd] quit
[*PE2] bfd mainlsptope2 bind mpls-te interface Tunnel2 te-lsp
[*PE2-bfd-lsp-session-mainlsptope2] discriminator local 314
[*PE2-bfd-lsp-session-mainlsptope2] discriminator remote 413
[*PE2-bfd-lsp-session-mainlsptope2] min-tx-interval 100
[*PE2-bfd-lsp-session-mainlsptope2] min-rx-interval 100
[*PE2-bfd-lsp-session-mainlsptope2] quit
[*PE2] bfd backuplsptope2 bind mpls-te interface Tunnel2 te-lsp backup
[*PE2-bfd-lsp-session-backuplsptope2] discriminator local 324
[*PE2-bfd-lsp-session-backuplsptope2] discriminator remote 423
[*PE2-bfd-lsp-session-backuplsptope2] min-tx-interval 100
[*PE2-bfd-lsp-session-backuplsptope2] min-rx-interval 100

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 352


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE2-bfd-lsp-session-backuplsptope2] commit
[*PE2-bfd-lsp-session-backuplsptope2] quit

# After completing the configuration, run the display bfd session discriminator
local-discriminator-value command on PE1 and PE2. The status of BFD sessions is
Up.
The following example uses the command output on PE1.
[~PE1] display bfd session discriminator 413
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
Local Remote PeerIpAddr State Type InterfaceName
--------------------------------------------------------------------------------
413 314 3.3.3.3 Up S_TE_LSP Tunnel1
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
[~PE1] display bfd session discriminator 423
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
Local Remote PeerIpAddr State Type InterfaceName
--------------------------------------------------------------------------------
423 324 3.3.3.3 Up S_TE_LSP Tunnel1
--------------------------------------------------------------------------------

Step 4 Verify the configuration.


Connect port 1 and port 2 on a tester to PE1 and PE2, respectively. Set correct
label values. Inject MPLS traffic destined for port 2 into port 1. After the cable is
removed from GE 2/0/0 on PE1 or GE 2/0/0 on P1, the fault is rectified within
milliseconds.
After inserting the cable into GE 2/0/0 and then removing the cable from GE 1/0/0
on PE1 within 15 seconds, the fault is rectified in milliseconds.

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
bfd
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path backup
next hop 10.3.1.2
next hop 10.5.1.2
next hop 3.3.3.3
#
explicit-path main
next hop 10.4.1.2
next hop 10.2.1.2
next hop 3.3.3.3
#
isis 1
cost-style wide

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 353


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

network-entity 10.0000.0000.0004.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
ip address 10.3.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
ip address 10.4.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
interface Tunnel 1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te tunnel-id 100
mpls te record-route
mpls te path explicit-path main
mpls te path explicit-path backup secondary
mpls te backup hot-standby wtr 15
mpls te backup ordinary best-effort
#
bfd mainlsptope2 bind mpls-te interface Tunnel1 te-lsp
discriminator local 413
discriminator remote 314
min-tx-interval 100
min-rx-interval 100
process-pst
#
bfd backuplsptope2 bind mpls-te interface Tunnel1 te-lsp backup
discriminator local 423
discriminator remote 324
min-tx-interval 100
min-rx-interval 100
process-pst
#
return
● P1 configuration file
#
sysname P1
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0001.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
ip address 10.1.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 354


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface GigabitEthernet2/0/0
ip address 10.4.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet3/0/0
ip address 10.2.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
return
● P2 configuration file
#
sysname P2
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0002.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
ip address 10.1.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
ip address 10.5.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet3/0/0
ip address 10.3.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
return
● PE2 configuration file
#
sysname PE2
#
bfd
#
mpls lsr-id 3.3.3.3
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 355


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls
mpls te
mpls rsvp-te
mpls te cspf
#
isis 1
cost-style wide
network-entity 10.0000.0000.0003.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
ip address 10.2.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
ip address 10.5.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
interface Tunnel2
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.4
mpls te record-route
mpls te backup ordinary best-effort
mpls te backup hot-standby
mpls te tunnel-id 502
#
bfd mainlsptope2 bind mpls-te interface Tunnel2 te-lsp
discriminator local 314
discriminator remote 413
min-tx-interval 100
min-rx-interval 100
process-pst
#
bfd backuplsptope2 bind mpls-te interface Tunnel2 te-lsp backup
discriminator local 324
discriminator remote 423
min-tx-interval 100
min-rx-interval 100
process-pst
#
return

1.1.3.43.20 Example for Configuring Dynamic BFD for TE CR-LSP


This section provides an example for configuring dynamic BFD for TE CR-LSP to
ensure that hot standby is enabled and a best-effect LSP is established in a tunnel.

Networking Requirements
Figure 1-30 illustrates CR-LSP hot standby. A TE tunnel between PE1 and PE2 is
established. Hot standby and a best-effort LSP are configured for the TE tunnel. If
the primary CR-LSP fails, traffic switches to the backup CR-LSP. After the primary
CR-LSP recovers, traffic switches back to the primary CR-LSP after a 15-second
delay. If both the primary and backup CR-LSPs fail, traffic switches to the best-
effort path.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 356


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Dynamic BFD for TE CR-LSP is required to detect the primary and backup CR-LSPs.
After the configuration, the following objects should be achieved:
● If the primary CR-LSP fails, traffic rapidly switches to the backup CR-LSP.
● If the primary CR-LSP recovers and the backup CR-LSP fails during the
switchover time (15s), traffic switches back to the primary CR-LSP.

Figure 1-30 Networking diagram for CR-LSP hot standby


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 2/0/0, and GE 3/0/0,


respectively.

NOTE

Dynamic BFD configuration is simpler than static BFD configuration. In addition, dynamic
BFD reduces the number of BFD sessions and uses less network resources because only a
single BFD session can be created on a tunnel interface.

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure CR-LSP hot standby according to Example for Configure a Hot-
standby CR-LSP.
2. Enable BFD on the ingress of the tunnel. Configure MPLS TE BFD. Set the
minimum intervals at which BFD packets are sent and received, and the local
BFD detection multiplier.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 357


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

3. Enable the capability of passively creating BFD sessions on the egress.

Data Preparation
To complete the configuration, you need the following data:
● Minimum intervals at which BFD packets are sent and received on the ingress
● Local BFD detection multiplier on the ingress
● For other data, see Example for Configure a Hot-standby CR-LSP.

Procedure
Step 1 Configure CR-LSP hot standby.
Configure the primary CR-LSP, hot-standby CR-LSP, and best-effort LSP based on
Example for Configure a Hot-standby CR-LSP.
Step 2 Enable BFD on the ingress of the tunnel and configure MPLS TE BFD.
# Enable MPLS TE BFD on the tunnel interface of PE1. Set the minimum intervals
at which BFD packets are sent and received to 100 milliseconds and the local BFD
detection multiplier to 3.
<PE1> system-view
[~PE1] bfd
[*PE1-bfd] quit
[*PE1] interface Tunnel 10
[*PE1-Tunnel10] mpls te bfd enable
[*PE1-Tunenl10] mpls te bfd min-tx-interval 100 min-rx-interval 100 detect-multiplier 3
[*PE1-Tunenl10] commit

Step 3 Enable the capability of passively creating BFD sessions on the egress of the
tunnel.
<PE2> system-view
[~PE2] bfd
[*PE2-bfd] mpls-passive
[*PE2-bfd] commit
[~PE2-bfd] quit

# Run the display bfd session mpls-te interface Tunnel command on PE1 and
PE2. The status of BFD sessions is Up.
[~PE1] display bfd session mpls-te interface Tunnel 10 te-lsp
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
Local Remote PeerIpAddr State Type InterfaceName
--------------------------------------------------------------------------------
16385 16385 3.3.3.3 Up D_TE_LSP Tunnel10
--------------------------------------------------------------------------------
Total UP/DOWN Session Number : 1/0

Step 4 Verify the configuration.


Connect port 1 and port 2 on a tester to PE1 and PE2, respectively. Set correct
label values. Inject MPLS traffic destined for port 2 into port 1. After the cable is
removed from GE 2/0/0 on PE1 or P1, the fault is rectified within milliseconds.
After the cable is inserted into GE 2/0/0 and the cable is removed from GE 1/0/0
on PE1 after a 15-second delay, the fault is rectified within milliseconds.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 358


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Files
● PE1 configuration file
#
sysname PE1
#
bfd
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path backup
next hop 10.3.1.2
next hop 10.5.1.2
next hop 3.3.3.3
#
explicit-path main
next hop 10.4.1.2
next hop 10.2.1.2
next hop 3.3.3.3
#
isis 1
cost-style wide
network-entity 10.0000.0000.0004.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te record-route
mpls te backup ordinary best-effort
mpls te backup hot-standby
mpls te tunnel-id 502
mpls te path explicit-path main
mpls te path explicit-path backup secondary
mpls te bfd enable
mpls te bfd min-tx-interval 100 min-rx-interval 100
#
return

● P1 configuration file
#
sysname P1
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 359


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls lsr-id 1.1.1.1


#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0001.00
traffic-eng level-1-2
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
return
● P2 configuration file
#
sysname P2
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0002.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.5.1.1 255.255.255.252
isis enable 1
mpls
mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 360


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls rsvp-te
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
return
● PE2 configuration file
#
sysname PE2
#
bfd
mpls-passive
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
#
isis 1
cost-style wide
network-entity 10.0000.0000.0003.00
traffic-eng level-1-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.5.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return

1.1.3.43.21 Example for Configuring Static BFD for TE Tunnel


After static BFD for TE tunnel is configured, the VPN is enabled to rapidly detect
tunnel faults and perform traffic switchover.

Networking Requirements
Figure 1-31 illustrates an MPLS network. Layer 2 devices (switches) are deployed
between PE1 and PE2. PE1 is configured with VPN FRR and the MPLS TE tunnel.
The primary path of VPN FRR is PE1 → Switch → PE2; the backup path of VPN
FRR is PE1 → PE3. In a normal situation, VPN traffic is transmitted over the

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 361


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

primary path. If the primary path fails, VPN traffic is switched to the backup path.
BFD for TE tunnel is required to monitor the TE tunnel over the primary path and
enable VPN to rapidly detect tunnel faults. Traffic rapidly switches between the
primary and backup paths, and fault recovery is sped up.

Figure 1-31 Static BFD for TE tunnel with automatically negotiated discriminators
NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 2/0/0, respectively.

NOTE

For simplicity, the IP addresses of the interfaces connected the PEs and the CEs are not
shown in the diagram.

Precautions
None

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure an MPLS network and establish bidirectional TE tunnels between


PE1 and PE2, and between PE1 and PE3.
2. Configure VPN FRR on PE1.
3. Enable global BFD on PE1, PE2, and PE3.
4. Establish a BFD session on PE1 to monitor the TE tunnel of the primary path.
5. Establish a BFD session on PE2 and PE3, and specify the TE tunnel as the
reverse tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 362


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Data Preparation
To complete the configuration, you need the following data:
● An IGP and its parameters
● BGP AS number and interface names used by BGP sessions
● MPLS LSR ID
● Tunnel interface number and explicit paths
● VPN instance name, RD, and route target (RT)
● Name of the tunnel policy
● Name of a BFD session
● Local and remote discriminators of BFD sessions

Procedure
Step 1 Assign an IP address and a mask to each interface.
Assign an IP address to each interface according to Figure 1-31, create loopback
interfaces on routers, and configure the IP addresses of the loopback interfaces as
MPLS LSR IDs. For configuration details, see Configuration Files in this section.
Step 2 Configure an IGP.
Configure OSPF or IS-IS on each router to ensure interworking between PE1 and
PE2, and between PE1 and PE3. OSPF is used in the example. For configuration
details, see Configuration Files in this section.
Step 3 Configure basic MPLS functions.
On each router, configure an LSR ID and enable MPLS in the system and interface
views. For configuration details, see Configuration Files in this section.
Step 4 Configure basic MPLS TE functions.
Enable MPLS TE and MPLS RSVP-TE in the MPLS and interface views on each LSR.
For configuration details, see Configuration Files in this section.
Step 5 Enable OSPF TE and configure the CSPF.
Enable OSPF TE on each router and configure CSPF on PE1. For configuration
details, see Configuration Files in this section.
Step 6 Configure tunnel interfaces.
Specify explicit paths between PE1 and PE2 and between PE1 and PE3. For PE1,
two explicit paths must be specified.
# Configure the explicit paths between PE1 and PE2 and between PE2 and PE3.
[~PE1] explicit-path tope2
[*PE1-explicit-path-tope2] next hop 10.2.1.2
[*PE1-explicit-path-tope2] next hop 3.3.3.3
[*PE1-explicit-path-tope2] quit
[*PE1] explicit-path tope3
[*PE1-explicit-path-tope3] next hop 10.1.1.2
[*PE1-explicit-path-tope3] next hop 2.2.2.2
[*PE1-explicit-path-tope3] commit
[*PE1-explicit-path-tope3] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 363


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure an explicit path between PE2 and PE1.


[~PE2] explicit-path tope1
[*PE2-explicit-path-tope1] next hop 10.2.1.1
[*PE2-explicit-path-tope1] next hop 1.1.1.1
[*PE2-explicit-path-tope1] commit
[*PE2-explicit-path-tope1] quit

# Configure an explicit path between PE3 and PE1.


[~PE3] explicit-path tope1
[*PE3-explicit-path-tope1] next hop 10.1.1.1
[*PE3-explicit-path-tope1] next hop 1.1.1.1
[*PE3-explicit-path-tope1] commit
[*PE3-explicit-path-tope1] quit

Create tunnel interfaces and specify explicit paths on PE1, PE2, and PE3. Bind the
tunnel to the specified VPN. For PE1, two tunnel interfaces must be created. For
PE1, two tunnel interfaces must be created.
# Configure PE1.
[~PE1] interface tunnel 2
[*PE1-Tunnel2] ip address unnumbered interface loopback 1
[*PE1-Tunnel2] tunnel-protocol mpls te
[*PE1-Tunnel2] destination 3.3.3.3
[*PE1-Tunnel2] mpls te tunnel-id 2
[*PE1-Tunnel2] mpls te path explicit-path tope2
[*PE1-Tunnel2] mpls te reserved-for-binding
[*PE1-Tunnel2] quit
[*PE1] interface tunnel 1
[*PE1-Tunnel1] ip address unnumbered interface loopback 1
[*PE1-Tunnel1] tunnel-protocol mpls te
[*PE1-Tunnel1] destination 2.2.2.2
[*PE1-Tunnel1] mpls te tunnel-id 1
[*PE1-Tunnel1] mpls te path explicit-path tope3
[*PE1-Tunnel1] mpls te reserved-for-binding
[*PE1-Tunnel1] commit
[~PE1-Tunnel1] quit

# Configure PE2.
[~PE2] interface tunnel 2
[*PE2-Tunnel2] ip address unnumbered interface loopback 1
[*PE2-Tunnel2] tunnel-protocol mpls te
[*PE2-Tunnel2] destination 1.1.1.1
[*PE2-Tunnel2] mpls te tunnel-id 3
[*PE2-Tunnel2] mpls te path explicit-path tope1
[*PE2-Tunnel2] mpls te reserved-for-binding
[*PE2-Tunnel2] commit
[~PE2-Tunnel2] quit

# Configure PE3.
[~PE3] interface tunnel 1
[*PE3-Tunnel1] ip address unnumbered interface loopback 1
[*PE3-Tunnel1] tunnel-protocol mpls te
[*PE3-Tunnel1] destination 1.1.1.1
[*PE3-Tunnel1] mpls te tunnel-id 4
[*PE3-Tunnel1] mpls te path explicit-path tope1
[*PE3-Tunnel1] mpls te reserved-for-binding
[*PE3-Tunnel1] commit
[~PE3-Tunnel1] quit

After completing the preceding configuration, run the display mpls te tunnel-
interface tunnel interface-number command on the PEs. The command output
shows that the status of tunnel 1 and tunnel 2 on PE1, tunnel 2 on PE2, and
tunnel 1 on PE3 is Up.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 364


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 7 Configure VPN FRR.


# Configure a VPN instance on PE1, PE2, and PE3. Set the VPN instance name to
vpn1, RDs to 100:1, 100:2, and 100:3 respectively, and all RTs to 100:1. Configure
the CEs to access the PEs. For configuration details, see Configuration Files in this
section.
# Establish MP IBGP peer relationship between PE1 and PE2, and between PE1
and PE3. The BGP AS number of PE1, PE2, and PE3 are 100. The loopback
interface Loopback1 on PE1, PE2, and PE3 is used as the interface to establish BGP
sessions. For configuration details, see Configuration Files in this section.
# Configure tunnel policies for PE1, PE2, and PE3 and apply the policies to the
VPN instances.
# Configure PE1.
[~PE1] tunnel-policy policy1
[*PE1-tunnel-policy-policy1] tunnel binding destination 3.3.3.3 te tunnel 2
[*PE1-tunnel-policy-policy1] tunnel binding destination 2.2.2.2 te tunnel 1
[*PE1-tunnel-policy-policy1] quit
[*PE1] ip vpn-instance vpn1
[*PE1-vpn-instance-vpn1] tnl-policy policy1
[*PE1-vpn-instance-vpn1] quit

# Configure PE2.
[~PE2] tunnel-policy policy1
[*PE2-tunnel-policy-policy1] tunnel binding destination 1.1.1.1 te tunnel 2
[*PE2-tunnel-policy-policy1] quit
[*PE2] ip vpn-instance vpn1
[*PE2-vpn-instance-vpn1] tnl-policy policy1
[*PE2-vpn-instance-vpn1] commit
[~PE2-vpn-instance-vpn1] quit

# Configure PE3.
[~PE3] tunnel-policy policy1
[*PE3-tunnel-policy-policy1] tunnel binding destination 1.1.1.1 te tunnel 1
[*PE3-tunnel-policy-policy1] quit
[*PE3] ip vpn-instance vpn1
[*PE3-vpn-instance-vpn1] tnl-policy policy1
[*PE3-vpn-instance-vpn1] commit
[~PE3-vpn-instance-vpn1] quit

# Configure VPN FRR on PE1.


[~PE1] bgp 100
[*PE1-bgp] ipv4-family vpn-instance vpn1
[*PE1-bgp-vpn1] auto-frr
[*PE1-bgp-vpn1] commit
[~PE1-bgp-vpn1] quit
[~PE1-bgp] quit

After the configuration is complete, CEs can communicate, and traffic flows
through PE1, the switch, and PE2. If the cable to any interface connecting PE1 to
PE2 is removed, or the switch fails, or PE2 fails, VPN traffic is switched to the
backup path between PE1 and PE3. Time taken in fault recovery is close to the IGP
convergence time.
Step 8 Configure BFD for TE tunnel.
# Configure a BFD session on PE1 to monitor the TE tunnel of the primary path.
Set the minimum intervals at which BFD packets are sent and received.
[~PE1] bfd

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 365


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-bfd] quit
[*PE1] bfd pe1tope2 bind mpls-te interface tunnel2
[*PE1-bfd-lsp-session-pe1tope2] discriminator local 12
[*PE1-bfd-lsp-session-pe1tope2] discriminator remote 21
[*PE1-bfd-lsp-session-pe1tope2] min-tx-interval 100
[*PE1-bfd-lsp-session-pe1tope2] min-rx-interval 100
[*PE1-bfd-lsp-session-pe1tope2] process-pst
[*PE1-bfd-lsp-session-pe1tope2] commit

# Establish a BFD session on PE2 and specify the TE tunnel as the reverse tunnel.
Set the minimum intervals at which BFD packets are sent and received.
[~PE2] bfd
[*PE2-bfd] quit
[*PE2] bfd pe2tope1 bind mpls-te interface tunnel2
[*PE2-bfd-lsp-session-pe2tope1] discriminator local 21
[*PE2-bfd-lsp-session-pe2tope1] discriminator remote 12
[*PE2-bfd-lsp-session-pe2tope1] min-tx-interval 100
[*PE2-bfd-lsp-session-pe2tope1] min-rx-interval 100
[*PE2-bfd-lsp-session-pe2tope1] commit

# After completing the configuration, run the display bfd session { all |
discriminator discr-value | mpls-te interface interface-type interface-number }
[ verbose ] command on PE1 and PE2. The command output shows that the BFD
session is Up.
Step 9 Verify the configuration.
Connect tester's Port 1 and Port 2 to CE1 and CE2, respectively. Inject traffic
destined for port 2 into port 1. The test shows that a fault can be rectified in
milliseconds.

----End

Configuration Files
NOTE

Configuration files of CE1, CE2, and the switch and the configuration of PE accessing CE are
not provided.
● PE1 configuration file
#
sysname PE1
#
ip vpn-instance vpn1
route-distinguisher 100:1
tnl-policy policy1
vpn-target 100:1 export-extcommunity
vpn-target 100:1 import-extcommunity
#
bfd
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path tope2
next hop 10.2.1.2
next hop 3.3.3.3
#
explicit-path tope3
next hop 10.1.1.2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 366


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

next hop 2.2.2.2


#
interface gigabitethernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 2.2.2.2
mpls te tunnel-id 1
mpls te path explicit-path tope3
mpls te reserved-for-binding
#
interface Tunnel2
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te tunnel-id 2
mpls te path explicit-path tope2
mpls te reserved-for-binding
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack1
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack1
#
ipv4-family unicast
peer 2.2.2.2 enable
peer 3.3.3.3 enable
#
ipv4-family vpnv4
policy vpn-target
peer 2.2.2.2 enable
peer 3.3.3.3 enable
#
ipv4-family vpn-instance vpn1
import-route direct
auto-frr
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 10.1.1.0 0.0.0.3
network 10.2.1.0 0.0.0.255
network 1.1.1.1 0.0.0.0
mpls-te enable
#
tunnel-policy policy1
tunnel binding destination 3.3.3.3 te Tunnel2
tunnel binding destination 2.2.2.2 te Tunnel1
#
bfd pe1tope2 bind mpls-te interface Tunnel2
discriminator local 12
discriminator remote 21

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 367


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

min-tx-interval 100
min-rx-interval 100
process-pst
#
return
● PE2 configuration file
#
sysname PE2
#
ip vpn-instance vpn1
route-distinguisher 100:2
tnl-policy policy1
vpn-target 100:1 export-extcommunity
vpn-target 100:1 import-extcommunity
#
bfd
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path tope1
next hop 10.2.1.1
next hop 1.1.1.1
#
interface gigabitethernet2/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
interface Tunnel2
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.1
mpls te tunnel-id 3
mpls te path explicit-path tope1
mpls te reserved-for-binding
#
bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack1
#
ipv4-family unicast
peer 1.1.1.1 enable
#
ipv4-family vpnv4
policy vpn-target
peer 1.1.1.1 enable
#
ipv4-family vpn-instance vpn1
import-route direct
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 10.2.1.0 0.0.0.255
network 3.3.3.3 0.0.0.0
mpls-te enable
#
tunnel-policy policy1
tunnel binding destination 1.1.1.1 te Tunnel2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 368


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
bfd pe2tope1 bind mpls-te interface Tunnel2
discriminator local 21
discriminator remote 12
min-tx-interval 100
min-rx-interval 100
#
return
● PE3 configuration file
#
sysname PE3
#
ip vpn-instance vpn1
route-distinguisher 100:3
tnl-policy policy1
vpn-target 100:1 export-extcommunity
vpn-target 100:1 import-extcommunity
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path tope1
next hop 10.1.1.1
next hop 1.1.1.1
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.1
mpls te tunnel-id 4
mpls te path explicit-path tope1
mpls te reserved-for-binding
#
bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack1
#
ipv4-family unicast
peer 1.1.1.1 enable
#
ipv4-family vpnv4
policy vpn-target
peer 1.1.1.1 enable
#
ipv4-family vpn-instance vpn1
import-route direct
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 10.1.1.0 0.0.0.3
network 2.2.2.2 0.0.0.0
mpls-te enable
#
tunnel-policy policy1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 369


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

tunnel binding destination 1.1.1.1 te Tunnel1


return

1.1.3.43.22 Example for Configuring BFD for RSVP


This section provides an example for configuring BFD for RSVP for nodes to detect
link failures and perform TE FRR switching on a network with Layer 2 devices
between two RSVP nodes.

Networking Requirements
On the MPLS network shown in Figure 1-32, a Layer 2 device (switch) is deployed
on a link between P1 and P2. A primary MPLS TE tunnel between PE1 and PE2 is
established over a path PE1 -> P1 -> switch -> P2 -> PE2. A TE FRR bypass tunnel
between P1 and PE2 is established over the path P1 -> P3 -> PE2. P1 functions as
the point of local repair (PLR), and PE2 functions as the merge point (MP).
If the link between the switch and P2 fails, P1 keeps sending the switch RSVP
messages (including Hello messages) destined for P2 and detects the fault only
after P1 fails to receive replies to RSVP Hello messages sent to P2.
The timeout period of RSVP neighbor relationships is three times as long as the
interval between Hello message transmissions. After the timeout period elapses,
P1 declares its neighbor Down, which is seconds slower than it does when there is
no Layer 2 device. The fault detection latency causes a large number of packets to
be dropped. To minimize traffic loss, BFD can be configured to rapidly detect the
fault in the link between P2 and the switch. After a BFD session detects the fault,
it advertises the fault to trigger TE FRR switching.

Figure 1-32 BFD for RSVP


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 2/0/0, and GE 3/0/0,


respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 370


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure an IP address for each interface and enable IGP on each LSR so that
LSRs can communicate. Enable IGP GR to support RSVP GR.
2. Configure the MPLS network and basic MPLS TE functions.
3. Configure explicit paths for the primary and bypass tunnels.
4. Create the primary tunnel interface and enable TE FRR on PE1. Configure the
bypass tunnel on P1.
5. Configure BFD for RSVP on P1 and P2.

Data Preparation
To complete the configuration, you need the following data:

● IGP protocol and parameters


● MPLS LSR IDs
● Bandwidth attributes of the outbound interfaces of links along the tunnel
● Primary tunnel interface number and explicit path
● Bypass tunnel interface number and explicit path
● Physical interfaces to be protected by the bypass tunnel
● Minimum intervals at which BFD packets are sent and received
● Local BFD detection multiplier

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 371


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address to each interface according to Figure 1-32, create loopback
interfaces on LSRs, and configure the loopback interface addresses as MPLS LSR
IDs. For configuration details, see Configuration Files in this section.
Step 2 Configure the switch.
Configure the switch so that P1 and P2 can communicate. For configuration
details, see Configuration Files in this section.
Step 3 Configure an IGP.
Configure OSPF or IS-IS on each LSR so that LSRs can communicate. In this
example, IS-IS is used. For configuration details, see Configuration Files in this
section.
Step 4 Configure basic MPLS functions.
Configure the LSR ID and enable MPLS in the system and interface views on each
LSR. For configuration details, see Configuration Files in this section.
Step 5 Configure basic MPLS TE functions.
Enable MPLS TE and MPLS RSVP-TE in the MPLS and interface views on each LSR.
For configuration details, see Configuration Files in this section.
Step 6 Configure IS-IS TE and CSPF.
Enable IS-IS TE on each node and configure CSPF on PE1 and P1. For
configuration details, see Configuration Files in this section.
Step 7 Configure the primary tunnel.
# Specify an explicit path for the primary tunnel on PE1.
<PE1> system-view
[~PE1] explicit-path tope2
[*PE1-explicit-path-tope2] next hop 10.1.1.2
[*PE1-explicit-path-tope2] next hop 10.2.1.2
[*PE1-explicit-path-tope2] next hop 10.4.1.2
[*PE1-explicit-path-tope2] next hop 5.5.5.5
[*PE1-explicit-path-tope2] commit
[~PE1-explicit-path-tope2] quit

# Create a tunnel interface on PE1, specify an explicit path, and enable TE FRR.
[~PE1] interface Tunnel 10
[*PE1-Tunnel10] ip address unnumbered interface loopback 1
[*PE1-Tunnel10] tunnel-protocol mpls te
[*PE1-Tunnel10] destination 5.5.5.5
[*PE1-Tunnel10] mpls te tunnel-id 100
[*PE1-Tunnel10] mpls te path explicit-path tope2
[*PE1-Tunnel10] mpls te fast-reroute
[*PE1-Tunnel10] commit
[~PE1-Tunnel10] quit

# Run the display mpls te tunnel-interface tunnel command on PE1. The status
of Tunnel 10 on PE1 is Up.
Step 8 Configure the bypass tunnel.
# Specify the explicit path for the bypass tunnel on P1.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 372


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

<P1> system-view
[~P1] explicit-path tope2
[*P1-explicit-path-tope2] next hop 10.3.1.2
[*P1-explicit-path-tope2] next hop 10.5.1.2
[*P1-explicit-path-tope2] next hop 5.5.5.5
[*P1-explicit-path-tope2] commit
[~P1-explicit-path-tope2] quit

# Configure a bypass tunnel interface and specify an explicit path for the bypass
tunnel on P1. Specify the physical interface to be protected by the bypass tunnel.
[~P1] interface Tunnel 30
[*P1-Tunnel30] ip address unnumbered interface loopback 1
[*P1-Tunnel30] tunnel-protocol mpls te
[*P1-Tunnel30] destination 5.5.5.5
[*P1-Tunnel30] mpls te tunnel-id 300
[*P1-Tunnel30] mpls te path explicit-path tope2
[*P1-Tunnel30] mpls te bypass-tunnel
[*P1-Tunnel30] mpls te protected-interface gigabitethernet 2/0/0
[*P1-Tunnel30] commit
[~P1-Tunnel30] quit

Step 9 Configure BFD for RSVP.


# Enable BFD for RSVP on GE 2/0/0 on P1 and P2. Set the minimum intervals at
which BFD packets are sent and received, and the local BFD detection multiplier.
# Configure P1.
[~P1] bfd
[*P1-bfd] quit
[*P1] interface gigabitethernet 2/0/0
[*P1-GigabitEthernet2/0/0] mpls rsvp-te bfd enable
[*P1-GigabitEthernet2/0/0] mpls rsvp-te bfd min-tx-interval 100 min-rx-interval 100 detect-multiplier 3
[*P1-GigabitEthernet2/0/0] commit
[~P1-GigabitEthernet2/0/0] quit

# Configure P2.
[~P2] bfd
[*P2-bfd] quit
[*P2] interface gigabitethernet 2/0/0
[*P2-GigabitEthernet2/0/0] mpls rsvp-te bfd enable
[*P2-GigabitEthernet2/0/0] mpls rsvp-te bfd min-tx-interval 100 min-rx-interval 100 detect-multiplier 3
[*P2-GigabitEthernet2/0/0] commit
[~P2-GigabitEthernet2/0/0] quit

Step 10 Verify the configuration.


# After the configuration is complete, run the display mpls rsvp-te bfd session
{ all | interface interface-type interface-number | peer ip-address } [ verbose ]
command on P1 and P2. The BFD session status is up. The following example uses
the configuration on P1.
<P1> display mpls rsvp-te bfd session all
Total Nbrs/Rsvp triggered sessions : 3/1
-------------------------------------------------------------------------------
Local Remote Local Peer Interface Session
Discr Discr Addr Addr Name State
-------------------------------------------------------------------------------
16385 16385 10.2.1.1 10.2.1.2 GE2/0/0 UP

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 373


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Files
NOTE

The switch configuration file is not provided here.


● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
mpls te cspf
#
explicit-path tope2
next hop 10.1.1.2
next hop 10.2.1.2
next hop 10.4.1.2
next hop 5.5.5.5
#
isis 1
is-level level-2
cost-style wide
network-entity 86.4501.0010.0100.1001.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 5.5.5.5
mpls te record-route label
mpls te fast-reroute
mpls te tunnel-id 100
mpls te path explicit-path tope2
#
return
● P1 configuration file
#
sysname P1
#
bfd
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
mpls te cspf
#
explicit-path tope2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 374


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

next hop 10.3.1.2


next hop 10.5.1.2
next hop 5.5.5.5
#
isis 1
is-level level-2
cost-style wide
network-entity 86.4501.0020.0200.2002.00
traffic-eng level-2
#
interface GigabitEthernet3/0/0
undo shutdown
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
mpls rsvp-te bfd min-tx-interval 100 min-rx-interval 100 detect-multiplier 3
mpls rsvp-te hello
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
interface Tunnel30
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 5.5.5.5
mpls te record-route
mpls te tunnel-id 300
mpls te path explicit-path tope2
mpls te bypass-tunnel
mpls te protected-interface Gigabitethernet 2/0/0
#
return
● P2 configuration file
#
sysname P2
#
bfd
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 375


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te cspf
#
isis 1
is-level level-2
cost-style wide
network-entity 86.4501.0030.0300.3003.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
mpls rsvp-te bfd min-tx-interval 100 min-rx-interval 100 detect-multiplier 3
mpls rsvp-te hello
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return
● P3 configuration file
#
sysname P3
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
mpls te cspf
#
isis 1
is-level level-2
cost-style wide
network-entity 86.4501.0040.0400.4004.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.5.1.1 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 376


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
return

● PE2 configuration file


#
sysname PE2
#
mpls lsr-id 5.5.5.5
#
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
mpls te cspf
#
isis 1
is-level level-2
cost-style wide
network-entity 86.4501.0050.0500.5005.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.5.1.2 255.255.255.252
isis enable 1
mpls
mpls te
mpls rsvp-te
mpls rsvp-te hello
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
isis enable 1
#
return

1.1.3.43.23 Example for Configuring an RSVP Distribution Instance

Networking Requirements
On the network shown in Figure 1-33, an RSVP distribution instance is configured
on LSRB. Traffic on GE 1/0/0 and GE 1/0/1 are allocated to RSVP0 and the new
RSVP instance, respectively. A TE tunnel is established along the path LSRA ->
LSRB -> LSRC. Traffic on LSRB is transmitted by the inbound and outbound
interfaces based on RSVP instances on LSRB.

Figure 1-33 Networking diagram for an RSVP distribution instance


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 1/0/1, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 377


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address and a loopback address to each interface.
2. Configure Open Shortest Path First (OSPF) to advertise the route to each
network segment to which each interface is connected and to advertise the
host route to each loopback interface address that is a label switching router
(LSR) ID.
3. Configure basic MPLS functions and enable MPLS TE, RSVP-TE, and CSPF on
each LSR.
4. Enable the OSPF-TE capability to ensure that MPLS TE can advertise
information about link status.
5. Create an RSVP instance named RSVP_A on LSRB.
6. Allocate GE 1/0/0 to RSVP0 and allocate GE 1/0/1 to RSVP_A.
7. Configure an MPLS TE tunnel.
NOTE

RSVP0 is a default RSVP instance. If no RSVP instance is specified, an interface is assigned


to RSVP0.

Data Preparation
To complete the configuration, you need the following data:
● IP address of every interface on every LSR shown in Figure 1-33, OSPF
process ID (1), and OSPF area ID (0.0.0.0)
● MPLS LSR ID of each node using the corresponding loopback interface
address, as shown in Figure 1-33
● RSVP instance created on LSRB named RSVP_A
● Tunnel interface number (Tunnel 3), tunnel ID (1), and loopback interface
address used as the IP address of the tunnel interface

Procedure
Step 1 Assign an IP address and its mask to every interface.
Assign an IP address and its mask to every interface as shown in Figure 1-33. For
configuration details, see Configuration Files in this section.
Step 2 Configure OSPF.
Configure OSPF to advertise every network segment route and host route. For
configuration details, see Configuration Files in this section.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 378


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

After completing the configurations, run the display ip routing-table command


on every node. All nodes have learned routes from each other.
Step 3 Configure basic MPLS functions and enable MPLS TE, RSVP-TE, and CSPF.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] quit
[*LSRA] interface GigabitEthernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls te
[*LSRA-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

NOTE

Repeat this step for LSRB and LSRC. For configuration details, see Configuration Files in
this section.

Step 4 Configure OSPF TE.


# Configure LSRA.
[~LSRA] ospf 1
[~LSRA-ospf-1] opaque-capability enable
[*LSRA-ospf-1] area 0
[*LSRA-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRA-ospf-1-area-0.0.0.0] commit
[~LSRA-ospf-1-area-0.0.0.0] quit

# Configure LSRB.
[~LSRB] ospf 1
[~LSRB-ospf-1] opaque-capability enable
[*LSRB-ospf-1] area 0
[*LSRB-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRB-ospf-1-area-0.0.0.0] commit
[~LSRB-ospf-1-area-0.0.0.0] quit

# Configure LSRC.
[~LSRC] ospf 1
[~LSRC-ospf-1] opaque-capability enable
[*LSRC-ospf-1] area 0
[*LSRC-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRC-ospf-1-area-0.0.0.0] commit
[~LSRC-ospf-1-area-0.0.0.0] quit

Step 5 Configure an RSVP instance named RSVP_A on LSRB.


# Configure LSRB.
[~LSRB] mpls
[~LSRB-mpls] mpls rsvp-te distributed-instance RSVP_A os-group OSG-MMB-BG1-1
[*LSRB-mpls] commit
[~LSRB-mpls] quit

Step 6 Assign GE 1/0/0 to RSVP0 on LSRB and GE 1/0/1 to RSVP_A on LSRB.


# Configure LSRB.
[~LSRB] interface GigabitEthernet 1/0/0
[~LSRB-GigabitEthernet1/0/0] mpls rsvp-te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 379


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface GigabitEthernet 1/0/1
[*LSRB-GigabitEthernet1/0/1] mpls rsvp-te distributed-instance RSVP_A
[*LSRB-GigabitEthernet1/0/1] commit
[~LSRB-GigabitEthernet1/0/1] quit

Step 7 Configure an MPLS TE tunnel.


# Configure LSRA.
[~LSRA] interface tunnel3
[*LSRA-Tunnel3] ip address unnumbered interface loopback 1
[*LSRA-Tunnel3] tunnel-protocol mpls te
[*LSRA-Tunnel3] destination 3.3.3.3
[*LSRA-Tunnel3] mpls te tunnel-id 1
[*LSRA-Tunnel3] commit
[~LSRA-Tunnel3] quit

Step 8 Verify the configuration.


Run the display mpls rsvp-te distributed-instance command on LSRB.
Information about RSVP distribution instances is displayed.
[~LSRB] display mpls rsvp-te distributed-instance
--------------------------------------------------------------------------------
Instance OS-group If-Count Loads
--------------------------------------------------------------------------------
RSVP0 OSG-MMB-BG1-1 1 2
RSVP_A OSG-MMB-BG1-1 1 2
--------------------------------------------------------------------------------

After completing the preceding configuration, run the display interface tunnel
command. The tunnel interface is UP.
[~LSRA] display interface Tunnel3
Tunnel3 current state : UP (ifindex: 33)
Line protocol current state : UP
Last line protocol up time : 2012-11-30 06:29:27
Description:
Route Port,The Maximum Transmit Unit is 1500, Current BW: 0Mbps
Internet Address is unnumbered, using address of LoopBack1(1.1.1.1/32)
Encapsulation is TUNNEL, loopback not set
Tunnel destination 3.3.3.3
Tunnel up/down statistics 1
Tunnel protocol/transport MPLS/MPLS, ILM is available,
primary tunnel id is 0xA1, secondary tunnel id is 0x0
Current system time: 2012-11-30 06:29:35
300 seconds output rate 0 bits/sec, 0 packets/sec
0 seconds output rate 0 bits/sec, 0 packets/sec
126 packets output, 34204 bytes
0 output error
18 output drop
Last 300 seconds input utility rate: 0.00%
Last 300 seconds output utility rate: 0.00%

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
mpls
mpls te
mpls te cspf
mpls rsvp-te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 380


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
interface GigabitEthernet 1/0/0
undo shutdown
ip address 172.16.12.1 255.255.255.0
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
interface Tunnel3
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.3
mpls te tunnel-id 1
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 172.16.12.0 0.0.0.255
mpls-te enable
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
mpls rsvp-te distributed-instance RSVP_A os-group OSG-MMB-BG1-1
#
interface GigabitEthernet 1/0/0
undo shutdown
ip address 172.16.12.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet 1/0/1
undo shutdown
ip address 172.16.23.2 255.255.255.0
mpls
mpls te
mpls rsvp-te distributed-instance RSVP_A
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 172.16.12.0 0.0.0.255
network 172.16.23.0 0.0.0.255
mpls-te enable
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls te cspf

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 381


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls rsvp-te
#
interface GigabitEthernet 1/0/0
undo shutdown
ip address 172.16.23.3 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 172.16.23.0 0.0.0.255
mpls-te enable
return

1.1.3.43.24 Example for Configuring a P2MP TE Tunnel


This section provides an example for configuring a P2MP TE tunnel on an IP/MPLS
backbone network.

Networking Requirements
The IP multicast service bearer technology used on the current IP/MPLS backbone
network relies on the IP unicast technology. Like IP unicast, IP multicast fails to
provide sufficient bandwidth, QoS capabilities, reliability and high real-time
performance for multicast services such as IPTV and massively multiplayer online
role-playing games (MMORPGs). A P2MP TE tunnel can solve this problem. A
P2MP TE tunnel can be configured on a live IP/MPLS backbone network, and
supports the P2MP TE FRR function, meeting multicast service requirements.
A P2MP TE tunnel is established on the network shown in Figure 1-34. LSRA is the
tunnel ingress. LSRC, LSRE, and LSRF are leaf nodes, and the tunnel bandwidth is
1000 kbit/s.

Figure 1-34 P2MP TE tunnel networking


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 1/0/1, and GE 1/0/2,


respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 382


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Precautions
None.

Configuration Roadmap
The configuration roadmap is as follows:

1. Assign an IP address to each interface and configure a loopback interface


address as an LSR ID on each node.
2. Configure Intermediate System to Intermediate System (IS-IS) to advertise the
route to each network segment to which each interface is connected and the
host route to each loopback interface address that is an LSR ID.
3. Enable MPLS, MPLS TE, P2MP TE, and MPLS RSVP-TE globally on each node
and constraint shortest path first (CSPF) on the ingress to enable all nodes to
have MPLS forwarding capabilities.
4. Enable the IGP TE capability to ensure that MPLS TE can advertise
information about link status.
5. Enable the MPLS TE capability on the interfaces of each node and configure
link attributes for the interfaces so that the interfaces can send RSVP
signaling packets.
6. Configure explicit paths and a leaf list on the ingress LSRA to specify the leaf
nodes on the P2MP TE tunnel.
7. Configure a P2MP TE tunnel interface on LSRA to ensure that the ingress
establishes a P2MP TE tunnel based on all configuration information on the
interface.

Data Preparation
To complete the configuration, you need the following data:

● IP addresses of all interfaces shown in Figure 1-34

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 383


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● IS-IS (used as an IGP protocol), IS-IS process ID (1), IS-IS system ID of each
node (obtained by translating the IP address of loopback1 of each node), and
IS-IS level (Level-2)
● MPLS LSR ID of each node using the corresponding loopback interface
address
● Maximum reservable bandwidth (10000 kbit/s) of the outbound interface
along the path and BC0 bandwidth (10000 kbit/s)
● Name of an explicit path used by each leaf node (toLSRB, toLSRE, and
toLSRF), name of the leaf list (iptv1), and addresses of each leaf node (MPLS
LSR ID of each leaf node)
● Tunnel interface number (Tunnel 10), tunnel ID (100), loopback interface
address used as the IP address of the tunnel interface, and tunnel bandwidth
(1000 kbit/s)

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address to each interface according to Figure 1-34 and create a
loopback interface on each node. For configuration details, see Configuration
Files in this section.
Step 2 Configure IS-IS to advertise the route to each network segment to which each
interface is connected and to advertise the host route to each LSR ID.
Configure IS-IS on each node to implement network layer connectivity. For
configuration details, see Configuration Files in this section.
Step 3 Enable MPLS, MPLS TE, P2MP TE, and MPLS RSVP-TE globally on each node and
CSPF on the ingress.
# Configure LSRA.
<LSRA> system-view
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls te
[*LSRA-mpls] mpls te p2mp-te
[*LSRA-mpls] mpls rsvp-te
[*LSRA-mpls] mpls te cspf
[*LSRA-mpls] commit
[~LSRA-mpls] quit

# Configure LSRB.
<LSRB> system-view
[~LSRB] mpls lsr-id 2.2.2.2
[*LSRB] mpls
[*LSRB-mpls] mpls te
[*LSRB-mpls] mpls te p2mp-te
[*LSRB-mpls] mpls rsvp-te
[*LSRB-mpls] commit
[~LSRB-mpls] quit

# Configure LSRC.
<LSRC> system-view
[~LSRC] mpls lsr-id 3.3.3.3
[*LSRC] mpls
[*LSRC-mpls] mpls te
[*LSRC-mpls] mpls te p2mp-te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 384


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRC-mpls] mpls rsvp-te


[*LSRC-mpls] commit
[~LSRC-mpls] quit

# Configure LSRD.
<LSRD> system-view
[~LSRD] mpls lsr-id 4.4.4.4
[*LSRD] mpls
[*LSRD-mpls] mpls te
[*LSRD-mpls] mpls te p2mp-te
[*LSRD-mpls] mpls rsvp-te
[*LSRD-mpls] commit
[~LSRD-mpls] quit

# Configure LSRE.
<LSRE> system-view
[~LSRE] mpls lsr-id 5.5.5.5
[*LSRE] mpls
[*LSRE-mpls] mpls te
[*LSRE-mpls] mpls te p2mp-te
[*LSRE-mpls] mpls rsvp-te
[*LSRE-mpls] commit
[~LSRE-mpls] quit

# Configure LSRF.
<LSRF> system-view
[~LSRF] mpls lsr-id 6.6.6.6
[*LSRF] mpls
[*LSRF-mpls] mpls te
[*LSRF-mpls] mpls te p2mp-te
[*LSRF-mpls] mpls rsvp-te
[*LSRF-mpls] commit
[~LSRF-mpls] quit

Step 4 Enable IGP TE on each node.


# Configure LSRA.
[~LSRA] isis 1
[~LSRA-isis-1] cost-style wide
[*LSRA-isis-1] traffic-eng level-2
[*LSRA-isis-1] commit
[~LSRA-isis-1] quit

# Configure LSRB.
[~LSRB] isis 1
[~LSRB-isis-1] cost-style wide
[*LSRB-isis-1] traffic-eng level-2
[*LSRB-isis-1] commit
[~LSRB-isis-1] quit

# Configure LSRC.
[~LSRC] isis 1
[~LSRC-isis-1] cost-style wide
[*LSRC-isis-1] traffic-eng level-2
[*LSRC-isis-1] commit
[~LSRC-isis-1] quit

# Configure LSRD.
[~LSRD] isis 1
[~LSRD-isis-1] cost-style wide
[*LSRD-isis-1] traffic-eng level-2
[*LSRD-isis-1] commit
[~LSRD-isis-1] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 385


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure LSRE.
[~LSRE] isis 1
[~LSRE-isis-1] cost-style wide
[*LSRE-isis-1] traffic-eng level-2
[*LSRE-isis-1] commit
[~LSRE-isis-1] quit

# Configure LSRF.
[~LSRF] isis 1
[~LSRF-isis-1] cost-style wide
[*LSRF-isis-1] traffic-eng level-2
[*LSRF-isis-1] commit
[~LSRF-isis-1] quit

Step 5 Enable the MPLS TE capability on the interface of each node, and configure link
attributes for the interfaces.
# Configure LSRA.
<LSRA> system-view
[~LSRA] interface gigabitethernet 1/0/1
[~LSRA-GigabitEthernet1/0/1] mpls
[*LSRA-GigabitEthernet1/0/1] mpls te
[*LSRA-GigabitEthernet1/0/1] mpls rsvp-te
[*LSRA-GigabitEthernet1/0/1] mpls te bandwidth max-reservable-bandwidth 10000
[*LSRA-GigabitEthernet1/0/1] mpls te bandwidth bc0 10000
[*LSRA-GigabitEthernet1/0/1] commit
[~LSRA-GigabitEthernet1/0/1] quit

# Configure LSRB.
<LSRB> system-view
[~LSRB] interface gigabitethernet 1/0/0
[~LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] mpls te
[*LSRB-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRB-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 10000
[~LSRB-GigabitEthernet1/0/0] mpls te bandwidth bc0 10000
[~LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 1/0/2
[*LSRB-GigabitEthernet1/0/2] mpls
[*LSRB-GigabitEthernet1/0/2] mpls te
[*LSRB-GigabitEthernet1/0/2] mpls rsvp-te
[*LSRB-GigabitEthernet1/0/2] mpls te bandwidth max-reservable-bandwidth 10000
[*LSRB-GigabitEthernet1/0/2] mpls te bandwidth bc0 10000
[*LSRB-GigabitEthernet1/0/2] quit
[*LSRB] interface gigabitethernet 1/0/1
[*LSRB-GigabitEthernet1/0/1] mpls
[*LSRB-GigabitEthernet1/0/1] mpls te
[*LSRB-GigabitEthernet1/0/1] mpls rsvp-te
[*LSRB-GigabitEthernet1/0/1] mpls te bandwidth max-reservable-bandwidth 10000
[*LSRB-GigabitEthernet1/0/1] mpls te bandwidth bc0 10000
[*LSRB-GigabitEthernet1/0/1] commit
[~LSRB-GigabitEthernet1/0/1] quit

# Configure LSRC.
<LSRC> system-view
[~LSRC] interface gigabitethernet 1/0/2
[~LSRC-GigabitEthernet1/0/2] mpls
[*LSRC-GigabitEthernet1/0/2] mpls te
[*LSRC-GigabitEthernet1/0/2] mpls rsvp-te
[*LSRC-GigabitEthernet1/0/2] mpls te bandwidth max-reservable-bandwidth 10000
[*LSRC-GigabitEthernet1/0/2] mpls te bandwidth bc0 10000
[*LSRC-GigabitEthernet1/0/2] commit
[~LSRC-GigabitEthernet1/0/2] quit

# Configure LSRD.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 386


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

<LSRD> system-view
[~LSRD] interface gigabitethernet 1/0/0
[~LSRD-GigabitEthernet1/0/0] mpls
[*LSRD-GigabitEthernet1/0/0] mpls te
[*LSRD-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRD-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 10000
[*LSRD-GigabitEthernet1/0/0] mpls te bandwidth bc0 10000
[*LSRD-GigabitEthernet1/0/0] quit
[*LSRD] interface gigabitethernet 1/0/2
[*LSRD-GigabitEthernet1/0/2] mpls
[*LSRD-GigabitEthernet1/0/2] mpls te
[*LSRD-GigabitEthernet1/0/2] mpls rsvp-te
[*LSRD-GigabitEthernet1/0/2] mpls te bandwidth max-reservable-bandwidth 10000
[*LSRD-GigabitEthernet1/0/2] mpls te bandwidth bc0 10000
[*LSRD-GigabitEthernet1/0/2] quit
[*LSRD] interface gigabitethernet 1/0/1
[*LSRD-GigabitEthernet1/0/1] mpls
[*LSRD-GigabitEthernet1/0/1] mpls te
[*LSRD-GigabitEthernet1/0/1] mpls rsvp-te
[*LSRD-GigabitEthernet1/0/1] mpls te bandwidth max-reservable-bandwidth 10000
[*LSRD-GigabitEthernet1/0/1] mpls te bandwidth bc0 10000
[*LSRD-GigabitEthernet1/0/1] commit
[~LSRD-GigabitEthernet1/0/1] quit

# Configure LSRE.
<LSRE> system-view
[~LSRE] interface gigabitethernet 1/0/0
[~LSRE-GigabitEthernet1/0/0] mpls
[*LSRE-GigabitEthernet1/0/0] mpls te
[*LSRE-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRE-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 10000
[*LSRE-GigabitEthernet1/0/0] mpls te bandwidth bc0 10000
[*LSRE-GigabitEthernet1/0/0] commit
[~LSRE-GigabitEthernet1/0/0] quit

# Configure LSRF.
<LSRF> system-view
[~LSRF] interface gigabitethernet 1/0/1
[~LSRF-GigabitEthernet1/0/1] mpls
[*LSRF-GigabitEthernet1/0/1] mpls te
[*LSRF-GigabitEthernet1/0/1] mpls rsvp-te
[*LSRF-GigabitEthernet1/0/1] mpls te bandwidth max-reservable-bandwidth 10000
[*LSRF-GigabitEthernet1/0/1] mpls te bandwidth bc0 10000
[*LSRF-GigabitEthernet1/0/1] commit
[~LSRF-GigabitEthernet1/0/1] quit

Step 6 Configure explicit paths and a leaf list on the ingress LSRA.

# Configure explicit paths on LSRA to LSRC, LSRE, and LSRF.


[~LSRA] explicit-path tolsrc
[*LSRA-explicit-path-tolsrc] next hop 10.1.1.2
[*LSRA-explicit-path-tolsrc] next hop 10.3.1.2
[*LSRA-explicit-path-tolsrc] quit
[*LSRA] explicit-path tolsrf
[*LSRA-explicit-path-tolsrf] next hop 10.1.1.2
[*LSRA-explicit-path-tolsrf] next hop 10.2.1.2
[*LSRA-explicit-path-tolsrf] next hop 10.5.1.2
[*LSRA-explicit-path-tolsrf] quit
[*LSRA] explicit-path tolsre
[*LSRA-explicit-path-tolsre] next hop 10.1.1.2
[*LSRA-explicit-path-tolsre] next hop 10.2.1.2
[*LSRA-explicit-path-tolsre] next hop 10.4.1.2
[*LSRA-explicit-path-tolsre] commit
[~LSRA-explicit-path-tolsre] quit

# Configure a leaf list iptv1 on LSRA and add leaf node addresses to the leaf list.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 387


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRA] mpls te leaf-list iptv1


[*LSRA-mpls-te-leaf-list-iptv1] destination 3.3.3.3
[*LSRA-mpls-te-leaf-list-iptv1-destination-3.3.3.3] path explicit-path tolsrc
[*LSRA-mpls-te-leaf-list-iptv1-destination-3.3.3.3] quit
[*LSRA-mpls-te-leaf-list-iptv1] destination 5.5.5.5
[*LSRA-mpls-te-leaf-list-iptv1-destination-5.5.5.5] path explicit-path tolsre
[*LSRA-mpls-te-leaf-list-iptv1-destination-5.5.5.5] quit
[*LSRA-mpls-te-leaf-list-iptv1] destination 6.6.6.6
[*LSRA-mpls-te-leaf-list-iptv1-destination-6.6.6.6] path explicit-path tolsrf
[*LSRA-mpls-te-leaf-list-iptv1-destination-6.6.6.6] commit
[~LSRA-mpls-te-leaf-list-iptv1-destination-6.6.6.6] quit

Step 7 Configure the P2MP TE tunnel interface on the ingress LSRA.


# Configure LSRA.
[~LSRA] interface Tunnel 10
[*LSRA-Tunnel10] ip address unnumbered interface loopback 1
[*LSRA-Tunnel10] tunnel-protocol mpls te
[*LSRA-Tunnel10] mpls te p2mp-mode
[*LSRA-Tunnel10] mpls te tunnel-id 100
[*LSRA-Tunnel10] mpls te leaf-list iptv1
[*LSRA-Tunnel10] mpls te bandwidth ct0 1000
[*LSRA-Tunnel10] commit
[~LSRA-Tunnel10] quit

The P2MP TE tunnel configuration is complete after this step is performed.


Step 8 Verify the configuration.
After completing the configurations, run the display mpls te p2mp tunnel-
interface Tunnel10 command on LSRA. The status of Tunnel 10 on LSRA is UP,
and the status of all sub-LSPs is UP.
[~LSRA] display mpls te p2mp tunnel-interface Tunnel10
------------------------------------------------------------------------------
Tunnel10
------------------------------------------------------------------------------
Tunnel State : UP
Session ID : 100
Ingress LSR ID : 1.1.1.1 P2MP ID : 0x1010101
Admin State : UP Oper State : UP
Primary LSP State : UP
------------------------------------------------------------------------------
Main LSP State : UP LSP ID :8
------------------------------------------------------------------------------
S2L Dest Addr : 3.3.3.3 State : UP
S2L Dest Addr : 5.5.5.5 State : UP
S2L Dest Addr : 6.6.6.6 State : UP

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls te p2mp-te
mpls rsvp-te
mpls te cspf
#
explicit-path tolsrc
next hop 10.1.1.2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 388


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

next hop 10.3.1.2


#
explicit-path tolsrf
next hop 10.1.1.2
next hop 10.2.1.2
next hop 10.5.1.2
#
explicit-path tolsre
next hop 10.1.1.2
next hop 10.2.1.2
next hop 10.4.1.2
#
mpls te leaf-list iptv1
#
destination 3.3.3.3
path explicit-path tolsrc
#
destination 5.5.5.5
path explicit-path tolsre
#
destination 6.6.6.6
path explicit-path tolsrf
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0001.00
traffic-eng level-2
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
mpls te p2mp-mode
mpls te bandwidth ct0 1000
mpls te leaf-list iptv1
mpls te tunnel-id 100
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls te p2mp-te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0002.00
traffic-eng level-2
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 389


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.3.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
return

● LSRC configuration file


#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls te p2mp-te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0003.00
traffic-eng level-2
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.3.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return

● LSRD configuration file

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 390


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
sysname LSRD
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls te p2mp-te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0004.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.4.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.5.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
return
● LSRE configuration file
#
sysname LSRE
#
mpls lsr-id 5.5.5.5
#
mpls
mpls te
mpls te p2mp-te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0005.00
traffic-eng level-2
#
interface GigabitEthernet1/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 391


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

undo shutdown
ip address 10.4.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
isis enable 1
#
return

● LSRF configuration file


#
sysname LSRF
#
mpls lsr-id 6.6.6.6
#
mpls
mpls te
mpls te p2mp-te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
network-entity 00.0005.0000.0000.0006.00
traffic-eng level-2
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.5.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 10000
mpls te bandwidth bc0 10000
mpls rsvp-te
#
interface LoopBack1
ip address 6.6.6.6 255.255.255.255
isis enable 1
#
return

1.1.3.43.25 Example for Configuring the IETF DS-TE Mode (RDM)


This section provides an example for configuring the IETF DS-TE mode.

Networking Requirements
On the network shown in Figure 1-35, the PEs and P on the MPLS backbone
network run IS-IS to implement connectivity between one another. The P does not
support MPLS LDP. PE1 and PE2 access both VPN-A and VPN-B. LDP LSPs need to
be established between PE3 and PE4 along the path PE1 - P - PE2.
VPN-A transmits AF2 and AF1 traffic. VPN-B transmits AF2, AF1, and BE traffic.
The LDP LSPs transmit BE traffic. QoS requirements of each type of traffic are as
follows.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 392


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Data Flow Bandwidth

VPN-A AF2 traffic 100 Mbit/s

VPN-A AF1 traffic 50 Mbit/s

VPN-B AF2 traffic 100 Mbit/s

VPN-B AF1 traffic 50 Mbit/s

VPN-B BE traffic 50 Mbit/s

LDP LSP BE traffic 50 Mbit/s

A DS-TE tunnel is established between PE1 and PE2 to transfer the preceding types
of traffic and satisfy various QoS requirements. The bandwidth constraints model
is set to RDM to allow CTi to preempt lower-priority CTj bandwidth (0 <= i < j <=
7) to guarantee higher-priority CT bandwidth.

Figure 1-35 IETF DS-TE networking


NOTE

Interfaces 1 through 4 in this example represent GE 1/0/1, GE 1/0/2, GE 1/0/3, and GE


1/0/4, respectively.

Figure 1-36 provides the configuration guidelines for IS-IS, RSVP-TE, OSPF, and
LDP in this example.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 393


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-36 Configuration guidelines for IS-IS, RSVP-TE, OSPF, and LDP in this
example

Configuration Notes
During the configuration, note the following:

1. Since each tunnel can be configured with a single CT, establish a tunnel for
LDP LSPs to carry CT0. Establish two tunnels in VPN-A, with each of them
carrying a different CT, namely CT1 and CT2. Establish three tunnels in VPN-B,
with each of them carrying a different CT, namely CT0, CT1, and CT2.
2. Configure CT0, CT1, and CT2 to carry BE, AF1, and AF2 flows, respectively.
3. Since the tunnels pass through the same path, configure the BCi link
bandwidth value to be greater than or equal to the sum of CTi through CT7
bandwidth values of all TE tunnels, and configure the maximum link
reservable bandwidth to be greater than or equal to the BC0 bandwidth
value. Therefore, BC2 bandwidth ≥ Total AF2 bandwidth = 200 Mbit/s; BC1
bandwidth ≥ (BC2 bandwidth + Total AF1 bandwidth) = 300 Mbit/s;
reservable link bandwidth ≥ BC0 bandwidth ≥ (BC1 bandwidth + Total BE
bandwidth) = 400 Mbit/s.
4. Use a CT template to configure TE tunnels because the same type of service
in different tunnels has the same bandwidth requirement.
5. Configure IGP forwarding adjacencies on PE1 and PE2 because LDP LSPs
between PE3 and PE4 need to be implemented through LDP over TE.

Configuration Roadmap
The configuration roadmap is as follows:

1. Assign an IP address to each interface on the PEs and P and configure IS-IS to
implement connectivity between the PEs and P.
2. Configure an LSR ID and enable MPLS on the PEs and P. Enable MPLS TE and
RSVP-TE on PE1, PE2, and the P.
3. Configure IS-IS TE and enable CSPF on PE1, PE2, and the P.
4. Configure a DS-TE mode and a BCM on PE1, PE2, and the P.
5. Configure link bandwidth values on PE1, PE2, and the P.
6. Configure a TE-class mapping table on PE1 and PE2.
7. Configure explicit paths on PE1 and PE2.
8. Create tunnel interfaces on PE1 and PE2 to carry services of different levels
using tunnels of different CTs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 394


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

9. Configure forwarding adjacencies on the ingresses of TE tunnels and establish


remote LDP peer relationships between the ingresses and egresses of the TE
tunnels.
10. Enable MPLS LDP on all PEs, establish an LDP peer relationship between PE1
and PE3, and establish an LDP peer relationship between PE2 and PE4. This
step is performed to establish an LDP LSP between PE3 and PE4.
11. Establish an MP-IBGP peer relationship between PE1 and PE2, and establish
EBGP peer relationships between the PEs and CEs.
12. Configure tunnel policies on PE1 and PE2.
13. Configure VPN instances on PE1 and PE2 to enable a CE to access the
corresponding PE.

Data Preparation
To complete the configuration, you need the following data:
● LSR IDs of PEs and the P
● Number of each MPLS TE tunnel interface
● TE-class mapping table
● Maximum reservable bandwidth value and each BC bandwidth value of each
link
● VPN-A's and VPN-B's VPN instance names, route distinguishers, VPN-Targets,
and tunnel policy name

Procedure
Step 1 Assign an IP address to each interface on the PEs and P and configure IS-IS to
implement connectivity between the PEs and P.
For configuration details, see Configuration Files in this section.
After the configuration, IS-IS neighbor relationships can be established between
PE1, P, and PE2. Run the display ip routing-table command. The command
output shows that the PEs have learned the routes to Loopback 1 of each other.
Step 2 Configure an LSR ID and enable MPLS, MPLS TE, and RSVP-TE on PE1, PE2, and
the P.
# Configure PE1.
<PE1> system-view
[~PE1] mpls lsr-id 1.1.1.9
[*PE1] mpls
[*PE1-mpls] mpls te
[*PE1-mpls] mpls rsvp-te
[*PE1-mpls] commit
[~PE1-mpls] quit
[*PE1] interface gigabitethernet 1/0/3
[*PE1-GigabitEthernet1/0/3] mpls
[*PE1-GigabitEthernet1/0/3] mpls te
[*PE1-GigabitEthernet1/0/3] mpls rsvp-te
[*PE1-GigabitEthernet1/0/3] quit

# Configure the P.
<P> system-view
[~P] mpls lsr-id 2.2.2.9

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 395


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*P] mpls
[*P-mpls] mpls te
[*P-mpls] mpls rsvp-te
[*P-mpls] commit
[~P-mpls] quit
[~P] interface gigabitethernet 1/0/1
[*P-GigabitEthernet1/0/1] mpls
[*P-GigabitEthernet1/0/1] mpls te
[*P-GigabitEthernet1/0/1] mpls rsvp-te
[*P-GigabitEthernet1/0/1] commit
[~P-GigabitEthernet1/0/1] quit
[~P] interface gigabitethernet 1/0/2
[*P-GigabitEthernet1/0/2] mpls
[*P-GigabitEthernet1/0/2] mpls te
[*P-GigabitEthernet1/0/2] mpls rsvp-te
[*P-GigabitEthernet1/0/2] commit
[~P-GigabitEthernet1/0/2] quit

# Configure PE2.
<PE2> system-view
[~PE2] mpls lsr-id 3.3.3.9
[*PE2] mpls
[*PE2-mpls] mpls te
[*PE2-mpls] mpls rsvp-te
[*PE2-mpls] commit
[~PE2-mpls] quit
[*PE2] interface gigabitethernet 1/0/3
[*PE2-GigabitEthernet1/0/3] mpls
[*PE2-GigabitEthernet1/0/3] mpls te
[*PE2-GigabitEthernet1/0/3] mpls rsvp-te
[*PE2-GigabitEthernet1/0/3] quit

After completing the configuration, run the display mpls rsvp-te interface
command on PE1, PE2, or the P to check RSVP interface information and RSVP
information.
Step 3 Configure IS-IS TE and enable CSPF on PE1, PE2, and the P.
# Enable IS-IS TE on all nodes and enable CSPF on the ingress of the TE tunnel.
# Configure PE1.
[~PE1] isis 1
[~PE1-isis-1] is-level level-1
[*PE1-isis-1] cost-style wide
[*PE1-isis-1] traffic-eng level-1
[*PE1-isis-1] commit
[~PE1-isis-1] quit
[~PE1] mpls
[~PE1-mpls] mpls te cspf
[*PE1-mpls] commit

# Configure the P.
[~P] isis 1
[~P-isis-1] is-level level-1
[*P-isis-1] cost-style wide
[*P-isis-1] traffic-eng level-1
[*P-isis-1] commit
[~P-isis-1] quit

# Configure PE2.
[~PE2] isis 1
[~PE2-isis-1] is-level level-1
[*PE2-isis-1] cost-style wide
[*PE2-isis-1] traffic-eng level-1
[*PE2-isis-1] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 396


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~PE2-isis-1] quit
[~PE2] mpls
[~PE2-mpls] mpls te cspf
[*PE2-mpls] commit
[~PE2-mpls] quit

After completing the configuration, run the display isis lsdb command on a PE or
the P. The command output shows that the IS-IS link status information.
Step 4 Configure a DS-TE mode and a BCM on PE1, PE2, and the P.
# Configure PE1.
[~PE1] mpls
[~PE1-mpls] mpls te ds-te mode ietf
[*PE1-mpls] mpls te ds-te bcm rdm
[*PE1-mpls] commit
[~PE1-mpls] quit

# Configure the P.
[~P] mpls
[~P-mpls] mpls te ds-te mode ietf
[*P-mpls] mpls te ds-te bcm rdm
[*P-mpls] commit
[~P-mpls] quit

# Configure PE2.
[~PE2] mpls
[~PE2-mpls] mpls te ds-te mode ietf
[*PE2-mpls] mpls te ds-te bcm rdm
[*PE2-mpls] commit
[~PE2-mpls] quit

After completing the configuration, run the display mpls te ds-te summary
command on a PE or the P to check DS-TE configurations. The following example
uses the command output on PE1.
[~PE1] display mpls te ds-te summary
DS-TE IETF Supported :YES
DS-TE MODE :IETF
Bandwidth Constraint Model :RDM
TEClass Mapping (configured):
TE-Class ID Class Type Priority
TE-Class 0 0 0
TE-Class 1 1 0
TE-Class 2 2 0
TE-Class 3 3 0
TE-Class 4 0 7
TE-Class 5 1 7
TE-Class 6 2 7
TE-Class 7 3 7

Step 5 Configure link bandwidth values on PE1, PE2, and the P.


# Configure PE1.
[~PE1] interface gigabitethernet 1/0/3
[~PE1-GigabitEthernet1/0/3] mpls te bandwidth max-reservable-bandwidth 400000
[*PE1-GigabitEthernet1/0/3] mpls te bandwidth bc0 400000 bc1 300000 bc2 200000
[*PE1-GigabitEthernet1/0/3] commit
[~PE1-GigabitEthernet1/0/3] quit

# Configure the P.
[~P] interface gigabitethernet 1/0/1
[~P-GigabitEthernet1/0/1] mpls te bandwidth max-reservable-bandwidth 400000
[*P-GigabitEthernet1/0/1] mpls te bandwidth bc0 400000 bc1 300000 bc2 200000

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 397


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*P-GigabitEthernet1/0/1] commit
[~P-GigabitEthernet1/0/1] quit
[~P] interface gigabitethernet 1/0/2
[~P-GigabitEthernet1/0/2] mpls te bandwidth max-reservable-bandwidth 400000
[*P-GigabitEthernet1/0/2] mpls te bandwidth bc0 400000 bc1 300000 bc2 200000
[~P-GigabitEthernet1/0/2] quit

# Configure PE2.
[~PE2] interface gigabitethernet 1/0/3
[~PE2-GigabitEthernet1/0/3] mpls te bandwidth max-reservable-bandwidth 400000
[*PE2-GigabitEthernet1/0/3] mpls te bandwidth bc0 400000 bc1 300000 bc2 200000
[~PE2-GigabitEthernet1/0/3] quit

After completing the configuration, run the display mpls te link-administration


bandwidth-allocation interface gigabitethernet command on a PE to check BC
bandwidth allocation information. The following example uses the command
output on PE1.
[~PE1] display mpls te link-administration bandwidth-allocation interface gigabitethernet 1/0/3
Link ID: GigabitEthernet1/0/3
Bandwidth Constraint Model : Russian Dolls Model (RDM)
Physical Link Bandwidth(Kbits/sec) : -
Maximum Link Reservable Bandwidth(Kbit/sec): 400000
Reservable Bandwidth BC0(Kbit/sec) : 400000
Reservable Bandwidth BC1(Kbit/sec) : 300000
Reservable Bandwidth BC2(Kbit/sec) : 200000
Reservable Bandwidth BC3(Kbit/sec) : 0
Reservable Bandwidth BC4(Kbit/sec) : 0
Reservable Bandwidth BC5(Kbit/sec) : 0
Reservable Bandwidth BC6(Kbit/sec) : 0
Reservable Bandwidth BC7(Kbit/sec) : 0
Downstream Bandwidth (Kbit/sec) : 0
IPUpdown Link Status : UP
PhysicalUpdown Link Status : UP
----------------------------------------------------------------------
TE-CLASS CT PRIORITY BW RESERVED BW AVAILABLE DOWNSTREAM
(Kbit/sec) (Kbit/sec) RSVPLSPNODE COUNT
----------------------------------------------------------------------
0 0 0 0 400000 0
1 1 0 0 300000 0
2 2 0 0 200000 0
3 0 7 0 400000 0
4 1 7 0 300000 0
5 2 7 0 200000 0
6 - - - - -
7 - - - - -
8 - - - - -
9 - - - - -
10 - - - - -
11 - - - - -
12 - - - - -
13 - - - - -
14 - - - - -
15 - - - - -
----------------------------------------------------------------------

Step 6 Configure a TE-class mapping table on PE1 and PE2.


# Configure PE1.
[~PE1] te-class-mapping
[~PE1-te-class-mapping] te-class0 class-type ct0 priority 0 description For-BE
[*PE1-te-class-mapping] te-class1 class-type ct1 priority 0 description For-AF1
[*PE1-te-class-mapping] te-class2 class-type ct2 priority 0 description For-AF2
[*PE1-te-class-mapping] commit
[~PE1-te-class-mapping] quit

# Configure PE2.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 398


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~PE2] te-class-mapping
[~PE2-te-class-mapping] te-class0 class-type ct0 priority 0 description For-BE
[*PE2-te-class-mapping] te-class1 class-type ct1 priority 0 description For-AF1
[*PE2-te-class-mapping] te-class2 class-type ct2 priority 0 description For-AF2
[*PE2-te-class-mapping] commit
[~PE2-te-class-mapping] quit

After completing the configuration, run the display mpls te ds-te te-class-
mapping command on a PE to check TE-class mapping table information. The
following example uses the command output on PE1.
[~PE1] display mpls te ds-te te-class-mapping
TE-Class ID Class Type Priority Description
TE-Class0 0 0 For-BE
TE-Class1 1 0 For-AF1
TE-Class2 2 0 For-AF2
TE-Class3 - - -
TE-Class4 - - -
TE-Class5 - - -
TE-Class6 - - -
TE-Class7 - - -

Step 7 Configure explicit paths on PE1 and PE2.


# Configure PE1.
[~PE1] explicit-path path1
[*PE1-explicit-path-path1] next hop 10.10.1.2
[*PE1-explicit-path-path1] next hop 10.11.1.2
[*PE1-explicit-path-path1] next hop 3.3.3.9
[*PE1-explicit-path-path1] commit
[~PE1-explicit-path-path1] quit

# Configure PE2.
[~PE2] explicit-path path1
[*PE2-explicit-path-path1] next hop 10.11.1.1
[*PE2-explicit-path-path1] next hop 10.10.1.1
[*PE2-explicit-path-path1] next hop 1.1.1.9
[*PE2-explicit-path-path1] commit
[~PE2-explicit-path-path1] quit

After completing the configuration, run the display explicit-path command on a


PE to check explicit path information. The following example uses the command
output on PE1.
[~PE1] display explicit-path path1
Path Name : path1 Path Status : Enabled
1 10.10.1.2 Strict Include
2 10.11.1.2 Strict Include
3 3.3.3.9 Strict Include

Step 8 Create tunnel interfaces on PE1 and PE2.


# Configure PE1.
[~PE1] interface tunnel10
[*PE1-Tunnel10] description For VPN-A & Non-VPN
[*PE1-Tunnel10] ip address unnumbered interface loopback 1
[*PE1-Tunnel10] tunnel-protocol mpls te
[*PE1-Tunnel10] destination 3.3.3.9
[*PE1-Tunnel10] mpls te tunnel-id 10
[*PE1-Tunnel10] mpls te signal-protocol rsvp-te
[*PE1-Tunnel10] mpls te path explicit-path path1
[*PE1-Tunnel10] mpls te priority 0 0
[*PE1-Tunnel10] mpls te bandwidth ct0 50000
[*PE1-Tunnel10] mpls te reserved-for-binding
[*PE1-Tunnel10] commit
[~PE1-Tunnel10] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 399


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~PE1] interface tunnel11


[*PE1-Tunnel11] description For VPN-A & Non-VPN
[*PE1-Tunnel11] ip address unnumbered interface loopback 1
[*PE1-Tunnel11] tunnel-protocol mpls te
[*PE1-Tunnel11] destination 3.3.3.9
[*PE1-Tunnel11] mpls te tunnel-id 11
[*PE1-Tunnel11] mpls te signal-protocol rsvp-te
[*PE1-Tunnel11] mpls te path explicit-path path1
[*PE1-Tunnel11] mpls te priority 0 0
[*PE1-Tunnel11] mpls te bandwidth ct1 50000
[*PE1-Tunnel11] mpls te reserved-for-binding
[*PE1-Tunnel11] commit
[~PE1-Tunnel11] quit
[~PE1] interface tunnel12
[*PE1-Tunnel12] description For VPN-A & Non-VPN
[*PE1-Tunnel12] ip address unnumbered interface loopback 1
[*PE1-Tunnel12] tunnel-protocol mpls te
[*PE1-Tunnel12] destination 3.3.3.9
[*PE1-Tunnel12] mpls te tunnel-id 12
[*PE1-Tunnel12] mpls te signal-protocol rsvp-te
[*PE1-Tunnel12] mpls te path explicit-path path1
[*PE1-Tunnel12] mpls te priority 0 0
[*PE1-Tunnel12] mpls te bandwidth ct2 100000
[*PE1-Tunnel12] mpls te reserved-for-binding
[*PE1-Tunnel12] commit
[~PE1-Tunnel12] quit
[~PE1] interface tunnel20
[*PE1-Tunnel20] description For VPN-B
[*PE1-Tunnel20] ip address unnumbered interface loopback 1
[*PE1-Tunnel20] tunnel-protocol mpls te
[*PE1-Tunnel20] destination 3.3.3.9
[*PE1-Tunnel20] mpls te tunnel-id 20
[*PE1-Tunnel20] mpls te signal-protocol rsvp-te
[*PE1-Tunnel20] mpls te path explicit-path path1
[*PE1-Tunnel20] mpls te priority 0 0
[*PE1-Tunnel20] mpls te bandwidth ct0 50000
[*PE1-Tunnel20] mpls te reserved-for-binding
[*PE1-Tunnel20] commit
[~PE1-Tunnel20] quit
[~PE1] interface tunnel21
[*PE1-Tunnel21] description For VPN-B
[*PE1-Tunnel21] ip address unnumbered interface loopback 1
[*PE1-Tunnel21] tunnel-protocol mpls te
[*PE1-Tunnel21] destination 3.3.3.9
[*PE1-Tunnel21] mpls te tunnel-id 21
[*PE1-Tunnel21] mpls te signal-protocol rsvp-te
[*PE1-Tunnel21] mpls te path explicit-path path1
[*PE1-Tunnel21] mpls te priority 0 0
[*PE1-Tunnel21] mpls te bandwidth ct1 50000
[*PE1-Tunnel21] mpls te reserved-for-binding
[*PE1-Tunnel21] commit
[~PE1-Tunnel21] quit
[~PE1] interface tunnel22
[*PE1-Tunnel22] description For VPN-B
[*PE1-Tunnel22] ip address unnumbered interface loopback 1
[*PE1-Tunnel22] tunnel-protocol mpls te
[*PE1-Tunnel22] destination 3.3.3.9
[*PE1-Tunnel22] mpls te tunnel-id 22
[*PE1-Tunnel22] mpls te signal-protocol rsvp-te
[*PE1-Tunnel22] mpls te path explicit-path path1
[*PE1-Tunnel22] mpls te priority 0 0
[*PE1-Tunnel22] mpls te bandwidth ct2 100000
[*PE1-Tunnel22] mpls te reserved-for-binding
[*PE1-Tunnel22] commit
[~PE1-Tunnel22] quit

# Configure PE2.
[~PE2] interface tunnel10
[*PE2-Tunnel10] description For VPN-A & Non-VPN

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 400


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE2-Tunnel10] ip address unnumbered interface loopback 1


[*PE2-Tunnel10] tunnel-protocol mpls te
[*PE2-Tunnel10] destination 1.1.1.9
[*PE2-Tunnel10] mpls te tunnel-id 10
[*PE2-Tunnel10] mpls te signal-protocol rsvp-te
[*PE2-Tunnel10] mpls te path explicit-path path1
[*PE2-Tunnel10] mpls te priority 0 0
[*PE2-Tunnel10] mpls te bandwidth ct0 50000
[*PE2-Tunnel10] mpls te reserved-for-binding
[*PE2-Tunnel10] commit
[~PE2-Tunnel10] quit
[~PE2] interface tunnel11
[*PE2-Tunnel11] description For VPN-A & Non-VPN
[*PE2-Tunnel11] ip address unnumbered interface loopback 1
[*PE2-Tunnel11] tunnel-protocol mpls te
[*PE2-Tunnel11] destination 1.1.1.9
[*PE2-Tunnel11] mpls te tunnel-id 11
[*PE2-Tunnel11] mpls te signal-protocol rsvp-te
[*PE2-Tunnel11] mpls te path explicit-path path1
[*PE2-Tunnel11] mpls te priority 0 0
[*PE2-Tunnel11] mpls te bandwidth ct1 50000
[*PE2-Tunnel11] mpls te reserved-for-binding
[*PE2-Tunnel11] commit
[~PE2-Tunnel11] quit
[~PE2] interface tunnel12
[*PE2-Tunnel12] description For VPN-A & Non-VPN
[*PE2-Tunnel12] ip address unnumbered interface loopback 1
[*PE2-Tunnel12] tunnel-protocol mpls te
[*PE2-Tunnel12] destination 1.1.1.9
[*PE2-Tunnel12] mpls te tunnel-id 12
[*PE2-Tunnel12] mpls te signal-protocol rsvp-te
[*PE2-Tunnel12] mpls te path explicit-path path1
[*PE2-Tunnel12] mpls te priority 0 0
[*PE2-Tunnel12] mpls te bandwidth ct2 100000
[*PE2-Tunnel12] mpls te reserved-for-binding
[*PE2-Tunnel12] commit
[~PE2-Tunnel12] quit
[~PE2] interface tunnel20
[*PE2-Tunnel20] description For VPN-B
[*PE2-Tunnel20] ip address unnumbered interface loopback 1
[*PE2-Tunnel20] tunnel-protocol mpls te
[*PE2-Tunnel20] destination 1.1.1.9
[*PE2-Tunnel20] mpls te tunnel-id 20
[*PE2-Tunnel20] mpls te signal-protocol rsvp-te
[*PE2-Tunnel20] mpls te path explicit-path path1
[*PE2-Tunnel20] mpls te priority 0 0
[*PE2-Tunnel20] mpls te bandwidth ct0 50000
[*PE2-Tunnel20] mpls te reserved-for-binding
[*PE2-Tunnel20] commit
[~PE2-Tunnel20] quit
[~PE2] interface tunnel21
[*PE2-Tunnel21] description For VPN-B
[*PE2-Tunnel21] ip address unnumbered interface loopback 1
[*PE2-Tunnel21] tunnel-protocol mpls te
[*PE2-Tunnel21] destination 1.1.1.9
[*PE2-Tunnel21] mpls te tunnel-id 21
[*PE2-Tunnel21] mpls te signal-protocol rsvp-te
[*PE2-Tunnel21] mpls te path explicit-path path1
[*PE2-Tunnel21] mpls te priority 0 0
[*PE2-Tunnel21] mpls te bandwidth ct1 50000
[*PE2-Tunnel21] mpls te reserved-for-binding
[*PE2-Tunnel21] commit
[~PE2-Tunnel21] quit
[~PE2] interface tunnel22
[*PE2-Tunnel22] description For VPN-B
[*PE2-Tunnel22] ip address unnumbered interface loopback 1
[*PE2-Tunnel22] tunnel-protocol mpls te
[*PE2-Tunnel22] destination 1.1.1.9
[*PE2-Tunnel22] mpls te tunnel-id 2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 401


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE2-Tunnel22] mpls te signal-protocol rsvp-te


[*PE2-Tunnel22] mpls te path explicit-path path1
[*PE2-Tunnel22] mpls te priority 0 0
[*PE2-Tunnel22] mpls te bandwidth ct2 100000
[*PE2-Tunnel22] mpls te reserved-for-binding
[*PE2-Tunnel22] commit
[~PE2-Tunnel22] quit

After completing the configuration, run the display interface tunnel interface-
number command on a PE to check whether the tunnel interface state is UP. The
following example the command output for Tunnel10 of PE1.
[~PE1] display interface tunnel10
Tunnel1 current state : UP(ifindex: 27)
Line protocol current state : UP
Description: For VPN-A & Non-VPN
Route Port,The Maximum Transmit Unit is 1500
Internet Address is unnumbered, using address of LoopBack0(1.1.1.9/32)
Encapsulation is TUNNEL, loopback not set
Tunnel destination 3.3.3.9
Tunnel up/down statistics 0
Tunnel ct0 bandwidth is 0 Kbit/sec
Tunnel protocol/transport MPLS/MPLS, ILM is disabled
primary tunnel id is 0x0, secondary tunnel id is 0x0
Current system time: 2017-07-19 06:46:59
0 seconds output rate 0 bits/sec, 0 packets/sec
0 seconds output rate 0 bits/sec, 0 packets/sec
0 packets output, 0 bytes
0 output error
0 output drop
Last 300 seconds input utility rate: --
Last 300 seconds output utility rate: --

Run the display mpls te te-class-tunnel command on a PE to check information


about a TE tunnel associated with a TE-class. The following example uses the
command output on PE1.
[~PE1] display mpls te te-class-tunnel ct0 priority 0
----------------------------------------------------------
No. CT priority status tunnel name
----------------------------------------------------------
1 0 0 Valid Tunnel10
2 0 0 Valid Tunnel20

Step 9 Configure forwarding adjacencies on the ingresses (PE1 and PE2) of TE tunnels
and establish remote LDP peer relationships between the ingresses and egresses
of the TE tunnels.
# Configure PE1.
[~PE1] interface tunnel10
[~PE1-Tunnel10] mpls te igp advertise
[*PE1-Tunnel10] mpls te igp metric absolute 1
[*PE1-Tunnel10] mpls
[*PE1-Tunnel10] quit
[*PE1] interface tunnel11
[*PE1-Tunnel11] mpls te igp advertise
[*PE1-Tunnel11] mpls te igp metric absolute 1
[*PE1-Tunnel11] mpls
[*PE1-Tunnel11] quit
[*PE1] interface tunnel12
[*PE1-Tunnel12] mpls te igp advertise
[*PE1-Tunnel12] mpls te igp metric absolute 1
[*PE1-Tunnel12] mpls
[*PE1-Tunnel12] quit
[*PE1] interface tunnel20
[*PE1-Tunnel20] mpls te igp advertise
[*PE1-Tunnel20] mpls te igp metric absolute 1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 402


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-Tunnel20] mpls
[*PE1-Tunnel20] quit
[*PE1] interface tunnel21
[*PE1-Tunnel21] mpls te igp advertise
[*PE1-Tunnel21] mpls te igp metric absolute 1
[*PE1-Tunnel21] mpls
[*PE1-Tunnel21] quit
[*PE1] interface tunnel22
[*PE1-Tunnel22] mpls te igp advertise
[*PE1-Tunnel22] mpls te igp metric absolute 1
[*PE1-Tunnel22] mpls
[*PE1-Tunnel22] quit
[*PE1] ospf 1
[*PE1-ospf-1] opaque-capability enable
[*PE1-ospf-1] enable traffic-adjustment advertise
[*PE1-ospf-1] area 0
[*PE1-ospf-1-area-0.0.0.0] network 1.1.1.9
[*PE1-ospf-1-area-0.0.0.0] mpls-te enable
[*PE1-ospf-1-area-0.0.0.0] quit
[*PE1-ospf-1] quit
[*PE1] mpls ldp remote-peer pe1tope2
[*PE1-mpls-ldp-remote-pe1tope2] remote-ip 3.3.3.9
[*PE1-mpls-ldp-remote-pe1tope2] commit
[~PE1-mpls-ldp-remote-pe1tope2] quit

# Configure PE2.
[~PE2] interface tunnel10
[~PE2-Tunnel10] mpls te igp advertise
[*PE2-Tunnel10] mpls te igp metric absolute 1
[*PE2-Tunnel10] mpls
[*PE2-Tunnel10] quit
[*PE2] interface tunnel11
[*PE2-Tunnel11] mpls te igp advertise
[*PE2-Tunnel11] mpls te igp metric absolute 1
[*PE2-Tunnel11] mpls
[*PE2-Tunnel11] quit
[*PE2] interface tunnel12
[*PE2-Tunnel12] mpls te igp advertise
[*PE2-Tunnel12] mpls te igp metric absolute 1
[*PE2-Tunnel12] mpls
[*PE2-Tunnel12] quit
[*PE2] interface tunnel20
[*PE2-Tunnel20] mpls te igp advertise
[*PE2-Tunnel20] mpls te igp metric absolute 1
[*PE2-Tunnel20] mpls
[*PE2-Tunnel20] quit
[*PE2] interface tunnel21
[*PE2-Tunnel21] mpls te igp advertise
[*PE2-Tunnel21] mpls te igp metric absolute 1
[*PE2-Tunnel21] mpls
[*PE2-Tunnel21] quit
[*PE2] interface tunnel22
[*PE2-Tunnel22] mpls te igp advertise
[*PE2-Tunnel22] mpls te igp metric absolute 1
[*PE2-Tunnel22] mpls
[*PE2-Tunnel22] quit
[*PE2] ospf 1
[*PE2-ospf-1] opaque-capability enable
[*PE2-ospf-1] enable traffic-adjustment advertise
[*PE2-ospf-1] area 0
[*PE2-ospf-1-area-0.0.0.0] network 3.3.3.9
[*PE2-ospf-1-area-0.0.0.0] mpls-te enable
[*PE2-ospf-1-area-0.0.0.0] quit
[*PE2-ospf-1] quit
[*PE2] mpls ldp remote-peer pe2tope1
[*PE2-mpls-ldp-remote-pe2tope1] remote-ip 1.1.1.9
[*PE2-mpls-ldp-remote-pe2tope1] commit
[~PE2-mpls-ldp-remote-pe2tope1] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 403


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 10 Enable MPLS LDP on all PEs, establish an LDP peer relationship between PE1 and
PE3, and establish an LDP peer relationship between PE2 and PE4.
# Configure PE3.
<PE3> system-view
[~PE3] mpls lsr-id 4.4.4.9
[*PE3] mpls
[*PE3] commit
[~PE3-mpls] quit
[*PE3] mpls ldp
[*PE3-mpls-ldp] quit
[*PE3] interface gigabitethernet 1/0/1
[*PE3-GigabitEthernet1/0/1] mpls
[*PE3-GigabitEthernet1/0/1] mpls ldp
[*PE3-GigabitEthernet1/0/1] commit
[~PE3-GigabitEthernet1/0/1] quit

# Configure PE1.
<PE1> system-view
[~PE1] mpls ldp
[*PE1-mpls-ldp] quit
[*PE1] interface gigabitethernet 1/0/4
[*PE1-GigabitEthernet1/0/4] mpls
[*PE1-GigabitEthernet1/0/4] mpls ldp
[*PE1-GigabitEthernet1/0/4] commit
[~PE1-GigabitEthernet1/0/4] quit

# Configure PE2.
<PE2> system-view
[~PE2] mpls ldp
[*PE2-mpls-ldp] quit
[*PE2] interface gigabitethernet 1/0/4
[*PE2-GigabitEthernet1/0/4] mpls
[*PE2-GigabitEthernet1/0/4] mpls ldp
[*PE2-GigabitEthernet1/0/4] commit
[~PE2-GigabitEthernet1/0/4] quit

# Configure PE4.
<PE4> system-view
[~PE4] mpls lsr-id 5.5.5.9
[*PE4] mpls
[*PE4] commit
[~PE4-mpls] quit
[~PE4] mpls ldp
[*PE4-mpls-ldp] quit
[*PE4] interface gigabitethernet 1/0/1
[*PE4-GigabitEthernet1/0/1] mpls
[*PE4-GigabitEthernet1/0/1] mpls ldp
[*PE4-GigabitEthernet1/0/1] commit
[~PE4-GigabitEthernet1/0/1] quit

After completing the configuration, run the display mpls ldp lsp command on
PE1, PE2, PE3, or PE4. The command output shows that an LDP LSP has been
established between the pair of PE3 and PE1 and that of PE2 and PE4.
Step 11 Establish an MP-IBGP peer relationship between PE1 and PE2, and establish EBGP
peer relationships between the PEs and CEs.
# Configure PE1.
[~PE1] bgp 100
[*PE1-bgp] peer 3.3.3.9 as-number 100
[*PE1-bgp] peer 3.3.3.9 connect-interface loopback 1
[*PE1-bgp] ipv4-family vpnv4

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 404


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-bgp-af-vpnv4] peer 3.3.3.9 enable


[*PE1-bgp-af-vpnv4] commit
[~PE1-bgp-af-vpnv4] quit
[~PE1-bgp] ipv4-family vpn-instance vpna
[*PE1-bgp-vpna] peer 10.1.1.1 as-number 65410
[*PE1-bgp-vpna] import-route direct
[*PE1-bgp-vpna] commit
[~PE1-bgp-vpna] quit
[~PE1-bgp] ipv4-family vpn-instance vpnb
[*PE1-bgp-vpnb] peer 10.2.1.1 as-number 65420
[*PE1-bgp-vpnb] import-route direct
[*PE1-bgp-vpnb] commit
[~PE1-bgp-vpnb] quit

NOTE

The procedure for configuring PE2 is similar to that of PE1. For configuration details, see
Configuration Files in this section.

# Configure CE1.
[~CE1] bgp 65410
[*CE1-bgp] peer 10.1.1.2 as-number 100
[*CE1-bgp] import-route direct
[*CE1-bgp] commit

NOTE

Repeat this step on CE2 to CE4. For configuration details, see Configuration Files in this
section.

After completing the configuration, run the display bgp vpnv4 all peer command
on each PE. The command output shows that BGP peer relationships have been
established between the PEs and are in the Established state.
[~PE1] display bgp vpnv4 all peer
BGP local router ID : 1.1.1.9
Local AS number : 100
Total number of peers : 3 Peers in established state : 3
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
3.3.3.9 4 100 12 18 0 00:09:38 Established 0
Peer of vpn instance:
VPN-Instance vpna, Router ID 1.1.1.9:
10.1.1.1 4 65410 25 25 0 00:17:57 Established 1
VPN-Instance vpnb, Router ID 1.1.1.9:
10.2.1.1 4 65420 21 22 0 00:17:10 Established 1

Step 12 Configure tunnel policies on PE1 and PE2.

# Configure PE1.
[~PE1] tunnel-policy policya
[*PE1-tunnel-policy-policya] tunnel binding destination 3.3.3.9 te tunnel 10 tunnel 11 tunnel 12
[*PE1-tunnel-policy-policya] commit
[~PE1-tunnel-policy-policya] quit
[~PE1] tunnel-policy policyb
[*PE1-tunnel-policy-policyb] tunnel binding destination 3.3.3.9 te tunnel 20 tunnel 21 tunnel 22
[*PE1-tunnel-policy-policyb] commit
[~PE1-tunnel-policy-policyb] quit

# Configure PE2.
[~PE2] tunnel-policy policya
[*PE2-tunnel-policy-policya] tunnel binding destination 1.1.1.9 te tunnel 10 tunnel 11 tunnel 12
[*PE2-tunnel-policy-policya] commit
[~PE2-tunnel-policy-policya] quit
[~PE2] tunnel-policy policyb
[*PE2-tunnel-policy-policyb] tunnel binding destination 1.1.1.9 te tunnel 20 tunnel 21 tunnel 22

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 405


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE2-tunnel-policy-policyb] commit
[~PE2-tunnel-policy-policyb] quit

Step 13 Configure VPN instances on PE1 and PE2 to enable a CE to access the
corresponding PE.
# Configure PE1.
[~PE1] ip vpn-instance vpna
[*PE1-vpn-instance-vpna] ipv4-family
[*PE1-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[*PE1-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both
[*PE1-vpn-instance-vpna-af-ipv4] tnl-policy policya
[*PE1-vpn-instance-vpna-af-ipv4] commit
[~PE1-vpn-instance-vpna-af-ipv4] quit
[~PE1-vpn-instance-vpna] quit
[~PE1] ip vpn-instance vpnb
[*PE1-vpn-instance-vpna] ipv4-family
[*PE1-vpn-instance-vpnb-af-ipv4] route-distinguisher 100:2
[*PE1-vpn-instance-vpnb-af-ipv4] vpn-target 222:2 both
[*PE1-vpn-instance-vpnb-af-ipv4] tnl-policy policyb
[*PE1-vpn-instance-vpnb-af-ipv4] commit
[~PE1-vpn-instance-vpnb-af-ipv4] quit
[~PE1-vpn-instance-vpnb] quit
[~PE1] interface gigabitethernet 1/0/1
[*PE1-GigabitEthernet1/0/1] ip binding vpn-instance vpna
[*PE1-GigabitEthernet1/0/1] ip address 10.1.1.2 24
[*PE1-GigabitEthernet1/0/1] commit
[~PE1-GigabitEthernet1/0/1] quit
[*PE1] interface gigabitethernet 1/0/2
[*PE1-GigabitEthernet1/0/2] ip binding vpn-instance vpnb
[*PE1-GigabitEthernet1/0/2] ip address 10.2.1.2 24
[*PE1-GigabitEthernet1/0/2] commit
[~PE1-GigabitEthernet1/0/2] quit

# Configure PE2.
[~PE2] ip vpn-instance vpna
[*PE2-vpn-instance-vpna] ipv4-family
[*PE2-vpn-instance-vpna-af-ipv4] route-distinguisher 200:1
[*PE2-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both
[*PE2-vpn-instance-vpna-af-ipv4] tnl-policy policya
[*PE2-vpn-instance-vpna-af-ipv4] commit
[~PE2-vpn-instance-vpna-af-ipv4] quit
[~PE2-vpn-instance-vpna] quit
[~PE2] ip vpn-instance vpnb
[*PE2-vpn-instance-vpnb] ipv4-family
[*PE2-vpn-instance-vpnb-af-ipv4] route-distinguisher 200:2
[*PE2-vpn-instance-vpnb-af-ipv4] vpn-target 222:2 both
[*PE2-vpn-instance-vpnb-af-ipv4] tnl-policy policyb
[*PE2-vpn-instance-vpnb-af-ipv4] commit
[~PE2-vpn-instance-vpnb-af-ipv4] quit
[~PE2-vpn-instance-vpnb] quit
[~PE2] interface gigabitethernet 1/0/1
[*PE2-GigabitEthernet1/0/1] ip binding vpn-instance vpna
[*PE2-GigabitEthernet1/0/1] ip address 10.3.1.2 24
[*PE2-GigabitEthernet1/0/1] commit
[~PE2-GigabitEthernet1/0/1] quit
[~PE2] interface gigabitethernet 1/0/2
[*PE2-GigabitEthernet1/0/2] ip binding vpn-instance vpnb
[*PE2-GigabitEthernet1/0/2] ip address 10.4.1.2 24
[*PE2-GigabitEthernet1/0/2] commit
[~PE2-GigabitEthernet1/0/2] quit

# Assign IP addresses to the interfaces on each CE. For configuration details, see
Configuration Files in this section.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 406


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

After completing the configuration, run the display ip vpn-instance verbose


command on a PE to check the configurations of VPN instances. Each PE can
successfully ping its connected CEs.

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
ip vpn-instance vpna
ipv4-family
route-distinguisher 100:1
tnl-policy policya
apply-label per-instance
vpn-target 111:1 export-extcommunity
vpn-target 111:1 import-extcommunity
#
ip vpn-instance vpnb
ipv4-family
route-distinguisher 100:2
tnl-policy policyb
apply-label per-instance
vpn-target 222:2 export-extcommunity
vpn-target 222:2 import-extcommunity
#
mpls lsr-id 1.1.1.9
#
mpls
mpls te
mpls te cspf
mpls te ds-te mode ietf
mpls rsvp-te
#
mpls ldp
#
mpls ldp remote-peer pe1tope2
remote-ip 3.3.3.9
#
explicit-path path1
next hop 10.10.1.2
next hop 10.11.1.2
next hop 3.3.3.9
#
te-class-mapping
te-class0 class-type ct0 priority 0 description For-BE
te-class1 class-type ct1 priority 0 description For-AF1
te-class2 class-type ct2 priority 0 description For-AF2
#
interface GigabitEthernet1/0/1
undo shutdown
ip binding vpn-instance vpna
ip address 10.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/2
undo shutdown
ip binding vpn-instance vpnb
ip address 10.2.1.2 255.255.255.0
#
interface GigabitEthernet1/0/3
undo shutdown
ip address 10.10.1.1 255.255.255.0
isis enable 1
mpls
mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 407


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te bandwidth max-reservable-bandwidth 400000


mpls te bandwidth bc0 400000 bc1 300000 bc2 200000
mpls rsvp-te
#
interface GigabitEthernet1/0/4
undo shutdown
ip address 10.5.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
isis enable 1
#
interface Tunnel10
description For VPN-A & Non-VPN
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.9
mpls te tunnel-id 10
mpls te priority 0 0
mpls te bandwidth ct0 50000
mpls te reserved-for-binding
mpls te path explicit-path path1
mpls te igp advertise
mpls te igp metric absolute 1
#
interface Tunnel11
description For VPN-A & Non-VPN
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.9
mpls te tunnel-id 11
mpls te priority 0 0
mpls te bandwidth ct1 50000
mpls te reserved-for-binding
mpls te path explicit-path path1
mpls te igp advertise
mpls te igp metric absolute 1
#
interface Tunnel12
description For VPN-A & Non-VPN
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.9
mpls te tunnel-id 12
mpls te priority 0 0
mpls te bandwidth ct2 100000
mpls te reserved-for-binding
mpls te path explicit-path path1
mpls te igp advertise
mpls te igp metric absolute 1
#
interface Tunnel20
description For VPN-B
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.9
mpls te tunnel-id 20
mpls te priority 0 0
mpls te bandwidth ct0 50000
mpls te reserved-for-binding
mpls te path explicit-path path1
#
interface Tunnel21
description For VPN-B
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.9

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 408


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te tunnel-id 21
mpls te priority 0 0
mpls te bandwidth ct1 50000
mpls te reserved-for-binding
mpls te path explicit-path path1
#
interface Tunnel22
description For VPN-B
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 3.3.3.9
mpls te tunnel-id 22
mpls te priority 0 0
mpls te bandwidth ct2 100000
mpls te reserved-for-binding
mpls te path explicit-path path1
#
bgp 100
peer 3.3.3.9 as-number 100
peer 3.3.3.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 3.3.3.9 enable
#
ipv4-family vpnv4
policy vpn-target
peer 3.3.3.9 enable
#
ipv4-family vpn-instance vpna
peer 10.1.1.1 as-number 65410
import-route direct
#
ipv4-family vpn-instance vpnb
peer 10.2.1.1 as-number 65420
import-route direct
#
isis 1
is-level level-1
cost-style wide
traffic-eng level-1
#
ospf 1
opaque-capability enable
enable traffic-adjustment advertise
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 10.1.5.0 0.0.0.255
mpls-te enable
#
tunnel-policy policya
tunnel binding destination 3.3.3.9 te Tunnel10 Tunnel11 Tunnel12
#
tunnel-policy policyb
tunnel binding destination 3.3.3.9 te Tunnel20 Tunnel21 Tunnel22
#
return
● P configuration file
#
sysname P
#
mpls lsr-id 2.2.2.9
#
mpls
mpls te
mpls te ds-te mode ietf
mpls rsvp-te
#
interface GigabitEthernet1/0/1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 409


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

undo shutdown
ip address 10.10.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 400000
mpls te bandwidth bc0 400000 bc1 300000 bc2 200000
mpls rsvp-te
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.11.1.1 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 400000
mpls te bandwidth bc0 400000 bc1 300000 bc2 200000
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
isis enable 1
#
isis 1
is-level level-1
cost-style wide
traffic-eng level-1
#
return
● PE2 configuration file
#
sysname PE2
#
ip vpn-instance vpna
ipv4-family
route-distinguisher 200:1
tnl-policy policya
apply-label per-instance
vpn-target 111:1 export-extcommunity
vpn-target 111:1 import-extcommunity
#
ip vpn-instance vpnb
ipv4-family
route-distinguisher 200:2
tnl-policy policyb
apply-label per-instance
vpn-target 222:2 export-extcommunity
vpn-target 222:2 import-extcommunity
#
mpls lsr-id 3.3.3.9
#
mpls
mpls te
mpls te cspf
mpls te ds-te mode ietf
mpls te rsvp-te
#
mpls ldp
#
mpls ldp remote-peer pe2tope1
remote-ip 1.1.1.9
#
explicit-path path1
next hop 10.10.1.1
next hop 10.11.1.1
next hop 1.1.1.9
#
te-class-mapping
te-class0 class-type ct0 priority 0 description For-BE

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 410


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

te-class1 class-type ct1 priority 0 description For-AF1


te-class2 class-type ct2 priority 0 description For-AF2
#
interface GigabitEthernet1/0/1
undo shutdown
ip binding vpn-instance vpna
ip address 10.3.1.2 255.255.255.0
#
interface GigabitEthernet1/0/2
undo shutdown
ip binding vpn-instance vpnb
ip address 10.4.1.2 255.255.255.0
#
interface GigabitEthernet1/0/3
undo shutdown
ip address 10.11.1.2 255.255.255.0
isis enable 1
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 400000
mpls te bandwidth bc0 400000 bc1 300000 bc2 200000
mpls rsvp-te
#
interface GigabitEthernet1/0/4
undo shutdown
ip address 10.5.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
isis enable 1
#
interface Tunnel10
description For VPN-A & Non-VPN
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te tunnel-id 10
mpls te priority 0 0
mpls te bandwidth ct0 50000
mpls te reserved-for-binding
mpls te path explicit-path path1
mpls te igp advertise
mpls te igp metric absolute 1
#
interface Tunnel11
description For VPN-A & Non-VPN
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te tunnel-id 11
mpls te priority 0 0
mpls te bandwidth ct1 50000
mpls te reserved-for-binding
mpls te path explicit-path path1
mpls te igp advertise
mpls te igp metric absolute 1
#
interface Tunnel12
description For VPN-A & Non-VPN
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te tunnel-id 12
mpls te priority 0 0
mpls te bandwidth ct2 100000
mpls te reserved-for-binding
mpls te path explicit-path path1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 411


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te igp advertise


mpls te igp metric absolute 1
#
interface Tunnel20
description For VPN-B
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te tunnel-id 20
mpls te priority 0 0
mpls te bandwidth ct0 50000
mpls te reserved-for-binding
mpls te path explicit-path path1
#
interface Tunnel21
description For VPN-B
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te tunnel-id 21
mpls te priority 0 0
mpls te bandwidth ct1 50000
mpls te reserved-for-binding
mpls te path explicit-path path1
#
interface Tunnel22
description For VPN-B
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te tunnel-id 22
mpls te priority 0 0
mpls te bandwidth ct2 100000
mpls te reserved-for-binding
mpls te path explicit-path path1
#
bgp 100
peer 1.1.1.9 as-number 100
peer 1.1.1.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 1.1.1.9 enable
#
ipv4-family vpnv4
policy vpn-target
peer 1.1.1.9 enable
#
ipv4-family vpn-instance vpna
peer 10.3.1.1 as-number 65430
import-route direct
#
ipv4-family vpn-instance vpnb
peer 10.4.1.1 as-number 65440
import-route direct
#
isis 1
is-level level-1
cost-style wide
traffic-eng level-1
#
ospf 1
opaque-capability enable
enable traffic-adjustment advertise
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 10.1.6.0 0.0.0.255
mpls-te enable
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 412


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

tunnel-policy policya
tunnel binding destination 1.1.1.9 te Tunnel10 Tunnel11 Tunnel12
#
tunnel-policy policyb
tunnel binding destination 1.1.1.9 te Tunnel20 Tunnel21 Tunnel22
#
return
● PE3 configuration file
#
sysname PE3
#
mpls lsr-id 4.4.4.9
#
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.5.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
mpls
mpls ldp
#
ospf 1
area 0.0.0.0
network 4.4.4.9 0.0.0.0
network 10.1.5.0 0.0.0.255
#
return
● PE4 configuration file
#
sysname PE4
#
mpls lsr-id 5.5.5.9
#
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.6.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 5.5.5.9 255.255.255.255
mpls
mpls ldp
#
ospf 1
area 0.0.0.0
network 5.5.5.9 0.0.0.0
network 10.1.6.0 0.0.0.255
#
return
● CE1 configuration file
#
sysname CE1
#
interface GigabitEthernet1/0/1
undo shutdown

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 413


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 10.1.1.1 255.255.255.0


#
bgp 65410
peer 10.1.1.2 as-number 100
#
ipv4-family unicast
undo synchronization
import-route direct
peer 10.1.1.2 enable
#
return

● CE2 configuration file


#
sysname CE2
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.2.1.1 255.255.255.0
#
bgp 65420
peer 10.2.1.2 as-number 100
#
ipv4-family unicast
undo synchronization
import-route direct
peer 10.2.1.2 enable
#
return

● CE3 configuration file


#
sysname CE3
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.3.1.1 255.255.255.0
#
bgp 65430
peer 10.3.1.2 as-number 100
#
ipv4-family unicast
undo synchronization
import-route direct
peer 10.3.1.2 enable
#
return

● CE4 configuration file


#
sysname CE4
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.4.1.1 255.255.255.0
#
bgp 65440
peer 10.4.1.2 as-number 100
#
ipv4-family unicast
undo synchronization
import-route direct
peer 10.4.1.2 enable
#
return

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 414


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.3.43.26 Example for Configuring CBTS in an L3VPN over TE Scenario

Networking Requirements
In Figure 1-37, CE1 and CE2 belong to the same L3VPN. They access the public
network through PE1 and PE2 respectively. Various types of services are
transmitted between CE1 and CE2. Transmitting a large number of common
services deteriorates the efficiency of transmitting important services. To prevent
this problem, the CBTS function can be configured. A CBTS allows traffic of a
specific service class to be transmitted along a specified tunnel.

In this example, tunnel 1 and tunnel 2 on PE1 transmit important services, and
tunnel 3 transmits other packets.

NOTICE

If the CBTS function is configured, you are advised not to configure the following
services at the same time:
● Mixed load balancing
● Dynamic load balancing

Figure 1-37 CBTS networking in an L3VPN over TE scenario


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 2/0/0, respectively.

Precautions
None.

Configuration Roadmap
The configuration roadmap is as follows:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 415


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1. Assign an IP address and its mask to every interface and configure a loopback
interface address as an LSR ID on every node.
2. Enable IS-IS globally, configure a network entity title (NET), specify the cost
type, and enable IS-IS TE on each involved node. Enable IS-IS on interfaces,
including loopback interfaces.
3. Set MPLS label switching router (LSR) IDs for all devices and globally enable
MPLS, MPLS TE, RSVP-TE, and CSPF.
4. Enable MPLS, MPLS TE, and RSVP-TE, on each interface.
5. Configure the maximum reservable bandwidth and BC bandwidth for the link
on the outbound interface of each device along the tunnel.
6. Configure a tunnel interface on the ingress and configure the IP address,
tunnel protocol, destination IP address, and tunnel bandwidth.
7. Configure multi-field classification on PE1.
8. Configure a VPN instance and apply a tunnel policy on PE1.

Data Preparation
To complete the configuration, you need the following data:
● IS-IS area ID, originating system ID, and IS-IS level of each node
● Maximum available link bandwidth and maximum reservable link bandwidth
on each node
● Tunnel interface number, IP address, destination IP address, tunnel ID, and
tunnel bandwidth on the tunnel interface
● Traffic classifier name, traffic behavior name, and traffic policy name

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address and mask for each interface according to Figure 1-37. For
configuration details, see Configuration Files in this section.
Step 2 Configure IS-IS to advertise routes.
# Configure PE1.
[~PE1] isis 1
[*PE1-isis-1] network-entity 00.0005.0000.0000.0001.00
[*PE1-isis-1] is-level level-2
[*PE1-isis-1] quit
[*PE1] interface gigabitethernet 1/0/0
[*PE1-GigabitEthernet1/0/0] isis enable 1
[*PE1-GigabitEthernet1/0/0] quit
[*PE1] interface loopback 1
[*PE1-LoopBack1] isis enable 1
[*PE1-LoopBack1] commit
[~PE1-LoopBack1] quit

# Configure P1.
[~P1] isis 1
[*P1-isis-1] network-entity 00.0005.0000.0000.0002.00
[*P1-isis-1] is-level level-2
[*P1-isis-1] quit
[*P1] interface gigabitethernet 1/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 416


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*P1-GigabitEthernet1/0/0] isis enable 1


[*P1-GigabitEthernet1/0/0] quit
[*P1] interface gigabitethernet 2/0/0
[*P1-GigabitEthernet2/0/0] isis enable 1
[*P1-GigabitEthernet2/0/0] quit
[*P1] interface loopback 1
[*P1-LoopBack1] isis enable 1
[*P1-LoopBack1] commit
[~P1-LoopBack1] quit

# Configure P2.
[~P2] isis 1
[*P2-isis-1] network-entity 00.0005.0000.0000.0003.00
[*P2-isis-1] is-level level-2
[*P2-isis-1] quit
[*P2] interface gigabitethernet 1/0/0
[*P2-GigabitEthernet1/0/0] isis enable 1
[*P2-GigabitEthernet1/0/0] quit
[*P2] interface gigabitethernet 2/0/0
[*P2-GigabitEthernet2/0/0] isis enable 1
[*P2-GigabitEthernet2/0/0] quit
[*P2] interface loopback 1
[*P2-LoopBack1] isis enable 1
[*P2-LoopBack1] commit
[~P2-LoopBack1] quit

# Configure PE2.
[~PE2] isis 1
[*PE2-isis-1] network-entity 00.0005.0000.0000.0004.00
[*PE2-isis-1] is-level level-2
[*PE2-isis-1] quit
[*PE2] interface gigabitethernet 1/0/0
[*PE2-GigabitEthernet1/0/0] isis enable 1
[*PE2-GigabitEthernet1/0/0] quit
[*PE2] interface loopback 1
[*PE2-LoopBack1] isis enable 1
[*PE2-LoopBack1] commit
[~PE2-LoopBack1] quit

After completing the preceding configurations, run the display ip routing-table


command on each node. The command output shows that they have learned
routes from each other. The following example uses the command output on PE1.
[~PE1] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 13 Routes : 13

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.9/32 Direct 0 0 D 127.0.0.1 LoopBack0


2.2.2.9/32 ISIS 15 10 D 10.1.1.2 GigabitEthernet1/0/0
3.3.3.9/32 ISIS 15 20 D 10.1.1.2 GigabitEthernet1/0/0
4.4.4.9/32 ISIS 15 30 D 10.1.1.2 GigabitEthernet1/0/0
10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.2.1.0/24 ISIS 15 20 D 10.1.1.2 GigabitEthernet1/0/0
10.3.1.0/24 ISIS 15 30 D 10.1.1.2 GigabitEthernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Step 3 Configure an EBGP peer relationship between each pair of a PE and a CE and an
MP-IBGP peer relationship between two PEs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 417


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

For configuration details, see Configuration Files in this section.


Step 4 Configure basic MPLS functions and enable MPLS TE, RSVP-TE, and CSPF.
# Enable MPLS, MPLS TE, and RSVP-TE globally and in the interface view on each
node, and enable CSPF in the MPLS view of the ingress of a tunnel to be created.
# Configure PE1.
[~PE1] mpls lsr-id 1.1.1.9
[*PE1] mpls
[*PE1-mpls] mpls te
[*PE1-mpls] mpls rsvp-te
[*PE1-mpls] mpls te cspf
[*PE1-mpls] quit
[*PE1] interface gigabitethernet 1/0/0
[*PE1-GigabitEthernet1/0/0] mpls
[*PE1-GigabitEthernet1/0/0] mpls te
[*PE1-GigabitEthernet1/0/0] mpls rsvp-te
[*PE1-GigabitEthernet1/0/0] commit
[~PE1-GigabitEthernet1/0/0] quit

# Configure P1.
[~P1] mpls lsr-id 2.2.2.9
[*P1] mpls
[*P1-mpls] mpls te
[*P1-mpls] mpls rsvp-te
[*P1-mpls] quit
[*P1] interface gigabitethernet 1/0/0
[*P1-GigabitEthernet1/0/0] mpls
[*P1-GigabitEthernet1/0/0] mpls te
[*P1-GigabitEthernet1/0/0] mpls rsvp-te
[*P1-GigabitEthernet1/0/0] quit
[*P1] interface gigabitethernet 2/0/0
[*P1-GigabitEthernet2/0/0] mpls
[*P1-GigabitEthernet2/0/0] mpls te
[*P1-GigabitEthernet2/0/0] mpls rsvp-te
[*P1-GigabitEthernet2/0/0] commit
[~P1-GigabitEthernet2/0/0] quit

# Configure P2.
[~P2] mpls lsr-id 3.3.3.9
[*P2] mpls
[*P2-mpls] mpls te
[*P2-mpls] mpls rsvp-te
[*P2-mpls] quit
[*P2] interface gigabitethernet 1/0/0
[*P2-GigabitEthernet1/0/0] mpls
[*P2-GigabitEthernet1/0/0] mpls te
[*P2-GigabitEthernet1/0/0] mpls rsvp-te
[*P2-GigabitEthernet1/0/0] quit
[*P2] interface gigabitethernet 2/0/0
[*P2-GigabitEthernet2/0/0] mpls
[*P2-GigabitEthernet2/0/0] mpls te
[*P2-GigabitEthernet2/0/0] mpls rsvp-te
[*P2-GigabitEthernet2/0/0] commit
[~P2-GigabitEthernet2/0/0] quit

# Configure PE2.
[~PE2] mpls lsr-id 4.4.4.9
[*PE2] mpls
[*PE2-mpls] mpls te
[*PE2-mpls] mpls rsvp-te
[*PE2-mpls] quit
[*PE2] interface gigabitethernet 1/0/0
[*PE2-GigabitEthernet1/0/0] mpls

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 418


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE2-GigabitEthernet1/0/0] mpls te
[*PE2-GigabitEthernet1/0/0] mpls rsvp-te
[*PE2-GigabitEthernet1/0/0] commit
[~PE2-GigabitEthernet1/0/0] quit

Step 5 Configure IS-IS TE.


# Configure PE1.
[~PE1] isis 1
[~PE1-isis-1] cost-style wide
[*PE1-isis-1] traffic-eng level-2
[*PE1-isis-1] commit
[~PE1-isis-1] quit

# Configure P1.
[~P1] isis 1
[~P1-isis-1] cost-style wide
[*P1-isis-1] traffic-eng level-2
[*P1-isis-1] commit
[~P1-isis-1] quit

# Configure P2.
[~P2] isis 1
[~P2-isis-1] cost-style wide
[*P2-isis-1] traffic-eng level-2
[*P2-isis-1] commit
[~P2-isis-1] quit

# Configure PE2.
[~PE2] isis 1
[~PE2-isis-1] cost-style wide
[*PE2-isis-1] traffic-eng level-2
[*PE2-isis-1] commit
[~PE2-isis-1] quit

Step 6 Configure MPLS TE bandwidth attributes for links.


# Configure the maximum reservable bandwidth and BC0 bandwidth for the link
on the outbound interface of each device along the tunnel. Note that all physical
outbound interfaces in the PE1->PE2 and PE2->PE1 directions need to be
configured.
# Configure PE1.
[~PE1] interface gigabitethernet 1/0/0
[~PE1-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*PE1-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*PE1-GigabitEthernet1/0/0] commit
[~PE1-GigabitEthernet1/0/0] quit

# Configure P1.
[~P1] interface gigabitethernet 1/0/0
[~P1-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*P1-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*P1-GigabitEthernet1/0/0] quit
[*P1] interface gigabitethernet 2/0/0
[*P1-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*P1-GigabitEthernet2/0/0] mpls te bandwidth bc0 100000
[*P1-GigabitEthernet2/0/0] commit
[~P1-GigabitEthernet2/0/0] quit

# Configure P2.
[~P2] interface gigabitethernet 1/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 419


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~P2-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000


[*P2-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*P2-GigabitEthernet1/0/0] quit
[*P2] interface gigabitethernet 2/0/0
[*P2-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*P2-GigabitEthernet2/0/0] mpls te bandwidth bc0 100000
[*P2-GigabitEthernet2/0/0] commit
[~P2-GigabitEthernet2/0/0] quit

# Configure PE2.
[~PE2] interface gigabitethernet 1/0/0
[~PE2-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 100000
[*PE2-GigabitEthernet1/0/0] mpls te bandwidth bc0 100000
[*PE2-GigabitEthernet1/0/0] commit
[~PE2-GigabitEthernet1/0/0] quit

Step 7 Configure QoS on each PE.


# Configure multi-field classification and set a service class for each type of
service packet on PE1.
[~PE1] acl 2001
[*PE1-acl4-basic-2001] rule 10 permit source 10.40.0.0 0.255.255.255
[*PE1-acl4-basic-2001] quit
[*PE1] acl 2002
[*PE1-acl4-basic-2002] rule 20 permit source 10.50.0.0 0.255.255.255
[*PE1-acl4-basic-2002] quit
[*PE1] traffic classifier service1
[*PE1-classifier-service1] if-match acl 2001
[*PE1-classifier-service1] quit
[*PE1] traffic behavior behavior1
[*PE1-behavior-behavior1] service-class af1 color green
[*PE1-behavior-behavior1] quit
[*PE1] traffic classifier service2
[*PE1-classifier-service2] if-match acl 2002
[*PE1-classifier-service2] quit
[*PE1] traffic behavior behavior2
[*PE1-behavior-behavior2] service-class af2 color green
[*PE1-behavior-behavior2] quit
[*PE1] traffic policy policy1
[*PE1-trafficpolicy-policy1] classifier service1 behavior behavior1
[*PE1-trafficpolicy-policy1] classifier service2 behavior behavior2
[*PE1-trafficpolicy-policy1] quit
[*PE1] interface gigabitethernet 2/0/0
[*PE1-GigabitEthernet2/0/0] traffic-policy policy1 inbound
[*PE1-GigabitEthernet2/0/0] commit
[~PE1-GigabitEthernet2/0/0] quit

Step 8 Configure MPLS TE tunnel interfaces.


# On the ingress of each tunnel, create a tunnel interface and set the IP address,
tunnel protocol, destination IP address, tunnel ID, dynamic signaling protocol,
tunnel bandwidth, and service classes for packets transmitted on the tunnel.

NOTE

Run the mpls te service-class { service-class & <1-8> | default } command to configure the
service class for packets transmitted along each tunnel.

# Configure PE1.
[~PE1] interface tunnel1
[*PE1-Tunnel1] ip address unnumbered interface loopback 1
[*PE1-Tunnel1] tunnel-protocol mpls te
[*PE1-Tunnel1] destination 4.4.4.9
[*PE1-Tunnel1] mpls te tunnel-id 1
[*PE1-Tunnel1] mpls te bandwidth ct0 20000

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 420


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-Tunnel1] mpls te service-class af1


[*PE1-Tunnel1] commit
[~PE1-Tunnel1] quit
[~PE1] interface tunnel2
[*PE1-Tunnel2] ip address unnumbered interface loopback 1
[*PE1-Tunnel2] tunnel-protocol mpls te
[*PE1-Tunnel2] destination 4.4.4.9
[*PE1-Tunnel2] mpls te tunnel-id 2
[*PE1-Tunnel2] mpls te bandwidth ct0 20000
[*PE1-Tunnel2] mpls te service-class af2
[*PE1-Tunnel2] commit
[~PE1-Tunnel2] quit
[~PE1] interface tunnel3
[*PE1-Tunnel3] ip address unnumbered interface loopback 1
[*PE1-Tunnel3] tunnel-protocol mpls te
[*PE1-Tunnel3] destination 4.4.4.9
[*PE1-Tunnel3] mpls te tunnel-id 3
[*PE1-Tunnel3] mpls te bandwidth ct0 20000
[*PE1-Tunnel3] mpls te service-class default
[~PE1-Tunnel3] commit
[~PE1-Tunnel3] quit
[*PE1] tunnel-policy policy1
[*PE1-tunnel-policy-policy1] tunnel select-seq cr-lsp load-balance-number 3
[*PE1-tunnel-policy-policy1] commit
[~PE1-tunnel-policy-policy1] quit

# Configure PE2.
[~PE2] interface tunnel1
[*PE2-Tunnel1] ip address unnumbered interface loopback 1
[*PE2-Tunnel1] tunnel-protocol mpls te
[*PE2-Tunnel1] destination 1.1.1.9
[*PE2-Tunnel1] mpls te tunnel-id 1
[*PE2-Tunnel1] mpls te bandwidth ct0 20000
[*PE2-Tunnel1] commit
[~PE2-Tunnel1] quit
[~PE2] tunnel-policy policy1
[*PE2-tunnel-policy-policy1] tunnel select-seq cr-lsp load-balance-number 3
[*PE2-tunnel-policy-policy1] commit
[~PE2-tunnel-policy-policy1] quit

Step 9 Configure L3VPN access on each PE.


# Configure PE1.
[~PE1] ip vpn-instance vpn1
[*PE1-vpn-instance-vpn1] ipv4-family
[*PE1-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1
[*PE1-vpn-instance-vpn1-af-ipv4] tnl-policy policy1
[*PE1-vpn-instance-vpn1-af-ipv4] vpn-target 111:1 both
[*PE1-vpn-instance-vpn1-af-ipv4] commit
[~PE1-vpn-instance-vpn1-af-ipv4] quit
[~PE1-vpn-instance-vpn1] quit
[~PE1] interface gigabitethernet 2/0/0
[~PE1-GigabitEthernet2/0/0] ip binding vpn-instance vpn1
[*PE1-GigabitEthernet2/0/0] commit
[~PE1-GigabitEthernet2/0/0] quit

# Configure PE2.
[~PE2] ip vpn-instance vpn2
[*PE2-vpn-instance-vpn2] ipv4-family
[*PE2-vpn-instance-vpn2-af-ipv4] route-distinguisher 200:1
[*PE2-vpn-instance-vpn1-af-ipv4] tnl-policy policy1
[*PE2-vpn-instance-vpn2-af-ipv4] vpn-target 111:1 both
[*PE2-vpn-instance-vpn2-af-ipv4] commit
[~PE2-vpn-instance-vpn2-af-ipv4] quit
[~PE2-vpn-instance-vpn2] quit
[~PE2] interface gigabitethernet 2/0/0
[~PE2-GigabitEthernet2/0/0] ip binding vpn-instance vpn2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 421


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE2-GigabitEthernet2/0/0] commit
[*PE1-GigabitEthernet2/0/0] quit

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 1.1.1.9
#
mpls
mpls te
mpls te cspf
mpls rsvp-te
#
ip vpn-instance vpn1
ipv4-family
route-distinguisher 100:1
tnl-policy policy1
apply-label per-instance
vpn-target 111:1 export-extcommunity
vpn-target 111:1 import-extcommunity
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0001.00
#
acl number 2001
rule 10 permit source 10.40.0.0 0.255.255.255
#
acl number 2002
rule 20 permit source 10.50.0.0 0.255.255.255
#
traffic classifier service1
if-match acl 2001
#
traffic classifier service2
if-match acl 2002
#
traffic behavior behavior1
service-class af1 color green
#
traffic behavior behavior2
service-class af2 color green
#
traffic policy policy1
classifier service1 behavior behavior1
classifier service2 behavior behavior2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip binding vpn-instance vpn1
ip address 10.10.1.1 255.255.255.0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 422


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

traffic-policy policy1 inbound


#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.9
mpls te bandwidth ct0 20000
mpls te tunnel-id 1
mpls te service-class af1
#
interface Tunnel2
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.9
mpls te bandwidth ct0 20000
mpls te tunnel-id 2
mpls te service-class af2
#
interface Tunnel3
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.9
mpls te bandwidth ct0 20000
mpls te tunnel-id 3
mpls te service-class default
#
bgp 100
peer 4.4.4.9 as-number 100
peer 4.4.4.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 4.4.4.9 enable
#
ipv4-family vpnv4
policy vpn-target
peer 4.4.4.9 enable
#
ipv4-family vpn-instance vpn1
peer 10.10.1.2 as-number 65410
#
tunnel-policy policy1
tunnel select-seq cr-lsp load-balance-number 3
#
return
● P1 configuration file
#
sysname P1
#
mpls lsr-id 2.2.2.9
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 423


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
isis enable 1
#
return
● P2 configuration file
#
sysname P2
#
mpls lsr-id 3.3.3.9
#
mpls
mpls te
mpls rsvp-te
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
isis enable 1
#
return
● PE2 configuration file
#
sysname PE2
#
mpls lsr-id 4.4.4.9
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 424


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls
mpls te
mpls rsvp-te
#
ip vpn-instance vpn2
ipv4-family
route-distinguisher 200:1
tnl-policy policy1
apply-label per-instance
vpn-target 111:1 export-extcommunity
vpn-target 111:1 import-extcommunity
#
isis 1
is-level level-2
cost-style wide
traffic-eng level-2
network-entity 00.0005.0000.0000.0004.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 100000
mpls te bandwidth bc0 100000
isis enable 1
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip binding vpn-instance vpn2
ip address 10.11.1.1 255.255.255.0
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
isis enable 1
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te bandwidth ct0 20000
mpls te tunnel-id 1
#
bgp 100
peer 1.1.1.9 as-number 100
peer 1.1.1.9 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 1.1.1.9 enable
#
ipv4-family vpnv4
policy vpn-target
peer 1.1.1.9 enable
#
ipv4-family vpn-instance vpn2
peer 10.11.1.2 as-number 65420
#
tunnel-policy policy1
tunnel select-seq cr-lsp load-balance-number 3
#
return

1.1.3.43.27 Example for Configuring CBTS in an L3VPN over LDP over TE Scenario
This section provides an example for configuring a CBTS in an L3VPN over LDP
over TE scenario.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 425


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Networking Requirements
In Figure 1-38, CE1 and CE2 belong to the same L3VPN. They access the public
network through PE1 and PE2 respectively. Various types of services are
transmitted between CE1 and CE2. Transmitting a large number of common
services deteriorates the efficiency of transmitting important services. To prevent
this problem, the CBTS function can be configured. A CBTS allows traffic of a
specific service class to be transmitted along a specified tunnel.

In this example, tunnel 1 transmits important services, and tunnel 2 transmits


other packets.

Figure 1-38 CBTS in an L3VPN over LDP over TE scenario


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 2/0/0, respectively.

Precautions
When configuring a TE tunnel group in an L3VPN over LDP over TE scenario, note
that the destination IP address of a tunnel must be equal to the LSR ID of the
egress.

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure the IP address of a loopback interface as the LSR ID on each LSR


and configure an IGP to advertise routes.
2. Configure OSPF TE on each TE-aware area, create an MPLS TE tunnel, and
specify the service class for packets that can be transmitted on the tunnel.
3. Enable MPLS LDP in each non-TE-aware area and configure a remote LDP
peer at the edge of the TE-aware area.
4. Configure the forwarding adjacency.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 426


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

5. Configure multi-field traffic classification on nodes that connected to the


L3VPN and configure behavior aggregate classification on LDP over TE links.

Data Preparation
To complete the configuration, you need the following data:
● OSPF process ID and OSPF area ID
● Policy for triggering the LSP establishment
● Name and IP address of each remote LDP peer of P1 and P2
● Link bandwidth attributes of the tunnel
● Tunnel interface number, IP address, destination address, tunnel ID, tunnel
signaling protocol (RSVP-TE is used by default and in this example), tunnel
bandwidth, TE metric value, and link cost on P1 and P2
● Multi-field classifier name and traffic policy name

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address to each interface, including the loopback interface according
to Figure 1-38. For configuration details, see Configuration Files in this section.
Step 2 Enable OSPF to advertise the route of the segment connected to each interface
and the host route destined for each LSR ID. For configuration details, see
Configuration Files in this section.
Step 3 Configure an EBGP peer relationship between each pair of a PE and a CE and an
MP-IBGP peer relationship between two PEs.
For configuration details, see Configuration Files in this section.
Step 4 Enable MPLS on each LSR. Enable LDP to establish an LDP session between PE1
and P1, and between P2 and PE2. Enable RSVP-TE to establish an RSVP neighbor
relationship between P1 and P2, and between P1 and P3.
# Configure PE1.
[~PE1] mpls lsr-id 1.1.1.1
[*PE1] mpls
[*PE1-mpls] lsp-trigger all
[*PE1-mpls] quit
[*PE1] mpls ldp
[*PE1-mpls-ldp] quit
[*PE1] interface gigabitethernet 1/0/0
[*PE1-GigabitEthernet1/0/0] mpls
[*PE1-GigabitEthernet1/0/0] mpls ldp
[*PE1-GigabitEthernet1/0/0] commit
[~PE1-GigabitEthernet1/0/0] quit

# Configure P1.
[~P1] mpls lsr-id 2.2.2.2
[*P1] mpls
[*P1-mpls] mpls te
[*P1-mpls] lsp-trigger all
[*P1-mpls] mpls rsvp-te
[*P1-mpls] mpls te cspf
[*P1-mpls] quit
[*P1] mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 427


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*P1-mpls-ldp] quit
[*P1] interface gigabitethernet 1/0/0
[*P1-GigabitEthernet1/0/0] mpls
[*P1-GigabitEthernet1/0/0] mpls ldp
[*P1-GigabitEthernet1/0/0] quit
[*P1] interface gigabitethernet 2/0/0
[*P1-GigabitEthernet2/0/0] mpls
[*P1-GigabitEthernet2/0/0] mpls te
[*P1-GigabitEthernet2/0/0] mpls rsvp-te
[*P1-GigabitEthernet2/0/0] commit
[~P1-GigabitEthernet2/0/0] quit

# Configure P3.
[~P3] mpls lsr-id 3.3.3.3
[*P3] mpls
[*P3-mpls] mpls te
[*P3-mpls] mpls rsvp-te
[*P3-mpls] quit
[*P3] interface gigabitethernet 1/0/0
[*P3-GigabitEthernet1/0/0] mpls
[*P3-GigabitEthernet1/0/0] mpls te
[*P3-GigabitEthernet1/0/0] mpls rsvp-te
[*P3-GigabitEthernet1/0/0] quit
[*P3] interface gigabitethernet 2/0/0
[*P3-GigabitEthernet2/0/0] mpls
[*P3-GigabitEthernet2/0/0] mpls te
[*P3-GigabitEthernet2/0/0] mpls rsvp-te
[*P3-GigabitEthernet2/0/0] commit
[~P3-GigabitEthernet2/0/0] quit

# Configure P2.
[~P2] mpls lsr-id 4.4.4.4
[*P2] mpls
[*P2-mpls] mpls te
[*P2-mpls] lsp-trigger all
[*P2-mpls] mpls rsvp-te
[*P2-mpls] mpls te cspf
[*P2-mpls] quit
[*P2] mpls ldp
[*P2-mpls-ldp] quit
[*P2] interface gigabitethernet 1/0/0
[*P2-GigabitEthernet1/0/0] mpls
[*P2-GigabitEthernet1/0/0] mpls te
[*P2-GigabitEthernet1/0/0] mpls rsvp-te
[*P2-GigabitEthernet1/0/0] quit
[*P2] interface gigabitethernet 2/0/0
[*P2-GigabitEthernet2/0/0] mpls
[*P2-GigabitEthernet2/0/0] mpls ldp
[*P2-GigabitEthernet2/0/0] commit
[~P2-GigabitEthernet2/0/0] quit

# Configure PE2.
[~PE2] mpls lsr-id 5.5.5.5
[*PE2] mpls
[*PE2-mpls] lsp-trigger all
[*PE2-mpls] quit
[*PE2] mpls ldp
[*PE2-mpls-ldp] quit
[*PE2] interface gigabitethernet 1/0/0
[*PE2-GigabitEthernet1/0/0] mpls
[*PE2-GigabitEthernet1/0/0] mpls ldp
[*PE2-GigabitEthernet1/0/0] commit
[~PE2-GigabitEthernet1/0/0] quit

After completing the preceding configurations, the local LDP sessions have been
successfully established between PE1 and P1 and between P2 and PE2.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 428


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Run the display mpls ldp session command on PE1, P1, P2, or PE2 to view
information about the established LDP session.
[~PE1] display mpls ldp session
LDP Session(s) in Public Network
Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
An asterisk (*) before a session means the session is being deleted.
--------------------------------------------------------------------------
PeerID Status LAM SsnRole SsnAge KASent/Rcv
--------------------------------------------------------------------------
2.2.2.2:0 Operational DU Passive 0000:00:05 23/23
--------------------------------------------------------------------------
TOTAL: 1 Session(s) Found.

# Run the display mpls ldp peer command to view information about the
established LDP peer.
[~PE1] display mpls ldp peer
LDP Peer Information in Public network
An asterisk (*) before a peer means the peer is being deleted.
-------------------------------------------------------------------------
PeerID TransportAddress DiscoverySource
-------------------------------------------------------------------------
2.2.2.2:0 2.2.2.2 GigabitEthernet1/0/0
-------------------------------------------------------------------------
TOTAL: 1 Peer(s) Found.

# Run the display mpls lsp command to view information about LDP LSP
information. The command output shows that no LSP is established by RSVP. The
following example uses the command output on PE1.
[~PE1] display mpls lsp
----------------------------------------------------------------------
LSP Information: LDP LSP
----------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.1/32 3/NULL GE1/0/0/-
2.2.2.2/32 NULL/3 -/GE1/0/0
2.2.2.2/32 1024/3 -/GE1/0/0
10.1.1.0/24 3/NUL GE1/0/0/-
10.2.1.0/24 NULL/3 -/GE1/0/0
10.2.1.0/24 1025/3 -/GE1/0/0

Step 5 Configure a remote LDP session between P1 and P2.


# Configure P1.
[~P1] mpls ldp remote-peer lsrd
[*P1-mpls-ldp-remote-lsrd] remote-ip 4.4.4.4
[*P1-mpls-ldp-remote-lsrd] commit
[~P1-mpls-ldp-remote-lsrd] quit

# Configure P2.
[~P2] mpls ldp remote-peer lsrb
[*P2-mpls-ldp-remote-lsrb] remote-ip 2.2.2.2
[*P2-mpls-ldp-remote-lsrb] commit
[~P2-mpls-ldp-remote-lsrb] quit

After completing the preceding configurations, a remote LDP session is set up


between P1 and P2. Run the display mpls ldp remote-peer command on P1 or
P2 to view information about the remote session entity. The following example
uses the command output on P1.
[~P1] display mpls ldp remote-peer lsrd
LDP Remote Entity Information
------------------------------------------------------------------------------
Remote Peer Name: P2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 429


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Remote Peer IP : 4.4.4.4 LDP ID : 2.2.2.2:0


Transport Address : 2.2.2.2 Entity Status : Active

Configured Keepalive Hold Timer : 45 Sec


Configured Keepalive Send Timer : ----
Configured Hello Hold Timer : 45 Sec
Negotiated Hello Hold Timer : 45 Sec
Configured Hello Send Timer : ----
Configured Delay Timer : ----
Hello Packet sent/received : 425/382
------------------------------------------------------------------------------
TOTAL: 1 Remote-Peer(s) Found.

Step 6 Configure bandwidth attributes on each outbound interface along the link of the
TE tunnel.
# Configure P1.
[~P1] interface gigabitethernet 2/0/0
[~P1-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 20000
[*P1-GigabitEthernet2/0/0] mpls te bandwidth bc0 20000
[*P1-GigabitEthernet2/0/0] commit
[~P1-GigabitEthernet2/0/0] quit

# Configure P3.
[~P3] interface gigabitethernet 1/0/0
[~P3-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 20000
[*P3-GigabitEthernet1/0/0] mpls te bandwidth bc0 20000
[*P3-GigabitEthernet1/0/0] quit
[*P3] interface gigabitethernet 2/0/0
[*P3-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 20000
[*P3-GigabitEthernet2/0/0] mpls te bandwidth bc0 20000
[*P3-GigabitEthernet2/0/0] commit
[~P3-GigabitEthernet2/0/0] quit

# Configure P2.
[~P2] interface gigabitethernet 1/0/0
[~P2-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 20000
[*P2-GigabitEthernet1/0/0] mpls te bandwidth bc0 20000
[*P2-GigabitEthernet1/0/0] commit
[~P2-GigabitEthernet1/0/0] quit

Step 7 Configure L3VPN access on PE1 and PE2 and configure multi-field classification on
the inbound interface of PE1.
# Configure PE1.
[~PE1] ip vpn-instance VPNA
[*PE1-vpn-instance-VPNA] ipv4-family
[*PE1-vpn-instance-VPNA-af-ipv4] route-distinguisher 100:1
[*PE1-vpn-instance-VPNA-af-ipv4] vpn-target 111:1 both
[*PE1] interface gigabitethernet 2/0/0
[*PE1-GigabitEthernet2/0/0] ip binding vpn-instance VPNA
[*PE1] acl 2001
[*PE1-acl4-basic-2001] rule 10 permit source 10.40.0.0 0.255.255.255
[*PE1-acl4-basic-2001] quit
[*PE1] acl 2002
[*PE1-acl4-basic-2002] rule 20 permit source 10.50.0.0 0.255.255.255
[*PE1-acl4-basic-2002] quit
[*PE1] traffic classifier service1
[*PE1-classifier-service1] if-match acl 2001
[*PE1-classifier-service1] quit
[*PE1] traffic behavior behavior1
[*PE1-behavior-behavior1] service-class af1 color green
[*PE1-behavior-behavior1] quit
[*PE1] traffic classifier service2
[*PE1-classifier-service2] if-match acl 2002

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 430


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-classifier-service2] quit
[*PE1] traffic behavior behavior2
[*PE1-behavior-behavior2] service-class af2 color green
[*PE1-behavior-behavior2] quit
[*PE1] traffic policy test
[*PE1-trafficpolicy-test] classifier service1 behavior behavior1
[*PE1-trafficpolicy-test] classifier service2 behavior behavior2
[*PE1-trafficpolicy-test] quit
[*PE1] interface gigabitethernet 2/0/0
[*PE1-GigabitEthernet2/0/0] traffic-policy test inbound
[*PE1-GigabitEthernet2/0/0] commit
[~PE1-GigabitEthernet2/0/0] quit

# Configure PE2.
[~PE2] ip vpn-instance VPNB
[*PE2-vpn-instance-VPNB] ipv4-family
[*PE2-vpn-instance-VPNB-af-ipv4] route-distinguisher 200:1
[*PE2-vpn-instance-VPNB-af-ipv4] vpn-target 111:1 both
[*PE2] interface gigabitethernet 2/0/0
[*PE2-GigabitEthernet2/0/0] ip binding vpn-instance VPNB
[*PE2-GigabitEthernet2/0/0] commit
[~PE2-GigabitEthernet2/0/0] quit

Step 8 Configure behavior aggregate classification on interfaces connecting PE1 to P1.

# Configure PE1.
[~PE1] interface gigabitethernet 1/0/0
[~PE1-GigabitEthernet1/0/0] trust upstream default
[*PE1-GigabitEthernet1/0/0] commit
[~PE1-GigabitEthernet1/0/0] quit

# Configure P1.
[~P1] interface gigabitethernet 1/0/0
[~P1-GigabitEthernet1/0/0] trust upstream default
[*PE1-GigabitEthernet1/0/0] commit
[~PE1-GigabitEthernet1/0/0] quit

Step 9 Configure a TE tunnel that originates from P1 and is destined for P2 and set the
service class for each type of packets that can pass through the tunnel.
NOTE

Run the mpls te service-class { service-class & <1-8> | default } command to configure the
service class for packets transmitted along each tunnel.

# On P1, enable the IGP shortcut function on the tunnel interface and adjust the
metric value to ensure that traffic destined for P2 or PE2 passes through the
tunnel.
[~P1] interface tunnel1
[*P1-Tunnel1] ip address unnumbered interface LoopBack1
[*P1-Tunnel1] tunnel-protocol mpls te
[*P1-Tunnel1] destination 4.4.4.4
[*P1-Tunnel1] mpls te tunnel-id 100
[*P1-Tunnel1] mpls te bandwidth ct0 10000
[*P1-Tunnel1] mpls te igp shortcut
[*P1-Tunnel1] mpls te igp metric absolute 1
[*P1-Tunnel1] mpls te service-class af1 af2
[*P1-Tunnel1] quit
[*P1] interface tunnel2
[*P1-Tunnel2] ip address unnumbered interface LoopBack1
[*P1-Tunnel2] tunnel-protocol mpls te
[*P1-Tunnel2] destination 4.4.4.4
[*P1-Tunnel2] mpls te tunnel-id 200
[*P1-Tunnel2] mpls te bandwidth ct0 10000

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 431


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*P1-Tunnel2] mpls te igp shortcut


[*P1-Tunnel2] mpls te igp metric absolute 1
[*P1-Tunnel2] mpls te service-class default
[*P1-Tunnel2] quit
[*P1] ospf 1
[*P1-ospf-1] area 0
[*P1-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[*P1-ospf-1-area-0.0.0.0] quit
[*P1-ospf-1] enable traffic-adjustment advertise
[*P1-ospf-1] commit

Step 10 Configure a tunnel that originates from P2 and is destined for P1.
# On P2, enable the forwarding adjacency on the tunnel interface and adjust the
metric value of the forwarding adjacency to ensure that traffic destined for PE1 or
P1 passes through the tunnel.
[~P2] interface tunnel1
[*P2-Tunnel1] ip address unnumbered interface LoopBack1
[*P2-Tunnel1] tunnel-protocol mpls te
[*P2-Tunnel1] destination 2.2.2.2
[*P2-Tunnel1] mpls te tunnel-id 101
[*P2-Tunnel1] mpls te bandwidth ct0 10000
[*P2-Tunnel1] mpls te igp shortcut
[*P2-Tunnel1] mpls te igp metric absolute 1
[*P2-Tunnel1] quit
[*P2] ospf 1
[*P2-ospf-1] area 0
[*P2-ospf-1-area-0.0.0.0] network 4.4.4.4 0.0.0.0
[*P2-ospf-1-area-0.0.0.0] quit
[*P2-ospf-1] enable traffic-adjustment advertise
[*P2-ospf-1] quit
[*P2] commit

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
ip vpn-instance VPNA
ipv4-family
route-distinguisher 100:1
apply-label per-instance
vpn-target 111:1 export-extcommunity
vpn-target 111:1 import-extcommunity
#
mpls lsr-id 1.1.1.1
#
mpls
lsp-trigger all
#
mpls ldp
#
acl number 2001
rule 10 permit source 10.40.0.0 0.255.255.255
#
acl number 2002
rule 20 permit source 10.50.0.0 0.255.255.255
#
traffic classifier service1
if-match acl 2001
#
traffic classifier service2
if-match acl 2002
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 432


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

traffic behavior behavior1


service-class af1 color green
#
traffic behavior behavior2
service-class af2 color green
#
traffic policy test
share-mode
classifier service1 behavior behavior1
classifier service2 behavior behavior2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
trust upstream default
#
interface GigabitEthernet2/0/0
undo shutdown
ip binding vpn-instance VPNA
ip address 10.10.1.1 255.255.255.0
traffic-policy test inbound
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
bgp 100
peer 5.5.5.5 as-number 100
peer 5.5.5.5 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 5.5.5.5 enable
#
ipv4-family vpnv4
policy vpn-target
peer 5.5.5.5 enable
#
ipv4-family vpn-instance VPNA
peer 10.10.1.2 as-number 65410
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
#
return
● P1 configuration file
#
sysname P1
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
mpls ldp remote-peer lsrd
remote-ip 4.4.4.4
#
interface GigabitEthernet1/0/0
undo shutdown

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 433


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 10.1.1.2 255.255.255.0


mpls
mpls ldp
trust upstream default
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 20000
mpls te bandwidth bc0 20000
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.4
mpls te tunnel-id 100
mpls te bandwidth ct0 10000
mpls te igp shortcut
mpls te igp metric absolute 1
mpls te service-class af1 af2
#
interface Tunnel2
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.4
mpls te tunnel-id 200
mpls te bandwidth ct0 10000
mpls te igp shortcut
mpls te igp metric absolute 1
mpls te service-class default
#
ospf 1
opaque-capability enable
enable traffic-adjustment advertise
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.2.1.0 0.0.0.255
mpls-te enable
#
return
● P3 configuration file
#
sysname P3
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 20000
mpls te bandwidth bc0 20000
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 434


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 20000
mpls te bandwidth bc0 20000
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 10.2.1.0 0.0.0.255
network 10.3.1.0 0.0.0.255
mpls-te enable
#
return
● P2 configuration file
#
sysname P2
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
mpls ldp remote-peer lsrb
remote-ip 2.2.2.2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 20000
mpls te bandwidth bc0 20000
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 2.2.2.2
mpls te tunnel-id 101
mpls te bandwidth ct0 10000
mpls te igp shortcut
mpls te igp metric absolute 1
#
ospf 1
opaque-capability enable
enable traffic-adjustment advertise
area 0.0.0.0
network 4.4.4.4 0.0.0.0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 435


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

network 10.3.1.0 0.0.0.255


network 10.4.1.0 0.0.0.255
mpls-te enable
#
return

● PE2 configuration file


#
sysname PE2
#
ip vpn-instance VPNB
ipv4-family
route-distinguisher 200:1
apply-label per-instance
vpn-target 111:1 export-extcommunity
vpn-target 111:1 import-extcommunity
#
mpls lsr-id 5.5.5.5
#
mpls
lsp-trigger all
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip binding vpn-instance VPNB
ip address 10.11.1.1 255.255.255.0
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
#
bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 1.1.1.1 enable
#
ipv4-family vpnv4
policy vpn-target
peer 1.1.1.1 enable
#
ipv4-family vpn-instance VPNB
peer 10.11.1.2 as-number 65420
#
ospf 1
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 10.4.1.0 0.0.0.255
#
return

1.1.3.43.28 Example for Configuring CBTS in a VLL over TE Scenario

Networking Requirements
In Figure 1-39, CE1 and CE2 belong to the same VLL network. They access the
MPLS backbone network through PE1 and PE2, respectively. OSPF is used as an
IGP on the MPLS backbone network.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 436


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configure an LDP VLL and use the dynamic signaling protocol RSVP-TE to
establish two MPLS TE tunnels between PE1 and PE2 to transmit VLL services.
Assign each TE tunnel a specific priority. Enable behavior aggregate classification
on the interfaces that receive VLL packets to trust 802.1p priority values so that
they can forward VLL packets with a specific priority to a specific tunnel.
Establish TE1 tunnel with ID 100 over the path PE1 –> P1 –> PE2 and TE2 tunnel
with ID 200 over the path PE1 –> P2 –> PE2. Configure AF1 on TE1 interface and
AF2 on TE2 interface. This configuration allows PE1 to forward traffic with service
class AF1 along TE1 tunnel and traffic with service class AF2 along TE2 tunnel. The
two tunnels can load-balance traffic based on priority values. The requirements of
PE2 are similar to those of PE1.
Note that if multiple tunnels with AF1 are established between PE1 and PE2,
packets mapped to AF1 are load-balanced among these tunnels.

NOTICE

If the CBTS function is configured, you are advised not to configure the following
services at the same time:
● Dynamic load balancing

Figure 1-39 CBTS networking in a VLL over TE scenario


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 2/0/0, and GE 3/0/0,


respectively.

Configuration Roadmap
The configuration roadmap is as follows:
● Enable a routing protocol on the MPLS backbone network devices (PEs and
Ps) for them to communicate with each other and enable MPLS.
● Establish MPLS TE tunnels and configure a tunnel policy.
● Enable MPLS Layer 2 virtual private network (L2VPN) on the PEs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 437


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Create a VLL, configure LDP as a signaling protocol, and bind the VLL to an
AC interface on each PE.
● Configure MPLS TE tunnels to transmit VLL packets.

Data Preparation
To complete the configuration, you need the following data:
● OSPF area enabled with TE
● VLL name and VLL ID
● IP addresses of peers and tunnel policy
● Names of AC interfaces bound to a VLL
● Interface number and IP address of each tunnel interface, as well as
destination IP address, tunnel ID, tunnel signaling protocol (RSVP-TE), and
tunnel bandwidth to be specified on each tunnel interface

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address and mask for each interface according to Figure 1-39.
Step 2 Enable MPLS, MPLS TE, MPLS RSVP-TE, and MPLS CSPF.
On the nodes along each MPLS TE tunnel, enable MPLS, MPLS TE, and MPLS
RSVP-TE both in the system view and the interface view. On the ingress node of
each tunnel, enable MPLS CSPF in the system view.
# Configure PE1.
[~PE1] mpls lsr-id 1.1.1.9
[*PE1] mpls
[*PE1-mpls] mpls te
[*PE1-mpls] mpls rsvp-te
[*PE1-mpls] mpls te cspf
[*PE1-mpls] quit
[*PE1] interface gigabitethernet1/0/0
[*PE1-GigabitEthernet1/0/0] mpls
[*PE1-GigabitEthernet1/0/0] mpls te
[*PE1-GigabitEthernet1/0/0] mpls rsvp-te
[*PE1-GigabitEthernet1/0/0] quit
[*PE1] interface gigabitethernet3/0/0
[*PE1-GigabitEthernet3/0/0] mpls
[*PE1-GigabitEthernet3/0/0] mpls te
[*PE1-GigabitEthernet3/0/0] mpls rsvp-te
[*PE1-GigabitEthernet3/0/0] quit
[*PE1] commit

# Configure P1.
[~P1] mpls lsr-id 2.2.2.9
[*P1] mpls
[*P1-mpls] mpls te
[*P1-mpls] mpls rsvp-te
[*P1-mpls] quit
[*P1] interface gigabitethernet1/0/0
[*P1-GigabitEthernet1/0/0] mpls
[*P1-GigabitEthernet1/0/0] mpls te
[*P1-GigabitEthernet1/0/0] mpls rsvp-te
[*P1-GigabitEthernet1/0/0] quit
[*P1] interface gigabitethernet2/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 438


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*P1-GigabitEthernet2/0/0] mpls
[*P1-GigabitEthernet2/0/0] mpls te
[*P1-GigabitEthernet2/0/0] mpls rsvp-te
[*P1-GigabitEthernet2/0/0] quit
[*P1] commit

# Configure P2.
[~P2] mpls lsr-id 3.3.3.9
[*P2] mpls
[*P2-mpls] mpls te
[*P2-mpls] mpls rsvp-te
[*P2-mpls] quit
[*P2] interface gigabitethernet1/0/0
[*P2-GigabitEthernet1/0/0] mpls
[*P2-GigabitEthernet1/0/0] mpls te
[*P2-GigabitEthernet1/0/0] mpls rsvp-te
[*P2-GigabitEthernet1/0/0] quit
[*P2] interface gigabitethernet2/0/0
[*P2-GigabitEthernet2/0/0] mpls
[*P2-GigabitEthernet2/0/0] mpls te
[*P2-GigabitEthernet2/0/0] mpls rsvp-te
[*P2-GigabitEthernet2/0/0] quit
[*P2] commit

# Configure PE2.
[~PE2] mpls lsr-id 4.4.4.9
[*PE2] mpls
[*PE2-mpls] mpls te
[*PE2-mpls] mpls rsvp-te
[*PE2-mpls] mpls te cspf
[*PE2-mpls] quit
[*PE2] interface gigabitethernet1/0/0
[*PE2-GigabitEthernet1/0/0] mpls
[*PE2-GigabitEthernet1/0/0] mpls te
[*PE2-GigabitEthernet1/0/0] mpls rsvp-te
[*PE2-GigabitEthernet1/0/0] quit
[*PE2] interface gigabitethernet3/0/0
[*PE2-GigabitEthernet3/0/0] mpls
[*PE2-GigabitEthernet3/0/0] mpls te
[*PE2-GigabitEthernet3/0/0] mpls rsvp-te
[*PE2-GigabitEthernet3/0/0] quit
[*PE2] commit

Step 3 Enable OSPF and OSPF TE on the MPLS backbone network.


# Configure PE1.
[~PE1] ospf
[*PE1-ospf-1] opaque-capability enable
[*PE1-ospf-1] area 0.0.0.0
[*PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[*PE1-ospf-1-area-0.0.0.0] network 10.1.2.0 0.0.0.255
[*PE1-ospf-1-area-0.0.0.0] network 10.1.3.0 0.0.0.255
[*PE1-ospf-1-area-0.0.0.0] mpls-te enable
[*PE1-ospf-1-area-0.0.0.0] quit
[*PE1-ospf-1] quit
[*PE1] commit

# Configure P1.
[~P1] ospf
[*P1-ospf-1] opaque-capability enable
[*P1-ospf-1] area 0.0.0.0
[*P1-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[*P1-ospf-1-area-0.0.0.0] network 10.1.4.0 0.0.0.255
[*P1-ospf-1-area-0.0.0.0] network 10.1.2.0 0.0.0.255
[*P1-ospf-1-area-0.0.0.0] mpls-te enable
[*P1-ospf-1-area-0.0.0.0] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 439


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*P1-ospf-1] quit
[*P1] commit

# Configure P2.
[~P2] ospf
[*P2-ospf-1] opaque-capability enable
[*P2-ospf-1] area 0.0.0.0
[*P2-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[*P2-ospf-1-area-0.0.0.0] network 10.1.3.0 0.0.0.255
[*P2-ospf-1-area-0.0.0.0] network 10.1.5.0 0.0.0.255
[*P2-ospf-1-area-0.0.0.0] mpls-te enable
[*P2-ospf-1-area-0.0.0.0] quit
[*P2-ospf-1] quit
[*P2] commit

# Configure PE2.
[~PE2] ospf
[*PE2-ospf-1] opaque-capability enable
[*PE2-ospf-1] area 0.0.0.0
[*PE2-ospf-1-area-0.0.0.0] network 4.4.4.9 0.0.0.0
[*PE2-ospf-1-area-0.0.0.0] network 10.1.4.0 0.0.0.255
[*PE2-ospf-1-area-0.0.0.0] network 10.1.5.0 0.0.0.255
[*PE2-ospf-1-area-0.0.0.0] mpls-te enable
[*PE2-ospf-1-area-0.0.0.0] quit
[*PE2-ospf-1] quit
[*PE2] commit

Step 4 Configure tunnel interfaces.

# Create tunnel interfaces on PEs, configure MPLS TE as a tunneling protocol and


RSVP-TE as a signaling protocol, and specify priorities.

# Configure PE1.
[~PE1] interface Tunnel 10
[*PE1-Tunnel10] ip address unnumbered interface loopback1
[*PE1-Tunnel10] tunnel-protocol mpls te
[*PE1-Tunnel10] destination 4.4.4.9
[*PE1-Tunnel10] mpls te tunnel-id 100
[*PE1-Tunnel10] mpls te service-class af1
[*PE1-Tunnel10] quit
[*PE1] interface Tunnel 11
[*PE1-Tunnel11] ip address unnumbered interface loopback1
[*PE1-Tunnel11] tunnel-protocol mpls te
[*PE1-Tunnel11] destination 4.4.4.9
[*PE1-Tunnel11] mpls te tunnel-id 200
[*PE1-Tunnel11] mpls te service-class af2
[*PE1-Tunnel11] quit
[*PE1] commit

# Configure PE2.
[~PE2] interface Tunnel 10
[*PE2-Tunnel10] ip address unnumbered interface loopback1
[*PE2-Tunnel10] tunnel-protocol mpls te
[*PE2-Tunnel10] destination 1.1.1.9
[*PE2-Tunnel10] mpls te tunnel-id 100
[*PE2-Tunnel10] mpls te service-class af1
[*PE2-Tunnel10] quit
[*PE2] interface Tunnel 11
[*PE2-Tunnel11] ip address unnumbered interface loopback1
[*PE2-Tunnel11] tunnel-protocol mpls te
[*PE2-Tunnel11] destination 1.1.1.9
[*PE2-Tunnel11] mpls te tunnel-id 200
[*PE2-Tunnel11] mpls te service-class af2
[*PE2-Tunnel11] quit
[*PE2] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 440


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

After completing the preceding configurations, run the display this interface
command in the tunnel interface view. The command output shows that Line
protocol current state is UP, indicating that an MPLS TE tunnel has been
established.
Run the display tunnel-info all command on PE1. The command output shows
that two TE tunnels destined for PE2 with the LSR ID of 4.4.4.9 have been
established. The command output on PE2 is similar to that on PE1.
<PE1> display tunnel-info all
Tunnel ID Type Destination Status
----------------------------------------------------------------------
0xc2060404 te 4.4.4.9 UP
0xc2060405 te 4.4.4.9 UP

Step 5 Configure MPLS TE explicit paths.


Specify an explicit path for each tunnel.
# Configure PE1. Specify a physical interface on the P as the first next hop and a
physical interface on PE2 as the second next hop to ensure that the two tunnels
are built over different links.
[~PE1] explicit-path t1
[*PE1-explicit-path-t1] next hop 10.1.2.2
[*PE1-explicit-path-t1] next hop 10.1.4.2
[*PE1-explicit-path-t1] quit
[*PE1] explicit-path t2
[*PE1-explicit-path-t2] next hop 10.1.3.2
[*PE1-explicit-path-t2] next hop 10.1.5.2
[*PE1-explicit-path-t2] quit
[*PE1] interface Tunnel 10
[*PE1-Tunnel10] mpls te path explicit-path t1
[*PE1-Tunnel10] quit
[*PE1] interface Tunnel 11
[*PE1-Tunnel11] mpls te path explicit-path t2
[*PE1-Tunnel11] quit
[*PE1] commit

# Configure PE2. Specify a physical interface on the P as the first next hop and a
physical interface on PE1 as the second next hop to ensure that the two tunnels
are built over different links.
[~PE2] explicit-path t1
[*PE2-explicit-path-t1] next hop 10.1.4.1
[*PE2-explicit-path-t1] next hop 10.1.2.1
[*PE2-explicit-path-t1] quit
[*PE2] explicit-path t2
[*PE2-explicit-path-t2] next hop 10.1.5.1
[*PE2-explicit-path-t2] next hop 10.1.3.1
[*PE2-explicit-path-t2] quit
[*PE2] interface Tunnel 10
[*PE2-Tunnel10] mpls te path explicit-path t1
[*PE2-Tunnel10] quit
[*PE2] interface Tunnel 11
[*PE2-Tunnel11] mpls te path explicit-path t2
[*PE2-Tunnel11] quit
[*PE2] commit

Step 6 Configure a remote LDP session.


Establish a remote LDP session between PE1 and PE2.
# Configure PE1.
[~PE1] mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 441


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-mpls-ldp] quit
[*PE1] mpls ldp remote-peer DTB1
[*PE1-mpls-ldp-remote-DTB] remote-ip 4.4.4.9
[*PE1] commit

# Configure PE2.
[~PE2] mpls ldp
[*PE2-mpls-ldp] quit
[*PE2] mpls ldp remote-peer DTB2
[*PE2-mpls-ldp-remote-DTB2] remote-ip 1.1.1.9
[*PE2] commit

After completing this step, run the display mpls ldp peer command. A remote
LDP session has been established between the two PEs.
The following example uses the command output on PE1.
<PE1> display mpls ldp peer
LDP Peer Information in Public network
An asterisk (*) before a peer means the peer is being deleted.
------------------------------------------------------------------------------
PeerID TransportAddress DiscoverySource
------------------------------------------------------------------------------
4.4.4.9:0 4.4.4.9 Remote Peer : DTB1
------------------------------------------------------------------------------
TOTAL: 1 Peer(s) Found.

Step 7 Configure a tunnel policy.


# Configure PE1.
[~PE1] tunnel-policy p1
[*PE1-tunnel-policy-p1] tunnel select-seq cr-lsp load-balance-number 2
[*PE1-tunnel-policy-p1] quit
[*PE1] commit

# Configure PE2.
[~PE2] tunnel-policy p1
[*PE2-tunnel-policy-p1] tunnel select-seq cr-lsp load-balance-number 2
[*PE2-tunnel-policy-p1] quit
[*PE2] commit

Step 8 Enable MPLS L2VPN on PEs.


# Configure PE1.
[~PE1] mpls l2vpn
[*PE1-l2vpn] quit
[*PE1] commit

# Configure PE2.
[~PE2] mpls l2vpn
[*PE2-l2vpn] quit
[*PE2] commit

Step 9 Create a VLL on PEs and bind it to the tunnel policy.


# Configure PE1.
[~PE1] interface gigabitethernet2/0/0.1
[*PE1-GigabitEthernet2/0/0.1] vlan-type dot1q 10
[*PE1-GigabitEthernet2/0/0.1] mpls l2vc 4.4.4.9 1 tunnel-policy p1
[*PE1-GigabitEthernet2/0/0.1] trust upstream default
[*PE1-GigabitEthernet2/0/0.1] trust 8021p
[*PE1-GigabitEthernet2/0/0.1] undo shutdown
[*PE1-GigabitEthernet2/0/0.1] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 442


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~PE1-GigabitEthernet2/0/0.1] quit

# Configure PE2.
[~PE2] interface gigabitethernet2/0/0.1
[*PE2-GigabitEthernet2/0/0.1] vlan-type dot1q 10
[*PE2-GigabitEthernet2/0/0.1] mpls l2vc 1.1.1.9 1 tunnel-policy p1
[*PE2-GigabitEthernet2/0/0.1] trust upstream default
[*PE2-GigabitEthernet2/0/0.1] trust 8021p
[*PE2-GigabitEthernet2/0/0.1] undo shutdown
[*PE2-GigabitEthernet2/0/0.1] commit
[~PE2-GigabitEthernet2/0/0.1] quit

# Configure CE1.
[~CE1] interface gigabitethernet1/0/0.1
[*CE1-GigabitEthernet1/0/0.1] shutdown
[*CE1-GigabitEthernet1/0/0.1] vlan-type dot1q 10
[*CE1-GigabitEthernet1/0/0.1] ip address 10.1.1.1 255.255.255.0
[*CE1-GigabitEthernet1/0/0.1] undo shutdown
[*CE1-GigabitEthernet1/0/0.1] commit
[~CE1-GigabitEthernet1/0/0.1] quit

# Configure CE2.
[~CE2] interface gigabitethernet1/0/0.1
[*CE2-GigabitEthernet1/0/0.1] shutdown
[*CE2-GigabitEthernet1/0/0.1] vlan-type dot1q 10
[*CE2-GigabitEthernet1/0/0.1] ip address 10.1.1.2 255.255.255.0
[*CE2-GigabitEthernet1/0/0.1] undo shutdown
[*CE2-GigabitEthernet1/0/0.1] commit
[~CE2-GigabitEthernet1/0/0.1] quit

Step 10 Verify the configuration.


After completing the preceding configurations, run display mpls l2vc command
on PE1.
The command output shows that the values in the AC Status and VC State fields
are up, and there are two tunnel IDs. Two tunnels have been established between
PE1 and PE2.
<PE1> display mpls l2vc interface GigabitEthernet2/0/0.1
*client interface : GigabitEthernet2/0/0.1 is up
Administrator PW : no
session state : up
AC status : up
VC state : up
Label state :0
Token state :0
VC ID :1
VC type : VLAN
destination : 4.4.4.9
local group ID :0 remote group ID :0
local VC label : 32768 remote VC label : 32768
local AC OAM State : up
local PSN OAM State : up
local forwarding state : forwarding
local status code : 0x0 (forwarding)
remote AC OAM state : up
remote PSN OAM state : up
remote forwarding state: forwarding
remote status code : 0x0 (forwarding)
ignore standby state : no
BFD for PW : unavailable
VCCV State : up
manual fault : not set
active state : active
forwarding entry : exist

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 443


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

OAM Protocol : --
OAM Status : --
OAM Fault Type : --
TTL Value : --
link state : up
local VC MTU : 1500 remote VC MTU : 1500
local VCCV : alert ttl lsp-ping bfd
remote VCCV : alert ttl lsp-ping bfd
local control word : disable remote control word : disable
tunnel policy name : p1
PW template name : --
primary or secondary : primary
load balance type : flow
Access-port : false
Switchover Flag : false
VC tunnel info : 2 tunnels
NO.0 TNL type : te , TNL ID : 0x00000000030000000a
NO.1 TNL type : te , TNL ID : 0x000000000300000003
create time : 0 days, 0 hours, 9 minutes, 58 seconds
up time : 0 days, 0 hours, 7 minutes, 41 seconds
last change time : 0 days, 0 hours, 7 minutes, 41 seconds
VC last up time : 2014/05/23 10:13:29
VC total up time : 0 days, 0 hours, 7 minutes, 41 seconds
CKey :1
NKey : 989855833
PW redundancy mode : frr
AdminPw interface : --
AdminPw link state : --
Diffserv Mode : uniform
Service Class : --
Color : --
DomainId : --
Domain Name : --

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 1.1.1.9
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path t1
next hop 10.1.2.2
next hop 10.1.4.2
#
explicit-path t2
next hop 10.1.3.2
next hop 10.1.5.2
#
mpls l2vpn
#
mpls ldp
#
ipv4-family
#
mpls ldp remote-peer DTB1
remote-ip 4.4.4.9
#
interface GigabitEthernet1/0/0
undo shutdown

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 444


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 10.1.2.1 255.255.255.0


mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0.1
undo shutdown
vlan-type dot1q 10
mpls l2vc 4.4.4.9 1 tunnel-policy p1
trust upstream default
trust 8021p
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.1.3.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.9
mpls te path explicit-path t1
mpls te tunnel-id 100
mpls te service-class af1
#
interface Tunnel11
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.9
mpls te path explicit-path t2
mpls te tunnel-id 200
mpls te service-class af2
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.3.0 0.0.0.255
mpls-te enable
#
tunnel-policy p1
tunnel select-seq cr-lsp load-balance-number 2
#
return
● P1 configuration file
#
sysname P1
#
mpls lsr-id 2.2.2.9
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.2.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 445


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

undo shutdown
ip address 10.1.4.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.4.0 0.0.0.255
mpls-te enable
#
return
● P2 configuration file
#
sysname P2
#
mpls lsr-id 3.3.3.9
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.3.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.1.5.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 10.1.3.0 0.0.0.255
network 10.1.5.0 0.0.0.255
mpls-te enable
#
return
● PE2 configuration file
#
sysname PE2
#
mpls lsr-id 4.4.4.9
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path t1
next hop 10.1.4.1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 446


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

next hop 10.1.2.1


#
explicit-path t2
next hop 10.1.5.1
next hop 10.1.3.1
#
mpls l2vpn
#
mpls ldp
#
ipv4-family
#
mpls ldp remote-peer DTB2
remote-ip 1.1.1.9
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.4.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0.1
undo shutdown
vlan-type dot1q 10
mpls l2vc 1.1.1.9 1 tunnel-policy p1
trust upstream default
trust 8021p
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.1.5.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te path explicit-path t1
mpls te tunnel-id 100
mpls te service-class af1
#
interface Tunnel11
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te path explicit-path t2
mpls te tunnel-id 200
mpls te service-class af2
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 4.4.4.9 0.0.0.0
network 10.1.4.0 0.0.0.255
network 10.1.5.0 0.0.0.255
mpls-te enable
#
tunnel-policy p1
tunnel select-seq cr-lsp load-balance-number 2
#
return

● CE1 configuration file

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 447


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
sysname CE1
#
interface GigabitEthernet1/0/0.1
undo shutdown
vlan-type dot1q 10
ip address 10.1.1.1 255.255.255.0
#
return

● CE2 configuration file


#
sysname CE2
#
interface GigabitEthernet1/0/0.1
undo shutdown
vlan-type dot1q 10
ip address 10.1.1.2 255.255.255.0
#
return

1.1.3.43.29 Example for Configuring CBTS in a VPLS over TE Scenario

Networking Requirements
In Figure 1-40, CE1 and CE2 belong to the same VPLS network. They access the
MPLS backbone network through PE1 and PE2, respectively. OSPF is used as an
IGP on the MPLS backbone network.
It is required that an LDP VPLS tunnel and the dynamic signaling protocol RSVP-TE
be used to establish two MPLS TE tunnels between PE1 and PE2 to transmit VPLS
services. Each TE tunnel is assigned a specific priority. Interfaces that receive VPLS
packets have behavior aggregate classification enabled and trust 802.1p priority
values so that they can forward VPLS packets with a specific priority to a specific
tunnel.
TE1 tunnel with ID 100 is established over the path PE1 –> P1 –> PE2, and TE2
tunnel with ID 200 is established over the path PE1 –> P2 –> PE2. AF1 is
configured for TE1 tunnel, and AF2 is configured for TE2 tunnel. This configuration
allows PE1 to forward traffic with service class AF1 along the TE1 tunnel and
traffic with service class AF2 along the TE2 tunnel. The two tunnels can load-
balance traffic based on priority values. The requirements of PE2 are similar to the
requirements of PE1.
Note that if multiple tunnels with AF1 are established between PE1 and PE2,
packets mapped to AF1 are load-balanced along these tunnels.

NOTICE

If the CBTS function is configured, you are advised not to configure the following
services at the same time:
● Dynamic load balancing

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 448


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-40 CBTS networking in a VPLS over TE scenario


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 2/0/0, and GE 3/0/0,


respectively.

Configuration Roadmap
The configuration roadmap is as follows:
● Enable a routing protocol on the MPLS backbone network devices (PEs and
Ps) for them to communicate with each other and enable MPLS.
● Establish MPLS TE tunnels and configure a tunnel policy.
● Enable MPLS Layer 2 virtual private network (L2VPN) on the PEs.
● Create a virtual switching instance (VSI), configure LDP as a signaling
protocol, and bind the VSI to an AC interface on each PE.
● Configure MPLS TE tunnels to transmit VSI packets.

Data Preparation
To complete the configuration, you need the following data:
● OSPF area enabled with TE
● VSI name and VSI ID
● IP addresses of peers and tunnel policy
● Names of AC interfaces bound to the VSI
● Interface number and IP address of each tunnel interface, as well as
destination IP address, tunnel ID, tunnel signaling protocol (RSVP-TE), and
tunnel bandwidth to be specified on each tunnel interface

Procedure
Step 1 Assign an IP address to each interface on the backbone network. For configuration
details, see Configuration Files in this section.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 449


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Enable MPLS, MPLS TE, MPLS RSVP-TE, and MPLS CSPF.
On the nodes along each MPLS TE tunnel, enable MPLS, MPLS TE, and MPLS
RSVP-TE both in the system view and the interface view. On the ingress node of
each tunnel, enable MPLS CSPF in the system view.
# Configure PE1.
[~PE1] mpls lsr-id 1.1.1.9
[*PE1] mpls
[*PE1-mpls] mpls te
[*PE1-mpls] mpls rsvp-te
[*PE1-mpls] mpls te cspf
[*PE1-mpls] quit
[*PE1] interface gigabitethernet1/0/0
[*PE1-GigabitEthernet1/0/0] mpls
[*PE1-GigabitEthernet1/0/0] mpls te
[*PE1-GigabitEthernet1/0/0] mpls rsvp-te
[*PE1-GigabitEthernet1/0/0] quit
[*PE1] interface gigabitethernet3/0/0
[*PE1-GigabitEthernet3/0/0] mpls
[*PE1-GigabitEthernet3/0/0] mpls te
[*PE1-GigabitEthernet3/0/0] mpls rsvp-te
[*PE1-GigabitEthernet3/0/0] quit
[*PE1] commit

# Configure P1.
[~P1] mpls lsr-id 2.2.2.9
[*P1] mpls
[*P1-mpls] mpls te
[*P1-mpls] mpls rsvp-te
[*P1-mpls] quit
[*P1] interface gigabitethernet1/0/0
[*P1-GigabitEthernet1/0/0] mpls
[*P1-GigabitEthernet1/0/0] mpls te
[*P1-GigabitEthernet1/0/0] mpls rsvp-te
[*P1-GigabitEthernet1/0/0] quit
[*P1] interface gigabitethernet2/0/0
[*P1-GigabitEthernet2/0/0] mpls
[*P1-GigabitEthernet2/0/0] mpls te
[*P1-GigabitEthernet2/0/0] mpls rsvp-te
[*P1-GigabitEthernet2/0/0] quit
[*P1] commit

# Configure P2.
[~P2] mpls lsr-id 3.3.3.9
[*P2] mpls
[*P2-mpls] mpls te
[*P2-mpls] mpls rsvp-te
[*P2-mpls] quit
[*P2] interface gigabitethernet1/0/0
[*P2-GigabitEthernet1/0/0] mpls
[*P2-GigabitEthernet1/0/0] mpls te
[*P2-GigabitEthernet1/0/0] mpls rsvp-te
[*P2-GigabitEthernet1/0/0] quit
[*P2] interface gigabitethernet2/0/0
[*P2-GigabitEthernet2/0/0] mpls
[*P2-GigabitEthernet2/0/0] mpls te
[*P2-GigabitEthernet2/0/0] mpls rsvp-te
[*P2-GigabitEthernet2/0/0] quit
[*P2] commit

# Configure PE2.
[~PE2] mpls lsr-id 4.4.4.9
[*PE2] mpls
[*PE2-mpls] mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 450


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE2-mpls] mpls rsvp-te


[*PE2-mpls] mpls te cspf
[*PE2-mpls] quit
[*PE2] interface gigabitethernet1/0/0
[*PE2-GigabitEthernet1/0/0] mpls
[*PE2-GigabitEthernet1/0/0] mpls te
[*PE2-GigabitEthernet1/0/0] mpls rsvp-te
[*PE2-GigabitEthernet1/0/0] quit
[*PE2] interface gigabitethernet3/0/0
[*PE2-GigabitEthernet3/0/0] mpls
[*PE2-GigabitEthernet3/0/0] mpls te
[*PE2-GigabitEthernet3/0/0] mpls rsvp-te
[*PE2-GigabitEthernet3/0/0] quit
[*PE2] commit

Step 3 Enable OSPF and OSPF TE on the MPLS backbone network.

# Configure PE1.
[~PE1] ospf
[*PE1-ospf-1] opaque-capability enable
[*PE1-ospf-1] area 0.0.0.0
[*PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[*PE1-ospf-1-area-0.0.0.0] network 10.1.2.0 0.0.0.255
[*PE1-ospf-1-area-0.0.0.0] network 10.1.3.0 0.0.0.255
[*PE1-ospf-1-area-0.0.0.0] mpls-te enable
[*PE1-ospf-1-area-0.0.0.0] quit
[*PE1-ospf-1] quit
[*PE1] commit

# Configure P1.
[~P1] ospf
[*P1-ospf-1] opaque-capability enable
[*P1-ospf-1] area 0.0.0.0
[*P1-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[*P1-ospf-1-area-0.0.0.0] network 10.1.4.0 0.0.0.255
[*P1-ospf-1-area-0.0.0.0] network 10.1.2.0 0.0.0.255
[*P1-ospf-1-area-0.0.0.0] mpls-te enable
[*P1-ospf-1-area-0.0.0.0] quit
[*P1-ospf-1] quit
[*P1] commit

# Configure P2.
[~P2] ospf
[*P2-ospf-1] opaque-capability enable
[*P2-ospf-1] area 0.0.0.0
[*P2-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[*P2-ospf-1-area-0.0.0.0] network 10.1.3.0 0.0.0.255
[*P2-ospf-1-area-0.0.0.0] network 10.1.5.0 0.0.0.255
[*P2-ospf-1-area-0.0.0.0] mpls-te enable
[*P2-ospf-1-area-0.0.0.0] quit
[*P2-ospf-1] quit
[*P2] commit

# Configure PE2.
[~PE2] ospf
[*PE2-ospf-1] opaque-capability enable
[*PE2-ospf-1] area 0.0.0.0
[*PE2-ospf-1-area-0.0.0.0] network 4.4.4.9 0.0.0.0
[*PE2-ospf-1-area-0.0.0.0] network 10.1.4.0 0.0.0.255
[*PE2-ospf-1-area-0.0.0.0] network 10.1.5.0 0.0.0.255
[*PE2-ospf-1-area-0.0.0.0] mpls-te enable
[*PE2-ospf-1-area-0.0.0.0] quit
[*PE2-ospf-1] quit
[*PE2] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 451


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 4 Configure tunnel interfaces.


# Create tunnel interfaces on PEs, configure MPLS TE as a tunneling protocol and
RSVP-TE as a signaling protocol, and specify priorities.
# Configure PE1.
[~PE1] interface Tunnel 10
[*PE1-Tunnel10] ip address unnumbered interface loopback1
[*PE1-Tunnel10] tunnel-protocol mpls te
[*PE1-Tunnel10] destination 4.4.4.9
[*PE1-Tunnel10] mpls te tunnel-id 100
[*PE1-Tunnel10] mpls te service-class af1
[*PE1-Tunnel10] quit
[*PE1] interface Tunnel 20
[*PE1-Tunnel20] ip address unnumbered interface loopback1
[*PE1-Tunnel20] tunnel-protocol mpls te
[*PE1-Tunnel20] destination 4.4.4.9
[*PE1-Tunnel20] mpls te tunnel-id 200
[*PE1-Tunnel20] mpls te service-class af2
[*PE1-Tunnel20] quit
[*PE1] commit

# Configure PE2.
[~PE2] interface Tunnel 10
[*PE2-Tunnel10] ip address unnumbered interface loopback1
[*PE2-Tunnel10] tunnel-protocol mpls te
[*PE2-Tunnel10] destination 1.1.1.9
[*PE2-Tunnel10] mpls te tunnel-id 100
[*PE2-Tunnel10] mpls te service-class af1
[*PE2-Tunnel10] quit
[*PE2] interface Tunnel 20
[*PE2-Tunnel20] ip address unnumbered interface loopback1
[*PE2-Tunnel20] tunnel-protocol mpls te
[*PE2-Tunnel20] destination 1.1.1.9
[*PE2-Tunnel20] mpls te tunnel-id 200
[*PE2-Tunnel20] mpls te service-class af2
[*PE2-Tunnel20] quit
[*PE2] commit

After completing the preceding configurations, run the display this interface
command in the tunnel interface view. The command output shows that Line
protocol current state is UP, indicating that an MPLS TE tunnel has been
established.
Run the display tunnel-info all command on PE1. The command output shows
that two TE tunnels destined for PE2 with the LSR ID of 4.4.4.9 have been
established. The command output on PE2 is similar to that on PE1.
<PE1> display tunnel-info all
Tunnel ID Type Destination Status
----------------------------------------------------------------------
0xc2060404 te 4.4.4.9 UP
0xc2060405 te 4.4.4.9 UP

Step 5 Configure MPLS TE explicit paths.


Specify an explicit path for each tunnel.
# Configure PE1. Specify a physical interface on the P as the first next hop and a
physical interface on PE2 as the second next hop to ensure that the two tunnels
are built over different links.
[~PE1] explicit-path t1
[*PE1-explicit-path-t1] next hop 10.1.2.2
[*PE1-explicit-path-t1] next hop 10.1.4.2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 452


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-explicit-path-t1] quit
[*PE1] explicit-path t2
[*PE1-explicit-path-t2] next hop 10.1.3.2
[*PE1-explicit-path-t2] next hop 10.1.5.2
[*PE1-explicit-path-t2] quit
[*PE1] interface Tunnel 10
[*PE1-Tunnel10] mpls te path explicit-path t1
[*PE1-Tunnel10] quit
[*PE1] interface Tunnel 20
[*PE1-Tunnel20] mpls te path explicit-path t2
[*PE1-Tunnel20] quit
[*PE1] commit

# Configure PE2. Specify a physical interface on the P as the first next hop and a
physical interface on PE1 as the second next hop to ensure that the two tunnels
are built over different links.
[~PE2] explicit-path t1
[*PE2-explicit-path-t1] next hop 10.1.4.1
[*PE2-explicit-path-t1] next hop 10.1.2.1
[*PE2-explicit-path-t1] quit
[*PE2] explicit-path t2
[*PE2-explicit-path-t2] next hop 10.1.5.1
[*PE2-explicit-path-t2] next hop 10.1.3.1
[*PE2-explicit-path-t2] quit
[*PE2] interface Tunnel 10
[*PE2-Tunnel10] mpls te path explicit-path t1
[*PE2-Tunnel10] quit
[*PE2] interface Tunnel 20
[*PE2-Tunnel20] mpls te path explicit-path t2
[*PE2-Tunnel20] quit
[*PE2] commit

Step 6 Configure a remote LDP session.

Establish a remote LDP session between PE1 and PE2.

# Configure PE1.
[~PE1] mpls ldp
[*PE1-mpls-ldp] quit
[*PE1] mpls ldp remote-peer DTB1
[*PE1-mpls-ldp-remote-DTB1] remote-ip 4.4.4.9
[*PE1-mpls-ldp-remote-DTB1] quit
[*PE1] commit

# Configure PE2.
[~PE2] mpls ldp
[*PE2-mpls-ldp] quit
[*PE2] mpls ldp remote-peer DTB2
[*PE2-mpls-ldp-remote-DTB2] remote-ip 1.1.1.9
[*PE2-mpls-ldp-remote-DTB2] quit
[*PE2] commit

After completing this step, run the display mpls ldp peer command. A remote
LDP session has been established between the two PEs.

The following example uses the command output on PE1.


<PE1> display mpls ldp peer
LDP Peer Information in Public network
An asterisk (*) before a peer means the peer is being deleted.
------------------------------------------------------------------------------
PeerID TransportAddress DiscoverySource
------------------------------------------------------------------------------
4.4.4.9:0 4.4.4.9 Remote Peer : DTB1
------------------------------------------------------------------------------
TOTAL: 1 Peer(s) Found.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 453


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 7 Configure a tunnel policy.


# Configure PE1.
[~PE1] tunnel-policy p1
[*PE1-tunnel-policy-p1] tunnel select-seq cr-lsp load-balance-number 2
[*PE1-tunnel-policy-p1] quit
[*PE1] commit

# Configure PE2.
[~PE2] tunnel-policy p1
[*PE2-tunnel-policy-p1] tunnel select-seq cr-lsp load-balance-number 2
[*PE2-tunnel-policy-p1] quit
[*PE2] commit

Step 8 Enable MPLS L2VPN on PEs.


# Configure PE1.
[~PE1] mpls l2vpn
[*PE1-l2vpn] quit
[*PE1] commit

# Configure PE2.
[~PE2] mpls l2vpn
[*PE2-l2vpn] quit
[*PE2] commit

Step 9 Create a VSI on PEs and bind it to the tunnel policy.


# Configure PE1.
[~PE1] vsi a2 static
[*PE1-vsi-a2] pwsignal ldp
[*PE1-vsi-a2-ldp] vsi-id 2
[*PE1-vsi-a2-ldp] peer 4.4.4.9 tnl-policy p1
[*PE1-vsi-a2-ldp] quit
[*PE1-vsi-a2] quit
[*PE1] commit

# Configure PE2.
[~PE2] vsi a2 static
[*PE2-vsi-a2] pwsignal ldp
[*PE2-vsi-a2-ldp] vsi-id 2
[*PE2-vsi-a2-ldp] peer 1.1.1.9 tnl-policy p1
[*PE2-vsi-a2-ldp] quit
[*PE2-vsi-a2] quit
[*PE2] commit

Step 10 Bind the VSI to the interfaces of the PEs.


# Configure PE1.
[~PE1] interface gigabitethernet2/0/0.1
[*PE1-GigabitEthernet2/0/0.1] vlan-type dot1q 10
[*PE1-GigabitEthernet2/0/0.1] l2 binding vsi a2
[*PE1-GigabitEthernet2/0/0.1] trust upstream default
[*PE1-GigabitEthernet2/0/0.1] trust 8021p
[*PE1-GigabitEthernet2/0/0.1] undo shutdown
[*PE1-GigabitEthernet2/0/0.1] commit
[~PE1-GigabitEthernet2/0/0.1] quit

# Configure PE2.
[~PE2] interface gigabitethernet2/0/0.1
[*PE2-GigabitEthernet2/0/0.1] vlan-type dot1q 10

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 454


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE2-GigabitEthernet2/0/0.1] l2 binding vsi a2


[*PE2-GigabitEthernet2/0/0.1] trust upstream default
[*PE2-GigabitEthernet2/0/0.1] trust 8021p
[*PE2-GigabitEthernet2/0/0.1] undo shutdown
[*PE2-GigabitEthernet2/0/0.1] commit
[~PE2-GigabitEthernet2/0/0.1] quit

# Configure CE1.
[~CE1] interface gigabitethernet1/0/0.1
[*CE1-GigabitEthernet1/0/0.1] shutdown
[*CE1-GigabitEthernet1/0/0.1] vlan-type dot1q 10
[*CE1-GigabitEthernet1/0/0.1] ip address 10.1.1.1 255.255.255.0
[*CE1-GigabitEthernet1/0/0.1] undo shutdown
[*CE1-GigabitEthernet1/0/0.1] commit
[~CE1-GigabitEthernet1/0/0.1] quit

# Configure CE2.
[~CE2] interface gigabitethernet1/0/0.1
[*CE2-GigabitEthernet1/0/0.1]shutdown
[*CE2-GigabitEthernet1/0/0.1] vlan-type dot1q 10
[*CE2-GigabitEthernet1/0/0.1] ip address 10.1.1.2 255.255.255.0
[*CE2-GigabitEthernet1/0/0.1] undo shutdown
[*CE2-GigabitEthernet1/0/0.1] commit
[~CE1-GigabitEthernet1/0/0.1] quit

Step 11 Verify the configuration.


After completing the preceding configurations, run the display vsi name a2
verbose command on PE1. The command output shows that VSI State is up and
that there are two tunnel IDs, indicating that two tunnels have been established
between PE1 and PE2.
<PE1> display vsi name a2 verbose
***VSI Name : a2
Administrator VSI : no
Isolate Spoken : disable
VSI Index :0
PW Signaling : ldp
Member Discovery Style : static
PW MAC Learn Style : unqualify
Encapsulation Type : vlan
MTU : 1500
......
VSI State : up
......
VSI ID :2
......
*Peer Router ID : 4.4.4.9
VC Label : 162816
Peer Type : dynamic
Session : up
Tunnel ID : 0xc2060404 0xc2060405
......
**PW Information:
*Peer Ip Address : 4.4.4.9
PW State : up
Local VC Label : 162816
Remote VC Label : 162816
PW Type : label
Tunnel ID : 0xc2060404 0xc2060405
......

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 455


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Files
● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 1.1.1.9
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path t1
next hop 10.1.2.2
next hop 10.1.4.2
#
explicit-path t2
next hop 10.1.3.2
next hop 10.1.5.2
#
mpls l2vpn
#
mpls ldp
#
ipv4-family
#
mpls ldp remote-peer DTB1
remote-ip 4.4.4.9
#
vsi a2 static
pwsignal ldp
vsi-id 2
peer 4.4.4.9 tnl-policy p1
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.2.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0.1
undo shutdown
vlan-type dot1q 10
l2 binding vsi a2
trust upstream default
trust 8021p
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.1.3.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 4.4.4.9
mpls te path explicit-path t1
mpls te tunnel-id 100
mpls te service-class af1
#
interface Tunnel20
ip address unnumbered interface LoopBack1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 456


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

tunnel-protocol mpls te
destination 4.4.4.9
mpls te path explicit-path t2
mpls te tunnel-id 200
mpls te service-class af2
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.3.0 0.0.0.255
mpls-te enable
#
tunnel-policy p1
tunnel select-seq cr-lsp load-balance-number 2
#
return
● P1 configuration file
#
sysname P1
#
mpls lsr-id 2.2.2.9
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.2.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.1.4.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.4.0 0.0.0.255
mpls-te enable
#
return
● P2 configuration file
#
sysname P2
#
mpls lsr-id 3.3.3.9
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet1/0/0
undo shutdown

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 457


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 10.1.3.2 255.255.255.0


mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.1.5.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 10.1.3.0 0.0.0.255
network 10.1.5.0 0.0.0.255
mpls-te enable
#
return
● PE2 configuration file
#
sysname PE2
#
mpls lsr-id 4.4.4.9
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path t1
next hop 10.1.4.1
next hop 10.1.2.1
#
explicit-path t2
next hop 10.1.5.1
next hop 10.1.3.1
#
mpls l2vpn
#
vsi a2 static
pwsignal ldp
vsi-id 2
peer 1.1.1.9 tnl-policy p1
#
mpls ldp
#
ipv4-family
#
mpls ldp remote-peer DTB2
remote-ip 1.1.1.9
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.4.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet2/0/0.1
undo shutdown
vlan-type dot1q 10
l2 binding vsi a2
trust upstream default

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 458


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

trust 8021p
#
interface GigabitEthernet3/0/0
undo shutdown
ip address 10.1.5.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
#
interface Tunnel10
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te path explicit-path t1
mpls te tunnel-id 100
mpls te service-class af1
#
interface Tunnel20
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 1.1.1.9
mpls te path explicit-path t2
mpls te tunnel-id 200
mpls te service-class af2
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 4.4.4.9 0.0.0.0
network 10.1.4.0 0.0.0.255
network 10.1.5.0 0.0.0.255
mpls-te enable
#
tunnel-policy p1
tunnel select-seq cr-lsp load-balance-number 2
#
return

● CE1 configuration file


#
sysname CE1
#
interface GigabitEthernet1/0/0.1
undo shutdown
vlan-type dot1q 10
ip address 10.1.1.1 255.255.255.0
#
return

● CE2 configuration file


#
sysname CE2
#
interface GigabitEthernet1/0/0.1
undo shutdown
vlan-type dot1q 10
ip address 10.1.1.2 255.255.255.0
#
return

1.1.4 MPLS LDP Configuration


The Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP)
defines the messages in and procedures for distributing labels. MPLS LDP is used

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 459


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

by label switching routers (LSRs) to negotiate session parameters, distribute


labels, and then establish label switched paths (LSPs).

1.1.4.1 Overview
Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP) is widely
used for transmitting virtual private network (VPN) services. MPLS LDP
networking and configurations are simple. MPLS LDP supports route-driven
establishment of a large number of label switched paths (LSPs).

The Label Distribution Protocol (LDP) is a Multiprotocol Label Switching (MPLS)


control protocol, a signaling protocol of a traditional network. It classifies
forwarding equivalence classes (FECs), distributes labels, and establishes and
maintains label switched paths (LSPs). LDP defines messages in the label
distribution process as well as procedures for processing these messages.

On an MPLS network, LDP distributes label mappings and establishes LSPs. LDP
sends multicast Hello messages to discover local peers and sets up local peer
relationships. Alternatively, LDP sends unicast Hello messages to discover remote
peers and sets up remote peer relationships.

Two LDP peers establish a TCP connection, negotiate LDP parameters over the TCP
connection, and establish an LDP session. They exchange messages over the LDP
session to set up an LSP. LDP networking is simple to construct and configure, and
LDP establishes LSPs using routing information.

LDP applications are as follows:


● LDP LSPs guide IP data across a full-mesh MPLS network, over which a Border
Gateway Protocol-free (BGP-free) core network can be built.
● LDP works with BGP to establish end-to-end inter-autonomous system (inter-
AS) or inter-carrier tunnels to transmit Layer 3 virtual private network
(L3VPN) services.
● LDP over traffic engineering (TE) combines LDP and TE advantages to
establish end-to-end tunnels to transmit virtual private network (VPN)
services.

Figure 1-41 LDP networking

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 460


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.2 Feature Requirements for MPLS LDP

1.1.4.3 Configuring a Static LSP


LSPs can be established using statically configured labels.

Context
The establishment of static LSPs does not require a label distribution protocol or
exchange of control packets. As such, static LSPs consume fewer resources and are
applicable to small networks with a simple and stable topology. Static LSPs cannot
dynamically adapt to network topology changes. Once the network topology
changes, an administrator must modify configurations on each LSR of each
involved LSP so that the LSPs can work properly.

Pre-configuration Tasks
Before configuring a static LSP, configure a unicast static route or an IGP to
implement network connectivity between LSRs.

1.1.4.3.1 Enabling MPLS


After MPLS is enabled, related MPLS configurations can be performed.

Context
Perform the following steps on each LSR in an MPLS domain:

Procedure
Step 1 Run system-view
The system view is displayed.

Step 2 Run mpls lsr-id lsr-id


An LSR ID is set for a local node.

Step 3 Run mpls


MPLS is enabled globally, and the MPLS view is displayed.

Step 4 Run quit


Return to the system view.

Step 5 Run interface interface-type interface-number


An interface is configured to forward MPLS packets.

Step 6 Run mpls


MPLS is enabled on the interface.

Step 7 Run commit


The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 461


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.3.2 Configuring the Ingress of a Static LSP


A static LSP must be manually configured on the ingress.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run static-lsp ingress lsp-name destination ip-address { mask-length | mask }


{ nexthop next-hop-address | outgoing-interface interface-type interface-
number } out-label out-label The local node is configured as the ingress of a
specified LSP.

To modify the destination destination-address, nexthop next-hop-address,


outgoing-interface interface-type interface-number, and out-label out-label
parameter settings, run the static-lsp ingress command to set new values directly,
not requiring you to clear previous settings using the undo static-lsp ingress
command.

NOTE

You are advised to specify a next hop for a static LSP. Ensure that the local routing table
contains a routing entry that exactly matches the specified destination IP address and next-
hop IP address.
If an Ethernet interface is used as an outbound interface of an LSP, you must specify the
nexthop next-hop-address parameter to ensure normal traffic forwarding on the LSP.

Step 3 Run commit

The configuration is committed.

----End

1.1.4.3.3 Configuring a Transit Node of a Static LSP


A static LSP needs to be manually configured on each transit node.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run static-lsp transit lsp-name [ incoming-interface interface-type interface-


number ] in-label in-label { nexthop next-hop-address | outgoing-interface
interface-type interface-number } * out-label out-label
The local node is configured as a transit node of a specified LSP.

To modify the incoming-interface interface-type interface-number, in-label in-


label, nexthop next-hop-address, outgoing-interface interface-type interface-
number, or out-label out-label value, run the static-lsp transit command to set a
new value. You do not need to run the undo static-lsp transit command to cancel
the original setting.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 462


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

You are advised to specify the next hop when configuring a static LSP, so that the local
routing table will contain the routing entry that exactly matches the specified next hop IP
address.
If an Ethernet interface is used as an outbound interface, the nexthop next-hop-address
parameter must be configured to ensure normal traffic forwarding on the LSP.

Step 3 Run commit

The configuration is committed.

----End

1.1.4.3.4 Configuring the Egress of a Static LSP


A static LSP needs to be manually configured on the egress.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run static-lsp egress lsp-name [ incoming-interface interface-type interface-


number ] in-label in-label
The local node is configured as the egress of a specified LSP.

To modify the incoming-interface interface-type interface-number and in-label


in-label parameter settings, run the static-lsp egress command to set new values,
not requiring you to clear previous settings using the undo static-lsp egress
command.

Step 3 Run commit

The configuration is committed.

----End

1.1.4.3.5 Verifying the Static LSP Configuration


After configuring the static LSP, verify its information on a local node.

Prerequisites
The configurations of a static LSP are complete.

Procedure
● Run the display mpls static-lsp [ lsp-name ] [ { include | exclude } ip-
address mask-length ] [ verbose ] command to check information about local
static LSPs.
● Run the display mpls lsp protocol static [ { include | exclude } destaddr
masklen ] [ incoming-interface in-port-type in-port-num ][ outgoing-
interface out-port-type out-port-num ] [ in-label in-label-value ] [ out-label

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 463


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

out-label-value ] [ nexthop nexthopaddr ] [ lsr-role{ ingress | transit |


egress } ] [ verbose ] command to check information about static LSPs.
----End

1.1.4.4 Configuring a Local LDP Session


An MPLS LDP session can be configured only after LSR IDs are configured and
MPLS LDP is enabled on both ends of the MPLS LDP session.

Usage Scenario
An LDP session is established over a TCP connection. After the TCP connection is
set up, LSRs negotiate parameters of the LDP session. If the negotiation is
successful, an LDP session can be established.
After the local LDP session is established, LSRs assign labels to establish an LDP
LSP.
When LDP LSPs carry Layer 2 virtual private network (L2VPN) and Layer 3 virtual
private network (L3VPN) services, you can specify an LSR ID for each local LDP
session on the current LSR to isolate VPN services.

Pre-configuration Tasks
Before configuring a local LDP session, complete the following task:
● Configure static routes or an IGP to ensure IP route reachability among nodes.

1.1.4.4.1 Configuring Global MPLS LDP Functions


Global LDP must be enabled on each node before LDP services can be configured
in an MPLS domain.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls lsr-id lsr-id
An LSR ID is set for the local node.
When configuring an LSR ID, note the following:
● LSR IDs must be set before you run other MPLS commands.
● LSR IDs can only be manually configured, and do not have default values.
● Using the address of a loopback interface as the LSR ID is recommended.

NOTICE

Running the undo mpls command deletes all MPLS configurations, including
established LDP sessions and LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 464


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Run mpls

MPLS is enabled globally, and the MPLS view is displayed.

Step 4 Run mpls ldp

MPLS LDP is enabled globally, and the MPLS-LDP view is displayed.

Step 5 (Optional) Run lsr-id lsr-id

The LSR ID is set for an LDP instance.

An MPLS LSR ID is usually used as the LSR ID of an LDP instance. When VPN
instances are used, such as a BGP/MPLS VPN, if the VPN address space and public
network address space overlap, set LSR IDs for LDP instances so that TCP
connections for LDP sessions can be properly established.

Step 6 Run commit

The configuration is committed.

----End

1.1.4.4.2 Globally Enabling MPLS and LDP on an Interface


Before you configure a local LDP session, globally enabling MPLS and LDP on an
interface.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The view of the interface on which an LDP session is to be established is displayed.

Step 3 Run mpls

MPLS is enabled on an interface.

Step 4 Run mpls ldp

MPLS LDP is enabled on the interface.

NOTE

Disabling MPLS LDP from an interface leads to interruptions of all LDP sessions on the
interface and deletions of all LSPs established over these LDP sessions.

Step 5 Run commit

The configuration is committed.

----End

1.1.4.4.3 (Optional) Configuring an LSR ID for a Local LDP Session


To isolate services, configure an LSR ID for each local LDP session.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 465


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
By default, all LDP sessions of an LSR, including local LDP sessions and remote
LDP sessions, use the LSR ID of the LDP instance configured on the LSR. However,
if LDP LSPs carry L2VPN and L3VPN services, sharing one LSR ID may cause LDP
LSPs to fail to isolate VPN services. To address this problem, you can configure an
LSR ID for each LDP session.

This section describes how to configure an LSR ID for a local LDP session.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The view of the interface on which an LDP session is to be established is displayed.

Step 3 Run mpls ldp local-lsr-id { interface-type interface-number | interface }

The primary IP address of a specified interface is used as the LSR ID for the
current LDP session.

Here:

● interface-type interface-number: sets the primary IP address of a specified


interface as the LSR ID.
● interface: sets the primary IP address of the current interface as the LSR ID.

If multiple links directly connect an LSR pair, the LSR ID configured on the
interface of each link must be the same. Otherwise, the LDP session uses the LSR
ID of the link that first finds the adjacency, while other links with different LSR IDs
cannot be bound to the LDP session. As a result, LDP LSPs fail to be established on
these links.

If both a local session and a remote LDP session are to be established between an
LSR pair, LSR IDs configured for the two sessions must be the same. Otherwise,
only the LDP session that finds the adjacency first can be established.

NOTE

To establish an LDP session between two devices, a TCP link must be established between
them. This link is called an adjacency. After the adjacency is established, the two devices
can exchange LDP control messages to establish an LDP session. If there is only one
adjacency in an LDP session, the LDP session is called a single-link session. If there are
multiple adjacencies in an LDP session, the LDP session is called a multi-link session.
Running this command causes a single-link LDP session to reset or causes the current
adjacency of a multi-link LDP session to reset.

Step 4 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 466


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.4.4 (Optional) Configuring an LDP Transport Address


Before establishing an LDP session, two LSRs confirm each other's LDP transport
address and set up a TCP connection.

Context
An LDP transport address is used to set up a TCP connection between peers. A
route to the LDP transport address must be reachable on each peer. An LSR ID,
which is the loopback interface address, serves as the LDP transport address.
NOTE

● The LDP sessions over multiple links between two LSRs can be established using the
same pair of transport addresses.
● A change in an LDP transport address will terminate the associated LDP session. Exercise
caution when configuring an LDP transport address.
● The default LDP transport address is recommended.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The view of the interface on which an LDP session is to be established is displayed.

Step 3 Run mpls ldp transport-address { interface-type interface-number | interface }

The IP address of a specified interface is configured as an LDP transport address.

● interface-type interface-number: specifies the type and number of an


interface. This parameter configures LDP to use the address of the specified
interface as the TCP transport address.
● interface: configures LDP to use the IP address of the current interface as the
TCP transport address.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.4.5 (Optional) Configuring Timers for a Local LDP Session


Timers of a local LDP session include the link Hello hold timer, link Hello send
timer, Keepalive hold timer, Keepalive send timer, and Exponential backoff timer.

Context
The following timers are used in a local LDP session:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 467


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Table 1-19 Timers for a local LDP session


LDP Timers Description Suggestion

Link Hello Used to send Hello On an unstable network,


send timer messages periodically to decrease the value of a link Hello
notify a peer LSR of the send timer, speeding up network
local LSR's presence and fault detection.
establish a Hello adjacency.
Similar to a remote LDP
session, a local LDP session
uses a link Hello send timer.

Link Hello Used to exchange Hello On a network with unstable links


hold timer messages periodically or a large number of packets,
between two LDP peers to increase the value of the link
maintain the Hello Hello hold timer, preventing a
adjacency. If no Hello local LDP session from being
message is received after torn down and set up frequently.
the link Hello hold timer
expires, the Hello adjacency
is torn down. Similar to a
remote LDP session, a local
LDP session uses a link
Hello hold timer.

KeepAlive Used to send KeepAlive On an unstable network, set a


send timer messages periodically, smaller value for a KeepAlive
maintaining the local LDP send timer, speeding up network
session. fault detection.

KeepAlive Used to send LDP PDUs On a network with unstable


hold timer over an LDP session, links, increase the value of the
maintaining the local LDP KeepAlive hold timer, preventing
session. If no LDP PDU is the local LDP session from
received after the KeepAlive flapping.
hold timer expires, the TCP
connection is closed and the
local LDP session is
terminated.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 468


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

LDP Timers Description Suggestion

Exponential Started by an LSR that plays ● When a device is upgraded,


backoff timer an active role after an LDP prolong the period for the
Initialization message sent active role to retry setting up
by the LSR to another LSR a session. In this case, you can
that plays a passive role set larger initial and
fails to be processed or maximum values for the
parameters carried in the Exponential backoff timer.
message are rejected. The ● When a device that bears
LSP that plays the active services tends to alternate
role periodically resends an between Up and Down,
LDP Initialization message shorten the period for the
to initiate an LDP session active role to retry setting up
before the Exponential a session. In this case, you can
backoff timer expires. set smaller initial and
maximum values for the
Exponential backoff timer.

The default timer values are recommended.

Procedure
● Configure a link Hello send timer.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of the interface on which an LDP session is to be established is
displayed.
c. Run mpls ldp timer hello-send interval
A link Hello send timer is configured.
Effective link Hello send timer value = Min{Configured link Hello send
timer value, 1/3 of the link Hello hold timer value}
d. Run commit
The configuration is committed.
● Configure a link Hello hold timer.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of the interface on which an LDP session is to be established is
displayed.
c. Run mpls ldp timer hello-hold interval
A link Hello hold timer is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 469


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

If a link Hello hold timer is configured on each end of a local LDP session,
the smaller value takes effect.

NOTE

The timer must be longer than the time a device takes to perform a master/slave
main control board switchover. If the timer is set to less than the switchover time,
a protocol intermittent interruption occurs during a switchover. The default timer
value is recommended.
d. Run commit

The configuration is committed.


● Configure a Keepalive send timer for a local LDP session.
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The view of the interface on which an LDP session is to be established is


displayed.
c. Run mpls ldp timer keepalive-send interval

A Keepalive send timer is configured for the local LDP session.

Effective Keepalive send timer value = Min{Configured Keepalive send


timer value, 1/3 of the Keepalive hold timer value}
d. Run commit

The configuration is committed.


● Configure a Keepalive hold timer for a local LDP session.
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The view of the interface on which an LDP session is to be established is


displayed.
c. Run mpls ldp timer keepalive-hold interval

A Keepalive hold timer is configured for the local LDP session.

If a Keepalive hold timer is configured on each end of a local LDP session,


the smaller value takes effect.

NOTE

The timer must be longer than the time a device takes to perform a master/slave
main control board switchover. If the timer is set to less than the switchover time,
a protocol intermittent interruption occurs during a switchover. The default timer
value is recommended.
d. Run commit

The configuration is committed.


● Configure an Exponential backoff timer.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 470


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

a. Run system-view

The system view is displayed.


b. Run mpls

The MPLS view is displayed.


c. Run mpls ldp

The MPLS-LDP view is displayed.


d. Run backoff timer init max

The Exponential backoff timer is configured.


e. Run commit

The configuration is committed.

----End

1.1.4.4.6 (Optional) Enabling LDP Loop Detection Negotiation


If the peer device is enabled with LDP loop detection, the local device must be
enabled with the capability of negotiating LDP loop detection before it can set up
an LDP session with the peer device.

Usage Scenario
The NE9000 does not support LDP loop detection. To establish an LDP session
with a device enabled with LDP loop detection, the NE9000 needs to be enabled
with the capability of negotiating LDP loop detection.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Run loop-detect

LDP loop detection negotiation is enabled. This allows the device to negotiate LDP
parameters during the initialization phase and establish an LDP session with a
peer device that is enabled with LDP loop detection.

NOTE

After the loop-detect command is run, the NE9000 obtains the capability of negotiating
LDP loop detection but still does not support LDP loop detection.

Step 4 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 471


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.4.7 Verifying the Configuration


After configuring a local MPLS LDP session, you can view information about
interfaces with MPLS and MPLS LDP enabled, the LDP protocol, LDP session
status, LDP adjacencies, and peers of the LDP session.

Prerequisites
The local MPLS LDP session has been established.

Procedure
● Run the display mpls ldp [ all ] [verbose ] command to check LDP
information.
● Run the display mpls ldp interface [ interface-type interface-number |
verbose | all ] command to check information about LDP-enabled interfaces.
● Run the display mpls ldp session [ verbose | peer-id | all ] command to
check the status of an LDP session.
● Run the display mpls ldp adjacency [ interface interface-type interface-
number | remote ] [ peer peer-id ] [ verbose ] command to check
information about LDP adjacencies.
● Run the display mpls ldp peer [ verbose | peer-id | all ] command to check
the peers of an LDP session.
● Run the display mpls interface [ interface-type interface-number ]
[ verbose ] command to check information about an MPLS-enabled interface.
----End

1.1.4.5 Configuring a Remote LDP Session


A remote MPLS LDP session can only be established after LSR IDs are configured
and MPLS LDP is enabled on both ends of the MPLS LDP session.

Usage Scenario
Remote LDP sessions are used in LDP over TE and L2VPN scenarios:
● LDP over TE: If the core area on an MPLS network supports TE and the edge
devices run LDP, two LSRs on the edge establish a remote LDP session. LDP
over TE allows a TE tunnel to function as a hop on an LDP LSP.
● L2VPN: Devices exchange protocol packets over an LDP session. If the devices
are indirectly connected, a remote LDP session must be configured. However,
no remote LDP session needs to be configured for a static PW.

Pre-configuration Tasks
Before configuring a remote LDP session, complete the following task:
● Configure static routes or an IGP to ensure IP route reachability among nodes.

1.1.4.5.1 Configuring Global MPLS LDP Functions


Global LDP must be enabled on each node before LDP services can be configured
in an MPLS domain.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 472


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls lsr-id lsr-id

An LSR ID is set for the local node.

When configuring an LSR ID, note the following:


● LSR IDs must be set before you run other MPLS commands.
● LSR IDs can only be manually configured, and do not have default values.
● Using the address of a loopback interface as the LSR ID is recommended.

NOTICE

Running the undo mpls command deletes all MPLS configurations, including
established LDP sessions and LSPs.

Step 3 Run mpls

MPLS is enabled globally, and the MPLS view is displayed.

Step 4 Run mpls ldp

MPLS LDP is enabled globally, and the MPLS-LDP view is displayed.

Step 5 (Optional) Run lsr-id lsr-id

The LSR ID is set for an LDP instance.

An MPLS LSR ID is usually used as the LSR ID of an LDP instance. When VPN
instances are used, such as a BGP/MPLS VPN, if the VPN address space and public
network address space overlap, set LSR IDs for LDP instances so that TCP
connections for LDP sessions can be properly established.

Step 6 Run commit

The configuration is committed.

----End

1.1.4.5.2 Configuring a Remote LDP Peer


Before you configure a remote LDP session, specify the name and IP address of
the remote peer.

Context
A remote LDP session can be established between nonadjacent LSRs or between
adjacent LSRs.

A local LDP session and a remote LDP session can be configured together between
the same two LSRs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 473


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp remote-peer remote-peer-name
A remote MPLS LDP peer is created, and the remote MPLS LDP peer view is
displayed.
Step 3 (Optional) Run description description-value
The description of a remote peer is configured.
Step 4 Run remote-ip ip-address
The IP address is assigned to the remote MPLS LDP peer.
The remote MPLS LDP peer must use the LSR ID as the IP address.

NOTE

● The IP address of a remote LDP peer must be the LSR ID of the remote LDP peer. If an
LDP LSR ID is different from an MPLS LSR ID, the LDP LSR ID is used.
● Modifying or deleting a configured IP address of a remote peer also deletes the remote
LDP session.

Step 5 (Optional) Perform either of the following operations to prevent label distribution
to remote LDP peers:
● Run remote-ip ip-address pwe3
The device is disabled from distributing labels to a specified remote MPLS LDP
peer.
● Run the following commands to prevent labels from being distributed to all
remote MPLS LDP peers.
a. (Optional) Run clear remote-ip pwe3
The explicit configuration of enabling or disabling the ability to distribute
labels to a specified remote LDP peer is deleted.
If an explicit configuration has been performed to allow a device to
distribute labels to a specified remote LDP peer, to delete the
configuration, you can perform this step.
b. Run quit
Return to the system view.
c. Run mpls ldp
The MPLS-LDP view is displayed.
d. Run remote-peer pwe3
The device is disabled from distributing labels to all remote MPLS LDP
peers.
NOTE

When a remote LDP session provides VPN services, run the preceding commands to prohibit
labels from being distributed to the remote MPLS LDP peers, which helps efficiently use
system resources. When TE services are transmitted over a backbone network in the LDP
over TE scenario, do not perform this configuration.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 474


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 6 Run commit


The configuration is committed.

----End

1.1.4.5.3 (Optional) Configuring an LSR ID for a Remote LDP session


To isolate services, configure an LSR ID for each remote LDP session.

Context
A remote LDP session can be established between two indirectly connected LSRs
or two adjacent LSRs. Both a local LDP session and a remote LDP session can be
established between two LSRs. When a local LDP session and a remote LDP
session are established between two LSRs, the configurations that both the local
and remote LDP sessions support must be the same. The L2VPN/L3VPN services
that pass through the LSPs between the two LSRs cannot be isolated from each
other. To address this problem, you can specify a local LSR ID for each LDP session.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp remote-peer remote-peer-name
The remote MPLS-LDP peer view is displayed.
Step 3 Run mpls ldp local-lsr-id interface-type interface-number
The primary IP address of a specified interface is used as a local LSR ID for the
current LDP session.
If both a local and remote LDP sessions are to be established between an LSR pair,
LSR IDs configured for the two sessions must be the same. Otherwise, only the
LDP session that finds the adjacency first can be established.

NOTE

Execution of this command resets the current remote LDP session. The reset remote LSP
session uses the new LSR ID.

----End

1.1.4.5.4 (Optional) Configuring Timers for a Remote LDP Session


LDP timers include the target Hello hold timer, target Hello send timer, Keepalive
hold timer, Keepalive send timer, and Exponential backoff timer.

Context
The following timers are used in a remote LDP session:
● Target Hello send timer: An LSR sends Hello messages to a peer LSR at an
interval specified by the Hello send timer. The LSR can advertise its existence
and establish a Hello adjacency with the peer LSR.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 475


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Target Hello hold timer: LDP peers that establish a Hello adjacency
periodically exchange Hello messages indicating that they expect to maintain
the adjacency. If the Hello hold timer expires and no Hello messages are
received, the Hello adjacency is torn down.
● Keepalive send timer: LSRs on both ends of an established LDP session start
Keepalive send timers and periodically exchange Keepalive messages to
maintain the LDP session.
● Keepalive hold timer: LDP peers start Keepalive hold timers and periodically
send LDP PDUs over an LDP session connection to maintain the LDP session.
If the Keepalive hold timers expire and no LDP PDUs are received, the
connection is closed, and the LDP session is torn down.
● Exponential backoff timer: An active LSR starts this timer after it fails to
process an LDP Initialization message or after it receives the notification that
the passive LSR to which the active LSR sends the LDP Initialization message
has rejected the parameters carried in the message. The active LSP
periodically resends an LDP Initialization message to initiate an LDP session
before the Exponential backoff timer expires.

The default timer values are recommended.

Procedure
● Configure a target Hello send timer.
a. Run system-view

The system view is displayed.


b. Run mpls ldp remote-peer remote-peer-name

The remote MPLS LDP peer view is displayed.


c. Run mpls ldp timer hello-send interval

The target Hello send timer value is set.

Effective target Hello send timer value = Min {Configured target Hello
send timer value, 1/3 of the target Hello hold timer value}
d. Run commit

The configuration is committed.


● Configure a target Hello hold timer.
a. Run system-view

The system view is displayed.


b. Run mpls ldp remote-peer remote-peer-name

The remote MPLS LDP peer view is displayed.


c. Run mpls ldp timer hello-hold interval

The target Hello hold timer value is set.

The value of the Hello hold timer configured on the local LSR may not be
the actual effective value. The actual effective value is the smaller of the
two values configured on the two ends of a remote LDP session.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 476


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

The configured timer value must be greater than or equal to the time required
for an active/standby switchover. Otherwise, protocol flapping may occur during
an active/standby switchover. The default value is recommended.
d. Run commit

The configuration is committed.


● Configure a Keepalive send timer for a remote LDP session.
a. Run system-view

The system view is displayed.


b. Run mpls ldp remote-peer remote-peer-name

The remote MPLS LDP peer view is displayed.


c. Run mpls ldp timer keepalive-send interval

The Keepalive send timer value is set for a remote LDP session.

Effective Keepalive send timer value = Min {Configured Keepalive send


timer value, 1/3 of the Keepalive hold timer value}
d. Run commit

The configuration is committed.


● Configure a Keepalive hold timer for a remote LDP session.
a. Run system-view

The system view is displayed.


b. Run mpls ldp remote-peer remote-peer-name

The remote MPLS LDP peer view is displayed.


c. Run mpls ldp timer keepalive-hold interval

The Keepalive hold timer value is set for the remote LDP session.

The value of the Keepalive hold timer configured on the local LSR may
not be the actual effective value. The actual effective value is the smaller
of the two values configured on the two ends of a remote LDP session.

NOTE

The configured timer value must be greater than or equal to the time required
for an active/standby switchover. Otherwise, protocol flapping may occur during
an active/standby switchover. The default value is recommended.
d. Run commit

The configuration is committed.


● Configure the global Keepalive hold timer of the remote LDP session.
a. Run system-view

The system view is displayed.


b. Run mpls ldp

The MPLS-LDP view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 477


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

c. Run timer auto-remote keepalive-hold interval

The global Keepalive hold timer value is set for the remote LDP session.

The value of the Keepalive hold timer configured on the local LSR may
not be the actual effective value. The actual effective value is the smaller
of the two values configured on the two ends of a remote LDP session.

NOTE

The configured timer value must be greater than or equal to the time required
for an active/standby switchover. Otherwise, protocol flapping may occur during
an active/standby switchover. The default value is recommended.
The value of the timer that takes effect is the smaller of the values of the two
Keepalive hold timers configured on both ends of a remote LDP session. The
Keepalive hold timer configured in the remote MPLS-LDP peer view takes
precedence over the global Keepalive hold timer. If the Keepalive hold timer is
configured both globally and in the remote MPLS-LDP peer view, the Keepalive
hold timer configured in the remote MPLS-LDP peer view takes effect.
d. Run commit

The configuration is committed.


● Configure an Exponential backoff timer.
a. Run system-view

The system view is displayed.


b. Run mpls

The MPLS view is displayed.


c. Run mpls ldp

The MPLS-LDP view is displayed.


d. Run backoff timer init max

The Exponential backoff timer is configured.

e. Run commit

The configuration is committed.

----End

1.1.4.5.5 (Optional) Enabling LDP Loop Detection Negotiation


If the peer device is enabled with LDP loop detection, the local device must be
enabled with the capability of negotiating LDP loop detection before it can set up
an LDP session with the peer device.

Usage Scenario
The NE9000 does not support LDP loop detection. To establish an LDP session
with a device enabled with LDP loop detection, the NE9000 needs to be enabled
with the capability of negotiating LDP loop detection.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 478


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 Run loop-detect
LDP loop detection negotiation is enabled. This allows the device to negotiate LDP
parameters during the initialization phase and establish an LDP session with a
peer device that is enabled with LDP loop detection.

NOTE

After the loop-detect command is run, the NE9000 obtains the capability of negotiating
LDP loop detection but still does not support LDP loop detection.

Step 4 Run commit


The configuration is committed.

----End

1.1.4.5.6 Verifying the Configuration


After configuring a remote MPLS LDP session, you can view information about the
LDP protocol, LDP session status, LDP adjacencies, and remote peers of the LDP
session.

Prerequisites
A remote MPLS LDP session has been established.

Procedure
● Run the display mpls ldp [ all ] [ verbose ] command to check LDP
information.
● Run one of the following commands to check the LDP session status:
– display mpls ldp session [ verbose | peer-id ]
– display mpls ldp session [ all ] [ verbose ]
● Run the display mpls ldp adjacency [ interface interface-type interface-
number | remote ] [ peer peer-id ] [ verbose ] command to check
information about LDP adjacencies.
● Run one of the following commands to check information about the peer of
an LDP session:
– display mpls ldp peer [ verbose | peer-id ]
– display mpls ldp peer [ all ] [ verbose]
● Run the display mpls ldp remote-peer [ remote-peer-name | peer-id peer-
id ] command to check information about the remote peer of an LDP session.
----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 479


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.6 Configuring the Dynamic LDP Advertisement Capability


On devices enabled with global LDP, the dynamic LDP advertisement capability
allows extended LDP functions to be dynamically enabled or disabled when the
LDP session is working properly, ensuring stable LSP operation.

Usage Scenario
On a device disabled from dynamic LDP advertisement, if an extended LDP
function is enabled after an LDP session is created, the LDP session will be
interrupted and the extended LDP function will be negotiated, affecting LSP
stability. After the dynamic LDP advertisement capability is enabled, the LDP
features that support the dynamic LDP advertisement capability can be
dynamically enabled or disabled without interrupting sessions, improving the
stability of LSPs.

NOTE

The dynamic LDP advertisement capability does not affect existing LDP functions. You are
advised to enable this function immediately after LDP is enabled globally, as it facilitates
dynamic advertisement of new extended functions.
Before enabling the dynamic LDP advertisement capability, enable MPLS and MPLS LDP
globally.

Pre-configuration Tasks
Before configuring the dynamic LDP advertisement capability, complete the
following task:

● Enable MPLS LDP globally.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Run capability-announcement

The dynamic LDP advertisement capability is enabled.

NOTE

Enabling dynamic LDP advertisement after an LDP session is established will result in
reestablishment of the LDP session.

Step 4 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 480


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Verifying the Configuration


After configuring a local LDP session, run the display mpls ldp command to check
whether the dynamic LDP advertisement capability has been enabled. The
capability has been enabled if the Capability-Announcement field in the
command output is On.

1.1.4.7 Configuring an LDP LSP


LDP is a label distribution protocol used to establish LSPs in an MPLS domain.

Usage Scenario
LDP can dynamically establish an LSP. An LDP LSP provided that LDP nodes do not
need to be specified and traffic engineering (TE) does not need to be deployed on
the MPLS network.
The maximum number of LSPs varies with the capacity and performance of a
device. If too many LSPs are configured on a device, the device may operate
unstably.
An LSP can be established only when eligible routes exist on LSRs and match the
LSP setup policy. LDP can only use routes that match a specified policy to set up
LSPs, which helps control the number of LSPs.
The NE9000 provides the following policies for controlling the number of LSPs:
● Policies for establishing ingress or egress LSPs are as follows:
– LDP uses all IGP routes to establish LSPs
– LDP uses host routes to establish LSPs.
– LDP uses an IP prefix list to establish LSPs.
– LDP does not establish LSPs.
● To control the number of transit LSPs on a transit LSR, an IP prefix list can be
used to filter routes, and only the routes matching the filtering policy can be
used to establish transit LSPs.
To correctly select a path maximum transmission unit (MTU), an LSR must obtain
the MTU of each link connected to it using LDP MTU signaling.

Pre-configuration Tasks
Before configuring an LDP LSP, configure a local LDP session.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 481


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Procedures

Figure 1-42 LDP LSP configuration

1.1.4.7.1 Establishing an LDP LSP


An LDP LSP can be automatically established only after an LDP session is
established.

Context
If local LDP sessions have been established among the neighboring LSRs on an
LSP to be established, an LDP LSP can be established automatically.

1.1.4.7.2 (Optional) Configuring PHP


The penultimate hop popping (PHP) function can be enabled after you configure
the label to be assigned by the egress to the penultimate hop.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run label advertise { explicit-null | implicit-null | non-null }
The label assigned to the penultimate node is specified.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 482


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

You can specify one of the following parameters:

● explicit-null: disables PHP. If this parameter is configured, the egress assigns


an explicit null label with value 0 to the penultimate node. explicit-null:
supports MPLS QoS. Setting this parameter helps reduce label resource
consumption on the egress and prevents Exp value loss. Given this, when the
QoS attributes of an end-to-end service need to be carried in the EXP field of
labels, you can specify this parameter.
● non-null: disables PHP. If this parameter is configured, the egress assigns a
label with a value greater than or equal to 16 to the penultimate node. The
non-null label consumes resources on the egress, which is not recommended.
This parameter can be specified when the egress needs to identify services
based on labels.
NOTE

After the label advertise { explicit-null | implicit-null | non-null } command is executed


to change the label advertisement mode of the local node, the command configuration
takes effect immediately for new LSPs. If you want the configuration to take effect also for
the LSPs that have been established before the command is executed, you need to run the
reset mpls ldp or lsp trigger command.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.7.3 (Optional) Configuring an LDP Label Advertisement Mode


An LDP label advertisement mode can be configured to control LSP establishment.

Context
By default, a downstream device sends Label Mapping messages to an upstream
device. This means that if a fault occurs on the network, services can be rapidly
switched to the backup path, improving network reliability. Digital subscriber line
access multiplexers (DSLAMs) deployed on an MPLS network for user access,
however, have low performance. On a large-scale network, a DSLAM can be
configured to send Label Mapping messages to only upstream LSRs only after
receiving requests for labels. This minimizes the number of unwanted MPLS
forwarding entries forwarded by the DSLAM.

Procedure
● Configure a label advertisement mode for the local LDP session.
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The interface view is displayed.


c. Run mpls ldp advertisement { dod | du }

A label advertisement mode is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 483


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

● When multiple links exist between neighbors, all interfaces must use the
same label advertisement mode.
● Modifying a configured label advertisement mode leads to the
reestablishment of an LDP session, resulting in service interruptions.
d. Run commit
The configuration is committed.
● Configure a label advertisement mode for the remote LDP session.
a. Run system-view
The system view is displayed.
b. Run mpls ldp remote-peer remote-peer-name
A remote MPLS LDP peer is created, and the remote MPLS-LDP peer view
is displayed.
c. Run mpls ldp advertisement { dod | du }
A label advertisement mode is configured.

NOTE

When the local and remote LDP sessions coexist, they must have the same label
advertisement mode.
d. Run commit
The configuration is committed.
----End

1.1.4.7.4 (Optional) Configuring a Global LDP Label Distribution Control Mode


An LDP label distribution control mode can be globally configured to enable a
local node to control the sequence of distributing labels to upstream nodes.

Context
A label distribution control mode defines how an LSR distributes labels during the
establishment of an LSP.
There are two label distribution control modes:
● Label distribution control in independent mode
In independent label distribution control mode, a local LSR independently
distributes and binds a label to a FEC and notifies the upstream LSR of the
label without waiting for a label from the downstream LSR.
– If the label advertisement mode is DU and the label distribution control
mode is independent, an LSR directly distributes a label to its upstream
LSR, without waiting for a label from the downstream LSR.
– If the label advertisement mode is DoD and the distribution control mode
is independent, an LSR distributes a label to its upstream LSR after
receiving a label request from the upstream LSR, without waiting for a
label from the downstream LSR.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 484


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Label distribution control in ordered mode


In ordered label distribution control mode, an LSR sends the label mapping of
a FEC to the upstream device only if the LSR has received the Label Mapping
message from the next hop of the FEC or if the LSR is the egress of the FEC.
– If the label advertisement mode is DU and the label distribution control
mode is ordered, an LSR distributes a label to its upstream device only
after receiving a Label Mapping message from the downstream device.
– If the label advertisement mode is DoD and the label distribution control
mode is ordered, the downstream LSR of a directly connected LSR
distributes a label to the upstream LSR only after receiving a Label
Mapping message from the directly connected LSR.

The default label distribution control mode is recommended.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp [ vpn-instance vpn-instance-name ]

The MPLS-LDP or MPLS-LDP-VPN instance view is displayed.

Step 3 Run label distribution control-mode { independent | ordered }

The global LDP label distribution control mode is configured.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.7.5 (Optional) Configuring LDP to Automatically Trigger Requests in DoD


Mode
A remote LDP session must be configured before LDP is configured to
automatically send requests in downstream-on-demand (DoD) mode

Context
To improve the stability of a large network with a great number of remote LDP
peers and low-end DSLAMs deployed at the network edge, you need to minimize
resource consumption. To achieve this, run the remote-ip auto-dod-request or
remote-peer auto-dod-request command to configure the function of triggering
a request to a downstream node for Label Mapping messages associated with a
specified or all remote LDP peers in DoD mode.

To disable an LSR from automatically sending a request to a downstream node for


a Label Mapping message associated with a specified LSR ID in DoD mode, you
can run the remote-ip auto-dod-request block command.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 485


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

● A remote LDP session must have been configured before the remote-peer auto-dod-
request or remote-ip auto-dod-request command is run.
● Inter-area LDP extension must have been configured by using the longest-match
command before the remote-peer auto-dod-request or remote-ip auto-dod-request
command is run.
● A DoD session must have been established with the downstream node by using the
mpls ldp advertisement dod command before the remote-peer auto-dod-request or
remote-ip auto-dod-request command is run.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Perform either or both of the following operations to configure the automatic
triggering of a request to a downstream node for Label Mapping messages of a
specified or all remote LDP peers in DoD mode.
● To enable the device to automatically send DoD requests for Label Mapping
messages to all downstream remote LDP peers, run the remote-peer auto-
dod-request command.
● To enable the device to automatically send DoD requests for Label Mapping
messages to a specified downstream remote LDP peer, perform the following
procedures:
a. Run the quit command to enter the system view.
b. Run the mpls ldp remote-peer remote-peer-name command to create a
remote MPLS LDP peer and enter the remote MPLS LDP peer view.
c. Run the remote-ip ip-address command to specify the IP address of the
remote MPLS LDP peer.
NOTE

▪ This IP address must be the LSR ID that the remote LDP peer uses to establish
the current remote session.

▪ Modifying or deleting the configured IP address of a remote peer leads to the


deletion of a remote LDP session.
d. Run the remote-ip auto-dod-request command to configure LDP to
automatically send DoD requests for Label Mapping messages to a
specified downstream remote LDP peer.
NOTE

To disable the function of the remote-peer auto-dod-request command, run the


remote-ip auto-dod-request block command.

Step 4 Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 486


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.

----End

1.1.4.7.6 (Optional) Configuring an MPLS MTU for an Interface


If an MPLS MTU needs to be configured for an interface, the related configuration
needs to be performed on all nodes.

Context
LDP selects the minimum value among MTUs on all outbound interfaces of an
LSP. On the ingress, MPLS uses the minimum MTU to determine the maximum
size of each MPLS packet that can be forwarded without being fragmented. The
MPLS MTU helps prevent forwarding failures on transit nodes.
The relationships between the MPLS MTU and interface MTU are as follows:
● If the MPLS MTU is not configured on an interface, the interface MTU is used.
● If both an MPLS MTU and an interface MTU are set on an interface, the
smaller value between them is used.

NOTE

The MPLS MTU of an interface can take effect only after the MTU signaling function is
enabled.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The view of an MPLS-enabled interface is displayed.
Step 3 Run mpls mtu mtu
An MPLS MTU is set for an interface.
Step 4 (Optional) Run interface-mtu check-mode { ip | label-contained-length } slot
slot-id An interface MTU check mode is configured.
Choose an MTU check mode based on scenarios:
● ip: applies to IP forwarding scenarios.
● label-contained-length: applies to MPLS forwarding scenarios.
The device checks a packet's size based on the configured check mode and
fragments a packet if its size exceeds the interface MTU.
In VS mode, this command is supported only by the admin VS.
Step 5 Run commit
The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 487


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.7.7 (Optional) Configuring LDP MTU Signaling


LDP MTU signaling can be configured to allow sent Label Mapping messages to
carry MTU TLVs.

Context
If the MTU value of a packet exceeds the maximum size supported by a receiver
or transit device, the packet is fragmented during transmission, increasing the
workload of the network. The packet may even be discarded during transmission,
affecting services. If MTU values are correctly negotiated before packet
transmission, packets can successfully reach the receiver without packet
fragmentation and reassembly.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Run mtu-signalling [ apply-tlv ]

The node is enabled to send Label Mapping message carrying MTU TLVs.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.7.8 (Optional) Configuring an LDP Split Horizon Policy


An LDP split horizon policy can be configured to prevent an LSR from distributing
labels to a specified downstream LDP peer.

Context
By default, an LSR distributes labels to both upstream and downstream LDP peers,
speeding up LDP LSP convergence. If low-performance digital subscriber line
access multiplexers (DSLAMs) are deployed as access devices on an MPLS
network, you are advised to configure an LDP split horizon policy on an LSR to
allow the LSR to distribute labels only to its upstream LDP peers.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 488


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Run outbound peer { peer-id | all } split-horizon


An LDP split horizon policy is configured on the LSR, disabling the LSR from
distributing labels to a specified or all downstream LDP peers.
Step 4 Run commit
The configuration is committed.

----End

1.1.4.7.9 (Optional) Configuring an LDP Inbound Policy


An LDP inbound policy can be configured to prevent the establishment of
unwanted LSPs, reducing memory consumption.

Context
Generally, an LSR receives Label Mapping messages from all LDP peers. This
results in the establishment of numerous LSPs, wasting resources and leading to
unstable device running status, especially on low-performance devices. To address
these issues, an LDP inbound policy can be configured to limit Label Mapping
messages to be received, thereby reducing the number of LDP LSPs to be
established and memory resource consumption.
An LDP inbound policy restricts the receiving of LDP Label Mapping messages
based on the selected parameter:
● none: filters out all FECs. If this parameter is set, the specified peer does not
receive Label Mapping messages on any IGP route.
● host: allows only the FECs on host routes to pass. If this parameter is set, the
specified peer receives Label Mapping messages on host routes.
● ip-prefix: allows only the FECs on routes in a specified IP prefix list. If this
parameter is set, the specified peer receives Label Mapping messages on IGP
routes in the specified IP prefix list.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 Run ipv4-family
The MPLS-LDP-IPv4 view is displayed.
Step 4 Run inbound peer { peer-id | peer-group peer-group-name | all } fec { none |
host | ip-prefix prefix-name }
An inbound policy is applied to specified IGP routes to specified peers.
To apply a policy associated with the same FEC range to an LDP peer group or all
LDP peers receiving Label Mapping messages, specify either peer-group peer-
group-name or all in the command.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 489


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

If multiple inbound policies are configured for a specified peer, the earliest configuration
takes effect. For example, the following configurations are performed in this sequence:
inbound peer 2.2.2.2 fec host
inbound peer peer-group group1 fec none
As group1 also contains an LDP peer with peer-id of 2.2.2.2, the following inbound policy
takes effect:
inbound peer 2.2.2.2 fec host
If two inbound policies are configured one after the other and the peer parameter settings
in the two commands are the same, the latter configuration overwrites the former. For
example, the following configurations are performed in this sequence:
inbound peer 2.2.2.2 fec host
inbound peer 2.2.2.2 fec none
The second configuration overwrites the first one. This means that the following inbound
policy takes effect for the LDP peer with peer-id of 2.2.2.2:
inbound peer 2.2.2.2 fec none
If an inbound policy for all peers is configured and another inbound policy for a specified
peer or peer group is configured, the former policy has a higher priority, and the latter
policy does not take effect. For example:
inbound peer all fec none
inbound peer 2.2.2.2 fec host
The following inbound policy takes effect:
inbound peer all fec none
MPLS and MPLS LDP must be enabled globally before an inbound policy is configured.
To delete all inbound policies simultaneously, run the undo inbound peer all command.

Step 5 Run commit


The configuration is committed.

----End

1.1.4.7.10 (Optional) Configuring an LDP Outbound Policy


Configuring an LDP outbound policy helps prevent an LSR from establishing
unwanted LSPs, saving memory resources.

Context
Generally, an LSR sends Label Mapping messages to all its LDP peers. This results
in the establishment of numerous LSPs, wasting resources and leading to unstable
device running status, especially on low-performance devices. To address these
issues, an LDP outbound policy can be configured to limit Label Mapping
messages to be sent, thereby reducing the number of LDP LSPs to be established
and memory resource consumption.
The following parameters can be specified in an LDP outbound policy to limit
Label Mapping messages to be sent:
● none: filters out all FECs. If this parameter is specified, the device does not
send Label Mapping messages for IGP routes to specified peers.
● host: allows only the FECs on host routes to pass. If this parameter is
specified, the device sends Label Mapping messages only for host routes to
specified peers.
● ip-prefix: allows only the FECs on routes in a specified IP prefix list. If this
parameter is specified, the device sends Label Mapping messages only for IGP
routes in the specified IP prefix list to specified peers.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 490


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 (Optional) Run ipv4-family
The MPLS-LDP-IPv4 view is displayed.
Step 4 Perform either of the following steps to apply the outbound policy that allows
Label Mapping messages for specified IGP routes or BGP labeled routes to be sent
to a specified LDP peer:
● Run the outbound peer { peer-id | peer-group peer-group-name | all } fec
{ none | host | ip-prefix prefix-name } command to apply an outbound policy
to specified IGP routes to specified peers.
● Run the outbound peer { peer-id | peer-group peer-group-name | all } bgp-
label-route { none | ip-prefix prefix-name } command to apply an outbound
policy to specified BGP labeled routes to specified peers.
If FECs in the Label Mapping messages to be sent to an LDP peer group or all LDP
peers are in the same range, specify either peer-group peer-group-name or all in
the command.

NOTE

If multiple outbound policies are configured for a specified LDP peer, the earliest
configuration takes effect. For example, the following configurations are performed in
sequence:
outbound peer 2.2.2.2 fec host
outbound peer peer-group group1 fec none
As group1 also contains an LDP peer with peer-id of 2.2.2.2, the following outbound policy
takes effect for the peer:
outbound peer 2.2.2.2 fec host
If two outbound policies are configured in sequence and the peer parameters in the two
commands are the same, the latter configuration overwrites the former. For example, the
following configurations are performed in sequence:
outbound peer 2.2.2.2 fec host
outbound peer 2.2.2.2 fec none
The second configuration overwrites the first one. This means that the following outbound
policy takes effect for the LDP peer with peer-id of 2.2.2.2:
outbound peer 2.2.2.2 fec none
MPLS and MPLS LDP must be enabled globally before an outbound policy is configured.
To delete all outbound policies simultaneously, run the undo outbound peer all command.

Step 5 Run commit


The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 491


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.7.11 (Optional) Configuring a Policy of Triggering LSP Establishment Using


IGP Routes
A policy can be configured to allow LDP to use eligible static and IGP routes to
trigger LSP establishment.

Context
A policy can be configured to allow LDP to use eligible static and IGP routes to
trigger the establishment of public-network ingress and egress LSPs.
NOTE

A policy for triggering LSP establishment can be configured in either the MPLS or MPLS-
LDP-IPv4 view. If such a policy is configured in both views, the configuration in the MPLS-
LDP-IPv4 view takes effect.
The LSR must have route entries that exactly match the FECs for the LSPs to be established.

Procedure
● Configure a policy for triggering LSP establishment in the MPLS view.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run lsp-trigger { all | host | ip-prefix ip-prefix-name | none }
The policy of triggering LSP establishment using static and IGP routes is
configured.

▪ If the all parameter is specified, LDP is allowed to use IGP routes to


trigger LSP establishment. However, LDP is not allowed to use public-
network BGP routes or default routes to trigger LSP establishment.

▪ If the ip-prefix parameter is specified, LDP is allowed to use FECs


matching a specified IP address prefix list to trigger LSP
establishment.

▪ If the none parameter is specified, LDP is not allowed to trigger LSP


establishment.
NOTE

● By default, 32-bit addresses are used to trigger LDP to establish LSPs.


The default configuration is recommended. Running the lsp-trigger all
command is not recommended, as this command enables LDP LSPs to
be established for all static routes and IGP routes. As a result, a large
number of LSPs are established, consuming excessive label resources and
slowing down LSP convergence on the entire network. You are advised
to run the lsp-trigger ip-prefix command instead.
● If the triggering policy is changed from all to host, LSPs that have been
established using host routes are not reestablished.
d. Run proxy-egress disable
A policy for triggering proxy egress LSP establishment is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 492


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

If a policy allows LDP to establish LSPs for static and IGP routes or for
routes within a specified IP prefix list, the policy also allows LDP to
establish proxy egress LSPs. However, these proxy egress LSPs may be
useless and unnecessarily consume system resources. To prevent such an
issue, run this command to disable the device from establishing proxy
egress LSPs.
e. Run commit
The configuration is committed.
● Configure a policy for triggering LSP establishment in the MPLS-LDP-IPv4
view.
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run proxy-egress disable
A policy for triggering proxy egress LSP establishment is configured.
If a policy allows LDP to establish LSPs for static and IGP routes or for
routes within a specified IP prefix list, the policy also allows LDP to
establish proxy egress LSPs. However, these proxy egress LSPs may be
useless and unnecessarily consume system resources. To prevent such an
issue, run this command to disable the device from establishing proxy
egress LSPs.
d. Run quit
Return to the system view.
e. Run mpls ldp
The MPLS-LDP view is displayed.
f. Run ipv4-family
The MPLS-LDP-IPv4 view is displayed.
g. Run lsp-trigger { all | host | ip-prefix prefix-name | none }
A policy for triggering LSP establishment is configured.

▪ If the all parameter is specified, LDP is allowed to use IGP routes to


trigger LSP establishment. However, LDP is not allowed to use public-
network BGP routes or default routes to trigger LSP establishment.

▪ If the ip-prefix parameter is specified, LDP is allowed to use FECs


matching a specified IP address prefix list to trigger LSP
establishment.

▪ If the none parameter is specified, LDP is not allowed to trigger LSP


establishment.
NOTE

If the triggering policy is changed from all to host, LSPs that have been
established using host routes are not reestablished.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 493


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

h. Run commit
The configuration is committed.
----End

1.1.4.7.12 (Optional) Configuring a Policy of Triggering LSP Establishment Using


Labeled BGP Routes of the Public Network
A policy can be configured to allow LDP to use eligible labeled BGP routes of the
public network to trigger LSP establishment.

Context
A policy can be configured to enable LDP to use eligible routes to trigger the
establishment of public-network ingress and egress LSPs.
Both the lsp-trigger bgp-label-route and lsp-trigger commands can be used to
configure policies to trigger the establishment of LDP LSPs. The former applies
only to labeled BGP routes of the public network, and the latter applies to static
and IGP routes.

NOTE

During LDP GR, changing the policy for triggering LSP establishment does not take effect.

Procedure
Step 1 Configure a policy for triggering LSP establishment in the MPLS view.
1. Run system-view
The system view is displayed.
2. Run mpls
The MPLS view is displayed.
3. Run lsp-trigger bgp-label-route [ ip-prefix ip-prefix-name ] not-only-host
A policy of triggering LSP establishment using labeled BGP routes of the
public network is configured.
– If the ip-prefix parameter is specified, LDP can only use labeled BGP
routes of the public network that match the IP prefix list to trigger LSP
establishment.
– If the not-only-host parameter is specified, LDP can use all labeled BGP
routes of the public network, including non-host BGP routes, to trigger
LSP establishment.
4. Run commit
The configuration is committed.

----End

1.1.4.7.13 (Optional) Configuring a Policy for Triggering Transit LSP Establishment


A policy for triggering the establishment of transit LSPs can be configured to
enable LDP to use routes that meet the specified policy to establish transit LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 494


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
After MPLS LDP is enabled, LDP LSPs are automatically established, including a
large number of unnecessary transit LSPs, which wastes resources. A policy for
triggering transit LSP establishment can be configured, allowing LDP to establish
transit LSPs only for eligible routes. The local node does not send Label Mapping
messages upstream for the routes that are filtered out. This limits the number of
LSPs to be established, thereby reducing network resource consumption.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 (Optional) Run ipv4-family
The MPLS-LDP-IPv4 view is displayed.
Step 4 Run propagate mapping for ip-prefix ip-prefix-name
A policy for triggering transit LSP establishment is configured.
The command takes effect in both the MPLS-LDP and MPLS-LDP-IPv4 views. If the
command is configured in both views, only the latter configuration takes effect.
Step 5 Run commit
The configuration is committed.

----End

1.1.4.7.14 (Optional) Disabling LDP LSP Flapping Suppression


LDP LSP flapping suppression helps effectively prevent label flapping. This function
can be disabled.

Context
After an LDP LSP goes Up, it goes Down due to a protocol or interface failure. A
device attempts to reestablish the LDP LSP, which maximizes the LDP LSP protocol
hard convergence. If LDP LSP alternates between Up and Down when a
downstream node frequently sends a label to an upstream node or a label is
withdrawn, CPU usage increases. To prevent label suppression, configure LDP LSP
flapping suppression.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 495


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Run mpls ldp


MPLS LDP is enabled globally.
Step 4 Run protocol-packets suppress disable
LDP LSP flapping suppression is disabled.

Step 5 Run commit


The configuration is committed.

----End

1.1.4.7.15 (Optional) Disabling a Device from Forwarding Unknown TLVs


A local device can be disabled from forwarding unknown TLVs to peers.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
MPLS LDP is globally enabled.
Step 3 Run propagate mapping unknown-tlv disable
The device is disabled from forwarding unknown TLVs.
If an upstream device cannot process unknown TLVs, network problems may
occur. In this case, you can run this command to disable the local device from
forwarding unknown TLVs.
Step 4 Run commit
The configuration is committed.

----End

1.1.4.7.16 (Optional) Configuring the Policy for Triggering Interworking Between


LDP LSPs and SR LSPs
Configure the policy for triggering interworking between LDP LSPs and SR LSPs,
allowing SR LSPs to interwork with proxy egress LSPs and transit LSPs that are
established over non-local host routes with a 32-bit mask.

Context
When an LDP network is connected with an SR network, it is required that LDP
LSPs interwork with SR LSPs, so that traffic on LDP LSPs can be further forwarded
on SR LSPs when the traffic enters the SR network. To meet this requirement,
configure the policy for triggering interworking between LDP LSPs and SR LSPs,
allowing SR LSPs to interwork with proxy egress LSPs and transit LSPs that are
established over non-local host routes with a 32-bit mask. If they interwork
successfully, traffic on such LDP LSPs can be further forwarded on SR LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 496


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
The MPLS view is displayed.
Step 3 Run lsp-trigger segment-routing-interworking best-effort host
The policy that triggers interworking between SR LSPs and proxy egress LSPs and
transit LSPs that are established over non-local host routes with a 32-bit mask is
configured.
Step 4 Run commit
The configuration is committed.

----End

1.1.4.7.17 Verifying the Configuration


After configuring LDP LSPs, you can view information about LDP configurations,
LDP LSPs, and LSPs.

Prerequisites
All LDP LSP configurations have been completed.

Procedure
● Run the display mpls ldp [ all | all verbose ] command to check LDP
information.
● Run the display mpls ldp lsp [ destination-address mask-length | all ]
command to check information about LDP LSPs.
● Run the display mpls ldp lsp inbound-policy command to check information
about the liberal LSPs that have passed an inbound policy.
● Run the display mpls lsp [ verbose ] command to check LSP information.
● Run the display mpls ldp lsp fault-analysis ip-address mask command to
check the cause for an LDP LSP establishment failure.
----End

1.1.4.8 Configuring LDP Extension for Inter-Area LSPs


Before configuring LDP extension for inter-area LSPs, familiarize yourself with the
usage scenario, complete the pre-configuration tasks, and obtain the data
required for the configuration.

Usage Scenario
On a large-scale network, multiple IGP areas need to be configured for flexible
deployment and fast convergence. To prevent excessive resource consumption
caused by a large number of routes, an area border router (ABR) needs to

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 497


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

summarize the routes in an area and advertise the summary routes to neighboring
IGP areas. By default, when establishing an LSP, LDP searches the routing table for
the route that exactly matches the FEC carried in a received Label Mapping
message. For summary routes, LDP can establish only liberal LSPs, but cannot
establish LDP LSPs across IGP areas.

In this case, you can run the longest-match command to enable LDP to search for
routes based on the longest match rule and establish inter-area LDP LSPs.

Pre-configuration Tasks
Before configuring LDP extension for inter-area LSPs, complete the following task:

● Configure addresses for interfaces to ensure that neighboring devices are


reachable at the network layer.
● Configure an IGP to advertise the route to the network segment of each
interface and to advertise the host route to each LSR ID.
● Configure a policy for summarizing routes.
● Configure MPLS and MPLS LDP.

1.1.4.8.1 Configuring LDP Extension for Inter-Area LSPs


LDP extension for inter-area LSPs can be configured on the ingress and transit
nodes.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Run longest-match

LDP is configured to search for routes based on the longest match rule to
establish LSPs.

NOTE

This command cannot be run during LDP GR.

----End

1.1.4.8.2 Verifying the Configuration


After configuring LDP extension for inter-area LSPs, you can view information
about the establishment of inter-Area LSPs.

Prerequisites
LDP extension for inter-area LSPs has been configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 498


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
● Run the display mpls lsp to check the establishment of inter-area LSPs after
LDP is configured to search for routes based on the longest match rule to
establish LSPs.
----End

1.1.4.9 Configuring LDP Multi-Instance


You need to configure LDP multi-instance when deploying BGP/MPLS IP VPN.

Usage Scenario
LDP multi-instance is mainly used in MPLS L3VPN scenarios of carrier networks.
To configure LDP multi-instance on a BGP/MPLS IP VPN network, bind LDP to a
created VPN instance. Disabled

Pre-configuration Tasks
Before configuring LDP multi-instance, complete the following tasks:
● Enable MPLS.
● Enable MPLS LDP.
● Configure an IP VPN instance.

1.1.4.9.1 Enabling LDP Multi-Instance


This section describes how to configure LDP multi-instance. Before you configure
LDP multi-instance, enable LDP for the specified VPN instance on each node.

Context
To configure the transport address for an LDP instance, you must use the IP
address of the interfaces that are bound to the same VPN instance.

NOTE

In LDP multi-instance scenarios, you can use the interface address to establish a session.

Perform the following steps on each LSR in an MPLS domain:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp vpn-instance vpn-instance-name
LDP is enabled for the specified VPN instance, and the MPLS-LDP-VPN instance
view is displayed.
For LDP-enabled interfaces, note the following:
● Configurations in the MPLS-LDP-VPN instance view only take effect on LDP-
enabled interfaces that are bound to the same VPN instance.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 499


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Configurations in the MPLS LDP view do not take effect on LDP-enabled


interfaces that are bound to the VPN instance.
Step 3 (Optional) Run lsr-id lsr-id
An LSR ID is configured for the LDP VPN instance.

NOTE

In most applications, use the default LDP LSR ID. When VPN instances are used, such as a
BGP/MPLS VPN, if the VPN address space and public network address space overlap, set
LSR IDs for LDP instances so that TCP connections for LDP sessions can be properly
established.

----End

1.1.4.9.2 (Optional) Enabling the Function to Trigger Trap Messages Only for
Public Network LDP Sessions
In an LDP multi-instance scenario, a device can be enabled to trigger trap
messages only for public network LDP sessions, which prevents a failure to
distinguish trap messages for both the private and public network sessions with
the same ID.

Context
In an LDP multi-instance scenario, multiple LDP instances may contain sessions of
the same ID. Since trap messages do not contain VPN instance information, these
trap messages carrying the same session ID cannot be differentiated based on
VPN instances. To distinguish trap messages for public and private network
sessions with the same ID, run the session-state-trap public-only command to
enable a device to generate trap messages only for public network LDP sessions.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 Run session-state-trap public-only
The device is enabled to generate trap messages only for public network LDP
sessions.
Step 4 Run commit
The configuration is committed.

----End

1.1.4.9.3 Verifying the Configuration


After the LDP multi-instance is configured, verify information about LDP of the
specified VPN instance.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 500


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Prerequisites
The LDP multi-instance function has been configured.

Procedure
● Run the display mpls ldp vpn-instance vpn-instance-name command to
check information about LDP of a specified VPN instance.
----End

1.1.4.10 Configuring IGP-based Automatic LDP Configuration


IGP-based automatic LDP configuration reduces the configuration workload and
ensures configuration correctness.

Usage Scenario
To configure IGP-based MPLS LDP, you need to enable MPLS LDP globally and
then enable MPLS LDP on all interfaces that require the function. If a large
number of interfaces require the function, this configuration method is time-
consuming and prone to configuration errors.
To address this issue, configure IGP-based automatic LDP configuration, allowing
MPLS LDP to be enabled automatically on IGP-capable interfaces after MPLS LDP
is enabled globally.

Pre-configuration Tasks
Before configuring IGP-based automatic LDP configuration, complete the
following tasks:
● Configure basic IGP functions.
● Enable MPLS and MPLS LDP globally.

Procedure
● Configure IS-IS-based automatic LDP configuration.
a. Run system-view
The system view is displayed.
b. Run isis [ process-id ]
The IS-IS view is displayed.
c. Run mpls ldp auto-config
Automatic LDP configuration is enabled on IS-IS interfaces.
After the command is run, MPLS LDP is enabled automatically on all
interfaces which can establish IS-IS neighbor relationships in the IS-IS
process. If you want to disable MPLS LDP on an interface, run the isis
mpls ldp auto-config disable command in the interface view.
d. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 501


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Configure OSPF-based automatic LDP configuration.


a. Run system-view

The system view is displayed.


b. Run ospf

The OSPF view is displayed.


c. Run mpls ldp auto-config

Automatic LDP configuration is enabled on OSPF interfaces.

After the command is run, MPLS LDP is enabled automatically on all


interfaces which can establish OSPF neighbor relationships in the OSPF
process. If you want to disable MPLS LDP on an interface, run the ospf
mpls ldp auto-config disable command in the interface view.
d. Run commit

The configuration is committed.

----End

Verifying the Configuration


After completing the configuration, verify the configuration.
● Run the display mpls ldp interface [ interface-type interface-name | verbose
| all ] command to check information about MPLS LDP-enabled interfaces.

1.1.4.11 Configuring Dynamic BFD to Monitor an LDP Tunnel


Dynamic BFD can be configured to establish a dynamic BFD session to monitor
both primary and backup LDP LSPs in an LDP tunnel. If BFD detects a fault, BFD
instructs a specific LDP upper-layer application to perform a protection switchover.

Usage Scenario
When LDP LSPs transmit application traffic, for example, VPN traffic, to improve
network reliability, LDP FRR and an LDP upper-layer protection mechanism, such
as VPN FRR or VPN equal-cost multipath (ECMP), are used. BFD for LDP LSP only
detects primary LSP faults and switches traffic to an FRR LSP. If the primary and
FRR LSP fail simultaneously, the BFD mechanism does not take effect. In this
situation, LDP can instruct its upper-layer application to perform a protection
switchover only after LDP detects the FRR LSP failure. As a result, a great number
of packets are dropped.
NOTE

For applications, for example, VPN, which are transmitted over LDP LSPs, the primary and
backup LDP LSPs are collectively called LDP tunnels.

To minimize packet loss, dynamic BFD can be configured to establish dynamic BFD
sessions to monitor both the primary and FRR LSPs. If both primary and FRR LSPs
fail, BFD rapidly detects the failures and instructs a specific LDP upper-layer
application to perform a protection switchover.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 502


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Pre-configuration Tasks
Before configuring dynamic BFD to monitor an LDP tunnel, complete the following
tasks:
● Configure basic MPLS functions.
● Configure MPLS LDP.
● (Optional) Configure an IP address prefix list if it is used to trigger LDP LSP
establishment.
● (Optional) Configure a FEC list if it is used to trigger LDP LSP establishment.

1.1.4.11.1 Enabling an MPLS Device to Dynamically Establish a BFD Session


A dynamic BFD session that monitors both the primary and FRR LSPs can be
established only after an MPLS device is enabled to dynamically establish the BFD
session.

Procedure
● Perform the following steps on the ingress:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is globally enabled.
c. Run quit
Return to the system view.
d. Run mpls
The MPLS view is displayed.
e. Run mpls bfd enable
The capability of dynamically establishing a BFD session is configured.
The command does not create a BFD session.
f. Run commit
The configuration is committed.
● Perform the following steps on the egress:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is globally enabled, and the BFD view is displayed.
c. Run mpls-passive
The capability of passively creating a BFD session is configured.
After this command is run, a BFD session will be established only after
the egress receives an LSP ping request packet that carries a BFD TLV
from the ingress.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 503


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

d. Run commit

The configuration is committed.

----End

1.1.4.11.2 Configuring a Policy for Triggering Dynamic BFD for LDP Tunnel
Either the host address-based policy or FEC list-based policy can be used to
dynamically establish BFD sessions to monitor LDP tunnels.

Context
One of the following trigger policies can be used to establish BFD sessions to
monitor LDP tunnels:

● Host address-based policy: used when all host addresses are available to
trigger the creation of BFD sessions.
● IP address prefix-based policy: used when only FEC entries that match a
specified IP address prefix can be used to trigger the creation of BFD sessions.
● FEC list-based policy: used when only some host addresses are available to
establish BFD sessions. The FEC list contains specified host addresses.

Perform the following steps on the ingress on which an LDP tunnel to be


monitored is established:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls bfd-trigger-tunnel { host | ip-prefix ip-prefix-name | fec-list list-


name }

The policy for establishing a session of dynamic BFD for LDP LSP is configured.

A BFD session can be created only after this command is executed.

If no parameter is specified, the host address-based policy is used by default.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.11.3 (Optional) Modifying BFD Parameters


BFD parameters, such as BFD detection intervals and detection multipliers, can be
modified.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 504


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
Perform the following steps on the ingress.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run bfd

The BFD view is displayed.

Step 3 Run mpls ping interval interval

The interval at which LSP Ping packets are sent is changed.

Step 4 Run quit

Exit from the BFD view.

Step 5 Run mpls

The MPLS view is displayed.

Step 6 (Optional) Run mpls bfd { min-tx-interval min-tx-interval-value | min-rx-


interval min-rx-interval-value | detect-multiplier detect-multiplier-value }*

BFD parameters are set.

Effective local interval at which BFD packets are sent = MAX { Locally configured
interval at which BFD packets are sent, Remotely configured interval at which BFD
packets are received}

Effective local interval at which BFD packets are received = MAX { Remotely
configured interval at which BFD packets are sent, Locally configured interval at
which BFD packets are received }

Local BFD detection period = Actual local interval at which BFD packets are
received x Remotely configured BFD detection multiplier

Therefore, you can adjust the minimum interval at which BFD packets are sent,
the minimum interval at which BFD packets are received, and the detection
multiplier only on the ingress to update BFD detection time parameters on both
the ingress and egress.

Step 7 (Optional) Run mpls bfd-tunnel { min-tx-interval min-tx-interval-value | min-rx-


interval min-rx-interval-value | detect-multiplier detect-multiplier-value }*

BFD parameters are set.

Effective local interval at which BFD packets are sent = MAX { Locally configured
interval at which BFD packets are sent, Remotely configured interval at which BFD
packets are received}

Effective local interval at which BFD packets are received = MAX { Remotely
configured interval at which BFD packets are sent, Locally configured interval at
which BFD packets are received }

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 505


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Local BFD detection period = Actual local interval at which BFD packets are
received x Remotely configured BFD detection multiplier
If both the mpls bfd-tunnel and mpls bfd commands are run, the parameters
configured using the mpls bfd-tunnel command take precedence over those
configured using the mpls bfd command.
Step 8 Run commit
The configuration is committed.

----End

1.1.4.11.4 Verifying the Configuration


After configuring dynamic BFD to monitor an LDP tunnel, you can view BFD
session information on the ingress on which an LDP tunnel is established.

Prerequisites
The dynamic BFD for LDP tunnel function has been configured.

Procedure
● Run the display mpls bfd session protocol ldp [ fec ip-address ] [ bfd-type
ldp-tunnel ] [ verbose ] command to check information about all BFD
sessions that monitor LDP tunnels on the ingress.
----End

1.1.4.12 Configuring LDP Bit Error Detection


LDP bit error detection enables a device to detect bit errors on LDP LSPs and
trigger VPN service switchovers, which improves service reliability.

Usage Scenario
When LDP LSPs are established to transmit services with high quality
requirements, bit errors on LSPs may cause service interruptions. To detect bit
errors, run the corresponding command for LDP LSPs. If a node on an LSP detects
bit errors, LDP notifies the VPN services of the bit error rate and triggers a service
switchover, which guarantees service quality.

Pre-configuration Tasks
Before configuring LDP bit error detection, complete the following task:
● Configure LDP LSPs.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bit-error-detection level level-number threshold switch switch-coe switch-
pow resume resume-coe resume-pow

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 506


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

A level is set for LDP bit error rate thresholds.


A maximum of three levels can be set for bit error rate thresholds. The parameter
description is as follows:
Parameter Description Value

level-number Specifies the level value The value is an integer


for LDP bit error rate ranging from 1 to 3.
thresholds.

switch switch-coe Specifies an LDP bit error The switch-coe value is


switch-pow rate threshold for an integer ranging from
triggering a service 1 to 9.
switchover. Switchover The switch-pow value is
threshold = switch-coe × an integer ranging from
10-switch-pow The switch- 1 to 7.
coe parameter specifies
the protection switchover
coefficient, and the
switch-pow parameter
specifies the protection
switchover power.

resume resume-coe Specifies an LDP bit error The resume-coe value is


resume-pow rate threshold for an integer ranging from
triggering a service 1 to 9.
switchback. Switchback The resume-pow value is
threshold = resume-coe an integer ranging from
× 10-resume-pow The 1 to 7.
resume-coe parameter
specifies the protection
switchback coefficient,
and the resume-pow
parameter specifies the
protection switchback
power.
NOTE
The switchback threshold
must be smaller than or
equal to the switchover
threshold.

Step 3 Run mpls ldp


The MPLS-LDP view is displayed.
Step 4 Run bit-error-detection level level-number
LDP bit error detection is enabled.
Step 5 Run commit
The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 507


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Verifying the Configuration


After completing the configuration, you can run the following command to verify
the configuration.
● Run the display mpls ldp adjacency [ interface interface-type interface-
number | remote ][ peer peer-id ] verbose command to check the bit error
rate of LDP.

1.1.4.13 Configuring LDP Auto FRR


LDP Auto Fast Reroute (FRR) can be configured to rapidly trigger a service
switchover if a fault occurs, which improves network reliability.

Usage Scenario
On an MPLS network with a backup link, if a link fault occurs, Interior Gateway
Protocol (IGP) routes converge and routes related to the backup link become
available. Traffic on an LDP LSP can be switched to a backup path only after IGP
routes are converged successfully. Before the switchover is complete, traffic is
interrupted. To prevent traffic interruptions, LDP FRR can be configured.

LDP FRR uses the liberal label retention mode, obtains a liberal label, and applies
for a forwarding entry associated with the label. It then forwards the forwarding
entry to the forwarding plane as a backup forwarding entry used by the primary
LSP. On the network enabled with LDP FRR, the interface can detect a fault that
occurs on itself, and a BFD session associated with the interface can also detect a
failure in the interface or the primary LSP established on the interface. If a fault
occurs, LDP FRR is notified of the failure and rapidly forwards traffic to a backup
LSP, protecting traffic on the primary LSP. The traffic switchover is performed
within 50 milliseconds, which minimizes the traffic interruption time.

LDP Auto FRR depends on IGP FRR. When IGP FRR is enabled, LDP Auto FRR will
be automatically enabled, and a backup LSP will be established based on a
specific policy.

LFA Auto FRR cannot be used to calculate alternate links on large-scale networks,
especially on ring networks. To address this problem, enable Remote LFA Auto
FRR.

Pre-configuration Tasks
Before configuring LDP Auto FRR, complete the following tasks:

● Assign an IP address to each interface to implement IP connectivity.


● Configure an IGP to advertise the route to each network segment of each
interface and to advertise the host route to each LSR ID.
● Configure an LDP LSP to establish a primary LDP LSP.
● Configure IGP Auto FRR (IS-IS Auto FRR or OSPF IP FRR).
● Before you configure remote LFA FRR, configure LDP LSPs to perform
recursion hop by hop between the source node and PQ node. That is,
configure a local LDP session between each pair of directly connected nodes
along the link from the source node to PQ node.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 508


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.13.1 Enabling LDP Auto FRR


If LDP auto FRR is needed, configure it on the ingress or a transit node of a tunnel.

Context
LDP auto FRR depends on IGP auto FRR. LDP auto FRR will be automatically
enabled after IGP auto FRR is enabled. To change a policy for triggering LDP LSP
establishment, you can run the auto-frr lsp-trigger command.

NOTE

Before you enable remote LFA FRR, configure the remote LFA algorithm when you
configure IGP auto FRR.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 (Optional) Run ipv4-family
The MPLS-LDP-IPv4 view is displayed.
Step 4 (Optional) Run auto-frr lsp-trigger { all | host | ip-prefix ip-prefix-name | none }
A policy for triggering LDP to establish backup LSPs is configured.

NOTE

If both the auto-frr lsp-trigger and lsp-trigger commands are run, the established backup
LSPs satisfy both the policy for triggering LDP LSP establishment and the policy for
triggering backup LDP LSP establishment.

This command can be run in both the MPLS-LDP and MPLS-LDP-IPv4 views. If it is
run in both views, only the later configuration takes effect.
Step 5 To enable remote LFA FRR, perform the following steps in the MPLS-LDP view of a
PQ node:
1. Run quit
Return to the MPLS-LDP view.
2. Run accept target-hello { all | peer-group ip-prefix ip-prefix-name }
Automatic remote LDP session establishment upon the receiving of a Targeted
Hello message is enabled.
In a Remote LFA FRR scenario, after an ingress uses the Remote LFA
algorithm to calculate a PQ node, LDP automatically establishes a remote
LDP session between the ingress and the PQ node. To enable the PQ node to
implement this function, run the accept target-hello command on the PQ
node.
In the preceding command:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 509


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

– all: enables a PQ node to establish remote LDP sessions based on all


received Targeted Hello messages.
– peer-group ip-prefix ip-prefix-name: enables a PQ node to establish
remote LDP sessions based on Targeted Hello messages sent by LDP
peers that meet a specified IP prefix list.
NOTE

After the accept target-hello command is run, the PQ node is prone to Targeted
Hello packet-based attacks. If the PQ node receives a large number of Targeted Hello
packets, it establishes many remote LDP sessions. To prevent such an issue, perform
either of the following operations:
– Specify the peer-group ip-prefix ip-prefix-name parameter to limit the LDP peers
with which a PQ node can establish remote LDP sessions.
– Configure LDP security authentication for LDP peers in batches. For details, see
1.1.4.21 Configuring LDP Security Features.
3. Run send-message address all-loopback

The PQ node is enabled to advertise all local loopback interface addresses to


LDP peers.

In a remote LFA FRR scenario, LDP uses the PQ node's address calculated
using an IGP to establish a remote LDP session between a node and the PQ
node. Then the two nodes establish a remote LFA FRR LSP over the session.
The PQ node's IP address can be any loopback interface's IP address or an LSR
ID. To advertise the loopback addresses to LDP peers, run this command on a
PQ node so that a remote LFA FRR LSP can be established.

Step 6 Run commit

The configuration is committed.

Step 7 (Optional) Enable poison reverse for LDP FRR/ECMP.


1. Run interface interface-type interface-number

The interface or sub-interface view is displayed.

You can enter the Eth-Trunk interface view, Eth-Trunk sub-interface view, POS
interface view, IP-Trunk interface view, GE interface view, or GE sub-interface
view.
2. Run mpls poison-reverse enable

Poison reverse is enabled for LDP FRR/ECMP.

In an FRR or TI-LFA scenario on an LDP/SR-MPLS BE ring network, if the


primary path fails, the ingress switches traffic from the primary path to the
backup path. In this case, a transit node sends traffic back to the ingress
before routes are converged. As a result, a traffic loop occurs. To address this
issue, run this command on the inbound interface of the transit node. If the
transit node finds that the outbound interface of traffic is the same as the
inbound interface of the traffic, the transit node switches traffic from the
primary path to the backup path in a timely manner, blocking looped traffic.

This command also applies to the scenario where two ECMP paths are formed
on an LDP/SR-MPLS BE ring network to resolve similar issues.
3. Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 510


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.

----End

1.1.4.13.2 (Optional) Configuring Graceful Deletion for LDP Sessions


LDP graceful deletion can be configured to speed up LDP FRR traffic switching.

Context
LDP graceful deletion can be configured in the LDP-IGP synchronization or LDP
FRR scenario to speed up traffic switching. It helps implement uninterrupted traffic
transmission during traffic switching, which improves reliability of the entire
network.
If both the primary link and the LDP session on that link also go down, LDP
immediately instructs the upstream device to withdraw labels and triggers LDP
Auto FRR. LSP convergence on the backup link requires LDP to distribute labels to
the upstream device again, which prolongs convergence and FRR traffic switching.
As a result, packet loss occurs.
If LDP graceful deletion is configured and the LDP session goes down, LDP delays
deleting the LDP session and keeps the relevant labels and LSP. The LSP on the
backup link does not require LDP to distribute labels to the upstream device again,
which shortens FRR traffic switching and reduces packet loss.
Perform the following configuration on the LDP FRR-enabled LSR.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 graceful-delete
LDP graceful deletion is enabled.
Step 4 (Optional) Run graceful-delete timer timer
The graceful deletion timer value is set.
After the LDP session goes down, forwarding entries on the LSR remain before the
graceful deletion timer expires.

NOTE

If the value of the graceful delete timer is too large, the invalid LSP will be kept for a long time,
consuming system resources.

Step 5 Run commit


The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 511


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.13.3 (Optional) Enabling the Coexistence of ECMP and FRR


The coexistence of ECMP and FRR can be enabled so that protection paths can be
established for ECMP paths, preventing traffic loss stemming from an ECMP path
disconnection.

Context
On a network with ECMP enabled, the same types of devices reside on both end
of ECMP links. If an optical fiber between the two devices is disconnected,
network-wide protection fails because backup path calculation is not supported.
To prevent traffic loss from such a disconnection, enable the coexistence of ECMP
and FRR so that protection paths can be established for ECMP paths.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 Run ecmp-frr-coexist enable
The coexistence of ECMP and FRR is enabled.
Step 4 Run commit
The configuration is committed.

----End

1.1.4.13.4 (Optional) Configuring the Function to Report Remote LDP Session


Down Traps Generated Due to RLFA Route Deletion
In a remote LFA FRR scenario, enable the function to report remote LDP session
down traps generated due to RLFA route deletion if the function is required.

Context
After an ingress uses the remote LFA algorithm to calculate a PQ node, the ingress
establishes a remote LDP session with the PQ node. The remote LDP session goes
down when the RLFA route is deleted. Such session down issues occur frequently
during remote LFA FRR convergence and do not harm service deployment.
Therefore, you can configure the device not to report a trap when a remote LDP
session goes down.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 512


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Run session-state-trap remote-lfa-disable


The function to report remote LDP session down traps generated due to RLFA
route deletion is disabled.
Step 4 Run commit
The configuration is committed.

----End

1.1.4.13.5 Verifying the Configuration


After configuring LDP Auto FRR, you can view information about the LDP Auto
FRR LSP.

Prerequisites
LDP Auto FRR has been configured.

Procedure
● Run the display mpls lsp command to check information about LSPs
generated after LDP Auto FRR is enabled.
● Run the display mpls ldp event session-down verbose command to check
LDP session down causes. The cause value IGP delete the RLFA IID indicates
that an LDP session is down because the RLFA route is deleted.
● Run the display mpls ldp event adjacency-down verbose command to
check adjacency down causes. The cause value IGP delete the RLFA IID
indicates that the adjacency is down because the RLFA route is deleted.
----End

1.1.4.14 Configuring Static BFD to Monitor an LDP LSP


Static bidirectional forwarding detection (BFD) can be configured to detect faults
in an LDP LSP.

Usage Scenario
BFD implements fast detection at the millisecond level. To enable a device to
rapidly monitor whether LDP LSPs are faulty, establish BFD sessions.
When configuring static BFD to monitor an LDP LSP, note the following:
● You can bind a BFD session to an LDP LSP only on the ingress.
● An LDP LSP to be monitored by static BFD can be established only using host
routes.

Pre-configuration Tasks
Before configuring static BFD to monitor an LDP LSP, complete the following tasks:
● Configure network layer parameters to implement network layer connectivity.
● Enable MPLS LDP on each node and set up an LDP session.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 513


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Configure an LDP LSP.

1.1.4.14.1 Enabling BFD Globally


BFD must be enabled globally before BFD configurations are performed.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.
Step 3 Run commit
The configuration is committed.

----End

1.1.4.14.2 Setting BFD Parameters on the Ingress


BFD parameters must be configured on the ingress before a BFD session is
established to monitor an LDP LSP.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bfd session-name bind ldp-lsp peer-ip ip-address nexthop ip-address
[ interface interface-type interface-number ]
A BFD session is bound to a dynamic LSP.
Step 3 Run discriminator local discr-value
A local discriminator is configured for the BFD session.
Step 4 Run discriminator remote discr-value
A remote discriminator is configured for the BFD session.

NOTE

The local discriminator of the local device and the remote discriminator of the remote
device are the same. The remote discriminator of the local device and the local
discriminator of the remote device are the same. A discriminator inconsistency causes the
BFD session to fail to be established.

Step 5 Run process-pst


The BFD session is allowed to modify the port or link state table upon detection of
a fault.
If the BFD session bound to a trunk or VLANIF member interface is enabled to
modify the port state table and the corresponding main interface is configured

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 514


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

with a BFD session, you must configure a wait to restore (WTR) time for the BFD
session bound to the main interface. This prevents the BFD session bound to the
main interface from flapping when its member interface joins or leaves the
interface.

Step 6 (Optional) Run min-tx-interval tx-interval

The minimum interval at which the local device sends BFD packets is changed.

If the reverse link is an IP link, this command cannot be run.

Effective local interval at which BFD packets are sent = MAX { Locally configured
interval at which BFD packets are sent, Remotely configured interval at which BFD
packets are received }

Effective local interval at which BFD packets are received = MAX { Remotely
configured interval at which BFD packets are sent, Locally configured interval at
which BFD packets are received }

Local BFD detection period = Actual local interval at which BFD packets are
received x Remotely configured BFD detection multiplier

For example, if: On the local device, the intervals at which BFD packets are sent
and received are 200 ms and 300 ms, respectively, and the detection multiplier is
4; on the remote device, the intervals at which BFD packets are sent and received
are 100 ms and 600 ms, respectively, and the detection multiplier is 5. Then:

● On the local device, the actual interval for sending BFD packets is 600 ms
calculated using the formula MAX { 200 ms, 600 ms }, the interval for
receiving BFD packets is 300 ms calculated using the formula MAX { 100 ms,
300 ms }, and the detection period is 1500 ms (300 ms × 5).
● On the remote device, the actual interval for sending BFD packets is 300 ms
calculated using the formula MAX { 100 ms, 300 ms }, the interval for
receiving BFD packets is 600 ms calculated using the formula MAX { 200 ms,
600 ms }, and the detection period is 2400 ms (600 ms × 4).

Step 7 (Optional) Run min-rx-interval rx-interval

The minimum interval at which the local device receives BFD packets is changed.

If the reverse link is an IP link, this command cannot be run.

Step 8 (Optional) Run detect-multiplier multiplier

A local BFD detection multiplier is set.

Step 9 Run commit

The configuration is committed.

----End

1.1.4.14.3 Setting BFD Parameters on the Egress


BFD parameters must be configured on the egress before a BFD session is
established to monitor an LDP LSP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 515


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 The IP link, LSP, or TE tunnel can be used as the reverse tunnel to inform the
ingress of a fault. If there is an LSP or a TE tunnel, use an LSP or the TE tunnel. If
no LSP or TE tunnel is available, use an IP link. If the configured reverse tunnel
requires BFD, configure a pair of BFD sessions for it. Perform one of the following
configurations as required:
● For an IP link, run the bfd session-name bind peer-ip ip-address [ vpn-
instance vpn-name ] [ source-ip ip-address ] command.
● For an LDP LSP, run the bfd session-name bind ldp-lsp peer-ip ip-address
nexthop ip-address [ interface interface-type interface-number ] command.
● For an MPLS TE tunnel, run the bfd session-name bind mpls-te interface
tunnel interface-number [ te-lsp ] command.
The peer-ip ip-address value is the LSR ID of the remote device.
Step 3 Run discriminator local discr-value
A local discriminator is configured for the BFD session.
Step 4 Run discriminator remote discr-value
A remote discriminator is configured for the BFD session.

NOTE

The local discriminator of the local device and the remote discriminator of the remote
device are the same. The remote discriminator of the local device and the local
discriminator of the remote device are the same. A discriminator inconsistency causes the
BFD session to fail to be established.

Step 5 (Optional) Run min-tx-interval tx-interval


The minimum interval at which the local device sends BFD packets is changed.
If the reverse link is an IP link, this command cannot be run.
Effective local interval at which BFD packets are sent = MAX { Locally configured
interval at which BFD packets are sent, Remotely configured interval at which BFD
packets are received}
Effective local interval at which BFD packets are received = MAX { Remotely
configured interval at which BFD packets are sent, Locally configured interval at
which BFD packets are received }
Local BFD detection period = Actual local interval at which BFD packets are
received x Remotely configured BFD detection multiplier
For example, if: On the local device, the intervals at which BFD packets are sent
and received are 200 ms and 300 ms, respectively, and the detection multiplier is
4; on the remote device, the intervals at which BFD packets are sent and received
are 100 ms and 600 ms, respectively, and the detection multiplier is 5. Then:
● On the local device, the actual interval for sending BFD packets is 600 ms
calculated using the formula MAX { 200 ms, 600 ms }, the interval for

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 516


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

receiving BFD packets is 300 ms calculated using the formula MAX { 100 ms,
300 ms }, and the detection period is 1500 ms (300 ms × 5).
● On the remote device, the actual interval for sending BFD packets is 300 ms
calculated using the formula MAX { 100 ms, 300 ms }, the interval for
receiving BFD packets is 600 ms calculated using the formula MAX { 200 ms,
600 ms }, and the detection period is 2400 ms (600 ms × 4).

Step 6 (Optional) Run min-rx-interval rx-interval

The minimum interval at which the local device receives BFD packets is changed.

If the reverse link is an IP link, this command cannot be run.

Step 7 (Optional) Run detect-multiplier multiplier

A local BFD detection multiplier is set.

Step 8 (Optional) Run process-pst

The BFD session is allowed to modify the port or link state table upon detection of
a fault.

If an LSP is used as a reverse tunnel to notify the ingress of a fault, you can run
this command to allow the reverse tunnel to switch traffic if the BFD session goes
Down. If a single-hop IP link is used as a reverse tunnel, this command can be
configured because the process-pst command can only be configured for BFD
single-link detection.

Step 9 Run commit

The configuration is committed.

----End

1.1.4.14.4 Verifying the Configuration


After configuring BFD to monitor an LDP LSP, verify the configurations of the BFD
session, such as the session type and status.

Prerequisites
Static BFD used to monitor an LDP LSP has been configured.

Procedure
● Run the display bfd session { all | static | dynamic | discriminator discr-
value } [ verbose ] command to check information about BFD sessions.
● Run the display bfd statistics session { all | static | dynamic | discriminator
discr-value | peer-ip peer-ip } command to check statistics about BFD
sessions.

----End

1.1.4.15 Configuring Dynamic BFD for LDP LSPs


Dynamic bidirectional forwarding detection (BFD) for LDP LSPs is used to rapidly
check LDP LSP connectivity to improve network reliability.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 517


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Usage Scenario
Dynamic BFD for LDP LSPs detects link faults rapidly and reduces configuration
workloads. It can be used together with LDP FRR to reduce the impact of link
faults on services.
Note that dynamic BFD can be used to check LDP LSPs established only using host
routes.

Pre-configuration Tasks
Before configuring dynamic BFD for LDP LSPs, complete the following tasks:
● Configure network layer parameters to implement network layer connectivity.
● Enable MPLS LDP on each node and establish an LDP session.
● Configure an LDP LSP.

1.1.4.15.1 Enabling BFD Globally


BFD-related configurations can be performed only after BFD is enabled globally.

Context
Perform the following steps on the ingress and egress.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bfd
BFD is enabled globally, and the BFD view is displayed.
Step 3 Run commit
The configuration is committed.

----End

1.1.4.15.2 Enabling the Function to Dynamically Create BFD Sessions in MPLS


Scenarios
Enable BFD on the ingress and egress in an MPLS domain, after which BFD
sessions can be dynamically created.

Procedure
● Perform the following steps on the ingress:
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 518


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

c. Run mpls bfd enable


The function to dynamically create BFD sessions for LDP LSPs is enabled.

NOTE

After this step is complete, a BFD session can be established when the egress is
configured and the ingress sends LSP Ping Request packets carrying BFD TLV
objects.
d. Run commit
The configuration is committed.
● Perform the following steps on the egress:
a. Run system-view
The system view is displayed.
b. Run bfd
The BFD view is displayed.
c. Run mpls-passive
The capability of passively creating a BFD session is enabled.

NOTE

After this command is run, the egress does not create a BFD session immediately.
Instead, the egress waits for an LSP ping request carrying the BFD TLV before
creating a BFD session.
d. Run commit
The configuration is committed.
----End

1.1.4.15.3 Configuring a Policy for Triggering Dynamic BFD for LDP LSPs
Configure a policy for dynamically establishing a BFD session to monitor LDP LSPs
and create a BFD session.

Context
A policy can be enforced to establish a session of dynamic BFD for LDP LSP in
either of the following modes
● Host mode: applies when all host addresses can be used to establish a BFD
session. You can specify nexthop and outgoing-interface to define LSPs that
support a BFD session.
● FEC list mode: applies when only some host addresses can be used to
establish a BFD session.
You can use the fec-list command to specify host addresses. Perform the following
steps on the ingress of an LSP to be monitored:

Procedure
Step 1 Run system-view

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 519


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The system view is displayed.


Step 2 (Optional) To use the FEC list mode, perform the following operations:
1. Run fec-list list-name
A FEC list is created, and the FEC list view is displayed.
2. Run fec-node fec-node-address [ nexthop nexthop-address | outgoing-
interface interface-type interface-number ] *
A FEC node is added to the FEC list.
3. Run quit
Return to the system view.
Step 3 Run mpls
The MPLS view is displayed.
Step 4 Run mpls bfd-trigger { host [ nexthop next-hop-address | outgoing-interface
interface-type interface-number ] * | fec-list list-name } [ option-tlv ]
A policy for triggering dynamic BFD for LDP LSPs is configured.
The policy for establishing a session of dynamic BFD for LDP LSP is configured.
Step 5 (Optional) Run mpls bfd-option-tlv ip-prefix ip-prefix-name
An IP prefix list is configured to trigger the establishment of LDP BFD sessions
working in compatible mode.
If the mpls bfd-trigger command has been run to configure the BFD compatible
mode globally, the mpls bfd-option-tlv ip-prefix command does not take effect.
Step 6 Run commit
The configuration is committed.

----End

1.1.4.15.4 (Optional) Modifying BFD Parameters


BFD parameters, such as BFD detection intervals and detection multipliers, can be
modified.

Context
Perform the following steps on the ingress.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bfd
The BFD view is displayed.
Step 3 Run mpls ping interval interval

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 520


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The interval at which LSP Ping packets are sent is changed.


Step 4 Run quit
Exit from the BFD view.
Step 5 Run mpls
The MPLS view is displayed.
Step 6 (Optional) Run mpls bfd { min-tx-interval min-tx-interval-value | min-rx-
interval min-rx-interval-value | detect-multiplier detect-multiplier-value }*
BFD parameters are set.
Effective local interval at which BFD packets are sent = MAX { Locally configured
interval at which BFD packets are sent, Remotely configured interval at which BFD
packets are received}
Effective local interval at which BFD packets are received = MAX { Remotely
configured interval at which BFD packets are sent, Locally configured interval at
which BFD packets are received }
Local BFD detection period = Actual local interval at which BFD packets are
received x Remotely configured BFD detection multiplier
Therefore, you can adjust the minimum interval at which BFD packets are sent,
the minimum interval at which BFD packets are received, and the detection
multiplier only on the ingress to update BFD detection time parameters on both
the ingress and egress.
Step 7 (Optional) Run mpls bfd-tunnel { min-tx-interval min-tx-interval-value | min-rx-
interval min-rx-interval-value | detect-multiplier detect-multiplier-value }*
BFD parameters are set.
Effective local interval at which BFD packets are sent = MAX { Locally configured
interval at which BFD packets are sent, Remotely configured interval at which BFD
packets are received}
Effective local interval at which BFD packets are received = MAX { Remotely
configured interval at which BFD packets are sent, Locally configured interval at
which BFD packets are received }
Local BFD detection period = Actual local interval at which BFD packets are
received x Remotely configured BFD detection multiplier
If both the mpls bfd-tunnel and mpls bfd commands are run, the parameters
configured using the mpls bfd-tunnel command take precedence over those
configured using the mpls bfd command.
Step 8 Run commit
The configuration is committed.

----End

1.1.4.15.5 Verifying the Configuration


After configuring dynamic BFD for LDP LSP, you can view BFD configurations and
session information on the ingress and egress of a specified LDP LSP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 521


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Prerequisites
Dynamic BFD for LDP LSP has been configured.

Procedure
● Run the display mpls bfd session [ fec ip-address | nexthop ip-address |
outgoing-interface interface-type interface-number | protocol { rsvp-te |
ldp } ] [ verbose ] command to check BFD session information.
● Run the display bfd session all verbose command on the ingress to check
BFD session information.
● Run the display bfd session passive-dynamic verbose command on the
egress to check BFD session information.
----End

1.1.4.16 Configuring LDP Session Protection


LDP session protection enables a device to start the extended LDP discovery
mechanism to continue to maintain an LDP session established with an LDP peer
if the basic LDP discovery mechanism fails. After the basic LDP discovery
mechanism recovers, the LDP protocol can rapidly converge.

Usage Scenario
If the direct link of a local LDP session between two devices fails, an LDP
adjacency for the LDP session is torn down. The LDP session and related labels are
also deleted. After the direct link recovers, the LDP session can be reestablished
and distribute labels so that an LDP LSP over the session can converge. During this
process, LDP LSP traffic is dropped.
With LDP session protection configured, LDP establishes a remote adjacency when
establishing local adjacencies and uses both adjacencies to maintain LDP sessions.
If the direct link of an LDP session is faulty and other paths and routes are
available, the remote adjacency can be used to maintain the LDP session without
interruption. After the direct link recovers, the local outgoing label can still be
used, without being distributed by the downstream node again. The LDP session
does not need to be reestablished. This speeds up LDP LSP convergence and
reduces traffic loss.

Pre-configuration Tasks
Before configuring LDP session protection, complete the following task:
● Configure a local LDP session.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 522


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Run session protection [ peer-group peer-group-name ] [ duration { infinite |


time-value } ]
LDP session protection is enabled.
Step 4 Run commit
The configuration is committed.

----End

Verifying the Configuration


After completing the configurations, run the display mpls ldp remote-peer
command in any view to view the LDP session protection configuration and the
function status. The command output shows that this function takes effect.

1.1.4.17 Configuring LDP-IGP Synchronization


LDP-IGP synchronization helps minimize traffic interruptions when the traffic is
switched from the backup link to the primary link and implement millisecond-level
switchovers.

Usage Scenario
You can configure LDP-IGP synchronization to prevent traffic loss after the primary
LSP fails on the network where primary and backup links exist. The details are as
follows:
● When the primary link is restored and an LDP session or an LDP adjacency
between nodes along the primary link fails, LSP traffic is discarded because
LSP traffic is switched from the primary link to the backup link, whereas IGP
traffic is still transmitted through the primary link.
● When the primary link is restored and an LDP session between nodes along
the primary link fails, LSP traffic is discarded because LSP traffic is switched
from the primary link to the backup link, whereas IGP traffic is still
transmitted through the primary link.

NOTE

Both OSPF and IS-IS support LDP-IGP synchronization.

Pre-configuration Tasks
Before configuring LDP-IGP synchronization, complete the following tasks:
● Configure basic IGP (OSPF or IS-IS) functions.
● Enable MPLS.
● Enable MPLS LDP globally and on each interface.

1.1.4.17.1 Enabling LDP-IGP Synchronization


LDP-IGP synchronization needs to be enabled on interfaces on both ends of the
link between the node where a primary LSP and a backup LSP diverge from each
other and its LDP peer on the primary LSP. LDP-IGP synchronization can be
enabled either on an interface or in an IGP process.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 523


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
LDP-IGP synchronization can be enabled in either of the following modes:
● Enable LDP-IGP synchronization in the interface view.
LDP-IGP synchronization can be enabled on specified interfaces if a few
interfaces need to support this function.
● Enable LDP-IGP synchronization in an IGP process.
After LDP-IGP synchronization is enabled in an IGP process, it is automatically
enabled on all interfaces in the process. If LDP is enabled on all IGP-enabled
interfaces of a node, this configuration mode is recommended.
NOTE

Choose one of the preceding modes as needed.

Procedure
● Enable LDP-IGP synchronization in the interface view.
If OSPF is used, perform the following steps on the interfaces on both ends of
the link between the node where the primary LSP and the backup LSP diverge
from each other and its LDP peer on the primary LSP.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. Run ospf ldp-sync
LDP-OSPF synchronization is enabled for the interface.

NOTE

To enable LDP-OSPF synchronization on a multi-area adjacency interface, run the


ospf ldp-sync multi-area area-id command.
d. Run commit
The configuration is committed.
If IS-IS is used, perform the following steps on the interfaces on both ends of
the link between the node where the primary LSP and the backup LSP diverge
from each other and its LDP peer on the primary LSP.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. Run isis enable [ process-id ]
IS-IS is enabled on the interface.
d. Run isis ldp-sync
LDP-IS-IS synchronization is enabled on the interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 524


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

e. Run commit
The configuration is committed.
NOTE

When LDP-IGP synchronization and LDP GTSM are configured on an interface, an LDP
session needs to be established over a non-direct link. Therefore, the number of GTSM
hops must be set based on the actual hop count and cannot be set to 1. If the number of
GTSM hops is set to 1, the LDP session cannot be established. As a result, the route cannot
be switched back or LDP-IGP synchronization fails.
● Enable LDP-IGP synchronization in an IGP process.
If OSPF is used, perform the following steps on the node on which the
primary LSP and the backup LSP diverge from each other and its LDP peer on
the primary LSP:
a. Run system-view
The system view is displayed.
b. Run ospf [ process-id ]
The OSPF process is started, and the OSPF view is displayed.
process-id specifies an OSPF process. If the process-id parameter is not
specified, the default process ID 1 is used. To associate an OSPF process
with a VPN instance and run OSPF in the VPN instance, run the ospf
[ process-id | vpn-instance vpn-instance-name ] * command. If a VPN
instance is specified, the OSPF process belongs to the specified instance.
Otherwise, the OSPF process belongs to the global instance.
c. Run area area-id
The OSPF area view is displayed.
d. Run ldp-sync enable
LDP-OSPF synchronization is enabled.
e. Run commit
The configuration is committed.
If IS-IS is used, perform the following steps on the node on which the primary
LSP and the backup LSP diverge from each other and its LDP peer on the
primary LSP:
a. Run system-view
The system view is displayed.
b. Run isis [ process-id ]
The specified IS-IS process is started, and the IS-IS view is displayed.
process-id specifies an IS-IS process ID. If the process-id parameter is not
specified, the default process ID 1 is used. To associate an IS-IS process
with a VPN instance, run the isis [ process-id ] [ vpn-instance vpn-
instance-name ] command.
c. Run ldp-sync enable
LDP-IS-IS synchronization is enabled.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 525


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

d. Run commit
The configuration is committed.
----End

1.1.4.17.2 (Optional) Blocking LDP-IGP Synchronization on an Interface


If you do not want to run LDP-IGP synchronization on some interfaces, you can
block the function on these interfaces.

Context
After LDP-IGP synchronization is enabled in an IGP process using the ldp-sync
enable command, it is enabled on all interfaces whose neighbor status is up on a
P2P network, enabled on all interfaces whose neighbor status is up between a DR
and a non-DR/BDR on an OSPF-enabled broadcast network, and enabled on all
interfaces whose neighbor status is up between a DIS and a non-DIS on an IS-IS-
enabled broadcast network.
If the interfaces on a device carry key services, ensure that the backup path does
not pass through this device. The NE9000 allows you to block LDP-IGP
synchronization on a specified interface.

Procedure
● If OSPF is used, perform the following configuration on the interfaces on both
ends of the link between the node where the primary LSP and the backup LSP
diverge from each other and its LDP peer on the primary LSP.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of an OSPF interface is displayed.
c. Run ospf ldp-sync block
LDP-OSPF synchronization is blocked on the interface.

NOTE

To block LDP-OSPF synchronization on a multi-area adjacency interface, run the


ospf ldp-sync block multi-area area-id command.
d. Run commit
The configuration is committed.
● If IS-IS is used, perform the following configuration on the interfaces on both
ends of the link between the node where the primary LSP and the backup LSP
diverge from each other and its LDP peer on the primary LSP.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of an IS-IS interface is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 526


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

c. Run isis ldp-sync block

LDP-IS-IS synchronization is blocked on the interface.


d. Run commit

The configuration is committed.

----End

1.1.4.17.3 (Optional) Setting a Value for the Hold-down Timer


This section describes how to set a value for the Hold-down timer. Before the
timer expires, an interface waits for the establishment of an LDP session and an
LDP adjacency without setting up an IGP neighbor relationship.

Context
On a device that has LDP-IGP synchronization enabled, if the active physical link
recovers, the IGP enters the Hold-down state, and a Hold-down timer starts.
Before the Hold-down timer expires, the IGP delays establishing an IGP neighbor
relationship until the reestablishment of an LDP session and an LDP adjacency
over the active link so that the LDP session over and IGP route for the active link
can become available simultaneously.

NOTE

A Hold-down timer can be set on either an OSPF or IS-IS interface and can only be set in
an IS-IS process, not in an OSPF process.
If different Hold-down values on an interface and in an IS-IS process are set, the setting on
the interface takes effect.

Procedure
● Set a value for the Hold-down timer on a specified OSPF interface.
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The interface view is displayed.


c. Run ospf timer ldp-sync hold-down value

A value is set for the Hold-down timer, which enables an OSPF interface
to delay establishing an OSPF neighbor relationship until the
reestablishment of an LDP session and an LDP adjacency.

NOTE

To configure a value for the Hold-down timer on an OSPF multi-area adjacency


interface, run the ospf timer ldp-sync hold-down value multi-area area-id
command.
d. Run commit

The configuration is committed.


● Set a value for the Hold-down timer on a specified IS-IS interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 527


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The interface view is displayed.


c. Run isis timer ldp-sync hold-down value

A value is set for the Hold-down timer, which enables an IS-IS interface
to delay establishing an IS-IS neighbor relationship until the
reestablishment of an LDP session and an LDP adjacency.
d. Run commit

The configuration is committed.


● Set a value for the Hold-down timer on all IS-IS interfaces in a specified IS-IS
process.
a. Run system-view

The system view is displayed.


b. Run isis [ process-id ]

The IS-IS process view is displayed.


c. Run timer ldp-sync hold-down value

A value is set for the Hold-down timer, which enables all IS-IS interfaces
in an IS-IS process to delay establishing IS-IS neighbor relationships
before the establishment of LDP sessions and LDP adjacencies.
d. Run commit

The configuration is committed.

----End

1.1.4.17.4 (Optional) Setting a Value for the Hold-max-cost Timer


If the LDP session or LDP adjacency on the primary link fails, LSP traffic is
switched to the backup link within the specified hold-max-cost period before the
reestablishment of the LDP session and LDP adjacency on the primary link.

Context
Select parameters based on networking requirements:
● If IGP routes carry only LDP services, specify the infinite parameter to ensure
that the behavior for IGP routes is always consistent with that for an LDP LSP.
● If IGP routes carry multiple types of services, including LDP services, set a
specific time value to ensure that an LDP session or adjacency teardown does
not affect IGP route selection or other services.

Procedure
● If OSPF is used, perform the following configuration on the interfaces on both
ends of the link between the node where the primary LSP and the backup LSP
diverge from each other and its LDP peer on the primary LSP:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 528


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. Run ospf timer ldp-sync hold-max-cost { value | infinite }
The period during which the interface advertises the maximum link cost
in local LSAs is set.
The hold-max-cost timer value determines the period in which the local
node advertises the maximum link cost in local LSAs.

NOTE

To set a value for the hold-max-cost timer on an OSPF multi-area adjacency


interface, run the ospf timer ldp-sync hold-max-cost { value | infinite } multi-
area area-id command.
d. (Optional) Set the maximum cost for OSPF links.
In an IGP-LDP synchronization scenario, when an LDP tunnel's next hop
changes, a large number of entries need to be updated. If upstream and
downstream forwarding entries reside on different boards, they may not
be updated synchronously during traffic switchback. As a result, packet
loss occurs if upstream forwarding entries are updated but downstream
forwarding entries are not. To prevent packet loss, FRR forwarding entries
can be created for the switchback path, and the link's primary/backup
status can be updated during traffic switchback. As defined in standard
protocols, in an IGP-LDP synchronization scenario, if LDP is not in the
fully operational state, OSPF needs to set the link cost to LSInfinity
(65535); however, a link cannot participate in FRR route computation if
its cost is 65535. To resolve this conflict in an IGP-LDP synchronization
scenario, run the maximum-link-cost cost command to change the
maximum cost for OSPF links.
i. Run the system-view command to enter the system view.
ii. Run the ospf [ process-id ] command to enter the OSPF view.
iii. Run the maximum-link-cost cost command to set the maximum
cost for OSPF links.
e. Run commit
The configuration is committed.
● If IS-IS is used:
Perform the following configuration on the node where the primary and
backup links diverge from each other.
a. Run system-view
The system view is displayed.
b. Run isis [ process-id ]
The specified IS-IS process is started, and the IS-IS view is displayed.
c. Run timer ldp-sync hold-max-cost { infinite | interval }

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 529


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The period in which all interfaces in the IS-IS process advertise the
maximum link cost in local LSPs is set.
Perform the following configuration on the interfaces of both ends of the link
between the cross node of primary and backup links and the LDP neighboring
node on the primary link.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. Run isis timer ldp-sync hold-max-cost { value | infinite }
The period in which the IS-IS interface advertises the maximum link cost
in local LSPs is set.
The hold-max-cost timer value determines the period in which the local
node advertises the maximum link cost in local LSPs.
d. Run commit
The configuration is committed.
----End

1.1.4.17.5 (Optional) Setting the Delay Timer Value


When a faulty link recovers and an LDP session is reestablished on the link, LDP
starts the Delay timer to wait for the establishment of an LSP. After the Delay
timer expires, LDP notifies the IGP that the synchronization process is complete.

Procedure
● In the MPLS-LDP view:
a. Run system-view
The system view is displayed.
b. Run mpls ldp
The MPLS-LDP view is displayed.
c. Run igp-sync-delay timer value
The Delay timer value is set. This value determines the period during
which the device waits for LSP establishment after an LDP session is
established.
d. Run commit
The configuration is committed.
● In the interface view:
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 530


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

c. Run mpls ldp timer igp-sync-delay value

The Delay timer value is set. This value determines the period during
which the device waits for LSP establishment after an LDP session is
established.
d. Run commit

The configuration is committed.

----End

1.1.4.17.6 (Optional) Configuring Graceful Deletion for LDP Sessions


LDP graceful deletion can be configured to speed up traffic switching using LDP-
IGP synchronization, improving network reliability.

Context
LDP graceful deletion can be configured in the LDP-IGP synchronization or LDP
FRR scenario to speed up traffic switching. It helps implement uninterrupted traffic
transmission during traffic switching, which improves reliability of the entire
network.

If the physical and protocol status of the primary link is normal but the LDP
session on the primary link is down, LDP-IGP synchronization enables LDP to
inform the IGP of the primary link fault, and the IGP advertises the maximum cost
of the primary link. After that, LDP immediately instructs the upstream device to
withdraw labels and assigns labels to the upstream device because a new LSP is
established on the backup link, which prolongs LSP convergence. As a result,
packet loss occurs.

After the LDP session on the faulty link goes down, LDP does not immediately
instruct the upstream device to withdraw labels; instead, it keeps the labels and
LSP and allows traffic to be transmitted on the primary link until LSP convergence
is complete on the backup link. This ensures uninterrupted traffic transmission and
speeds up LDP-IGP synchronization.

Perform the following configuration on the LSR configured with LDP-IGP


synchronization.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Run graceful-delete

LDP graceful deletion is enabled.

Step 4 (Optional) Run graceful-delete timer timer The graceful deletion timer value is
set.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 531


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

After the LDP session goes down, LDP does not instruct the upstream device to
withdraw labels until the graceful delete timer expires.

NOTE

If the value of the graceful delete timer is too large, the invalid LSP will be kept for a long time,
consuming system resources.

Step 5 Run commit

The configuration is committed.

----End

1.1.4.17.7 Verifying the Configuration


After configuring LDP-IGP synchronization, you can check the synchronization
states of interfaces on which LDP-IGP synchronization has been enabled.

Prerequisites
LDP-IGP synchronization has been configured.

Procedure
● Run the display mpls ldp command to check the global LDP configuration.
● Run the display isis [ process-id ] ldp-sync interface command to check the
synchronization states of interfaces on which LDP-IS-IS synchronization has
been enabled.
● Run the display ospf ldp-sync interface { all | interface-type interface-
number } command to check the synchronization states of interfaces on
which LDP-OSPF synchronization has been enabled.

----End

1.1.4.18 Configuring the LDP GR Helper


You can configure a device to function as a GR Helper to help a neighbor with the
LDP GR process.

Usage Scenario
In LDP GR, a Restarter, with the help of the Helper, ensures uninterrupted
forwarding during an active main board (AMB)/standby main board (/SMB)
switchover or when a protocol is restarted.

During an active/standby switchover or system upgrade, if GR is not enabled, the


neighbor deletes the LSP because the session goes down. As a result, traffic and
services are interrupted for a short time. In this case, you can configure LDP GR to
ensure that labels remain unchanged before and after an unexpected active/
standby switchover or protocol restart. In addition, you can restore the
establishment of LDP sessions and LSPs after the active/standby switchover or
system upgrade is complete. This ensures uninterrupted MPLS forwarding.

By default, NSR is used on a device with double main control boards installed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 532


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

LDP only supports the GR Helper.

Pre-configuration Tasks
Before configuring LDP GR, complete the following tasks:
● Configure IGP GR.
● Configure a local LDP session.

1.1.4.18.1 Enabling LDP GR


Enable LDP GR on both the GR Restarter and its neighboring nodes

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
LDP is enabled on the local LSR, and the MPLS-LDP view is displayed.
Step 3 Run graceful-restart
LDP GR is enabled.

NOTE

● Enabling or disabling LDP GR causes an LDP session to be reestablished. If LDP sessions


do not need to be reestablished when LDP GR is enabled or disabled, run the no-
renegotiate session-parameter-change graceful-restart command.
● Enabling or disabling LDP GR causes an LDP session to be reestablished.
● The undo mpls ldp and reset mpls ldp commands cannot be run during LDP GR.

Step 4 Run commit


The configurations are committed.

----End

1.1.4.18.2 (Optional) Configuring GR Helper Timers


Configuring GR Helper timers includes configuring the LDP session Reconnect
timer and LSP Recovery timer.

Context
Timers associated with LDP GR are as follows:
● Reconnect timer: After the GR restarter performs an active/standby
switchover, the GR Helper detects that the LDP session with the GR Restarter
fails, starts the Reconnect timer, and waits for the reestablishment of the LDP
session.
– If the Reconnect timer expires before the LDP session between the GR
Helper and Restarter is established, the GR Helper immediately deletes

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 533


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

MPLS forwarding entries associated with the GR Restarter and exits from
the GR Helper process.
– If the LDP session between the GR Helper and the GR Restarter is
established before the Reconnect timer times out, the GR Helper deletes
the timer and starts the Recovery timer.
● Recovery timer: After an LDP session is reestablished, the GR Helper starts the
Recovery timer and waits for the LSP to recover.
– If the Recovery timer expires, the GR Helper considers that the GR
process on the neighbor is complete and deletes non-restored LSPs.
– If all LSPs are restored before the Recovery timer expires, the GR Helper
considers that the GR process is complete on the neighbor after the
Recovery timer expires.
● Neighbor-liveness timer: indicates the LDP GR time.

NOTE

Changing the value of an LDP GR timer also causes an LDP session to be reestablished.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 Run graceful-restart timer reconnect time
The Reconnect timer value is set.
The Reconnect timer value that takes effect is the smaller value between the
Neighbor-liveness timer value configured on the GR Helper and the Reconnect
timer value configured on the GR Restarter.
Step 4 Run graceful-restart timer recovery time
The Recovery timer value is set.
The Recovery timer value that takes effect is the smaller value between the
Recovery timer value configured on the GR Helper and the Recovery timer value
configured on the GR Restarter.
Step 5 Run graceful-restart timer neighbor-liveness time
The Neighbor-liveness timer value is set.
When negotiating the reconnection time of an LDP session during LDP GR, the
device uses the smaller value between the Neighbor-liveness timer value
configured on the GR helper and the Reconnect timer value configured on the GR
restarter.
Step 6 Run commit
The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 534


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.18.3 Verifying the Configuration


After configuring LDP GR, you can view information about the LDP protocol and
the LDP session.

Procedure
● Run the display mpls ldp command to check information about LDP.
● Run the display mpls ldp session [ all ] [ verbose ] command to check
information about LDP sessions.
----End

1.1.4.19 Configuring the LDP Entropy Label Capability


The entropy label can be used to improve load balancing in traffic forwarding.

Usage Scenario
As user networks and the scope of network services continue to expand, load-
balancing techniques are usually used to improve bandwidth between nodes. A
great amount of traffic results in load imbalance on transit nodes. To address this
problem, the entropy label capability can be configured to improve load balancing.
The entropy label feature applies to public network LDP tunnels in service
scenarios such as IPv4/IPv6 over LDP, L3VPNv4/v6 over LDP, VPLS/VPWS over LDP,
and EVPN over LDP.

1.1.4.19.1 Configuring an LSR to Deeply Parse IP Packets


This section describes how to enable an LSR to deeply parse IP packets.

Context
After the entropy label function is enabled on the LSR, the LSR uses IP header
information to generate an entropy label and adds the label to the packets. The
entropy label is used as a key value by a transit node to load-balance traffic. If the
length of a data frame carried in a packet exceeds the parsing capability, the LSR
fails to parse the IP header or generate an entropy label. Perform the following
operations on the LSR:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run load-balance identify entropy-label
The LSR is enabled to deeply parse IP packets.
Step 3 Run commit
The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 535


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.19.2 Configuring an LDP Entropy Label on the Ingress of an LSP


An LDP entropy label can be configured on the ingress of an LSP to implement
load balancing.

Context
The growth of user networks worsens the load imbalance on transit nodes. To
address this problem, the entropy label capability can be configured on the ingress
of an LSP. After an LDP tunnel with the entropy label capability is negotiated using
LDP, forwarding entries can carry the flag that supports the entropy label
capability to implement load balancing.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Run entropy-label enable

An LDP entropy label capability is enabled on the ingress of an LSP.

Step 4 (Optional) To configure LDP to negotiate the entropy label capability only based
on the primary LSP, perform the following steps:
1. Run the ipv4-family command to enter the MPLS-LDP-IPv4 view.
2. Run the entropy-label negotiate primary-lsp-only [ ip-prefix ip-prefix-
name ] command to configure LDP to negotiate the entropy label capability
only based on the primary LSP.

If there are primary and backup paths, you can perform this step on the
ingress or transit node of an LSP to prevent an LDP tunnel entropy label
negotiation failure.

Step 5 Run commit

The configuration is committed.

----End

1.1.4.19.3 Enabling the Entropy Label Capability on the Egress of an LSP


The entropy label capability can be configured on the egress of an LSP to load-
balance traffic.

Context
The growth of user networks worsens the load imbalance on transit nodes. To
address this problem, the entropy label capability can be configured. When the
entropy label capability is configured, it must be enabled also on the egress.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 536


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run entropy-label-capability enable

The entropy label capability is configured on the egress of an LSP

Step 4 Run commit

The configuration is committed.

----End

1.1.4.19.4 Verifying the Configuration


After configuring the LDP entropy label capability, you can check the entropy label
information of tunnels.

Prerequisites
The LDP entropy label capability has been configured.

Procedure
● Run the display mpls lsp protocol ldp verbose command to check the
entropy label information of tunnels.

----End

1.1.4.20 Configuring LDP over TE


The LDP over TE function applies to the network on which core devices support
TE, whereas edge devices support LDP. A TE tunnel functions as one hop of the
entire LDP LSP.

Usage Scenario
LDP over TE is a technique used to establish LDP LSPs across an RSVP TE domain
and provide services for a VPN. To deploy MPLS TE on a network transmitting VPN
services, a carrier has difficulties in deploying TE on an entire network. The carrier
can plan a core area in which TE is deployed, and implement LDP on PEs on the
edge of the TE area.

NOTE

If the IGP route used by LDP is switched from a TE interface to a non-TE tunnel interface,
ensure that IGP and LDP are configured on the non-TE tunnel interface. Otherwise, the LDP
LSP may fail to be established after the switchover, causing service interruptions.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 537


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Pre-configuration Tasks
Before configuring LDP over TE, complete the following tasks:

● Configure an IGP to ensure connectivity between LSRs at the network layer.


● Configure basic MPLS functions on nodes and interfaces.
● Enable MPLS LDP on the edge devices of the TE area and the interfaces
outside the TE area.
● Establish an RSVP-TE tunnel along the TE nodes.
● Configure tunnel IP addresses.
● Configure virtual TE interfaces.

1.1.4.20.1 Configuring IGP Shortcut


After IGP shortcut is configured on the ingress of a CR-LSP, the CR-LSP is not
advertised to or used by neighbors.

Context
During path calculation in a scenario where IGP shortcut is configured, the device
calculates an SPF tree based on the paths in the IGP physical topology, and then
finds the SPF nodes on which shortcut tunnels are configured. If the metric of a TE
tunnel is smaller than that of an SPF node, the device replaces the outbound
interfaces of the routes to this SPF node and those of the other routes passing
through the SPF node with the TE tunnel interface.

NOTE

IGP shortcut and forwarding adjacency cannot be both configured.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The view of the MPLS TE tunnel interface is displayed.

Step 3 Run mpls te igp shortcut [ isis | ospf ] or mpls te igp shortcut isis hold-time
interval
IGP shortcut is configured.

hold-time interval specifies the period after which IS-IS responds to the Down
status of the TE tunnel.

If a TE tunnel goes Down and this parameter is not specified, IS-IS recalculates
routes. If this parameter is specified, IS-IS responds to the Down status of the TE
tunnel after only the specified interval elapses. It either recalculates routes or not
depending on the TE tunnel status:
● If the TE tunnel goes Up, IS-IS does not recalculate routes.
● If the TE tunnel goes Down, IS-IS still recalculates routes.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 538


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 4 Run mpls te igp metric { absolute | relative } value


The IGP metric of the TE tunnel is configured.
You can set either of the following parameters when configuring the metric to be
used by a TE tunnel during IGP shortcut path calculation:
● If absolute is configured, the TE tunnel metric is equal to the configured
value.
● If relative is configured, the TE tunnel metric is equal to the sum of the IGP
route metric and relative TE tunnel metric.
Step 5 For IS-IS, run isis enable [ process-id ]
IS-IS is enabled on the tunnel interface.
Step 6 For OSPF, run the following commands in sequence.
● Run the ospf enable process-id area area-id command to enable OSPF on the
tunnel interface.
You can also run the network address wildcard-mask command in the OSPF
view to enable network segment routing on the tunnel interface.
● Run the quit command to return to the system view.
● Run the ospf [ process-id ] command to enter the OSPF view.
● Run the enable traffic-adjustment command to enable IGP shortcut.
Step 7 Run commit
The configuration is committed.

----End

Follow-up Procedure
If a network fault occurs, IGP convergence is triggered. In this case, a transient
forwarding status inconsistency may occur among nodes because of their different
convergence rates, which poses the risk of microloops. To prevent microloops,
perform the following steps:
NOTE

Before you enable the OSPF TE tunnel anti-microloop function, configure CR-LSP backup
parameters.
● For IS-IS, run the following commands in sequence.
a. Run system-view
The system view is displayed.
b. Run isis [ process-id ]
An IS-IS process is created, and the IS-IS process view is displayed.
c. Run avoid-microloop te-tunnel
The IS-IS TE tunnel anti-microloop function is enabled.
d. (Optional) Run avoid-microloop te-tunnel rib-update-delay rib-update-
delay
The delay in delivering the IS-IS routes whose outbound interface is a TE
tunnel interface is set.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 539


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

e. Run commit
The configuration is committed.
● For OSPF, run the following commands in sequence.
a. Run system-view
The system view is displayed.
b. Run ospf [ process-id ]
The OSPF view is displayed.
c. Run avoid-microloop te-tunnel
The OSPF TE tunnel anti-microloop function is enabled.
d. (Optional) Run avoid-microloop te-tunnel rib-update-delay rib-update-
delay
The delay in delivering the OSPF routes whose outbound interface is a TE
tunnel interface is set.
e. Run commit
The configuration is committed.

1.1.4.20.2 Configuring Forwarding Adjacency


The forwarding adjacency is configured on the ingress of a CR-LSP. The forwarding
adjacency allows a route of a CR-LSP to be advertised to neighbors so that these
neighbors can use this CR-LSP to transmit traffic.

Context
A routing protocol performs bidirectional detection on a link. The forwarding
adjacency needs to be enabled on both ends of a tunnel. The forwarding
adjacency allows a node to advertise a CR-LSP route to other nodes. Another
tunnel for transferring data packets in the reverse direction must be configured.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface tunnel tunnel-number

The view of an MPLS TE tunnel interface is displayed.

Step 3 Run mpls te igp advertise [ hold-time interval | include-ipv6-isis ] *

The forwarding adjacency is configured.

If IPv6 IS-IS is used, the include-ipv6-isis parameter must be configured.

Step 4 Configure an IGP metric for a TE tunnel.


● For IS-IS, run the mpls te igp metric absolute value command.
● For OSPF, run the mpls te igp metric { absolute | relative } value command.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 540


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

Set proper IGP metrics for TE tunnels to ensure that LSP routes are correctly advertised and
used. The metric of a TE tunnel should be smaller than that of an IGP route that is not
expected for use.

Step 5 You can select either of the following modes to enable the forwarding adjacency.
● For IS-IS, run the isis enable [ process-id ] command to enable the IS-IS
process of the tunnel interface.
● For OSPF, run the following commands in sequence.
a. Run the ospf enable [ process-id ] area { area-id | areaidipv4 } command
to enable OSPF on the tunnel interface.
b. Run the quit command to return to the system view.
c. Run the ospf [ process-id ] command to enter the OSPF view.
d. Run the enable traffic-adjustment advertise command to enable the
forwarding adjacency.

Step 6 Run commit

The configuration is committed.

----End

1.1.4.20.3 Creating Remote LDP Peers on Both Ends of a TE Tunnel


Configure nodes on both ends of a TE tunnel as remote LDP peers.

Context
If the destination address of the TE tunnel is not the LSR ID of the egress, the
interface with the destination address must be enabled with LDP.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp remote-peer remote-peer-name

The remote MPLS LDP peer view is displayed.

Step 3 Run remote-ip ip-address

An IP address is assigned to the remote LDP peer.

Step 4 Run commit

The configurations are committed.

----End

1.1.4.20.4 (Optional) Configuring a Policy for Triggering LSP Establishment


A policy can be configured to allow LDP to establish LSPs for eligible routes.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 541


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
A policy can be configured to enable LDP to use eligible routes to trigger the
establishment of public-network ingress and egress LSPs.
NOTE

Each LSR must have route entries that exactly match FECs for the LSPs to be established.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run lsp-trigger { all | host | ip-prefix prefix-name | none }

A policy for triggering LSP establishment is configured.

● If the triggering policy is all, all static routes and IGP routes are used to
trigger LDP to establish LSPs. The device does not use public network BGP
routes to trigger LDP LSP establishment.
● If the ip-prefix parameter is specified, only FECs matching a specified IP
address prefix list can trigger LDP to establish LSPs.
● If the none parameter is specified, LDP is not triggered to establish LSPs.
NOTE

● By default, 32-bit addresses are used to trigger LDP to establish LSPs. The default
configuration is recommended. Running the lsp-trigger all command is not
recommended, as this command enables LDP LSPs to be established for all static routes
and IGP routes. As a result, a large number of LSPs are established, consuming excessive
label resources and slowing down LSP convergence on the entire network. You are
advised to run the lsp-trigger ip-prefix command instead.
● If the triggering policy is changed from all to host, LSPs that have been established
using host routes are not reestablished.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.20.5 Verifying the Configuration


After configuring LDP over TE, you can view information about an LDP LSP on the
ingress.

Prerequisites
LDP over TE has been configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 542


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
● Run the display mpls ldp lsp [ destination-address mask-length ] command
to check information about the LDP LSP on the ingress.

----End

1.1.4.21 Configuring LDP Security Features


LDP security features, such as MD5 authentication, LDP generalized TTL security
mechanism (GTSM), and keychain authentication can be configured to meet high
network security requirements. By default, no LDP security features are
configured. You are advised to configure security features as required. Otherwise,
the system may be insecure.

Usage Scenario
MD5 authentication, LDP GTSM, or keychain authentication can be configured on
an MPLS network to meet network security requirements:
NOTE

For security purposes, you are advised not to use weak security algorithms in this feature. If
you need to use such an algorithm, run the undo crypto weak-algorithm disable
command to enable the weak security algorithm function.
● LDP MD5 authentication
A typical MD5 application is to calculate a message digest to prevent
message spoofing. The MD5 message digest is a unique result calculated
using an irreversible character string conversion. If a message is modified
during transmission, a different digest is generated. After the message arrives
at the receiving end, the receiving end can detect the modification after
comparing the received digest with a pre-computed digest.
When configuring MD5 authentication, you can configure different
authentication modes (plaintext or ciphertext) for the two peers of an LDP
session. The passwords on the two peers, however, must be the same.
NOTE

As MD5 is insecure, you are advised to use a more secure authentication mode.
● LDP keychain authentication
Keychain, an enhanced encryption algorithm similar to MD5, calculates a
message digest for an LDP message to prevent the message from being
modified.
Keychain allows users to define a group of passwords to form a password
string. Each password is assigned encryption and decryption algorithms, such
as MD5 and secure hash algorithm-1 (SHA-1), and a validity period. The
system selects a valid password before sending or receiving a packet. Within
the validity period of the password, the system uses the encryption algorithm
matching the password to encrypt the packet before sending it. The system
also uses the decryption algorithm matching the password to decrypt the
packet before accepting the packet. In addition, the system automatically uses
a new password after the previous password expires, which minimizes
password decryption risks.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 543


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Before configuring LDP keychain authentication, configure keychain


authentication globally. If LDP keychain authentication is configured before
global keychain authentication, the LDP session will be disconnected.
● LDP GTSM
The GTSM checks TTL values to defend against attacks. An attacker simulates
unicast LDP messages and sends them to nodes. After receiving these
messages, an interface board on a node finds that the messages are destined
for itself. It directly sends them to the LDP module on the control plane
without verifying them. As a result, the node is busy in processing these
forged messages on the control plane, leading to high CPU usage.
To address this problem, the GTSM can be configured to check whether the
TTL value in the IP header is within a specified range. It protects the nodes
from attacks and improves system security.
● Whitelist session-CAR for LDP
When the LDP service suffers a traffic burst, bandwidth may be preempted
among LDP sessions. To resolve this problem, you can configure whitelist
session-CAR for LDP to isolate bandwidth resources by session.

Pre-configuration Tasks
Before configuring LDP security features, complete the following tasks:

● Enable MPLS and MPLS LDP.


● (Optional) Configure keychain authentication globally.

1.1.4.21.1 Configuring LDP MD5 Authentication


LDP authentication can be configured to improve the security of a connection over
which an LDP session is established. LDP authentication is configured on LSRs at
both ends of an LDP session.

Context
MD5 authentication can be configured for a TCP connection over which an LDP
session is established to improve security. Two peers of an LDP session can be
configured with different authentication modes but must be configured with the
same passwords

LDP MD5 authentication generates a unique digest for an information segment to


prevent LDP packets from being modified. LDP MD5 authentication is stricter than
TCP checksum verification.

You can configure either LDP MD5 authentication or LDP keychain authentication
to match your scenario:
● The MD5 algorithm is easy to configure and generates a single password,
which can only be changed manually. MD5 authentication applies to
networks requiring short-period encryption.
● Keychain authentication involves a set of passwords, which can be
automatically switched based on the configuration. However, keychain
authentication is complex to configure and applies to networks requiring high
security.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 544


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

LDP authentication configurations are prioritized in descending order: for a single peer, for
a specified peer group, and for all peers. Both keychain and MD5 authentication can be
configured. However, configurations with a higher priority override those with a lower
priority, and those with the same priority are mutually exclusive. For example, if MD5
authentication is configured for Peer1 and keychain authentication is configured for all LDP
peers, MD5 authentication takes effect on Peer1 and keychain authentication takes effect
on other peers.
As MD5 is insecure, you are advised to use a more secure authentication mode.

Procedure
● Configure LDP MD5 authentication for a single LDP peer.
a. Run system-view

The system view is displayed.


b. Run mpls ldp

The MPLS-LDP view is displayed.


c. Run md5-password { plain | cipher } peer-lsr-id password

MD5 authentication is enabled, and an authentication password is


configured.

For security purposes, you are advised not to use weak security
algorithms in this feature. If you need to use such an algorithm, run the
undo crypto weak-algorithm disable command to enable the weak
security algorithm function.

NOTE

● The new password is at least eight characters long and contains at least two
of the following types: upper-case letters, lower-case letters, digits, and
special characters, except the question mark (?) and space.
● For security purposes, you are advised to configure a password in ciphertext
mode. To further improve device security, periodically change the password.

The password can be set in either plaintext or ciphertext. A plaintext


password is a character string that is pre-configured and directly recorded
in a configuration file. A ciphertext password is a character string that is
recorded in a configuration file after being encrypted using a specified
algorithm.

NOTICE

● If you configure a password in plaintext, the password will be saved in


the same way in the configuration file. The plaintext mode has high
security risks, and therefore the ciphertext mode is recommended. For
security purposes, periodically change the password.
● Configuring LDP MD5 authentication leads to reestablishment of an
LDP session and deletes the LSP associated with the LDP session.

d. Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 545


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.


● Configure LDP MD5 authentication for LDP peers in a specified LDP peer
group.
a. Run system-view

The system view is displayed.


b. Run mpls ldp

The MPLS-LDP view is displayed.


c. Run md5-password { plain | cipher } peer-group ip-prefix-name
password
MD5 authentication is enabled in a batch for a specified peer group, and
an authentication password is configured.

The range of peer IP addresses in a peer group is defined by the IP prefix


list ip-prefix-name. Therefore, you need to configure an IP prefix list
named ip-prefix-name before you perform this step.

For security purposes, you are advised not to use weak security
algorithms in this feature. If you need to use such an algorithm, run the
undo crypto weak-algorithm disable command to enable the weak
security algorithm function.

NOTE

● The new password is at least eight characters long and contains at least two
of the following types: upper-case letters, lower-case letters, digits, and
special characters, except the question mark (?) and space.
● For security purposes, you are advised to configure a password in ciphertext
mode. To further improve device security, periodically change the password.
d. (Optional) Run authentication exclude peer peer-id

The device is disabled from authenticating a specified LDP peer.


e. Run commit

The configuration is committed.


● Configure LDP MD5 authentication for all LDP peers.
a. Run system-view

The system view is displayed.


b. Run mpls ldp

The MPLS-LDP view is displayed.


c. Run md5-password { plain | cipher } all password

MD5 authentication is enabled for all LDP peers, and an authentication


password is configured.

For security purposes, you are advised not to use weak security
algorithms in this feature. If you need to use such an algorithm, run the
undo crypto weak-algorithm disable command to enable the weak
security algorithm function.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 546


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

● The new password is at least eight characters long and contains at least two
of the following types: upper-case letters, lower-case letters, digits, and
special characters, except the question mark (?) and space.
● For security purposes, you are advised to configure a password in ciphertext
mode. To further improve device security, periodically change the password.
d. (Optional) Run authentication exclude peer peer-id
The device is disabled from authenticating a specified LDP peer.
e. Run commit
The configuration is committed.
----End

1.1.4.21.2 Configuring LDP Keychain Authentication for a TCP Connection


LDP keychain authentication can be configured to improve the security of a TCP
connection used to establish an LDP session. LDP authentication is configured on
LSRs at both ends of an LDP session.

Pre-configuration Tasks
To help improve LDP session security, keychain authentication can be configured
for a TCP connection over which an LDP session has been established.
During keychain authentication, a group of passwords are defined in the format of
a password string, and each password is associated with a specified encryption
and decryption algorithm, such as MD5 or secure hash algorithm-1 (SHA-1), and
is assigned with a validity period. The system selects a valid password based on
the user configuration before sending or receiving a packet. Based on the validity
period of the password, the system uses the encryption algorithm matching the
password to encrypt the packet before sending it, and uses the decryption
algorithm matching the password to decrypt the packet before accepting it. In
addition, the system automatically switches to a new valid password based on the
password validity period, which minimizes password decryption risks if the
password is not changed for a long time.
You can configure either LDP MD5 authentication or LDP keychain authentication
as required:
● The MD5 algorithm is easy to configure and generates a single password,
which can only be changed manually. MD5 authentication applies to
networks requiring short-period encryption.
● Keychain authentication involves a set of passwords, which can be
automatically switched based on the configuration. However, keychain
authentication is complex to configure and applies to networks requiring high
security.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 547


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

LDP authentication configurations are prioritized in descending order: for a single peer, for
a specified peer group, and for all peers. Keychain authentication and MD5 authentication
are mutually exclusive for configurations with the same priority. Keychain authentication
and MD5 authentication can be configured simultaneously for LDP peers with different
priorities, but only the configuration with a higher priority takes effect for a specified LDP
peer. For example, if MD5 authentication is configured for Peer 1 and then keychain
authentication is configured for all peers, MD5 authentication remains effective on Peer 1.
Keychain authentication takes effect on other peers.
As MD5 is insecure, you are advised to use a more secure authentication mode.

Before configuring LDP keychain authentication for a TCP connection, complete


the following task:

● Configure a global keychain.

Procedure
● Configure LDP keychain authentication for a single peer.
a. Run system-view

The system view is displayed.


b. Run mpls ldp

The MPLS-LDP view is displayed.


c. Run authentication key-chain peer peer-id name keychain-name

LDP keychain authentication is enabled, and the configured keychain


name is referenced.

NOTICE

Configuring LDP keychain authentication leads to reestablishment of an


LDP session and deletes the LSP associated with the LDP session.

d. Run commit

The configuration is committed.


● Configure LDP keychain authentication for LDP peers in a specified peer
group.
a. Run system-view

The system view is displayed.


b. Run mpls ldp

The MPLS-LDP view is displayed.


c. Run authentication key-chain peer-group ip-prefix-name name
keychain-name

LDP keychain authentication is enabled for a specified peer group, and


the configured keychain name is referenced.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 548


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The range of peer IP addresses in a peer group is defined by the IP prefix


list ip-prefix-name. Therefore, you need to configure an IP prefix list
named ip-prefix-name before you perform this step.
d. (Optional) Run authentication exclude peer peer-id
The device is disabled from authenticating a specified LDP peer.
e. Run commit
The configuration is committed.
● Configure LDP keychain authentication for all LDP peers.
a. Run system-view
The system view is displayed.
b. Run mpls ldp
The MPLS-LDP view is displayed.
c. Run authentication key-chain all name keychain-name
LDP keychain authentication is enabled for all LDP peers, and the
configured keychain name is referenced.
d. (Optional) Run authentication exclude peer peer-id
The device is disabled from authenticating a specified LDP peer.
e. Run commit
The configuration is committed.
----End

1.1.4.21.3 Configuring LDP Keychain Authentication for a UDP Connection


LDP keychain authentication can be configured to improve the security of a UDP
connection used to establish an LDP session. LDP authentication is configured on
LSRs at both ends of an LDP session.

Pre-configuration Tasks
A remote LDP peer relationship can be established across multiple devices. To
enhance the security of Hello message sending and receiving and prevent
relationship establishment with unauthorized peers, you can configure LDP
keychain authentication for Targeted Hello to improve network security.
Before configuring LDP keychain authentication for a UDP connection, complete
the following task:
● Configure a global keychain.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 549


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 3 Run authentication udp-remote key-chain peer peer-id name keychain-name

LDP keychain authentication is enabled for Targeted Hello, and the configured
keychain name is referenced.

After the configuration is successful, the configured keychain authentication takes


effect on the specified peer. If the authentication fails, the LDP session cannot be
established.

NOTE

This command supports only the keychain authentication using a strong encryption
algorithm (SHA-256, HMAC-SHA-256, or SM3) but not a weak encryption algorithm.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.21.4 Configuring LDP TCP-AO Authentication


This section describes how to configure LDP TCP-AO authentication to check the
integrity of LDP packets and prevent TCP replay attacks.

Pre-configuration Tasks
A TCP-AO is used to authenticate received and to-be sent packets during TCP
session establishment and data exchange. It supports packet integrity check to
prevent TCP replay attacks. After creating a TCP-AO, specify the peer that needs to
reference the TCP-AO and the name of the TCP-AO in the MPLS LDP view. This
enables the TCP-AO to be referenced, and the LDP session to be encrypted. You
can specify multiple peers to reference the same TCP-AO.

A TCP-AO uses the passwords configured in the bound keychain, and these
passwords can be automatically switched based on the configuration. However,
the configuration process is complex and applies to networks with high security
requirements.

Before configuring LDP keychain authentication for a TCP connection, complete


the following task:

● Configure a global keychain.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run tcp ao tcpaoname

A TCP-AO is created, and its view is displayed.

Step 3 Run binding keychain kcName

The TCP-AO is bound to a keychain.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 550


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

Before performing this step, complete "Configuring Keychain Authentication Globally" in


Pre-configuration Tasks to create a keychain.

Step 4 Run key-id keyId

A key ID is created for the TCP-AO, and the TCP-AO key ID view is displayed.

Step 5 Run send-id sndId receive-id rcvId

send-id and receive-id are configured for the key ID.

Step 6 Run quit

The upper-level view is displayed.

Step 7 Run quit

Return to the system view.

Step 8 Run mpls ldp

The MPLS-LDP view is displayed.

Step 9 Run authentication tcp-ao peer peer-id name tcpao-name

TCP-AO authentication is enabled for LDP.

The value of tcpaoname must be the same as that of the TCP-AO created in Step
2.

NOTE

For the same peer, the authentication modes TCP-AO, MD5, and keychain are mutually
exclusive.
Configuring LDP TCP-AO authentication may cause the reestablishment of LDP sessions.

Step 10 Run commit

The configuration is committed.

----End

1.1.4.21.5 Configuring the LDP GTSM


The LDP Generalized TTL Security Mechanism (GTSM) needs to be configured on
the LDP peers at both ends of an LDP session.

Context
The GTSM checks TTL values to verify packets and defends devices against attacks.
LDP peers with the GTSM and a valid TTL range configured check TTLs in LDP
messages exchanged between them. If the TTL in an LDP message is out of the
valid range, this LDP message is considered invalid and discarded. The GTSM
defends against CPU-based attacks initiated using a great number of forged
packets and protects upper-layer protocols.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 551


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Run gtsm peer ip-address valid-ttl-hops hops

The LDP GTSM is configured.

If the value of hops is set to the maximum number of valid hops permitted by the
GTSM, when the TTL values carried in the packets sent by an LDP peer are within
the range [255 – hops + 1, 255], the packets are accepted; otherwise, the packets
are discarded.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.21.6 Configuring Whitelist Session-CAR for LDP


You can configure whitelist session-CAR for LDP to isolate bandwidth resources by
session for LDP packets. This configuration prevents bandwidth preemption among
LDP sessions in the case of a traffic burst.

Context
When traffic bursts occur in the LDP service, bandwidth may be preempted among
LDP sessions. To resolve this problem, you can configure whitelist session-CAR for
LDP to isolate bandwidth resources by session. If the default parameters of
whitelist session-CAR for LDP do not meet service requirements, you can adjust
them as required.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run whitelist session-car { ldp-tcp | ldp-udp-local | ldp-udp-remote } { cir cir-


value | cbs cbs-value | pir pir-value | pbs pbs-value } *
Parameters of whitelist session-CAR for LDP are configured.

Step 3 Run whitelist session-car ldp disable

Whitelist session-CAR for LDP is disabled.

By default, whitelist session-CAR for LDP is enabled. You are advised to keep this
function enabled unless it does not work properly.

Step 4 Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 552


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.

----End

1.1.4.21.7 Configuring Micro-Isolation CAR for LDP

Context
The micro-isolation CAR function is enabled for LDP by default to isolate CPCAR
channels between LDP peers and implement micro-isolation protection for LDP
connection establishment packets. When traffic bursts occur in the LDP service,
the packets of LDP peers may preempt the bandwidth. To prevent this issue, you
are advised to keep this function enabled.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run micro-isolation protocol-car { ldp-tcp | ldp-udp-local } { cir cir-value | cbs


cbs-value | pir pir-value | pbs pbs-value } *
Parameters of micro-isolation CAR for LDP are configured.

In normal cases, you are advised to use the default values of these parameters.
pir-value must be greater than or equal to cir-value, and pbs-value must be
greater than or equal to cbs-value.

Step 3 (Optional) Run micro-isolation protocol-car ldp disable

Micro-isolation CAR is disabled for LDP.

By default, this function is enabled. You can run the micro-isolation protocol-car
ldp disable command to disable micro-isolation protection for LDP packets. In
normal cases, you are advised to keep micro-isolation CAR enabled for LDP.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.21.8 Verifying the Configuration


After configuring LDP security features, you can view the configurations of LDP
MD5 authentication, LDP GTSM, and LDP keychain authentication.

Prerequisites
LDP security features have been configured.

Procedure
● Run the display mpls ldp session verbose command to check the
configurations of LDP MD5 authentication and LDP keychain authentication.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 553


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Run the display gtsm statistics { slot-id | all } command to check GTSM
statistics.
● Run the display cpu-defend whitelist session-car { ldp-tcp | ldp-udp-local |
ldp-udp-remote } statistics slot slot-id command to check the statistics
about whitelist session-CAR for LDP on a specified interface board.

To facilitate the query of statistics in a new period, run the reset cpu-defend
whitelist session-car { ldp-tcp | ldp-udp-local | ldp-udp-remote } statistics
slot slot-id command to clear the existing statistics about whitelist session-
CAR for LDP on a specified interface board. Then, check the statistics after a
certain period.

----End

1.1.4.22 Configuring an mLDP P2MP Tunnel


mLDP P2MP tunnels transmit multicast services over an IP/MPLS backbone
network, simplifying backbone network deployment and saving network
bandwidth resources.

Usage Scenario
Traditional core networks and backbone networks generally use IP/MPLS to
transmit service packets. For unicast packets, this deployment is highly flexible and
provides sufficient reliability and traffic engineering capabilities. The proliferation
of applications, such as IPTV, video conference, and massively multiplayer online
role-playing games (MMORPGs), amplifies demands on multicast transmission
over IP/MPLS networks. The existing P2P MPLS technology requires a transmit end
to deliver the same data packet to each receive end, which wastes bandwidth
resources.

To address this problem, deploy mLDP P2MP tunnels on IP/MPLS networks. P2MP
LDP establishes a tree-shaped tunnel from a root node to multiple leaf nodes and
directs multicast traffic from the root node to the tunnel for forwarding. In actual
forwarding, only one copy of the packet is sent on the root node, and the packet is
replicated on the branch node. This ensures that the bandwidth is not repeatedly
occupied.

mLDP P2MP tunnels can be manually or automatically established. Table 1-20


compares manual P2MP tunnels with automatic P2MP TE tunnels.

Table 1-20 Comparison between manual and automatic mLDP P2MP tunnels

Item Manual P2MP Tunnel Automatic P2MP


Tunnel

Triggering mode Manually triggered by Automatically triggered


users by services

Usage scenario Multicast services, NG MVPN or multicast


excluding multicast VPN, VPLS services are
are transmitted. transmitted.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 554


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Item Manual P2MP Tunnel Automatic P2MP


Tunnel

Traffic steering modes QoS redirection is used Services are


to statically steer traffic automatically steered to
to tunnels. tunnels.

Pre-configuration Tasks
Before configuring an mLDP P2MP tunnel, complete the following tasks:
● Configure network layer parameters to implement connectivity.
● Configure MPLS LDP on each node to establish LDP sessions.
NOTE

mLDP P2MP tunnels can be established only in DU session mode.

1.1.4.22.1 Configuring a Manual mLDP P2MP Tunnel


A manual mLDP P2MP tunnel can be manually triggered and transmit multicast
services, excluding multicast VPN services.

Context
Manually configure the root and leaf nodes to trigger the establishment of a
manual mLDP P2MP tunnel.

Procedure
● Enable mLDP P2MP globally.
a. Run system-view
The system view is displayed.
b. Run mpls ldp
The MPLS-LDP view is displayed.
c. Run mldp p2mp
mLDP P2MP is enabled globally.
d. (Optional) Run mldp make-before-break
The mLDP make-before-break (MBB) capability is enabled.
If the optimal route between a non-root node and a root node on an
mLDP P2MP network changes, the non-root node re-selects an upstream
node and by default tears down the current P2MP LSP. As a result, traffic
is dropped before a new P2MP LSP is established. To prevent traffic loss,
the mLDP MBB capability can be enabled. If the optimal route to the root
node changes, the node does not delete the original P2MP LSP until a
new P2MP LSP is established. This minimizes traffic loss.
e. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 555


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● (Optional) Disable mLDP P2MP on an interface.


To flexibly control the path of a P2MP LSP, you can disable mLDP P2MP on a
specified interface.
Disabling mLDP P2MP on an interface helps you plan a network. For example,
if links balance traffic on a network, to enable P2MP traffic to travel along a
specific link, disable mLDP P2MP on the interfaces connected to other links.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. Run mpls mldp p2mp disable
mLDP P2MP is disabled on the interface.
Disabling mLDP P2MP on an interface affects the establishment of P2MP
LSPs, but does not cause the reestablishment of other P2P LDP sessions.
d. Run commit
The configuration is committed.
● Configure each leaf node to trigger mLDP P2MP LSP establishment.
After mLDP P2MP is enabled on all nodes, configure each leaf node to trigger
mLDP P2MP LSP establishment.
a. Run system-view
The system view is displayed.
b. Run mpls ldp
The MPLS-LDP view is displayed.
c. Run mldp p2mp-lsp name p2mp-lsp-name root-ip root-ip-address lsp-id
lsp-id
The leaf node is configured to trigger the establishment of an mLDP
P2MP LSP from the specified root node to the current leaf node.
p2mp-lsp-name specifies the name of the P2MP LSP, root-ip-address
specifies the IP address of the root node, and lsp-id specifies the ID of the
P2MP LSP. The root-ip-address and lsp-id parameters together uniquely
identify an mLDP P2MP LSP.
d. Run commit
The configuration is committed.
● (Optional) Configure an mLDP P2MP tunnel interface.
Before multicast traffic can be steered into an mLDP P2MP LSP, the mLDP
P2MP LSP must be bound to an mLDP P2MP tunnel interface so that the
tunnel interface can be statically added to an Internet Group Management
Protocol (IGMP) multicast group.
a. Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 556


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

b. Run mldp-p2mp-tunnel tunnel-name


An mLDP P2MP tunnel interface is configured.
c. Run root-ip root-ip-address lsp-id lsp-id
An mLDP P2MP LSP is bound to the tunnel interface.
d. Run commit
The configuration is committed.
● (Optional) Configure a tunnel establishment policy that allows mLDP to
select an upstream node based on peer IDs.
By default, a leaf or transit node selects the next hop on the optimal route to
the root node as its upstream node during P2MP tunnel establishment. If
routes work in load balancing mode, more than one such upstream node
exists, and a leaf or transit node randomly selects an upstream node among
the candidates. If you want a leaf or transit node to select a specific upstream
node, configure a tunnel establishment policy that allows mLDP to select an
upstream node based on peer IDs — an upstream node with the largest or
smallest peer ID.
Both NG MVPN over mLDP P2MP and VPLS over mLDP P2MP have the dual-
root 1+1 protection mechanism. If the routes to the primary and backup roots
work in load balancing mode and share some links, an upstream node may be
selected by mLDP for both the primary and backup mLDP tunnels. In this
case, if the shared link where the selected upstream node resides becomes
faulty, dual-root 1+1 protection fails to take effect. To prevent such a
protection failure in the scenario with co-routed primary and backup mLDP
tunnels, run the mldp upstream-lsr-select highest command for one tunnel
and the mldp upstream-lsr-select lowest command for the other tunnel.
a. Run system-view
The system view is displayed.
b. Run ip ip-prefix ip-prefix-name { permit | deny } ip-address
A policy for selecting tunnels to specified root nodes is configured.
c. Run mpls
MPLS is enabled, and the MPLS view is displayed.
d. Run mpls ldp
The MPLS-LDP view is displayed.
e. Run mldp p2mp
mLDP P2MP is enabled globally.
f. Configure a tunnel establishment policy that allows mLDP to select an
upstream node based on peer IDs.
NOTE

If both the mldp upstream-lsr-select highest and mldp upstream-lsr-select


lowest commands are run and the same mLDP root node is specified in them,
only the mldp upstream-lsr-select highest command configuration takes effect.

▪ Run the mldp upstream-lsr-select lowest ip-prefix <ip-prefix-name>


command to configure a tunnel establishment policy that allows
mLDP to select an upstream node with the smallest peer ID.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 557


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

▪ Run the mldp upstream-lsr-select highest ip-prefix <ip-prefix-


name> command to configure a tunnel establishment policy that
allows mLDP to select an upstream node with the largest peer ID.
g. Run commit
The configuration is committed.
● (Optional) Disabling mLDP from Using the Default Route to Establish Tunnels

In a scenario where mLDP P2MP uses intra-AS routes or inter-AS BGP routes
to tunnel root nodes to establish mLDP tunnels, you can configure mLDP not
to use the default route 0.0.0.0/0 to establish an mLDP tunnel if such a tunnel
is not expected.

a. Run system-view
The system view is displayed.
b. Run mpls
MPLS is enabled, and the MPLS view is displayed.
c. Run quit
Return to the system view.
d. Run mpls ldp
The MPLS-LDP view is displayed.
e. Run mldp p2mp
mLDP P2MP is enabled globally.
f. Run mldp default-route-match ignore
mLDP is disabled from using the default route to establish tunnels.
g. Run commit
The configuration is committed.

----End

Follow-up Procedure
Statically add the tunnel interface to an IGMP multicast group to allow multicast
traffic to be steered into the mLDP tunnel.

1.1.4.22.2 Configuring an Automatic mLDP P2MP Tunnel


Automatic mLDP P2MP tunnels can only transmit NG MVPN and multicast VPLS
traffic.

Context
There is no need to manually specify leaf nodes before automatic mLDP P2MP
tunnels are triggered.

NOTE

After the configuration is complete, preparation for an automatic mLDP tunnel is ready.
Automatic mLDP P2MP tunnels can be established automatically when NG MVPN or
multicast VPLS is being deployed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 558


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
● Enable mLDP P2MP globally.
a. Run system-view
The system view is displayed.
b. Run mpls ldp
The MPLS-LDP view is displayed.
c. Run mldp p2mp
mLDP P2MP is enabled globally.
d. (Optional) Run mldp make-before-break
The mLDP make-before-break (MBB) capability is enabled.
If the optimal route between a non-root node and a root node on an
mLDP P2MP network changes, the non-root node re-selects an upstream
node and by default tears down the current P2MP LSP. As a result, traffic
is dropped before a new P2MP LSP is established. To prevent traffic loss,
the mLDP MBB capability can be enabled. If the optimal route to the root
node changes, the node does not delete the original P2MP LSP until a
new P2MP LSP is established. This minimizes traffic loss.
e. Run commit
The configuration is committed.
● (Optional) Disable mLDP P2MP on an interface.
To flexibly control the path of a P2MP LSP, you can disable mLDP P2MP on a
specified interface.
Disabling mLDP P2MP on an interface helps you plan a network. For example,
if links balance traffic on a network, to enable P2MP traffic to travel along a
specific link, disable mLDP P2MP on the interfaces connected to other links.
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. Run mpls mldp p2mp disable
mLDP P2MP is disabled on the interface.
Disabling mLDP P2MP on an interface affects the establishment of P2MP
LSPs, but does not cause the reestablishment of other P2P LDP sessions.
d. Run commit
The configuration is committed.
● (Optional) Configure a tunnel establishment policy that allows mLDP to
select an upstream node based on peer IDs.
By default, a leaf or transit node selects the next hop on the optimal route to
the root node as its upstream node during P2MP tunnel establishment. If
routes work in load balancing mode, more than one such upstream node

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 559


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

exists, and a leaf or transit node randomly selects an upstream node among
the candidates. If you want a leaf or transit node to select a specific upstream
node, configure a tunnel establishment policy that allows mLDP to select an
upstream node based on peer IDs — an upstream node with the largest or
smallest peer ID.
Both NG MVPN over mLDP P2MP and VPLS over mLDP P2MP have the dual-
root 1+1 protection mechanism. If the routes to the primary and backup roots
work in load balancing mode and share some links, an upstream node may be
selected by mLDP for both the primary and backup mLDP tunnels. In this
case, if the shared link where the selected upstream node resides becomes
faulty, dual-root 1+1 protection fails to take effect. To prevent such a
protection failure in the scenario with co-routed primary and backup mLDP
tunnels, run the mldp upstream-lsr-select highest command for one tunnel
and the mldp upstream-lsr-select lowest command for the other tunnel.
a. Run system-view
The system view is displayed.
b. Run ip ip-prefix ip-prefix-name { permit | deny } ip-address
A policy for selecting tunnels to specified root nodes is configured.
c. Run mpls
MPLS is enabled, and the MPLS view is displayed.
d. Run mpls ldp
The MPLS-LDP view is displayed.
e. Run mldp p2mp
mLDP P2MP is enabled globally.
f. Configure a tunnel establishment policy that allows mLDP to select an
upstream node based on peer IDs.
NOTE

If both the mldp upstream-lsr-select highest and mldp upstream-lsr-select


lowest commands are run and the same mLDP root node is specified in them,
only the mldp upstream-lsr-select highest command configuration takes effect.

▪ Run the mldp upstream-lsr-select lowest ip-prefix <ip-prefix-name>


command to configure a tunnel establishment policy that allows
mLDP to select an upstream node with the smallest peer ID.

▪ Run the mldp upstream-lsr-select highest ip-prefix <ip-prefix-


name> command to configure a tunnel establishment policy that
allows mLDP to select an upstream node with the largest peer ID.
g. Run commit
The configuration is committed.
● (Optional) Disabling mLDP from Using the Default Route to Establish Tunnels
In a scenario where mLDP P2MP uses intra-AS routes or inter-AS BGP routes
to tunnel root nodes to establish mLDP tunnels, you can configure mLDP not
to use the default route 0.0.0.0/0 to establish an mLDP tunnel if such a tunnel
is not expected.
a. Run system-view

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 560


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The system view is displayed.


b. Run mpls
MPLS is enabled, and the MPLS view is displayed.
c. Run quit
Return to the system view.
d. Run mpls ldp
The MPLS-LDP view is displayed.
e. Run mldp p2mp
mLDP P2MP is enabled globally.
f. Run mldp default-route-match ignore
mLDP is disabled from using the default route to establish tunnels.
g. Run commit
The configuration is committed.
----End

1.1.4.22.3 (Optional) Configuring the Reliability Enhancement Function for a P2MP


Tunnel
Configure a function to improve service reliability as needed.

Context
To improve reliability of traffic transmitted along a P2MP tunnel, configure the
following reliability enhancement functions as needed:
● Rapid MPLS P2MP switching
With this function, if a device detects a fault in the active link, the device
rapidly switches services to the standby link over which an MPLS P2MP tunnel
is established, which improves service reliability.
● Multicast load balancing on a trunk interface
Without this function, a device randomly selects a trunk member interface to
forward multicast traffic. If this member interface fails, multicast traffic is
interrupted. With this function, multicast traffic along a P2MP tunnel is
balanced among all trunk member interfaces. This function helps improve
service reliability and increase available bandwidth for multicast traffic.
● MPLS P2MP load balancing
To enable P2MP load balancing globally, run the mpls p2mp force-
loadbalance enable command. In a multicast scenario where load balancing
is configured in the Eth-Trunk interface view, if a leaf node connected to the
Eth-Trunk interface joins or quits the multicast model, packet loss occurs on
the other leave nodes connected to the non-Eth-Trunk interfaces due to the
model change. After the mpls p2mp force-loadbalance enable command is
run, load balancing is forcibly enabled in the system view, therefore
preventing packet loss.
● WTR time for traffic to be switched from the MPLS P2MP FRR path to the
primary path.
If the primary MPLS P2MP path fails, traffic on the forwarding plane is rapidly
switched to the backup path. If the primary path recovers before MPLS P2MP

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 561


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

convergence is complete on the downstream node, traffic is switched back to


the primary path within the default WTR time. If only some entries are
generated for the primary path within the period, some packets are dropped
when traffic switches back to the primary path. To ensure that all entries are
generated for the primary path during the switchback and prevent packet
loss, you can flexibly set the WTR time for traffic to be switched from the
MPLS P2MP FRR path to the primary path.

Procedure
● Configure rapid MPLS P2MP switching.
a. Run system-view
The system view is displayed.
b. Run mpls p2mp fast-switch enable
Rapid MPLS P2MP switching is enabled.
c. Run commit
The configuration is committed.
● Configure multicast load balancing on a trunk interface.
a. Run system-view
The system view is displayed.
b. Run interface eth-trunk trunk-id or interface ip-trunk trunk-id
The Eth-Trunk interface view is displayed.
c. Run multicast p2mp load-balance enable
Multicast traffic load balancing among trunk member interfaces is
enabled on the trunk interface that functions as an outbound interface of
a P2MP tunnel.
d. Run commit
The configuration is committed.
● Configure MPLS P2MP load balancing.
a. Run system-view
The system view is displayed.
b. Run mpls p2mp force-loadbalance enable
MPLS P2MP load balancing is enabled globally.
c. (Optional) Run multicast p2mp load-balance number load-
balance_number
The number of trunk member interfaces that balance multicast traffic on
a P2MP tunnel is set.
d. Run commit
The configuration is committed.
● Set the WTR time for traffic to be switched from the MPLS P2MP FRR path to
the primary path.
a. Run system-view
The system view is displayed.
b. Run mpls p2mp frr-wtr time-value

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 562


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The WTR time is set for traffic to be switched from the MPLS P2MP FRR
path to the primary path.
c. Run commit
The configuration is committed.

----End

1.1.4.22.4 (Optional) Enabling the Capability of Establishing a Best-Effort Path for


an mLDP P2MP Tunnel
The capability of establishing a best-effort path for an mLDP P2MP tunnel can be
enabled to rectify link faults of outbound interfaces, which helps speed up route
convergence and reduce traffic loss.

Context
On a network with the mLDP MBB capability enabled, if mLDP FRR is disabled and
an outbound interface fails, the capability of establishing a best-effort path for an
mLDP P2MP tunnel can be enabled to resolve the problem.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Run mldp p2mp

mLDP P2MP is enabled globally.

Step 4 Run mldp p2mp best-effort

The capability of establishing a best-effort path for an mLDP P2MP tunnel is


enabled.

Step 5 Run commit

The configuration is committed.

----End

1.1.4.22.5 (Optional) Configuring a Timer for mLDP P2MP Tunnel Re-optimization


A timer can be set so that mLDP P2MP tunnel re-optimization is triggered at the
specified time if the network topology changes.

Context
If the network topology changes, to prevent traffic congestion on paths of an
mLDP P2MP tunnel that converge on a few links, appropriately perform mLDP
P2MP re-optimization. If the upstream or downstream nodes are optional, an
mLDP P2MP tunnel is reestablished over the updated path. To set the interval at

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 563


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

which mLDP P2MP tunnel re-optimization is performed if the network topology


changes, perform the following steps on a node along the mLDP P2MP tunnel:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 Run mldp p2mp
mLDP P2MP is enabled globally.
Step 4 Run mldpreoptimize timer reoptimize-time-value
An mLDP re-optimization timer value is set.
After this step is performed, reoptimize-time-value becomes the interval between
the network topology change and the actual mLDP re-optimization.
Step 5 Run commit
The configuration is committed.

----End

1.1.4.22.6 Verifying the Configuration


After configuring an mLDP P2MP LSP, verify mLDP P2MP LSP information on each
node along the LSP and mLDP P2MP LSP connectivity on the root node.

Prerequisites
An mLDP P2MP LSP has been configured.

Procedure
● Run the ping multicast-lsp mldp p2mp root-ip root-ip-address { lsp-id lsp-id
| opaque-value opaque-value } command to check mLDP P2MP LSP
connectivity on the root node.
● Run the display mpls mldp lsp p2mp [ root-ip root-ip-address { lsp-id lsp-id
| opaque-value opaque-value } ] command to check P2MP LSP signaling
information on the local node.
● Run the display mpls multicast-lsp protocol mldp p2mp [ root-ip root-ip-
address { lsp-id lsp-id | opaque-value opaque-value } ] [ lsr-role { bud |
ingress | transit | egress } ] command to check P2MP LSP forwarding
information on the local node.
----End

1.1.4.23 Configuring mLDP P2MP FRR Link Protection


mLDP P2MP FRR link protection rectifies link faults on mLDP LSPs, improving user
network reliability.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 564


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Usage Scenario
As user services continue to grow, the demands for using mLDP LSPs to carry
multicast traffic are increasing, so are the link faults on mLDP LSPs. mLDP P2MP
FRR link protection can be configured to prevent packet loss due to link faults.

NOTE

mLDP P2MP FRR link protection does not support backup links on a TE tunnel.

Pre-configuration Tasks
Before configuring mLDP P2MP FRR link protection, configure an automatic
P2MP TE tunnel.

1.1.4.23.1 Enabling mLDP P2MP FRR Link Protection


mLDP P2MP FRR link protection can be configured in the MPLS-LDP view.

Context
mLDP P2MP FRR link protection configured in the MPLS-LDP view speeds up
convergence when link faults are detected, which minimizes traffic loss.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls ldp

The MPLS-LDP view is displayed.

Step 3 Run mldp p2mp

mLDP P2MP is enabled globally.

Step 4 Run mldp p2mp frr link-protection

mLDP P2MP FRR link protection is enabled.

NOTE

After mLDP FRR link protection is enabled and a link fault is rectified, traffic needs to be
switched back after a delay. During the delayed switchback, the backup path must remain
unchanged. When the link fault is rectified, IGP route convergence is fast, causing mLDP to
recalculate a new backup path. During path calculation, the old backup path is deleted. To
prevent packet loss caused by the deletion of the old backup path, run the mpls p2mp frr-
wtr command to set a hold-off time for the maximum IGP cost to a value greater than the
mLDP FRR switchback delay.

Step 5 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 565


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.23.2 Enabling the Detection of Traffic with New mLDP MBB Incoming Labels
After the detection of traffic with new mLDP MBB incoming labels is enabled, an
MBB switchover can be performed as soon as possible after a fault occurs,
reducing traffic loss.

Context
On a network with mLDP MBB enabled, if a network path fails, transient packet
loss occurs because of the delayed switching timer for MBB LSPs on a downstream
node. To prevent packet loss, enable the local device to monitor traffic with new
mLDP MBB incoming labels.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls ldp
The MPLS-LDP view is displayed.
Step 3 Run mldp p2mp
mLDP P2MP is enabled globally.
Step 4 Run mldp make-before-break
The mLDP make-before-break (MBB) capability is enabled.
Step 5 Run mldp make-before-break p2mp traffic-detect
The detection of traffic with new mLDP MBB incoming labels is enabled.
Step 6 Run commit
The configuration is committed.

----End

1.1.4.23.3 (Optional) Setting Timers for mLDP P2MP FRR Link Protection
Timers can be set for mLDP P2MP FRR link protection, which helps properly
perform a traffic switchover.

Context
The following timers can be set for mLDP P2MP FRR link protection:
● Delay timer for deleting mLDP P2MP LSP labels: This timer delays in deleting
labels for a faulty mLDP P2MP LSP, preventing local link flapping from
spreading globally.
● Timer for a downstream node to wait for an MBB Notification message sent
by an upstream node: Within this timer period, a downstream node confirms
that a branch LSP is successfully established only after receiving an MBB
Notification message replied by an upstream node during MBB LSP
establishment. This timer sets the period of time for the downstream node to
wait for an MBB Notification message.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 566


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Timer for delaying an MBB LSP switchover: After an MBB LSP is established,
LSP switching is delayed to ensure the proper traffic switching on the
forwarding and control planes.
Default timer values are recommended.

Procedure
● Configure a delay timer for deleting mLDP P2MP LSP labels.
a. Run system-view
The system view is displayed.
b. Run mpls ldp
The MPLS-LDP view is displayed.
c. Run mldp p2mp
mLDP P2MP is enabled globally.
d. Run mldp label-withdraw-delay delay-time-value
A delay timer is set for deleting mLDP P2MP LSP labels.
e. Run commit
The configuration is committed.
● Configure a timer for a downstream node to wait for an MBB Notification
message sent by an upstream node.
a. Run system-view
The system view is displayed.
b. Run mpls ldp
The MPLS-LDP view is displayed.
c. Run mldp p2mp
mLDP P2MP is enabled globally.
d. Run mldp make-before-break
The MBB capability is configured.
e. Run mldp make-before-break timer wait-ack wait-ack-time-value
A timer is set for a downstream node to wait for an MBB Notification
message sent by an upstream node.
f. Run commit
The configuration is committed.
● Configure a timer for delaying an MBB LSP switchover.
a. Run system-view
The system view is displayed.
b. Run mpls ldp
The MPLS-LDP view is displayed.
c. Run mldp p2mp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 567


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mLDP P2MP is enabled globally.


d. Run mldp make-before-break
The MBB capability is configured.
e. Run mldp make-before-break timer switch-delay switch-delay-time-
value
A timer for delaying an MBB LSP switchover is configured.
f. Run commit
The configuration is committed.
----End

1.1.4.23.4 Verifying the Configurations


After configuring mLDP P2MP FRR, check P2MP multicast LSP information. The
command output shows FRR LSP information.

Prerequisites
mLDP P2MP FRR has been configured.

Procedure
● Run the display mpls multicast-lsp protocol mldp p2mp command to check
P2MP multicast LSP information, including FRR LSP information.
----End

1.1.4.24 Configuring Dynamic BFD to Monitor an mLDP P2MP Tunnel


Dynamic BFD can be configured to monitor a specified mLDP P2MP tunnel. If a
primary tree fails, traffic can be rapidly switched to a backup tree, which reduces
traffic loss.

Usage Scenario
No tunnel protection is provided for mLDP P2MP tunnels. If an LSP fails, traffic
can only be switched using route change-induced hard convergence, which renders
low performance. BFD for mLDP P2MP tunnel applies to NG-MVPNs and VPLS
networks on which mLDP P2MP trees with primary and backup roots are
configured. If a P2MP tunnel fails, BFD for mLDP P2MP tunnel rapidly detects the
fault and switches traffic to the backup tunnel, which reduces traffic loss and
improves fault convergence performance in an NG-MVPN over mLDP P2MP
scenario or a VPLS over mLDP P2MP scenario.
NOTE

Perform the configuration on each root and leaf node.

Pre-configuration Tasks
Before configuring dynamic BFD to monitor an mLDP P2MP tunnel, complete the
following tasks:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 568


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Configure an mLDP P2MP tunnel.

1.1.4.24.1 Enabling Dynamic BFD to Monitor an mLDP P2MP Tunnel


Dynamic BFD for mLDP P2MP tunnel can detect the primary tree faults of a P2MP
tunnel.

Context
Perform the following steps on each root and leaf node:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bfd
BFD is enabled globally.
Step 3 Run quit
Return to the system view.
Step 4 Run mpls
The MPLS view is displayed.
Step 5 Run mpls mldp bfd enable
Dynamic BFD is enabled to monitor an mLDP P2MP tunnel.
Step 6 Run mpls mldp p2mp bfd-trigger-tunnel all
A policy is configured to dynamically establish a BFD session to monitor an mLDP
P2MP tunnel.
Step 7 Run commit
The configuration is committed.

----End

1.1.4.24.2 (Optional) Adjusting Dynamic BFD Parameters


You can adjust BFD parameters, including the minimum interval at which BFD
packets are sent, the minimum interval at which BFD packets are received, and the
BFD detection multiplier.

Context
Perform the following steps on each root and leaf node:

Procedure
Step 1 Run system-view
The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 569


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 2 Run bfd

The BFD view is displayed.

Step 3 Run quit

Exit the BFD view.

Step 4 Run mpls

The MPLS view is displayed.

Step 5 (Optional) Run mpls mldp p2mp bfd-tunnel { min-tx-interval tx-interval |


detect-multiplier multiplier } *

The minimum interval at which BFD packets are sent, the minimum interval at
which BFD packets are received, and the BFD detection multiplier are set.

Step 6 Run commit

The configuration is committed.

----End

1.1.4.24.3 Verifying the Configuration


After configuring dynamic BFD to monitor an mLDP P2MP tunnel, you can check
BFD session information.

Prerequisites
Dynamic BFD has been configured to monitor an mLDP P2MP tunnel.

Procedure
● Run the display mpls bfd session protocol mldp p2mp [ root-ip root-ip
{ lsp-id lsp-id | opaque-value opaque-value } ] [ bfd-type ldp-tunnel ]
command to check BFD session information.

----End

1.1.4.25 Configuring LDP Traffic Statistics Collection


LDP traffic information on the ingress and transit nodes of an LSP can be queried
only after LDP traffic statistics collection is configured.

Usage Scenario
To obtain LDP LSP traffic statistics, configure LDP traffic statistics collection.

LDP traffic statistics contains only forwarded traffic data. Therefore, statistics
collection can be configured only on the ingress and transit nodes.

NOTE

LDP traffic statistics collection enables the ingress or a transit node to collect statistics only
about outgoing LDP LSP traffic with the destination IP address mask of 32 bits.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 570


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Pre-configuration Tasks
Before configuring LDP statistics collection, configure an LDP LSP.

1.1.4.25.1 Enabling LDP Traffic Statistics Collection


To check LDP LSP traffic statistics, enable LDP LSP statistics collection on the
ingress and transit nodes.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

MPLS is enabled globally, and the MPLS view is displayed.

Step 3 Run quit

Return to the system view.

Step 4 Run mpls traffic-statistics

MPLS traffic statistics collection is enabled globally, and the traffic statistics
collection view is displayed.

Step 5 Run ldp host [ ip-prefix ip-prefix ]

LDP traffic statistics collection is enabled.

Step 6 Run commit

The configuration is committed.

----End

1.1.4.25.2 Verifying the Configuration


After configuring LDP statistics collection, check traffic statistics on the ingress and
transit nodes.

Prerequisites
LDP statistics collection has been configured.

Procedure
● Run the display mpls ldp lsp traffic-statistics [ ipv4–address mask-length ]
[ verbose ] command to check LDP traffic statistics.
● Run the reset mpls traffic-statistics ldp [ ipv4–address mask-length ]
command to delete LDP traffic statistics.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 571


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.26 Configuring mLDP P2MP Traffic Statistics Collection


mLDP P2MP traffic statistics collection can be enabled on the ingress, transit
nodes, or bud nodes on mLDP P2MP LSPs.

Usage Scenario
To obtain mLDP P2MP LSP traffic statistics, configure mLDP P2MP traffic statistics
collection.

Only statistics about the traffic forwarded on mLDP P2MP LSPs are collected.
Therefore, statistics collection can be configured only on the ingress, transit nodes,
or bud nodes.

Pre-configuration Tasks
Before configuring mLDP P2MP traffic statistics collection, configure an mLDP
P2MP tunnel.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls traffic-statistics

MPLS traffic statistics collection is enabled globally, and the traffic statistics
collection view is displayed.

Step 3 Run mldp p2mp

mLDP P2MP traffic statistics collection is enabled.

Step 4 Run commit

The configuration is committed.

----End

Verifying the Configuration


After completing the configuration, you can run the following command to verify
the configuration.

● Run the display mpls mldp lsp p2mp traffic-statistics [ root-ip root-ip { lsp-
id lsp-id | opaque-value opaque-value } | in-label in-label-value ] [ verbose ]
command to check statistics about traffic forwarded on a specified mLDP
P2MP LSP.

Follow-up Procedure
Before collecting statistics, run the reset mpls traffic-statistics mldp p2mp
[ root-ip root-ip { lsp-id lsp-id | opaque-value opaque-value } | in-label in-label-
value ] command to delete existing statistics.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 572


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.27 Configuring the Uniform or Pipe Mode for the MPLS Penultimate
Hop
This section describes the process of configuring the uniform/pipe mode for the
MPLS penultimate hop.

Pre-configuration Tasks
Before configuring the uniform or pipe mode for the MPLS penultimate hop,
complete the following tasks:

● Configure the physical parameters and link attributes of interfaces to ensure


that they work properly.
● Establish an MPLS TE tunnel between PEs when MPLS TE networking is used.
For details, see "MPLS TE Configuration" in HUAWEI NetEngine9000 Core
Router Configuration Guide - MPLS.
NOTE

Perform the following configuration on MPLS LSP or MPLS TE penultimate hop:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

The MPLS view is displayed.

Step 3 Run mpls lsp exp-mode { pipe | uniform }

A global MPLS DiffServ mode is configured.

NOTE

● The mode configured using this command takes effect only on new LSPs. To have the mode
take effect on existing LSPs, you need to run the reset mpls ldp command to reestablish the
LSPs.
● The command is run only on the penultimate hop to determine whether to copy the EXP
value of an outer label to the EXP value of an inner label.

Step 4 Run commit

The configuration is committed.

----End

1.1.4.28 Maintaining MPLS LDP


MPLS LDP maintenance includes resetting LDP configurations and checking LSP
connectivity.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 573


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.28.1 Disabling LDP Session Flapping Suppression

Context
If an LDP session goes down due to a protocol or interface fault, LDP immediately
attempts to reestablish the LDP session to ensure the fastest LDP hard
convergence. For an LDP session that alternates between up and down multiple
times within a period of time, the involved upstream and downstream LSPs are
frequently created and deleted, wasting resources. To prevent this problem, LDP
session flapping suppression is enabled by default. For a stable LDP network, you
can disable LDP session flapping suppression.

Procedure
Step 1 Run the system-view command to enter the system view.
Step 2 Run the mpls command to enable MPLS globally and enter the MPLS view.
Step 3 Run the mpls ldp command to enable LDP globally and enter the MPLS-LDP view.
Step 4 Run the session suppress disable command to disable LDP session flapping
suppression.
Step 5 Run the commit command to commit the configuration.

----End

1.1.4.28.2 Disabling LDP Interface Flapping Suppression

Context
If LDP interface flapping suppression is disabled and an interface frequently flaps,
LDP frequently sends Address and Address Withdraw messages to all LDP sessions.
If there are a large number of sessions, the CPU usage of the device increases,
causing protocol flapping. To prevent this problem, LDP interface flapping
suppression is enabled by default. For a stable LDP network, you can disable LDP
interface flapping suppression.

Procedure
Step 1 Run the system-view command to enter the system view.
Step 2 Run the mpls command to enable MPLS globally and enter the MPLS view.
Step 3 Run the mpls ldp command to enable LDP globally and enter the MPLS-LDP view.
Step 4 Run the suppress-flapping interface disable command to disable LDP interface
flapping suppression.
Step 5 Run the commit command to commit the configuration.

----End

1.1.4.28.3 Resetting LDP


Resetting LDP makes new configurations take effect.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 574


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context

NOTICE

Resetting LDP affects the establishment of an LSP. Exercise caution when


performing this operation.

Procedure
● To reset all LDP peers in global LDP instances, run the reset mpls ldp
command in the user view to make new configurations take effect.
● To reset a specified LDP peer, run the reset mpls ldp peer peer-id command
in the user view to make new configurations take effect.
● To reset all GR-capable LDP peers in global LDP instances, run the reset mpls
ldp graceful command in the user view to make new configurations take
effect, which implements uninterrupted service transmission during a restart.
● To reset a specified GR-capable LDP peer, run the reset mpls ldp peer peer-id
graceful command in the user view to make new configurations take effect,
which implements uninterrupted service transmission during a restart.
----End

1.1.4.28.4 Checking LSP Connectivity and Reachability


A ping or tracert command enables a device to monitor LSP connectivity and
reachability.

Context
Run either of the following commands to perform MPLS ping or MPLS tracert
detection.

Procedure
● Run the ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m
interval | -r reply-mode | -s packet-size | -t time-out | -v ] * ip destination-
iphost mask-length [ ip-address ] command in any view to execute an MPLS
ping.
● Run the tracert lsp [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-
mode | -t time-out | -s size ] * ip destination-iphost mask-length [ ip-address ]
[ detail ] command in any view to execute an MPLS tracert.
----End

1.1.4.29 Configuration Examples for MPLS LDP


The following sections provide configuration examples for configuring MPLS LDP.

1.1.4.29.1 Example for Configuring a Static LSP


This section provides an example for configuring a static LSP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 575


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Networking Requirements
All nodes support MPLS and run OSPF on the MPLS backbone network shown in
Figure 1-43. A static LSP needs to be established between LSRA and LSRC so that
the LSP functions as a public network tunnel to carry L2VPN and L3VPN services.

Figure 1-43 Static LSP networking


NOTE

Interfaces 1 and 2 in this example represent GE1/0/0 and GE2/0/0, respectively.

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure an IP address for each interface, specify a loopback interface


address as an LSR ID, and configure OSPF to advertise the route to the
network segment to which each interface is connected and the host route to
each LSR ID.
2. Enable MPLS globally on each node.
3. Enable MPLS on each interface.
4. On the ingress, configure a destination IP address, next-hop IP address, and
outgoing label for the LSP.
5. On each transit node, configure an incoming label the same as the outgoing
label of the previous node, outbound interface name, next-hop IP address,
and outgoing label for the LSP.
6. On the egress, configure an inbound interface name and incoming label the
same as the outgoing label of the previous node for the LSP.

Data Preparation
To complete the configuration, you need the following data:

● IP address of each interface (as shown in Figure 1-43), OSPF process ID, and
OSPF area ID
● Name of the static LSP
● Outgoing label value on each interface

Procedure
Step 1 Assign an IP address to each interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 576


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Assign an IP address and its mask to each physical interface and configure a
loopback interface address as an LSR ID on each node shown in Configuration
Files. For details, see the configuration files in this section.
Step 2 Configure OSPF to advertise the route to the network segment to which each
interface is connected and the host route to each LSR ID.
# Configure LSRA.
[~LSRA] ospf 1
[*LSRA-ospf-1] area 0
[*LSRA-ospf-1-area-0.0.0.0] network 192.168.1.9 0.0.0.0
[*LSRA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[*LSRA-ospf-1-area-0.0.0.0] quit
[*LSRA-ospf-1] quit
[*LSRA] commit

# Configure LSRB.
[~LSRB] ospf 1
[*LSRB-ospf-1] area 0
[*LSRB-ospf-1-area-0.0.0.0] network 192.168.2.9 0.0.0.0
[*LSRB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[*LSRB-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[*LSRB-ospf-1-area-0.0.0.0] quit
[*LSRB-ospf-1] quit
[*LSRB] commit

# Configure LSRC.
[~LSRC] ospf 1
[*LSRC-ospf-1] area 0
[*LSRC-ospf-1-area-0.0.0.0] network 192.168.3.9 0.0.0.0
[*LSRC-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[*LSRC-ospf-1-area-0.0.0.0] quit
[*LSRC-ospf-1] quit
[*LSRC] commit

After completing the configuration, run the display ip routing-table command on


each node. The command output shows that the nodes have learned routes from
one other.
The following example uses the command output on LSRA:
[~LSRA] display ip routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 11 Routes : 11

Destination/Mask Proto Pre Cost Flags NextHop Interface

10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0


10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
192.168.1.9/32 Direct 0 0 D 127.0.0.1 LoopBack1
10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.2.1.0/24 OSPF 10 2 D 10.1.1.2 GigabitEthernet1/0/0
192.168.2.9/32 OSPF 10 1 D 10.1.1.2 GigabitEthernet1/0/0
192.168.3.9/32 OSPF 10 2 D 10.1.1.2 GigabitEthernet1/0/0

The next-hop IP address and outbound interface name of the LSRA-to-LSRC static
LSP destined for 192.168.3.9/32 are determined by a routing table. In this
example, the next-hop IP address is 10.1.1.2/24.
Step 3 Enable MPLS globally on each node.
# Configure LSRA.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 577


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRA] mpls lsr-id 192.168.1.9


[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] commit

# Configure LSRB.
[~LSRB] mpls lsr-id 192.168.2.9
[*LSRB] mpls
[*LSRB-mpls] quit
[*LSRB] commit

# Configure LSRC.
[~LSRC] mpls lsr-id 192.168.3.9
[*LSRC] mpls
[*LSRC-mpls] quit
[*LSRC] commit

Step 4 Configure MPLS functions on each interface.


# Configure LSRA.
[~LSRA] interface gigabitethernet 1/0/0
[~LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] commit

# Configure LSRB.
[~LSRB] interface gigabitethernet 1/0/0
[~LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 2/0/0
[*LSRB-GigabitEthernet2/0/0] mpls
[*LSRB-GigabitEthernet2/0/0] quit
[*LSRB] commit

# Configure LSRC.
[~LSRC] interface gigabitethernet 1/0/0
[~LSRC-GigabitEthernet1/0/0] mpls
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] commit

Step 5 Create a static LSP from LSRA to LSRC.


# Configure LSRA as the ingress.
[~LSRA] static-lsp ingress AtoC destination 192.168.3.9 32 nexthop 10.1.1.2 out-label 20
[*LSRA] commit

# Configure LSRB as a transit node.


[~LSRB] static-lsp transit AtoC in-label 20 outgoing-interface GigabitEthernet2/0/0 nexthop 10.2.1.2
out-label 40
[*LSRB] commit

# Configure LSRC as the egress.


[~LSRC] static-lsp egress AtoC incoming-interface GigabitEthernet1/0/0 in-label 40
[*LSRC] commit

Step 6 Verify the configuration.


After completing the configuration, run the display mpls static-lsp or display
mpls static-lsp verbose command on each node to verify the static LSP status.
The following example uses the command output on LSRA.
[~LSRA] display mpls static-lsp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 578


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

TOTAL :1 STATIC LSP(S)


UP :1 STATIC LSP(S)
DOWN :0 STATIC LSP(S)
Name FEC I/O Label I/O If Status
AtoC 192.168.3.9/32 NULL/20 -/GigabitEthernet1/0/0 Up
[~LSRA] display mpls static-lsp verbose
No :1
LSP-Name : AtoC
LSR-Type : Ingress
FEC : 192.168.3.9/32
In-Label : NULL
Out-Label : 20
In-Interface : -
Out-Interface : GigabitEthernet1/0/0
NextHop : 10.1.1.2
Static-Lsp Type : Normal
Lsp Status : Up

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 192.168.1.9
#
mpls
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
#
interface LoopBack1
ip address 192.168.1.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 10.1.1.0 0.0.0.255
network 192.168.1.9 0.0.0.0
#
static-lsp ingress AtoC destination 192.168.3.9 32 nexthop 10.1.1.2 out-label 20
#
return

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 192.168.2.9
#
mpls
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
#
interface LoopBack1
ip address 192.168.2.9 255.255.255.255
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 579


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ospf 1
area 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.2.1.0 0.0.0.255
network 192.168.2.9 0.0.0.0
#
static-lsp transit AtoC in-label 20 outgoing-interface GigabitEthernet2/0/0 nexthop 10.2.1.2 out-label
40
#
return

● LSRC configuration file


#
sysname LSRC
#
mpls lsr-id 192.168.3.9
#
mpls
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
#
interface LoopBack1
ip address 192.168.3.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 10.2.1.0 0.0.0.255
network 192.168.3.9 0.0.0.0
#
static-lsp egress AtoC incoming-interface GigabitEthernet1/0/0 in-label 40
#
return

1.1.4.29.2 Example for Configuring Local LDP Sessions


This section provides an example for configuring local LDP sessions. The
configuration procedure involves enabling MPLS and MPLS LDP on each LSR and
interface.

Networking Requirements
In Figure 1-44, LSRA, LSRB, and LSRC function as core or edge devices on a
backbone network. Configure local LDP sessions for MPLS LDP services. The LSRs
can then exchange labels to establish LDP LSPs.

Figure 1-44 Networking diagram of configuring local LDP sessions


NOTE

Interfaces 1 and 2 in this example represent GE1/0/0 and GE2/0/0, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 580


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Notes
During the configuration, note the following:
● An LSR ID must be configured before you run other MPLS commands.
● LSR IDs can only be manually configured, and do not have default values.
● Using the IP address of a reachable loopback interface on an LSR as the LSR
ID is recommended.

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address to each interface and configure OSPF to advertise the
route to the network segment to which each interface is connected and the
host route to each LSR ID.
2. Enable MPLS and MPLS LDP globally on each LSR.
3. Enable MPLS on the interfaces of each LSR.
4. Enable MPLS LDP on the interfaces of both ends of each local LDP session.

Data Preparation
To complete the configuration, you need the following data:
● IP address of each interface on each LSR (as shown in Figure 1-44), OSPF
process ID, and area ID
● LSR ID of each node

Procedure
Step 1 Assign an IP address to each interface and configure OSPF to advertise the route
to the network segment to which each interface is connected and the host route
to each LSR ID.
Assign an IP address to each interface (as shown in Figure 1-44), including the
loopback interfaces. Configure OSPF to advertise the route to the network
segment to which each interface is connected and the host route to each LSR ID.
Step 2 Enable MPLS and MPLS LDP globally on each LSR.
# Configure LSRA.
<LSRA> system-view
[~LSRA] mpls lsr-id 1.1.1.9
[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp
[*LSRA-mpls-ldp] commit
[~LSRA-mpls-ldp] quit

# Configure LSRB.
<LSRB> system-view
[~LSRB] mpls lsr-id 2.2.2.9
[*LSRB] mpls
[*LSRB-mpls] quit
[*LSRB] mpls ldp
[*LSRB-mpls-ldp] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 581


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRB-mpls-ldp] quit

# Configure LSRC.
<LSRC> system-view
[~LSRC] mpls lsr-id 3.3.3.9
[*LSRC] mpls
[*LSRC-mpls] quit
[*LSRC] mpls ldp
[*LSRC-mpls-ldp] commit
[~LSRC-mpls-ldp] quit

Step 3 Enable MPLS and MPLS LDP on the interfaces of each LSR.
# Configure LSRA.
[~LSRA] interface gigabitethernet 1/0/0
[~LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls ldp
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Configure LSRB.
[~LSRB] interface gigabitethernet 1/0/0
[~LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] mpls ldp
[*LSRB-GigabitEthernet1/0/0] commit
[~LSRB-GigabitEthernet1/0/0] quit
[~LSRB] interface gigabitethernet 2/0/0
[~LSRB-GigabitEthernet2/0/0] mpls
[*LSRB-GigabitEthernet2/0/0] mpls ldp
[*LSRB-GigabitEthernet2/0/0] commit
[~LSRB-GigabitEthernet2/0/0] quit

# Configure LSRC.
[~LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] mpls
[*LSRC-GigabitEthernet1/0/0] mpls ldp
[*LSRC-GigabitEthernet1/0/0] commit
[~LSRC-GigabitEthernet1/0/0] quit

Step 4 Verify the configuration.


# After completing the configuration, run the display mpls ldp session command
on each node. The command output shows that the status of the local LDP
session between LSRA and LSRB, or between LSRB and LSRC is Operational.
The following example uses the command output on LSRA.
<LSRA> display mpls ldp session
LDP Session(s) in Public Network
Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
An asterisk (*) before a session means the session is being deleted.
--------------------------------------------------------------------------
PeerID Status LAM SsnRole SsnAge KASent/Rcv
--------------------------------------------------------------------------
2.2.2.9:0 Operational DU Passive 0000:00:22 91/91
--------------------------------------------------------------------------
TOTAL: 1 Session(s) Found.

----End

Configuration Files
● LSRA configuration file
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 582


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

sysname LSRA
#
mpls lsr-id 1.1.1.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 10.1.1.0 0.0.0.3
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 10.1.1.0 0.0.0.3
network 10.2.1.0 0.0.0.3
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.9
#
mpls
#
mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 583


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 10.2.1.0 0.0.0.3
#
return

1.1.4.29.3 Example for Configuring a Remote LDP Session


This section provides an example for configuring a remote LDP session. A remote
LDP session is mainly used to transmit VPN services.

Networking Requirements
In Figure 1-45, LSRA and LSRC are on the edge of a backbone network. To deploy
VPN services over the backbone network, establish a remote LDP session between
LSRA and LSRC to establish an LSP.

Figure 1-45 Networking diagram of configuring a remote LDP session


NOTE

Interfaces 1 and 2 in this example represent GE1/0/0 and GE2/0/0, respectively.

Configuration Notes
During the configuration, note the following:
● An LSR ID must be configured before you run other MPLS commands.
● LSR IDs can only be manually configured, and do not have default values.
● Using the IP address of a reachable loopback interface on an LSR as the LSR
ID is recommended.
● The IP address of a remote LDP peer must be the LSR ID of the remote LDP
peer. When an LDP LSR ID is different from an MPLS LSR ID, the LDP LSR ID
must be used.

Configuration Roadmap
The configuration roadmap is as follows:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 584


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1. Assign an IP address to each interface and configure OSPF to advertise the


route to the network segment to which each interface is connected and the
host route to each LSR ID.
2. Enable MPLS and MPLS LDP globally on each LSR.
3. Specify the name and IP address of the remote peer on the LSRs of both ends
of a remote LDP session.

Data Preparation
To complete the configuration, you need the following data:
● IP address of each interface (as shown in Figure 1-45), OSPF process ID, and
OSPF area ID
● LSR ID of each node
● Name and IP address of each remote peer of a remote LDP session

Procedure
Step 1 Assign an IP address to each interface.
According to Figure 1-45, assign an IP address to each interface, configure the
loopback interface addresses as LSR IDs, and configure OSPF to advertise the
route to the network segment to which each interface is connected and the host
route to each LSR ID. For configuration details, see the configuration files in this
section.
Step 2 Enable MPLS and MPLS LDP globally on each LSR.
# Configure LSRA.
<LSRA> system-view
[~LSRA] mpls lsr-id 1.1.1.9
[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp
[*LSRA-mpls-ldp] commit
[~LSRA-mpls-ldp] quit

# Configure LSRC.
<LSRC> system-view
[~LSRC] mpls lsr-id 3.3.3.9
[*LSRC] mpls
[*LSRC-mpls] quit
[*LSRC] mpls ldp
[*LSRC-mpls-ldp] commit
[~LSRC-mpls-ldp] quit

Step 3 Specify the name and IP address of the remote peer on LSRs of both ends of a
remote LDP session.
# Configure LSRA.
[~LSRA] mpls ldp remote-peer LSRC
[*LSRA-mpls-ldp-remote-LSRC] remote-ip 3.3.3.9
[*LSRA-mpls-ldp-remote-LSRC] commit
[~LSRA-mpls-ldp-remote-LSRC] quit

# Configure LSRC.
[~LSRC] mpls ldp remote-peer LSRA

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 585


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRC-mpls-ldp-remote-LSRA] remote-ip 1.1.1.9


[*LSRC-mpls-ldp-remote-LSRA] commit
[~LSRC-mpls-ldp-remote-LSRA] quit

Step 4 Verify the configuration.


# After completing the configuration, run the display mpls ldp session command
on each node. The status of the remote LDP session between LSRA and LSRC is
Operational.
The following example uses the command output on LSRA.
<LSRA> display mpls ldp session
LDP Session(s) in Public Network
Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
An asterisk (*) before a session means the session is being deleted.
--------------------------------------------------------------------------
PeerID Status LAM SsnRole SsnAge KASent/Rcv
--------------------------------------------------------------------------
3.3.3.9:0 Operational DU Passive 0000:00:01 6/6
--------------------------------------------------------------------------
TOTAL: 1 Session(s) Found.

# Run the display mpls ldp remote-peer command on either of the LSR of the
remote LDP session. You can view information about the remote peer of the LSR.
The following example uses the command output on LSRA.
<LSRA> display mpls ldp remote-peer
LDP Remote Entity Information
------------------------------------------------------------------------------
Remote Peer Name : LSRC
Description : ----
Remote Peer IP : 3.3.3.9 LDP ID : 1.1.1.9:0
Transport Address : 1.1.1.9 Entity Status : Active

Configured Keepalive Hold Timer : 45 Sec


Configured Keepalive Send Timer : ----
Configured Hello Hold Timer : 45 Sec
Negotiated Hello Hold Timer : 45 Sec
Configured Hello Send Timer : ----
Configured Delay Timer : 10 Sec
Hello Packet sent/received : 6347/6307
Label Advertisement Mode : Downstream Unsolicited
Auto-config : ----
Session-Protect effect : NO
Session-Protect Duration : ----
Session-Protect Remain : ----
------------------------------------------------------------------------------
TOTAL: 1 Remote-Peer(s) Found.

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.9
#
mpls
#
mpls ldp
#
ipv4-family
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 586


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls ldp remote-peer LSRC


remote-ip 3.3.3.9
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 10.1.1.0 0.0.0.3
#
return

● LSRB configuration file


#
sysname LSRB
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 10.1.1.0 0.0.0.3
network 10.2.1.0 0.0.0.3
#
return

● LSRC configuration file


#
sysname LSRC
#
mpls lsr-id 3.3.3.9
#
mpls
#
mpls ldp
#
ipv4-family
#
mpls ldp remote-peer LSRA
remote-ip 1.1.1.9
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 10.2.1.0 0.0.0.3
#
return

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 587


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.29.4 Example for Establishing LSPs Through LDP


This section provides an example for establishing LSPs using LDP. The
configuration procedure involves establishing a local LDP session and modifying
the policy for triggering the establishment of an LSP on each LSR.

Networking Requirements
On the network shown in Figure 1-46, LSRA, LSRB, and LSRC all function as core
devices or edge devices on a backbone network. On this network, after local LDP
sessions are set up between LSRA and LSRB, and between LSRB and LSRC, each
pair of LSRs can distribute labels to each other and establish LDP LSPs. MPLS
services can be transmitted along the LSPs.

Figure 1-46 Configuring a policy for triggering LDP LSP establishment


NOTE

Interfaces 1 and 2 in this example represent GE1/0/0 and GE2/0/0, respectively.

Configuration Notes
During the configuration, note the following:
● Each LSR must have route entries that exactly match FECs for the LSPs to be
established.
● By default, the triggering policy is host, allowing a device to use host IP
routes with 32-bit addresses to trigger LDP LSP establishment.
● If the triggering policy is all, all IGP routes are used to trigger LDP LSP
establishment. The device does not use public network BGP routes to trigger
LDP LSP establishment.

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure local LDP sessions.
2. Change the policy for triggering LDP LSP establishment on each LSR.

Data Preparation
To complete the configuration, you need the following data:
● IP address of each interface on each LSR (as shown in Figure 1-46), OSPF
process ID, and area ID
● Policy for triggering LDP LSP establishment

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 588


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Configure an LDP LSP.
After you complete the task described in 1.1.4.29.2 Example for Configuring
Local LDP Sessions, each LSR uses the default LDP LSP triggering policy. That is,
each LSR uses host IP routes with 32-bit addresses to trigger LDP LSP
establishment.
# Run the display mpls ldp lsp command on each LSR. The command output
shows the LSR has successfully established LDP LSPs for all host routes.
The following example uses the command output on LSRA.
[~LSRA] display mpls ldp lsp
LDP LSP Information
-------------------------------------------------------------------------------
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
-------------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
-------------------------------------------------------------------------------
1.1.1.9/32 3/NULL 2.2.2.9 127.0.0.1 LoopBack1
*1.1.1.9/32 Liberal/3 DS/2.2.2.9
2.2.2.9/32 NULL/3 - 10.1.1.2 GE1/0/0
2.2.2.9/32 1024/3 2.2.2.9 10.1.1.2 GE1/0/0
3.3.3.9/32 NULL/1025 - 10.1.1.2 GE1/0/0
3.3.3.9/32 1025/1025 3.3.3.9 10.1.1.2 GE1/0/0
------------------------------------------------------------------------------
TOTAL: 5 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
An asterisk (*) before an LSP means the LSP is not established
An asterisk (*) before a Label means the USCB or DSCB is stale
An asterisk (*) before an UpstreamPeer means the session is stale
An asterisk (*) before a DS means the session is stale
An asterisk (*) before a NextHop means the LSP is FRR LSP

NOTE

The default triggering policy is recommended, as this allows a device to use host IP routes
with 32-bit addresses to trigger LDP LSP establishment. You can also perform the following
steps to change the policy for triggering LDP LSP establishment as required.

Step 2 Change the policy for triggering the establishment of LDP LSPs.
Change the policy for triggering LDP LSP establishment to all on each LSR so that
the LSR uses all static routes and IGP routes in the routing table to trigger LDP
LSP establishment.
# Configure LSRA.
[~LSRA] mpls
[~LSRA-mpls] lsp-trigger all
[*LSRA-mpls] commit
[~LSRA-mpls] quit

# Configure LSRB.
[~LSRB] mpls
[~LSRB-mpls] lsp-trigger all
[*LSRB-mpls] commit
[~LSRB-mpls] quit

# Configure LSRC.
[~LSRC] mpls

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 589


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRC-mpls] lsp-trigger all


[*LSRC-mpls] commit
[~LSRC-mpls] quit

Step 3 Verify the configuration.


# After completing the configuration, run the display mpls ldp lsp command on
each node to check information about LDP LSPs. The following example uses the
command output on LSRA.
[~LSRA] display mpls ldp lsp
LDP LSP Information
-------------------------------------------------------------------------------
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
-------------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
-------------------------------------------------------------------------------
1.1.1.9/32 3/NULL 2.2.2.9 127.0.0.1 LoopBack1
*1.1.1.9/32 Liberal/3 DS/2.2.2.9
2.2.2.9/32 NULL/3 - 10.1.1.2 GE1/0/0
2.2.2.9/32 1024/3 2.2.2.9 10.1.1.2 GE1/0/0
3.3.3.9/32 NULL/1025 - 10.1.1.2 GE1/0/0
3.3.3.9/32 1025/1025 2.2.2.9 10.1.1.2 GE1/0/0
10.1.1.0/30 3/NULL 2.2.2.9 10.1.1.1 GE1/0/0
*10.1.1.0/30 Liberal/3 DS/2.2.2.9
10.2.1.0/30 NULL/3 - 10.1.1.2 GE1/0/0
10.2.1.0/30 1026/3 2.2.2.9 10.1.1.2 GE1/0/0
-------------------------------------------------------------------------------
TOTAL: 8 Normal LSP(s) Found.
TOTAL: 2 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
An asterisk (*) before an LSP means the LSP is not established
An asterisk (*) before a Label means the USCB or DSCB is stale
An asterisk (*) before an UpstreamPeer means the session is stale
An asterisk (*) before a DS means the session is stale
An asterisk (*) before a NextHop means the LSP is FRR LSP

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 10.1.1.0 0.0.0.3
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 590


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

return

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 2.2.2.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 10.1.1.0 0.0.0.3
network 10.2.1.0 0.0.0.3
#
return

● LSRC configuration file


#
sysname LSRC
#
mpls lsr-id 3.3.3.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 10.2.1.0 0.0.0.3
#
return

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 591


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.4.29.5 Example for Configuring Transit LSPs Through an IP Prefix List


This section provides an example for configuring transit LSPs. The configuration
procedure involves establishing local LDP sessions and configuring an IP prefix list
to filter routes on each transit LSR.

Networking Requirements
After MPLS LDP is enabled on each interface, LDP LSPs can be automatically
established, including a great number of unnecessary transit LSPs, which wastes
resources. On the network shown in Figure 1-47, after a policy for triggering the
establishment of transit LSPs is configured, LSRB only uses the routes to 4.4.4.4/32
to establish a transit LSP.

Figure 1-47 Configuring a policy for triggering transit LSP establishment


NOTE

Interfaces 1 and 2 in this example represent GE1/0/0 and GE2/0/0, respectively.

Configuration Notes
During the configuration, note the following:
By default, LDP establishes transit LSPs for all routes, without filtering them.

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address to each interface and configure OSPF to advertise the
route to the network segment to which each interface is connected and the
host route to each LSR ID.
2. Configure an IP prefix list to limit the routes for which transit LSPs can be
established.
3. Enable MPLS and MPLS LDP globally on each LSR and configure a policy of
triggering LSP establishment.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 592


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

4. Configure LSRB (transit node) to use the IP prefix list to limit the routes for
which transit LSPs can be established.
5. Enable MPLS and MPLS LDP on each interface.

Data Preparation
To complete the configuration, you need the following data:
● IP address of each interface on each node (as shown in Figure 1-47), OSPF
process ID, and area ID
● Policy for triggering LSP establishment
● IP prefix list name and the routes to be filtered on the transit node

Procedure
Step 1 Assign an IP address to each interface and configure OSPF to advertise the route
to the network segment to which each interface is connected and the host route
to each LSR ID.
# Assign an IP address to each interface (as shown in Figure 1-47), including the
loopback interfaces. Configure OSPF to advertise the route to the network
segment to which each interface is connected and the host route to each LSR ID.
Step 2 Configure an IP prefix list on the transit node LSRB.
# Configure an IP prefix list on LSRB to allow LSRB to establish a transit LSP only
for the route 4.4.4.4/32 to LSRD.
[~LSRB]ip ip-prefix FilterOnTransit permit 4.4.4.4 32
[*LSRB]commit

Step 3 Configure basic MPLS and MPLS LDP functions on each node and interface, and
configure a policy for triggering LSP establishment.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp
[*LSRA-mpls-ldp] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls ldp
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Configure LSRB.
[~LSRB] mpls lsr-id 2.2.2.2
[*LSRB] mpls
[*LSRB-mpls] quit
[*LSRB] mpls ldp
[*LSRB-mpls-ldp] propagate mapping for ip-prefix FilterOnTransit
[*LSRB-mpls-ldp] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] mpls ldp
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 2/0/0
[*LSRB-GigabitEthernet2/0/0] mpls
[*LSRB-GigabitEthernet2/0/0] mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 593


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRB-GigabitEthernet2/0/0] commit
[~LSRB-GigabitEthernet2/0/0] quit

The configurations of LSRC and LSRD are similar to the configuration of LSRA.
Step 4 Verify the configuration.
Run the display mpls ldp lsp command to check LSP information.
# Display LDP LSPs established on LSRA.
[~LSRA] display mpls ldp lsp
LDP LSP Information
-------------------------------------------------------------------------------
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
-------------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
-------------------------------------------------------------------------------
1.1.1.1/32 3/NULL 2.2.2.2 127.0.0.1 LoopBack1
2.2.2.2/32 NULL/3 - 192.168.1.2 GE1/0/0
2.2.2.2/32 1025/3 2.2.2.2 192.168.1.2 GE1/0/0
4.4.4.4/32 NULL/1025 - 192.168.1.2 GE1/0/0
4.4.4.4/32 1026/1026 4.4.4.4 192.168.1.2 GE1/0/0
192.168.1.0/24 3/NULL 2.2.2.2 192.168.1.1 GE1/0/0
*192.168.1.0/24 Liberal/26 DS/2.2.2.2
192.168.2.0/24 NULL/3 - 192.168.1.2 GE1/0/0
192.168.2.0/24 1027/3 3.3.3.3 192.168.1.2 GE1/0/0
--------------------------------------------------------------------------
TOTAL: 8 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
An asterisk (*) before an LSP means the LSP is not established
An asterisk (*) before a Label means the USCB or DSCB is stale
An asterisk (*) before an UpstreamPeer means the session is stale
An asterisk (*) before a DS means the session is stale
An asterisk (*) before a NextHop means the LSP is FRR LSP

The command output on each node shows that the LDP LSP with LSRB as the
transit node is established only for the route 4.4.4.4/32 and that other LDP LSPs
not with LSRB as the transit node are established.

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 192.168.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
ospf 1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 594


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 192.168.1.0 0.0.0.255
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
#
mpls ldp
#
ipv4-family
propagate mapping for ip-prefix FilterOnTransit
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 192.168.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 192.168.2.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 192.168.1.0 0.0.0.255
network 192.168.2.0 0.0.0.255
#
ip ip-prefix FilterOnTransit index 10 permit 4.4.4.4 32
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 192.168.2.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 192.168.3.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 595


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
ospf 1
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 192.168.2.0 0.0.0.255
network 192.168.3.0 0.0.0.255
#
return

● LSRD configuration file


#
sysname LSRD
#
mpls lsr-id 4.4.4.4
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 192.168.3.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
ospf 1
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 192.168.3.0 0.0.0.255
#
Return

1.1.4.29.6 Example for Configuring an LDP Inbound Policy


This section provides an example for configuring an LDP inbound policy. The
configuration procedure involves enabling MPLS and MPLS LDP globally.

Networking Requirements
MPLS LDP services are deployed on the network shown in Figure 1-48. LSRD is a
low-performance DSLAM for user access. By default, LSRD receives Label Mapping
messages from all peers and uses the routing information in these messages to
establish a large number of LSPs. As a result, memory on LSRD is overused and
LSRD is overburdened. Configure an LDP inbound policy to allow LSRD to receive
only Label Mapping messages destined for LSRC. This ensures that LSRD
establishes LSPs only to LSRC, reducing resource consumption.

Figure 1-48 Configuring an LDP inbound policy


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 1/0/1, and GE 1/0/2,


respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 596


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address to each interface, including the loopback interface on
each node.
2. Configure OSPF to advertise the route to the network segment of each
interface and to advertise the host route to each LSR ID.
3. Enable MPLS and MPLS LDP on each node and interfaces.
4. Configure an LDP inbound policy.

Data Preparation
To complete the configuration, you need the following data:
● IP address of each interface on each LSR (as shown in Figure 1-48), OSPF
process ID, and area ID
● LSR ID of each node

Procedure
Step 1 Assign an IP address to each interface and configure an IGP.
Assign an IP address and mask to each interface (as shown in Figure 1-48),
including the loopback interfaces. Configure OSPF to advertise the route to the
network segment to which each interface is connected and the host route to each
LSR ID.
Step 2 Enable MPLS and MPLS LDP globally and on the interfaces of each node.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 597


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRA-mpls-ldp] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls ldp
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] commit

# Configure LSRB.
[~LSRB] mpls lsr-id 2.2.2.2
[*LSRB] mpls
[*LSRB-mpls] quit
[*LSRB] mpls ldp
[*LSRB-mpls-ldp] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] mpls ldp
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 1/0/1
[*LSRB-GigabitEthernet1/0/1] mpls
[*LSRB-GigabitEthernet1/0/1] mpls ldp
[*LSRB-GigabitEthernet1/0/1] quit
[*LSRB] interface gigabitethernet 1/0/2
[*LSRB-GigabitEthernet1/0/2] mpls
[*LSRB-GigabitEthernet1/0/2] mpls ldp
[*LSRB-GigabitEthernet1/0/2] quit
[*LSRB] commit

# Configure LSRC.
[~LSRC] mpls lsr-id 3.3.3.3
[*LSRC] mpls
[*LSRC-mpls] quit
[*LSRC] mpls ldp
[*LSRC-mpls-ldp] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] mpls
[*LSRC-GigabitEthernet1/0/0] mpls ldp
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] commit

# Configure LSRD.
[~LSRD] mpls lsr-id 4.4.4.4
[*LSRD] mpls
[*LSRD-mpls] quit
[*LSRD] mpls ldp
[*LSRD-mpls-ldp] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-GigabitEthernet1/0/0] mpls
[*LSRD-GigabitEthernet1/0/0] mpls ldp
[*LSRD-GigabitEthernet1/0/0] quit
[*LSRD] commit

# After completing the preceding configuration, run the display mpls lsp
command on LSRD to check information about established LSPs.
[~LSRD] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.1/32 NULL/32829 -/GE1/0/0
1.1.1.1/32 32828/32829 -/GE1/0/0
2.2.2.2/32 NULL/3 -/GE1/0/0
2.2.2.2/32 32829/3 -/GE1/0/0
3.3.3.3/32 NULL/32830 -/GE1/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 598


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

3.3.3.3/32 32830/32830 -/GE1/0/0


4.4.4.4/32 3/NULL -/-

The command output shows that LSPs to LSRA, LSRB, and LSRC have been
established on LSRD.
Step 3 Configure an LDP inbound policy.
# Configure an IP prefix list on LSRD to permit only the routes to LSRC.
[~LSRD] ip ip-prefix prefix1 permit 3.3.3.3 32
[*LSRD] commit

# Configure an inbound policy on LSRD to allow LSRD to receive Label Mapping


messages for the routes only to LSRC.
[~LSRD] mpls ldp
[*LSRD-mpls-ldp] ipv4-family
[*LSRD-mpls-ldp-ipv4] inbound peer 2.2.2.2 fec ip-prefix prefix1
[*LSRD-mpls-ldp-ipv4] quit
[*LSRD-mpls-ldp] quit
[*LSRD] commit

Step 4 Verify the configuration.


After completing the preceding configuration, run the display mpls lsp command
on LSRD. The command output shows that only an LSP to LSRC is established.
[~LSRD] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
3.3.3.3/32 NULL/32830 -/GE1/0/0
3.3.3.3/32 32830/32830 -/GE1/0/0
4.4.4.4/32 3/NULL -/-

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
#
return

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 599


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 2.2.2.2
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.3.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
network 10.1.3.0 0.0.0.255
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.2.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 10.1.2.0 0.0.0.255
#
return
● LSRD configuration file
#
sysname LSRD
#
mpls lsr-id 4.4.4.4

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 600


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls
#
mpls ldp
ipv4-family
inbound peer 2.2.2.2 fec ip-prefix prefix1
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.3.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
ospf 1
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.1.3.0 0.0.0.255
#
ip ip-prefix prefix1 index 10 permit 3.3.3.3 32
#
return

1.1.4.29.7 Example for Configuring an Outbound LDP Policy


This section provides an example for configuring an outbound Label Distribution
Protocol (LDP) policy that uses routes matching a specified IP prefix list to
establish LDP label switched paths (LSPs).

Networking Requirements
An IP metro or bearer network uses L2VPN or L3VPN to transmit high speed
Internet (HSI) or voice over IP (VoIP) services over end-to-end public network LDP
LSPs. Generally, user-side DSLAMs have low performance, and are easily
overloaded if a large number of LDP LSPs are established. To prevent this issue,
configure an outbound LDP policy to minimize LDP LSPs to be established, reduce
DSLAM memory consumption, and relieve the burden of the DSLAMs.

Figure 1-49 Networking diagram for configuring an outbound LDP policy


NOTE

Interfaces 1 and 2 in this example represent GE1/0/1 and GE1/0/3, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 601


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:

1. Assign an IP address to each interface, including the loopback interface on


each node.
2. Configure OSPF to advertise the route to each network segment to which
each interface is connected and advertise the host route to each LSR ID.
3. Enable MPLS and MPLS LDP globally on each node.
4. Configure an outbound LDP policy on LSRA to send the DSLAM the Label
Mapping messages destined for LSRC only. This allows the DSLAM to establish
an LSP to LSRC only, reducing memory usage.
5. Configure MPLS and MPLS LDP on each interface.

Data Preparation
To complete the configuration, you need the following data:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 602


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● IP address of each interface on each LSR (as shown in Figure 1-49), OSPF
process ID (1), and area ID (0.0.0.0)
● LSR ID (loopback interface IP address as shown in Figure 1-49) of each node
● Name of an IP prefix list (prefix1) to be specified in an outbound LDP policy
on LSRA

Procedure
Step 1 Assign an IP address to each interface and configure an IGP.
Assign an IP address and mask to each interface (as shown in Figure 1-49),
including the loopback interfaces. Configure OSPF to advertise the route to the
network segment to which each interface is connected and the host route to each
LSR ID.
Step 2 Enable MPLS and MPLS LDP globally on each node.
# Configure LSRA.
<LSRA> system-view
[~LSRA] mpls lsr-id 3.3.3.9
[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp
[*LSRA-mpls-ldp] commit
[~LSRA-mpls-ldp] quit

# Configure LSRB.
<LSRB> system-view
[~LSRB] mpls lsr-id 2.2.2.9
[*LSRB] mpls
[*LSRB-mpls] quit
[*LSRB] mpls ldp
[*LSRB-mpls-ldp] commit
[~LSRB-mpls-ldp] quit

# Configure LSRC.
<LSRC> system-view
[~LSRC] mpls lsr-id 1.1.1.9
[*LSRC] mpls
[*LSRC-mpls] quit
[*LSRC] mpls ldp
[*LSRC-mpls-ldp] commit
[~LSRC-mpls-ldp] quit

# Configure the DSLAM.


<DSLAM> system-view
[~DSLAM] mpls lsr-id 4.4.4.9
[*DSLAM] mpls
[*DSLAM-mpls] quit
[*DSLAM] mpls ldp
[*DSLAM-mpls-ldp] commit
[~DSLAM-mpls-ldp] quit

Step 3 Configure an outbound LDP policy.


# Configure an IP prefix list on LSRA to permit only the routes to LSRC.
[~LSRA] ip ip-prefix prefix1 permit 1.1.1.9 32

# Configure an outbound policy on LSRA to send the DSLAM the Label Mapping
messages destined for LSRC only.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 603


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRA] mpls ldp


[*LSRA-mpls-ldp] ipv4-family
[*LSRA-mpls-ldp-ipv4] outbound peer 4.4.4.9 fec ip-prefix prefix1
[*LSRA-mpls-ldp-ipv4] commit
[~LSRA-mpls-ldp-ipv4] quit
[~LSRA-mpls-ldp] quit

Step 4 Enable MPLS and MPLS LDP on each interface.


# Configure LSRA.
<LSRA> system-view
[~LSRA] interface gigabitethernet1/0/1
[~LSRA-GigabitEthernet1/0/1] mpls
[*LSRA-GigabitEthernet1/0/1] mpls ldp
[*LSRA-GigabitEthernet1/0/1] commit
[~LSRA-GigabitEthernet1/0/1] quit
[~LSRA] interface gigabitethernet1/0/3
[~LSRA-GigabitEthernet1/0/3] mpls
[*LSRA-GigabitEthernet1/0/3] mpls ldp
[*LSRA-GigabitEthernet1/0/3] commit
[~LSRA-GigabitEthernet1/0/3] quit

# Configure LSRB.
<LSRB> system-view
[~LSRB] interface gigabitethernet1/0/1
[~LSRB-GigabitEthernet1/0/1] mpls
[*LSRB-GigabitEthernet1/0/1] mpls ldp
[*LSRB-GigabitEthernet1/0/1] quit
[*LSRB] interface gigabitethernet1/0/3
[*LSRB-GigabitEthernet1/0/3] mpls
[*LSRB-GigabitEthernet1/0/3] mpls ldp
[*LSRB-GigabitEthernet1/0/3] commit
[~LSRB-GigabitEthernet1/0/3] quit

# Configure LSRC.
<LSRC> system-view
[~LSRC] interface gigabitethernet1/0/1
[~LSRC-GigabitEthernet1/0/1] mpls
[*LSRC-GigabitEthernet1/0/1] mpls ldp
[*LSRC-GigabitEthernet1/0/1] commit
[~LSRC-GigabitEthernet1/0/1] quit

# Configure the DSLAM.


<DSLAM> system-view
[~DSLAM] interface gigabitethernet1/0/1
[~DSLAM-GigabitEthernet1/0/1] mpls
[*DSLAM-GigabitEthernet1/0/1] mpls ldp
[*DSLAM-GigabitEthernet1/0/1] commit
[~DSLAM-GigabitEthernet1/0/1] quit

Step 5 Verify the configuration.


After completing the preceding configuration, run the display mpls ldp lsp
command on the DSLAM. The command output shows that only an LSP to LSRC is
established.
[~DSLAM] display mpls ldp lsp
LDP LSP Information
-------------------------------------------------------------------------------
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
-------------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
-------------------------------------------------------------------------------
1.1.1.9/32 NULL/1025 - 10.1.3.1 GE1/0/1
1.1.1.9/32 1024/1025 3.3.3.9 10.1.3.1 GE1/0/1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 604


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

4.4.4.9/32 3/NULL 3.3.3.9 127.0.0.1 LoopBack0


-------------------------------------------------------------------------------
TOTAL: 3 Normal LSP(s) Found.
TOTAL: 0 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
An asterisk (*) before an LSP means the LSP is not established
An asterisk (*) before a Label means the USCB or DSCB is stale
An asterisk (*) before an UpstreamPeer means the session is stale
An asterisk (*) before a DS means the session is stale
An asterisk (*) before a NextHop means the LSP is FRR LSP

If no outbound LDP policy is configured on LSRA, the LDP LSPs established on the
DSLAM are as follows:
LDP LSP Information
-------------------------------------------------------------------------------
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
-------------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
-------------------------------------------------------------------------------
1.1.1.9/32 NULL/1025 - 10.1.3.1 GE1/0/1
1.1.1.9/32 1024/1025 3.3.3.9 10.1.3.1 GE1/0/1
2.2.2.9/32 NULL/1024 - 10.1.3.1 GE1/0/1
2.2.2.9/32 1027/1024 3.3.3.9 10.1.3.1 GE1/0/1
3.3.3.9/32 NULL/3 - 10.1.3.1 GE1/0/1
3.3.3.9/32 1028/3 3.3.3.9 10.1.3.1 GE1/0/1
4.4.4.9/32 3/NULL 3.3.3.9 127.0.0.1 LoopBack0
*4.4.4.9/32 Liberal/1026 DS/3.3.3.9
-------------------------------------------------------------------------------
TOTAL: 7 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
An asterisk (*) before an LSP means the LSP is not established
An asterisk (*) before a Label means the USCB or DSCB is stale
An asterisk (*) before an UpstreamPeer means the session is stale
An asterisk (*) before a DS means the session is stale
An asterisk (*) before a NextHop means the LSP is FRR LSP

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 3.3.3.9
#
mpls
#
mpls ldp
#
ipv4-family
outbound peer 4.4.4.9 fec ip-prefix prefix1
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/3
undo shutdown
ip address 10.1.3.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 605


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 3.3.3.9 255.255.255.255


#
ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.3.0 0.0.0.255
#
ip ip-prefix prefix1 index 10 permit 1.1.1.9 32
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/3
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 2.2.2.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 1.1.1.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 1.1.1.9 255.255.255.255
#
ospf 1
area 0.0.0.0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 606


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

network 1.1.1.9 0.0.0.0


network 10.1.1.0 0.0.0.255
#
return

● DSLAM configuration file


#
sysname DSLAM
#
mpls lsr-id 4.4.4.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.3.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 4.4.4.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 4.4.4.9 0.0.0.0
network 10.1.3.0 0.0.0.255
#
return

1.1.4.29.8 Example for Configuring LDP Extension for Inter-Area LSPs


This section provides an example for configuring LDP extension for inter-area LSPs.
The procedure involves enabling global MPLS and MPLS LDP and configuring a
policy for aggregating routes.

Networking Requirements
The network shown in Figure 1-50 has two IGP areas: Area 10 and Area 20. Inter-
area LSPs need to be established from LSRA to LSRB and from LSRA to LSRC. LDP
extension for inter-area LSPs needs to be configured on LSRA so that LSRA can
search for routes based on the longest match rule to establish LSPs.

Figure 1-50 Configuring LDP extension for inter-area LSPs


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 1/0/1, and GE 1/0/2,


respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 607


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign IP addresses to interfaces on each node and configure the loopback
addresses to be used as LSR IDs.
2. Configure basic IS-IS functions.
3. Configure a policy for summarizing routes.
4. Enable MPLS and MPLS LDP on each node and interfaces.
5. Configure LDP extension for inter-area LSPs.

Data Preparation
To complete the configuration, you need the following data:
● IP address of each interface on each node, according to Figure 1-50
● IS-IS area ID of each node and level of each node and interface

Procedure
Step 1 Assign IP addresses to interfaces on each node and configure the loopback
addresses to be used as LSR IDs.
Assign an IP address and a mask to each interface (including loopback interfaces)
according to Figure 1-50.
Step 2 Configure basic IS-IS functions.
# Configure LSRA.
<~LSRA> system-view

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 608


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRA] isis 1
[*LSRA-isis-1] is-level level-2
[*LSRA-isis-1] network-entity 20.0010.0100.0001.00
[*LSRA-isis-1] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-Gigabitethernet1/0/0] isis enable 1
[*LSRA-Gigabitethernet1/0/0] quit
[*LSRA] interface loopback 0
[*LSRA-LoopBack0] isis enable 1
[*LSRA-LoopBack0] commit
[~LSRA-LoopBack0] quit

# Configure LSRD.
<~LSRD> system-view
[~LSRD] isis 1
[*LSRD-isis-1] network-entity 10.0010.0200.0001.00
[*LSRD-isis-1] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-Gigabitethernet1/0/0] isis enable 1
[*LSRD-Gigabitethernet1/0/0] isis circuit-level level-2
[*LSRD-Gigabitethernet1/0/0] quit
[*LSRD] interface gigabitethernet 1/0/1
[*LSRD-Gigabitethernet1/0/1] isis enable 1
[*LSRD-Gigabitethernet1/0/1] isis circuit-level level-1
[*LSRD-Gigabitethernet1/0/1] quit
[*LSRD] interface gigabitethernet 1/0/2
[*LSRD-Gigabitethernet1/0/2] isis enable 1
[*LSRD-Gigabitethernet1/0/2] isis circuit-level level-1
[*LSRD-Gigabitethernet1/0/2] quit
[*LSRD] interface loopback 0
[*LSRD-LoopBack0] isis enable 1
[*LSRD-LoopBack0] commit
[~LSRD-LoopBack0] quit

# Configure LSRB.
<~LSRB> system-view
[~LSRB] isis 1
[*LSRB-isis-1] is-level level-1
[*LSRB-isis-1] network-entity 10.0010.0300.0001.00
[*LSRB-isis-1] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-Gigabitethernet1/0/0] isis enable 1
[*LSRB-Gigabitethernet1/0/0] quit
[*LSRB] interface loopback 0
[*LSRB-LoopBack0] isis enable 1
[*LSRB-LoopBack0] commit
[~LSRB-LoopBack0] quit

# Configure LSRC.
<~LSRC> system-view
[~LSRC] isis 1
[*LSRC-isis-1] is-level level-1
[*LSRC-isis-1] network-entity 10.0010.0300.0002.00
[*LSRC-isis-1] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-Gigabitethernet1/0/0] isis enable 1
[*LSRC-Gigabitethernet1/0/0] quit
[*LSRC] interface loopback 0
[*LSRC-LoopBack0] isis enable 1
[*LSRC-LoopBack0] commit
[~LSRC-LoopBack0] quit

# Run the display ip routing-table command on LSRA to check route


information.
[~LSRA] display ip routing-table

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 609


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route


------------------------------------------------------------------------------
Routing Table: Public
Destinations : 9 Routes : 9

Destination/Mask Proto Pre Cost Flags NextHop Interface

10.10.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0


10.10.2.2/32 ISIS-L1 15 10 D 10.1.1.2 Gigabitethernet1/0/0
10.10.3.1/32 ISIS-L1 15 20 D 10.1.1.2 Gigabitethernet1/0/0
10.10.3.2/32 ISIS-L1 15 20 D 10.1.1.2 Gigabitethernet1/0/0
10.1.1.0/24 Direct 0 0 D 10.1.1.1 Gigabitethernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 Gigabitethernet1/0/0
10.1.1.2/32 Direct 0 0 D 10.1.1.2 Gigabitethernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Step 3 Configure a policy for summarizing routes.


# On LSRD, run the summary command to summarize host routes to LSRB and
LSRC.
[~LSRD] isis 1
[*LSRD-isis-1] summary 10.10.3.0 255.255.255.0 avoid-feedback
[*LSRD-isis-1] commit
[~LSRD-isis-1] quit

# Run the display ip routing-table command on LSRA to check route


information.
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table: Public
Destinations : 8 Routes : 8

Destination/Mask Proto Pre Cost Flags NextHop Interface

10.10.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack0


10.10.2.2/32 ISIS-L1 15 10 D 10.1.1.2 Gigabitethernet1/0/0
10.10.3.0/24 ISIS-L1 15 20 D 10.1.1.2 Gigabitethernet1/0/0
10.1.1.0/24 Direct 0 0 D 10.1.1.1 Gigabitethernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 Gigabitethernet1/0/0
10.1.1.2/32 Direct 0 0 D 10.1.1.2 Gigabitethernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0

The command output shows that the host routes to LSRB and LSRC have been
summarized.
Step 4 Configure MPLS and MPLS LDP globally and on interfaces on each node so that
the network can forward MPLS traffic. Then, check information about established
LSPs.
# Configure LSRA.
[~LSRA] mpls lsr-id 10.10.1.1
[~LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp
[*LSRA-mpls-ldp] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-Gigabitethernet1/0/0] mpls
[*LSRA-Gigabitethernet1/0/0] mpls ldp
[*LSRA-Gigabitethernet1/0/0] commit
[~LSRA-Gigabitethernet1/0/0] quit

# Configure LSRD.
[~LSRD] mpls lsr-id 10.10.2.2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 610


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRD] mpls
[*LSRD-mpls] quit
[*LSRD] mpls ldp
[*LSRD-mpls-ldp] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-Gigabitethernet1/0/0] mpls
[*LSRD-Gigabitethernet1/0/0] mpls ldp
[*LSRD-Gigabitethernet1/0/0] quit
[*LSRD] interface gigabitethernet 1/0/1
[*LSRD-Gigabitethernet1/0/1] mpls
[*LSRD-Gigabitethernet1/0/1] mpls ldp
[*LSRD-Gigabitethernet1/0/1] quit
[*LSRD] interface gigabitethernet 1/0/2
[*LSRD-Gigabitethernet1/0/2] mpls
[*LSRD-Gigabitethernet1/0/2] mpls ldp
[*LSRD-Gigabitethernet1/0/2] commit
[~LSRD-Gigabitethernet1/0/2] quit

# Configure LSRB.
[~LSRB] mpls lsr-id 10.10.3.1
[~LSRB] mpls
[*LSRB-mpls] quit
[*LSRB] mpls ldp
[*LSRB-mpls-ldp] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-Gigabitethernet1/0/0] mpls
[*LSRB-Gigabitethernet1/0/0] mpls ldp
[*LSRB-Gigabitethernet1/0/0] commit
[~LSRB-Gigabitethernet1/0/0] quit

# Configure LSRC.
[~LSRC] mpls lsr-id 10.10.3.2
[~LSRC] mpls
[*LSRC-mpls] quit
[*LSRC] mpls ldp
[*LSRC-mpls-ldp] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-Gigabitethernet1/0/0] mpls
[*LSRC-Gigabitethernet1/0/0] mpls ldp
[*LSRC-Gigabitethernet1/0/0] commit
[~LSRC-Gigabitethernet1/0/0] quit

# After completing the configuration, run the display mpls lsp command on LSRA
to check information about the established LSP.
[~LSRA] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
10.10.2.2/32 NULL/3 -/Gigabitethernet1/0/0
10.10.2.2/32 1024/3 -/Gigabitethernet1/0/0

The preceding command output shows that by default, LDP does not establish
inter-area LSPs from LSRA to LSRB or from LSRA to LSRC.
Step 5 Configure LDP extension for inter-area LSPs.
# Run the longest-match command on LSRA to enable LDP to use the longest
match rule to search for routes to establish LSPs.
[~LSRA] mpls ldp
[*LSRA-mpls-ldp] longest-match
[*LSRA-mpls-ldp] commit
[~LSRA-mpls-ldp] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 611


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 6 Verify the configuration.


# After completing the preceding configuration, run the display mpls lsp
command on LSRA to check established LSPs.
[~LSRA] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
10.10.2.2/32 NULL/3 -/Gigabitethernet1/0/0
10.10.2.2/32 1024/3 -/Gigabitethernet1/0/0
10.10.3.1/32 NULL/1025 -/Gigabitethernet1/0/0
10.10.3.1/32 1025/1025 -/Gigabitethernet1/0/0
10.10.3.2/32 NULL/1026 -/Gigabitethernet1/0/0
10.10.3.2/32 1026/1026 -/Gigabitethernet1/0/0

The preceding command output shows that LDP has established inter-area LSPs
from LSRA to LSRB and from LSRA to LSRC.

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 10.10.1.1
mpls
#
mpls ldp
longest-match
#
isis 1
is-level level-2
network-entity 20.0010.0100.0001.00
#
interface gigabitethernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 10.10.1.1 255.255.255.255
isis enable 1
#
return

● LSRD configuration file


#
sysname LSRD
#
mpls lsr-id 10.10.2.2
mpls
#
mpls ldp
#
isis 1
network-entity 10.0010.0200.0001.00
import-route isis level-1 into level-2 filter-policy ip-prefix permit-host
summary 10.10.3.0 255.255.255.0 avoid-feedback
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 612


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface gigabitethernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
isis enable 1
isis circuit-level level-2
mpls
mpls ldp
#
interface gigabitethernet1/0/1
undo shutdown
ip address 10.1.2.1 255.255.255.0
isis enable 1
isis circuit-level level-1
mpls
mpls ldp
#
interface gigabitethernet1/0/2
undo shutdown
ip address 10.1.3.1 255.255.255.0
isis enable 1
isis circuit-level level-1
mpls
mpls ldp
#
interface LoopBack0
ip address 10.10.2.2 255.255.255.255
isis enable 1
#
ip ip-prefix permit-host index 10 permit 0.0.0.0 32
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 10.10.3.1
mpls
#
mpls ldp
#
isis 1
is-level level-1
network-entity 10.0010.0300.0001.00
#
interface gigabitethernet1/0/0
undo shutdown
ip address 10.1.2.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 10.10.3.1 255.255.255.255
isis enable 1
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 10.10.3.2
mpls
#
mpls ldp
#
isis 1
is-level level-1
network-entity 10.0010.0300.0002.00

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 613


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
interface gigabitethernet1/0/0
undo shutdown
ip address 10.1.3.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 10.10.3.2 255.255.255.255
isis enable 1
#
return

1.1.4.29.9 Example for Configuring Static BFD for LDP LSP


This section provides an example for configuring static BFD for LDP LSP. The
configuration involves enabling MPLS and MPLS LDP globally and for specific
interfaces and enabling BFD on two ends of a link to be monitored.

Networking Requirements
On the network shown in Figure 1-51, establish an LDP LSP along the path PE1 ->
P1 -> PE2, and an IP link along the path PE2 -> P2 -> PE1. Configure static BFD to
monitor the LDP LSP.

Figure 1-51 Networking diagram of BFD for LDP LSP


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 1/0/1, respectively.

Configuration Roadmap
The configuration roadmap is as follows:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 614


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1. Configure OSPF in the MPLS domain to implement network layer connectivity.


2. Establish an LDP LSP along the path PE1 -> P1 -> PE2.
3. On PE1, configure a BFD session and bind it to the LDP LSP.
4. On PE2, configure a BFD session and bind it to the IP link, enabling PE2 to
notify PE1 of LDP LSP faults.

Data Preparation
To complete the configuration, you need the following data:
● IP addresses of interfaces
● OSPF process ID
● BFD configuration name and local and remote discriminators

Procedure
Step 1 Assign an IP address to each interface and configure OSPF.
Assign an IP address and a mask to each interface (including loopback interfaces)
according to Figure 1-51.
Configure OSPF on all nodes to advertise the host route of each loopback
interface. For configuration details, see Configuration Files.
After completing the configuration, ping the LSR ID of each peer to check that the
LSRs interwork successfully. Run the display ip routing-table command on each
LSR to view the routes to the other LSRs.
<PE1> display ip routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 16 Routes : 16

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack1


2.2.2.2/32 OSPF 10 2 D 10.1.1.2 GigabitEthernet1/0/0
3.3.3.3/32 OSPF 10 2 D 10.1.2.2 GigabitEthernet1/0/1
4.4.4.4/32 OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
OSPF 10 3 D 10.1.2.2 GigabitEthernet1/0/1
10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.2.0/24 Direct 0 0 D 10.1.2.1 GigabitEthernet1/0/1
10.1.2.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/1
10.1.2.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/1
10.1.4.0/24 OSPF 10 3 D 10.1.2.2 GigabitEthernet1/0/1
10.1.5.0/24 OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Step 2 Establish an LDP LSP along the path PE1 -> P1 -> PE2.
# Configure PE1.
<PE1> system-view
[~PE1] mpls lsr-id 1.1.1.1
[*PE1] mpls

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 615


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-mpls] quit
[*PE1] mpls ldp
[*PE1-mpls] quit
[*PE1]interface gigabitethernet 1/0/0
[*PE1-GigabitEthernet1/0/0] mpls
[*PE1-GigabitEthernet1/0/0] mpls ldp
[*PE1-GigabitEthernet1/0/0] quit
[*PE1] commit

# Configure P1.
<P1> system-view
[~P1] mpls lsr-id 2.2.2.2
[*P1] mpls
[*P1-mpls] quit
[*P1] mpls ldp
[*P1-mpls] quit
[*P1]interface gigabitethernet 1/0/0
[*P1-GigabitEthernet1/0/0] mpls
[*P1-GigabitEthernet1/0/0] mpls ldp
[*P1-GigabitEthernet1/0/0] quit
[*P1]interface gigabitethernet 1/0/1
[*P1-GigabitEthernet1/0/1] mpls
[*P1-GigabitEthernet1/0/1] mpls ldp
[*P1-GigabitEthernet1/0/1] quit
[*P1] commit

# Configure PE2.
<PE2> system-view
[~PE2] mpls lsr-id 4.4.4.4
[*PE2] mpls
[*PE2-mpls] quit
[*PE2] mpls ldp
[*PE2-mpls] quit
[*PE2]interface gigabitethernet 1/0/0
[*PE2-GigabitEthernet1/0/0] mpls
[*PE2-GigabitEthernet1/0/0] mpls ldp
[*PE2-GigabitEthernet1/0/0] quit
[*PE2] commit

# Run the display mpls ldp lsp command to check whether an LDP LSP destined
for 4.4.4.4/32 has been established on PE1.
<PE1> display mpls ldp lsp
LDP LSP Information
-------------------------------------------------------------------------------
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
-------------------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface
-------------------------------------------------------------------------------
1.1.1.1/32 3/NULL 2.2.2.2 127.0.0.1 LoopBack1
*1.1.1.1/32 Liberal/21 DS/2.2.2.2
2.2.2.2/32 NULL/3 - 10.1.1.2 GE1/0/0
2.2.2.2/32 16/3 2.2.2.2 10.1.1.2 GE1/0/0
4.4.4.4/32 NULL/22 - 10.1.1.2 GE1/0/0
4.4.4.4/32 17/22 2.2.2.2 10.1.1.2 GE1/0/0
-------------------------------------------------------------------------------
TOTAL: 5 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
An asterisk (*) before an LSP means the LSP is not established
An asterisk (*) before a Label means the USCB or DSCB is stale
An asterisk (*) before an UpstreamPeer means the session is stale
An asterisk (*) before a DS means the session is stale
An asterisk (*) before a NextHop means the LSP is FRR LSP

Step 3 Enable BFD globally on the two ends of a link to be monitored.


# Configure PE1.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 616


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

<PE1> system-view
[~PE1] bfd
[*PE1-bfd] quit
[*PE1] commit

# Configure P2.
<PE2> system-view
[~PE2] bfd
[*PE2-bfd] quit
[*PE2] commit

Step 4 On the ingress, configure a BFD session and bind it to the LDP LSP.
# Configure PE1.
<PE1> system-view
[~PE1] bfd 1to4 bind ldp-lsp peer-ip 4.4.4.4 nexthop 10.1.1.2 interface gigabitethernet 1/0/0
[*PE1-bfd-lsp-session-1to4] discriminator local 1
[*PE1-bfd-lsp-session-1to4] discriminator remote 2
[*PE1-bfd-lsp-session-1to4] process-pst
[*PE1-bfd-lsp-session-1to4] commit
[~PE1-bfd-lsp-session-1to4] quit

Step 5 On the egress, configure a BFD session and bind it to the IP link, enabling the
egress to notify the ingress of LDP LSP faults.
# Configure PE2.
<PE2> system-view
[~PE2] bfd 4to1 bind peer-ip 1.1.1.1
[*PE2-bfd-session-4ot1] discriminator local 2
[*PE2-bfd-session-4ot1] discriminator remote 1
[*PE2-bfd-session-4ot1] commit
[~PE2-bfd-session-4ot1] quit

Step 6 Verify the configuration.


# After completing the configuration, run the display bfd session all verbose
command on the ingress. The State field displays Up, and the BFD Bind Type field
displays LDP_LSP.
<PE1> display bfd session all verbose
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
State : Up Name : 1to4
--------------------------------------------------------------------------------
Local Discriminator : 1 Remote Discriminator : 2
Session Detect Mode : Asynchronous Mode Without Echo Function
BFD Bind Type : LDP_LSP
Bind Session Type : Static
Bind Peer IP Address : 4.4.4.4
NextHop Ip Address : 10.1.1.2
Bind Interface : GigabitEthernet1/0/0
Tunnel ID :-
FSM Board Id :3 TOS-EXP :7
Min Tx Interval (ms) : 10 Min Rx Interval (ms) : 10
Actual Tx Interval (ms): 10 Actual Rx Interval (ms): 10
Local Detect Multi :3 Detect Interval (ms) : 30
Echo Passive : Disable Acl Number :-
Destination Port : 3784 TTL :1
Proc Interface Status : Disable Process PST : Enable
WTR Interval (ms) :- Config PST : Enable
Active Multi :3
Last Local Diagnostic : No Diagnostic
Bind Application : No Application Bind
Session TX TmrID :- Session Detect TmrID : -
Session Init TmrID :- Session WTR TmrID :-

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 617


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Session Echo Tx TmrID : -


Session Description : -
--------------------------------------------------------------------------------

Total UP/DOWN Session Number : 1/0

Run the display bfd session all verbose command on the egress. The (Multi
Hop) State field displays Up, and the BFD Bind Type field displays Peer IP
Address.
<PE2> display bfd session all verbose
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
(Multi Hop) State : Up Name : 4to1
--------------------------------------------------------------------------------
Local Discriminator : 2 Remote Discriminator : 1
Session Detect Mode : Asynchronous Mode Without Echo Function
BFD Bind Type : Peer IP Address
Bind Session Type : Static
Bind Peer IP Address : 1.1.1.1
Bind Interface :-
Track Interface :-
Bind Source IP Address : 4.4.4.4
FSM Board Id :3 TOS-EXP :7
Min Tx Interval (ms) : 10 Min Rx Interval (ms) : 10
Actual Tx Interval (ms): 10 Actual Rx Interval (ms): 10
Local Detect Multi :3 Detect Interval (ms) : 30
Echo Passive : Disable Acl Number :-
Destination Port : 3784 TTL : 254
Proc Interface Status : Disable Process PST : Disable
WTR Interval (ms) :- Config PST : Disable
Active Multi :3
Last Local Diagnostic : No Diagnostic
Bind Application : No Application Bind
Session TX TmrID :- Session Detect TmrID : -
Session Init TmrID :- Session WTR TmrID :-
Session Echo Tx TmrID : -
Session Description : -
--------------------------------------------------------------------------------

Total UP/DOWN Session Number : 1/0

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
bfd
#
mpls lsr-id 1.1.1.1
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 618


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

undo shutdown
ip address 10.1.2.1 255.255.255.0
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
#
bfd 1to4 bind ldp-lsp peer-ip 4.4.4.4 nexthop 10.1.1.2 interface GigabitEthernet1/0/0
discriminator local 1
discriminator remote 2
process-pst
#
return
● PE2 configuration file
#
sysname PE2
#
bfd
#
mpls lsr-id 4.4.4.4
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.5.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.4.1 255.255.255.0
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
ospf 1
area 0.0.0.0
network 10.1.5.0 0.0.0.255
network 10.1.4.0 0.0.0.255
network 4.4.4.4 0.0.0.0
#
bfd 4to1 bind peer-ip 1.1.1.1
discriminator local 2
discriminator remote 1
#
return
● P1 configuration
#
sysname P1
#
mpls lsr-id 2.2.2.2
#
mpls
#
mpls ldp
#
ipv4-family
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 619


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.5.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.1.5.0 0.0.0.255
return

● P2 configuration file
#
sysname P2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.2.2 255.255.255.0
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.4.2 255.255.255.0
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 10.1.4.0 0.0.0.255
network 10.1.2.0 0.0.0.255
return

1.1.4.29.10 Example for Configuring Dynamic BFD for LDP LSP


This section provides an example for configuring dynamic BFD to monitor LDP
LSPs.

Networking Requirements
The proliferation of MPLS LDP applications drives the increasing demand for
network reliability. To meet the reliability requirement, BFD for LDP can be used.
BFD for LDP is a detection mechanism that can rapidly detect faults and trigger a
primary/backup LSP switchover. The BFD for LDP function and LDP FRR function
are used together on an MPLS LDP network.
On the network shown in Figure 1-52, PE1, P1, P2, and PE2 are in the same MPLS
domain. PE1 and PE2 establish primary and backup LDP LSPs. To monitor the LDP
LSPs, configure dynamic BFD.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 620


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-52 Networking diagram for configuring dynamic BFD for LDP LSP
NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 1/0/1, respectively.

Configuration Notes
During the configuration, note the following:

● Each LSR must have route entries that exactly match FECs for the LSPs to be
established.
● By default, the triggering policy is host, allowing a device to use host IP
routes with 32-bit addresses to trigger LDP LSP establishment.
● If the triggering policy is all, a device is allowed to use all IGP routes to
trigger LDP LSP establishment. The device does not use public network BGP
routes to trigger LDP LSP establishment.

Configuration Roadmap
The configuration roadmap is as follows:

1. Assign an IP address to each interface of each LSR according to Figure 1-52.


2. Configure OSPF to implement network layer connectivity and set interface
cost values so that the LSP along the path PE1 -> P1 -> PE2 functions as the
primary LSP, and the LSP along the path PE1 -> P2 -> PE2 functions as the
backup LSP.
3. Enable LSRs to use all IGP routes to establish LDP LSPs.
4. Configure OSPF FRR and LDP Auto FRR to create a backup LSP between PE1
and PE2.
5. Configure dynamic BFD for LDP to use FEC lists to create BFD sessions.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 621


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Data Preparation
To complete the configuration, you need the following data:
● LSR ID and interface IP addresses of each node, as shown in Figure 1-52
● OSPF process ID (1) and area ID (0)
● Policy for triggering LSP establishment (all routes); FEC list names (l1 and l2)
● Minimum interval (100 ms) at which BFD packets are sent, minimum interval
(600 ms) at which BFD packets are received, and detection multiplier (4)

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address to each interface according to Figure 1-52 and create a
loopback interface on each node. For details, see the configuration files.
Step 2 Configure OSPF.
Configure OSPF on each node to implement network layer connectivity. For
details, see the configuration files.
Step 3 Configure LDP LSPs.
Configure MPLS LDP on each node and enable the nodes to use all IGP routes to
establish LDP LSPs. For details, see the configuration files.
Step 4 Configure OSPF FRR and LDP Auto FRR on each node.
# Configure PE1.
[~PE1] ospf 1
[~PE1-ospf-1] frr
[*PE1-ospf-1-frr] loop-free-alternate
[*PE1-ospf-1-frr] commit
[~PE1-ospf-1-frr] quit
[~PE1-ospf-1] quit
[~PE1] mpls ldp
[~PE1-mpls-ldp] auto-frr lsp-trigger all
[*PE1-mpls-ldp] commit
[~PE1-mpls-ldp] quit

# Configure PE2.
[~PE2] ospf 1
[~PE2-ospf-1] frr
[*PE2-ospf-1-frr] loop-free-alternate
[*PE2-ospf-1-frr] commit
[~PE2-ospf-1-frr] quit
[~PE2-ospf-1] quit
[~PE2] mpls ldp
[~PE2-mpls-ldp] auto-frr lsp-trigger all
[*PE2-mpls-ldp] commit
[~PE2-mpls-ldp] quit

Step 5 Configure dynamic BFD sessions to monitor LDP LSPs.


# Enable BFD, specify a FEC list used to establish a BFD session, and set BFD
parameters on PE1.
[~PE1] bfd
[*PE1-bfd] mpls-passive
[*PE1-bfd] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 622


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~PE1-bfd] quit
[~PE1] fec-list l1
[*PE1-fec-list-l1] fec-node 4.4.4.4
[*PE1-fec-list-l1] commit
[~PE1-fec-list-l1] quit
[~PE1] mpls
[~PE1-mpls] mpls bfd enable
[*PE1-mpls] mpls bfd-trigger fec-list l1
[*PE1-mpls] mpls bfd min-tx-interval 100 min-rx-interval 600 detect-multiplier 4
[*PE1-mpls] commit
[~PE1-mpls] quit

# Enable BFD, specify a FEC list used to establish a BFD session, and set BFD
parameters on PE2.
[~PE2] bfd
[*PE2-bfd] mpls-passive
[*PE2-bfd] commit
[~PE2-bfd] quit
[~PE2] fec-list l2
[*PE2-fec-list-l2] fec-node 1.1.1.1
[*PE2-fec-list-l2] commit
[~PE2-fec-list-l2] quit
[~PE2] mpls
[~PE2-mpls] mpls bfd enable
[*PE2-mpls] mpls bfd-trigger fec-list l2
[*PE2-mpls] mpls bfd min-tx-interval 100 min-rx-interval 600 detect-multiplier 4
[*PE2-mpls] commit
[~PE2-mpls] quit

Step 6 Verify the configuration.

# Run the display bfd session all verbose command to view the dynamic BFD
session status on PE1. The BFD session status is Up.
[~PE1] display bfd session all verbose
(w): State in WTR (*): State is invalid
--------------------------------------------------------------------------------
State : Up Name : dyn_16388
--------------------------------------------------------------------------------
Local Discriminator : 16388 Remote Discriminator : 16386
Session Detect Mode : Asynchronous Mode Without Echo Function
BFD Bind Type : LDP_LSP
Bind Session Type : Dynamic
Bind Peer IP Address : 4.4.4.4
NextHop Ip Address : 10.1.1.2
Bind Interface : GigabitEthernet1/0/0
Tunnel ID :-
FSM Board Id :3 TOS-EXP :7
Min Tx Interval (ms) : 600 Min Rx Interval (ms) : 100
Actual Tx Interval (ms): 600 Actual Rx Interval (ms): 100
Local Detect Multi :4 Detect Interval (ms) : 300
Echo Passive : Disable Acl Number :-
Destination Port : 3784 TTL :1
Proc Interface Status : Disable Process PST : Enable
WTR Interval (ms) :- Config PST : Enable
Active Multi :3
Last Local Diagnostic : No Diagnostic
Bind Application : LDP
Session TX TmrID :- Session Detect TmrID : -
Session Init TmrID :- Session WTR TmrID :-
Session Echo Tx TmrID : -
Session Description : -
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(Multi Hop) State : Up Name : dyn_16390
--------------------------------------------------------------------------------
Local Discriminator : 16390 Remote Discriminator : 16387

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 623


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Session Detect Mode : Asynchronous Mode Without Echo Function


BFD Bind Type : Peer IP Address
Bind Session Type : Entire_Dynamic
Bind Peer IP Address : 4.4.4.4
Bind Interface :-
Track Interface :-
Bind Source IP Address : 1.1.1.1
FSM Board Id :3 TOS-EXP :7
Min Tx Interval (ms) : 10 Min Rx Interval (ms) : 10
Actual Tx Interval (ms): 100 Actual Rx Interval (ms): 600
Local Detect Multi :3 Detect Interval (ms) : 2400
Echo Passive : Disable Acl Number :-
Destination Port : 3784 TTL : 253
Proc Interface Status : Disable Process PST : Disable
WTR Interval (ms) :- Config PST : Disable
Active Multi :4
Last Local Diagnostic : No Diagnostic
Bind Application : No Application Bind
Session TX TmrID :- Session Detect TmrID : -
Session Init TmrID :- Session WTR TmrID :-
Session Echo Tx TmrID : -
Session Description : -
--------------------------------------------------------------------------------

Total UP/DOWN Session Number : 2/0

# Run the display bfd session passive-dynamic verbose command on PE2 to


check the status of the passively created BFD session. The BFD session status is
Up. The BFD Bind Type value is Peer IP Address, which indicates that PE2 sends
BFD packets over IP routes.
[~PE2] display bfd session passive-dynamic verbose
(w): State in WTR (*): State is invalid
--------------------------------------------------------------------------------
(Multi Hop) State : Up Name : dyn_16386
--------------------------------------------------------------------------------
Local Discriminator : 16386 Remote Discriminator : 16388
Session Detect Mode : Asynchronous Mode Without Echo Function
BFD Bind Type : Peer IP Address
Bind Session Type : Entire_Dynamic
Bind Peer IP Address : 1.1.1.1
Bind Interface :-
Track Interface :-
Bind Source IP Address : 4.4.4.4
FSM Board Id :3 TOS-EXP :7
Min Tx Interval (ms) : 10 Min Rx Interval (ms) : 10
Actual Tx Interval (ms): 100 Actual Rx Interval (ms): 600
Local Detect Multi :3 Detect Interval (ms) : 2400
Echo Passive : Disable Acl Number :-
Destination Port : 3784 TTL : 253
Proc Interface Status : Disable Process PST : Disable
WTR Interval (ms) :- Config PST : Disable
Active Multi :4
Last Local Diagnostic : No Diagnostic
Bind Application : No Application Bind
Session TX TmrID :- Session Detect TmrID : -
Session Init TmrID :- Session WTR TmrID :-
Session Echo Tx TmrID : -
Session Description : -
--------------------------------------------------------------------------------

Total UP/DOWN Session Number : 1/0

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 624


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Files
● PE1 configuration file
#
sysname PE1
#
bfd
mpls-passive
#
mpls lsr-id 1.1.1.1
#
mpls
lsp-trigger all
mpls bfd enable
mpls bfd-trigger fec-list l1
mpls bfd min-tx-interval 100 min-rx-interval 600 detect-multiplier 4
#
fec-list l1
fec-node 4.4.4.4
#
mpls ldp
#
ipv4-family
auto-frr lsp-trigger all
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.1 255.255.255.0
ospf cost 2
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
ospf 1
frr
loop-free-alternate
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.1.2.0 0.0.0.255
#
return

● PE2 configuration file


#
sysname PE2
#
bfd
mpls-passive
#
mpls lsr-id 4.4.4.4
#
mpls
lsp-trigger all
mpls bfd enable
mpls bfd-trigger fec-list l2
mpls bfd min-tx-interval 100 min-rx-interval 600 detect-multiplier 4
#
fec-list l2
fec-node 1.1.1.1
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 625


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls ldp
#
ipv4-family
auto-frr lsp-trigger all
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.5.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.4.1 255.255.255.0
ospf cost 2
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
ospf 1
frr
loop-free-alternate
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.1.4.0 0.0.0.255
network 10.1.5.0 0.0.0.255
#
return
● P1 configuration file
#
sysname P1
#
mpls lsr-id 2.2.2.2
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.5.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.1.5.0 0.0.0.255
#
return
● P2 configuration file
#
sysname P2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 626


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
mpls lsr-id 3.3.3.3
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.2.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.4.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 10.1.2.0 0.0.0.255
network 10.1.4.0 0.0.0.255
#
return

1.1.4.29.11 Example for Configuring Dynamic BFD for LDP Tunnel


This section provides an example for configuring dynamic BFD to monitor an LDP
tunnel. The configuration involves configuring LDP FRR and configuring dynamic
BFD for LDP tunnel.

Networking Requirements
When LDP LSPs transmit application traffic, for example, VPN, to improve network
reliability, LDP FRR and an LDP upper-layer protection mechanism, such as VPN
FRR or VPN equal-cost multipath (ECMP), are used. BFD for LDP LSP only detects
primary LSP faults and switches traffic to an FRR LSP. If the primary and FRR LSPs
fail simultaneously, the BFD mechanism does not take effect. In this situation, LDP
can instruct its upper-layer application to perform a protection switchover only
after LDP detects the FRR LSP failure. As a result, a great number of packets are
dropped.

To prevent packet loss occurring when BFD for LDP LSP cannot detect faults of the
primary and backup LSPs, configure dynamic BFD for LDP tunnel to create a
dynamic BFD session that monitors the primary LSP and FRR LSP. In this way,
when both the primary LSP and FRR LSP are faulty, BFD can quickly detect and
trigger the upper-layer application of the LDP to perform protection switching and
reduce traffic loss.

On the network shown in Figure 1-53, an LDP LSP originates from LSRA and is
destined for LSRD. LDP Auto FRR is configured to protect LSP traffic. LSRA
establishes the primary LSP over the path LSRA -> LSRC -> LSRD and the FRR LSP
over the path LSRA -> LSRB -> LSRC -> LSRD. Dynamic BFD for LDP tunnel can be

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 627


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

configured to dynamically create a BFD session to monitor both the primary and
FRR LSPs.

Figure 1-53 Networking diagram of dynamic BFD for LDP tunnel


NOTE

Interfaces 1 through 3 in this example represent GE 1/0/0, GE 1/0/1, and GE 1/0/2,


respectively.

Configuration Roadmap
The configuration roadmap is as follows:

1. Establish an LDP LSP between LSRA and LSRD.


2. Configure LDP Auto FRR.
3. Configure a dynamic BFD session to monitor an LDP tunnel.

Data Preparation
To complete the configuration, you need the following data:

● IP address of each interface on each node: values shown in Figure 1-53.


● LSR ID of each node: loopback addresses shown in Figure 1-53
● IS-IS process number (1), IS-IS level (level-2), and network entity name of
each node:
– LSRA: 10.0000.0000.0001.00
– LSRC: 10.0000.0000.0002.00
– LSRB: 10.0000.0000.0003.00
– LSRD: 10.0000.0000.0004.00
● Name of a FEC list used to establish the BFD session: list1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 628


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Assign an IP address to each interface. For configuration details, see
Configuration Files in this section.
Step 2 Configure basic IS-IS functions. For configuration details, see Configuration Files
in this section.
Step 3 Configure LDP LSPs.
# Configure LSRA.
<LSRA> system-view
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp
[*LSRA-mpls-ldp] quit
[*LSRA] interface GigabitEthernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls ldp
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] interface GigabitEthernet 1/0/1
[*LSRA-GigabitEthernet1/0/1] mpls
[*LSRA-GigabitEthernet1/0/1] mpls ldp
[*LSRA-GigabitEthernet1/0/1] quit

# Repeat this step for LSRB, LSRC, and LSRD. For configuration details, see
Configuration Files in this section.
Step 4 Configure LDP Auto FRR.
# Enable IS-IS Auto FRR on LSRA.
[~LSRA] isis 1
[*LSRA-isis-1] frr
[*LSRA-isis-1-frr] loop-free-alternate level-2
[*LSRA-isis-1-frr] quit
[*LSRA-isis-1] commit
[~LSRA-isis-1] quit

After IS-IS Auto FRR is enabled, LDP Auto FRR automatically takes effect. Then,
run the display mpls lsp command on LSRA to view information about the
primary and FRR LSPs.
[~LSRA] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.9/32 3/NULL -/-
2.2.2.9/32 NULL/3 -/GE1/0/1
2.2.2.9/32 32833/3 -/GE1/0/1
**LDP FRR** NULL/32835 -/GE1/0/0
**LDP FRR** 32833/32835 -/GE1/0/0
3.3.3.9/32 NULL/3 -/GE1/0/1
3.3.3.9/32 32837/3 -/GE1/0/1
**LDP FRR** NULL/32837 -/GE1/0/0
**LDP FRR** 32837/32837 -/GE1/0/0
4.4.4.9/32 NULL/32832 -/GE1/0/1
4.4.4.9/32 32836/32832 -/GE1/0/1
**LDP FRR** NULL/32836 -/GE1/0/0
**LDP FRR** 32836/32836 -/GE1/0/0
10.1.3.0/24 32834/3 -/GE1/0/0
10.1.3.0/24 32834/3 -/GE1/0/1
10.1.4.0/24 32835/3 -/GE1/0/1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 629


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 5 Enable BFD globally.

# Configure LSRA.
[~LSRA] bfd
[*LSRA-bfd] commit
[~LSRA-bfd] quit

# Configure LSRD.
[~LSRD] bfd
[*LSRD-bfd] commit
[~LSRD-bfd] quit

Step 6 Enable the function to dynamically create BFD sessions in the MPLS scenario.

# Configure LSRA.
[~LSRA] mpls
[~LSRA-mpls] mpls bfd enable
[*LSRA-mpls] commit
[~LSRA-mpls] quit

# Configure LSRD.
[~LSRD] bfd
[~LSRD-bfd] mpls-passive
[*LSRD-bfd] commit
[~LSRD-bfd] quit

Step 7 Configure a policy for triggering dynamic BFD for LDP tunnel.

# On LSRA, create a FEC list and add a node with IP address 4.4.4.9 to the list so
that the FEC list is used to establish a BFD session only to monitor the LDP tunnel
from LSRA to LSRD.
[~LSRA] fec-list list1
[*LSRA-fec-list-list1] fec-node 4.4.4.9
[*LSRA-fec-list-list1] commit
[~LSRA-fec-list-list1] quit

# Specify the FEC list on LSRA so that LSRA uses it to establish a BFD session.
[~LSRA] mpls
[~LSRA-mpls] mpls bfd-trigger-tunnel fec-list list1
[*LSRA-mpls] commit
[~LSRA-mpls] quit

Step 8 Verify the configuration.

# Run the display mpls bfd session protocol ldp bfd-type ldp-tunnel verbose
command on LSRA. The command output shows that a dynamic BFD session is
Up.
[~LSRA] display mpls bfd session protocol ldp bfd-type ldp-tunnel verbose
--------------------------------------------------------------------------------
BFD Information: LDP Tunnel
--------------------------------------------------------------------------------
No :1
LspIndex :0
Protocol : LDP
Fec : 4.4.4.9
Bfd-Discriminator : 16389
ActTx : 10
ActRx : 10
ActMulti :3

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 630


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Bfd-State : Up
Time : 800 sec

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
bfd
#
mpls lsr-id 1.1.1.1
#
mpls
mpls bfd enable
mpls bfd-trigger-tunnel fec-list list1
#
fec-list list1
fec-node 4.4.4.9
#
mpls ldp
#
ipv4-family
#
isis 1
is-level level-2
network-entity 10.0000.0000.0001.00
frr
loop-free-alternate level-1
loop-free-alternate level-2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 1.1.1.9 255.255.255.255
isis enable 1
#
return

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 2.2.2.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
isis 1
is-level level-2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 631


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

network-entity 10.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.3.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 2.2.2.9 255.255.255.255
isis enable 1
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
isis 1
is-level level-2
network-entity 10.0000.0000.0003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.4.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.3.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 3.3.3.9 255.255.255.255
isis enable 1
#
return
● LSRD configuration file
#
sysname LSRD
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 632


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

bfd
mpls-passive
#
mpls lsr-id 4.4.4.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
isis 1
is-level level-2
network-entity 10.0000.0000.0004.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.4.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 4.4.4.9 255.255.255.255
isis enable 1
#
return

1.1.4.29.12 Example for Configuring LDP Auto FRR


This section provides an example for configuring LDP Auto FRR. The configuration
procedure involves enabling MPLS, MPLS LDP, and IS-IS Auto FRR globally.

Networking Requirements
Modern network services, such as VoIP, online games, and online video services,
have higher requirements on real-time performance. Many services are based on
VPNs, and VPN services usually use LDP tunnels. Data loss due to link faults
adversely affects these services.
To minimize the adverse impact, LDP manual FRR can be configured. If a fault
occurs on a public network, LDP manual FRR switches the VPN services to a
backup LSP before the primary LSP routes re-converge and the primary LSP is
reestablished. Traffic loss during fault detection and traffic switchover to the
backup LSP lasts less than 50 ms. However, after route re-convergence is
complete, the time for a VPN service to switch to the new primary LSP depends on
the VPN implementation. In order to keep the VPN service interruption time
within 50 ms, the speed of switching the VPN service to the new primary LSP
needs to be improved. Configure LDP Auto FRR to address this need.
On the network shown in Figure 1-54, primary and backup LSPs are established
from LSRA to LSRC. The LSP over the path LSRA -> LSRC is the primary one, and
the LSP over the path LSRA -> LSRB -> LSRC is the backup one. To allow traffic to
rapidly switch to the backup LSP if the primary LSP fails, configure LDP Auto FRR
on LSRA to enable LSRA to automatically establish a backup LSP. Traffic can then
be rapidly switched to the backup LSP if a fault occurs in the primary LSP,
minimizing traffic loss.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 633


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-54 Networking diagram of LDP Auto FRR

Table 1-21 Interfaces and IP addresses


Device Interface Name IP Address
Name

LSRA Loopback0 1.1.1.9/32

GigabitEthernet1/0/0 10.1.1.1/24

GigabitEthernet1/0/1 10.1.2.1/24

LSRB Loopback0 2.2.2.9/32

GigabitEthernet1/0/0 10.1.1.2/24

GigabitEthernet1/0/1 10.1.3.1/24

LSRC Loopback0 3.3.3.9/32

GigabitEthernet1/0/0 10.1.4.1/24

GigabitEthernet1/0/0 10.1.2.2/24

GigabitEthernet1/0/2 10.1.3.2/24

LSRD Loopback0 4.4.4.9/32

GigabitEthernet1/0/0 10.1.4.2/24

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign IP addresses to interfaces on each node and configure the loopback
addresses to be used as LSR IDs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 634


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

2. Configure IS-IS to advertise the route to each network segment to which each
interface is connected and to advertise the host route to each LSR ID.
3. Enable MPLS and MPLS LDP on each node and interfaces.
4. Enable IS-IS Auto FRR on the ingress LSR to protect traffic.
5. Configure a policy for triggering LDP LSP establishment based on all routes.
6. Configure a policy for triggering backup LDP LSP establishment on ingress
LSR.

Data Preparation
To complete the configuration, you need the following data:
● IP address of every interface on every node shown in Figure 1-54, IS-IS
process ID, and level of each router
● Policy for triggering backup LDP LSP establishment

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address and a mask to each interface (including loopback interfaces)
according to Figure 1-54.
Step 2 Configure IS-IS to advertise the route to each network segment to which each
interface is connected and to advertise the host route to each LSR ID.
# Configure LSRA.
<LSRA> system-view
[~LSRA] isis 1
[*LSRA-isis-1] network-entity 10.0000.0000.0001.00
[*LSRA-isis-1] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] isis enable 1
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] interface gigabitethernet 1/0/1
[*LSRA-GigabitEthernet1/0/1] isis enable 1
[*LSRA-GigabitEthernet1/0/1] quit
[*LSRA] interface loopBack 0
[*LSRA-LoopBack0] isis enable 1
[*LSRA-LoopBack0] quit
[*LSRA] commit

# Configure LSRB.
<LSRB> system-view
[~LSRB] isis 1
[*LSRB-isis-1] network-entity 10.0000.0000.0002.00
[*LSRB-isis-1] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-GigabitEthernet1/0/0] isis enable 1
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 1/0/1
[*LSRB-GigabitEthernet1/0/1] isis enable 1
[*LSRB-GigabitEthernet1/0/1] quit
[*LSRB] interface loopBack 0
[*LSRB-LoopBack0] isis enable 1
[*LSRB-LoopBack0] quit
[*LSRB] commit

# Configure LSRC.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 635


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

<LSRC> system-view
[~LSRC] isis 1
[*LSRC-isis-1] network-entity 10.0000.0000.0003.00
[*LSRC-isis-1] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] isis enable 1
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] interface gigabitethernet 1/0/1
[*LSRC-GigabitEthernet1/0/1] isis enable 1
[*LSRC-GigabitEthernet1/0/1] quit
[*LSRC] interface gigabitethernet 1/0/2
[*LSRC-GigabitEthernet1/0/2] isis enable 1
[*LSRC-GigabitEthernet1/0/2] quit
[*LSRC] interface loopBack 0
[*LSRC-LoopBack0] isis enable 1
[*LSRC-LoopBack0] quit
[*LSRC] commit

# Configure LSRD.
<LSRD> system-view
[~LSRD] isis 1
[*LSRD-isis-1] network-entity 10.0000.0000.0004.00
[*LSRD-isis-1] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-GigabitEthernet1/0/0] isis enable 1
[*LSRD-GigabitEthernet1/0/0] quit
[*LSRD] interface loopBack 0
[*LSRD-LoopBack0] isis enable 1
[*LSRD-LoopBack0] quit
[*LSRD] commit

Step 3 Configure MPLS and MPLS LDP globally and on interfaces on each node so that
the network can forward MPLS traffic. Then, check information about established
LSPs.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.9
[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp
[*LSRA-mpls-ldp] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls ldp
[*LSRA-GigabitEthernet1/0/0] quit
[*LSRA] interface gigabitethernet 1/0/1
[*LSRA-GigabitEthernet1/0/1] mpls
[*LSRA-GigabitEthernet1/0/1] mpls ldp
[*LSRA-GigabitEthernet1/0/1] quit
[*LSRA] commit

# Configure LSRB.
[~LSRB] mpls lsr-id 2.2.2.9
[*LSRB] mpls
[*LSRB-mpls] quit
[*LSRB] mpls ldp
[*LSRB-mpls-ldp] quit
[*LSRB] interface gigabitethernet 1/0/0
[*LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] mpls ldp
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 1/0/1
[*LSRB-GigabitEthernet1/0/1] mpls
[*LSRB-GigabitEthernet1/0/1] mpls ldp
[*LSRB-GigabitEthernet1/0/1] quit
[*LSRB] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 636


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure LSRC.
[~LSRC] mpls lsr-id 3.3.3.9
[*LSRC] mpls
[*LSRC-mpls] quit
[*LSRC] mpls ldp
[*LSRC-mpls-ldp] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] mpls
[*LSRC-GigabitEthernet1/0/0] mpls ldp
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] interface gigabitethernet 1/0/1
[*LSRC-GigabitEthernet1/0/1] mpls
[*LSRC-GigabitEthernet1/0/1] mpls ldp
[*LSRC-GigabitEthernet1/0/1] quit
[*LSRC] interface gigabitethernet 1/0/2
[*LSRC-GigabitEthernet1/0/2] mpls
[*LSRC-GigabitEthernet1/0/2] mpls ldp
[*LSRC-GigabitEthernet1/0/2] quit
[*LSRC] commit

# Configure LSRD.
[~LSRD] mpls lsr-id 4.4.4.9
[*LSRD] mpls
[*LSRD-mpls] quit
[*LSRD] mpls ldp
[*LSRD-mpls-ldp] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-GigabitEthernet1/0/0] mpls
[*LSRD-GigabitEthernet1/0/0] mpls ldp
[*LSRD-GigabitEthernet1/0/0] quit
[*LSRD] commit

# After completing the configuration, run the display mpls lsp command on LSRA
to check information about the established LSP.
[~LSRA] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.9/32 3/NULL -/-
2.2.2.9/32 NULL/3 -/GE1/0/0
2.2.2.9/32 1024/3 -/GE1/0/0
3.3.3.9/32 NULL/3 -/GE1/0/1
3.3.3.9/32 1025/3 -/GE1/0/1
4.4.4.9/32 NULL/1026 -/GE1/0/1
4.4.4.9/32 1026/1026 -/GE1/0/1

The command output shows that host routes with 32-bit masks are used to
trigger LDP LSP establishment. This is the default triggering policy.
Step 4 Enable IS-IS Auto FRR on LSRA and check routing information and backup LSP
information.
# Enable IS-IS Auto FRR on LSRA.
[~LSRA] isis
[~LSRA-isis-1] frr
[*LSRA-isis-1-frr] loop-free-alternate
[*LSRA-isis-1-frr] quit
[*LSRA-isis-1] quit
[*LSRA] commit

# Display routing information of direct links between LSRA and LSRC and between
LSRC and LSRD.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 637


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRA] display ip routing-table 10.1.4.0 verbose


Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Summary Count : 1

Destination: 10.1.4.0/24
Protocol: ISIS Process ID: 1
Preference: 15 Cost: 20
NextHop: 10.1.2.2 Neighbour: 0.0.0.0
State: Active Adv Age: 00h05m38s
Tag: 0 Priority: low
Label: NULL QoSInfo: 0x0
IndirectID: 0x0
RelayNextHop: 0.0.0.0 Interface: GigabitEthernet1/0/1
TunnelID: 0x0 Flags: D
BkNextHop: 10.1.1.2 BkInterface: GigabitEthernet1/0/0
BkLabel: NULL SecTunnelID: 0x0
BkPETunnelID: 0x0 BkPESecTunnelID: 0x0
BkIndirectID: 0x0

The command output shows that a backup IS-IS route is generated after IS-IS
Auto FRR is enabled.
# Run the display mpls lsp command on LSRA to check LSP information.
[~LSRA] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.9/32 3/NULL -/-
2.2.2.9/32 NULL/3 -/GE1/0/0
2.2.2.9/32 23/3 -/GE1/0/0
**LDP FRR** NULL/17 -/GE1/0/1
**LDP FRR** 23/17 -/GE1/0/1
3.3.3.9/32 NULL/18 -/GE1/0/1
3.3.3.9/32 24/18 -/GE1/0/1
**LDP FRR** NULL/18 -/GE1/0/0
**LDP FRR** 24/18 -/GE1/0/0
4.4.4.9/32 NULL/3 -/GE1/0/1
4.4.4.9/32 25/3 -/GE1/0/1
**LDP FRR** NULL/19 -/GE1/0/0
**LDP FRR** 25/19 -/GE1/0/0

The command output shows that backup routes with 32-bit masks are used to
trigger backup LDP LSP establishment. This is the default triggering policy.
Step 5 Configure a policy to allow all routes to be used to trigger LDP LSP establishment
and check LSP information.
# Run the lsp-trigger command on LSRA to allow all routes to be used to trigger
LDP LSP establishment and check LSP information.
[~LSRA] mpls
[~LSRA-mpls] lsp-trigger all
[*LSRA-mpls] quit
[*LSRA] commit

# Run the lsp-trigger command on LSRB to allow all routes to be used to trigger
LDP LSP establishment and check LSP information.
[~LSRB] mpls
[~LSRB-mpls] lsp-trigger all
[*LSRB-mpls] quit
[*LSRB] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 638


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Run the lsp-trigger command on LSRC to allow all routes to be used to trigger
LDP LSP establishment and check LSP information.
[~LSRC] mpls
[~LSRC-mpls] lsp-trigger all
[*LSRC-mpls] quit
[*LSRC] commit

# Run the lsp-trigger command on LSRD to allow all routes to be used to trigger
LDP LSP establishment and check LSP information.
[~LSRD] mpls
[~LSRD-mpls] lsp-trigger all
[*LSRD-mpls] quit
[*LSRD] commit

# Run the display mpls lsp command on LSRA to check LSP information.
[~LSRA] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.9/32 3/NULL -/-
2.2.2.9/32 NULL/3 -/GE1/0/0
2.2.2.9/32 23/3 -/GE1/0/0
**LDP FRR** NULL/17 -/GE1/0/1
**LDP FRR** 23/17 -/GE1/0/1
3.3.3.9/32 NULL/18 -/GE1/0/1
3.3.3.9/32 24/18 -/GE1/0/1
**LDP FRR** NULL/18 -/GE1/0/0
**LDP FRR** 24/18 -/GE1/0/0
4.4.4.9/32 NULL/3 -/GE1/0/1
4.4.4.9/32 25/3 -/GE1/0/1
**LDP FRR** NULL/19 -/GE1/0/0
**LDP FRR** 25/19 -/GE1/0/0
10.1.1.0/24 3/NULL -/-
10.1.2.0/24 3/NULL -/-
10.1.3.0/24 NULL/3 -/GE1/0/0
10.1.3.0/24 28/3 -/GE1/0/0
10.1.3.0/24 NULL/3 -/GE1/0/1
10.1.3.0/24 28/3 -/GE1/0/1
10.1.4.0/24 NULL/3 -/GE1/0/1
10.1.4.0/24 29/3 -/GE1/0/1

The command output shows that routes to addresses with 24-bit masks are used
to trigger LSP establishment.
Step 6 Configure a policy for triggering backup LDP LSP establishment based all routes.
# Run the auto-frr lsp-trigger command on LSRA to allow LDP to use all backup
routes to establish backup LSPs.
[~LSRA] mpls ldp
[~LSRA-mpls-ldp] auto-frr lsp-trigger all
[*LSRA-mpls-ldp] quit
[*LSRA] commit

Step 7 Verify the configuration.


After completing the preceding configuration, run the display mpls lsp command
on LSRA to check information about backup LSPs.
[~LSRA] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 639


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.9/32 3/NULL -/-
2.2.2.9/32 NULL/3 -/GE1/0/0
2.2.2.9/32 23/3 -/GE1/0/0
**LDP FRR** NULL/17 -/GE1/0/1
**LDP FRR** 23/17 -/GE1/0/1
3.3.3.9/32 NULL/18 -/GE1/0/1
3.3.3.9/32 24/18 -/GE1/0/1
**LDP FRR** NULL/18 -/GE1/0/0
**LDP FRR** 24/18 -/GE1/0/0
4.4.4.9/32 NULL/3 -/GE1/0/1
4.4.4.9/32 25/3 -/GE1/0/1
**LDP FRR** NULL/19 -/GE1/0/0
**LDP FRR** 25/19 -/GE1/0/0
10.1.1.0/24 3/NULL -/-
10.1.2.0/24 3/NULL -/-
10.1.3.0/24 NULL/3 -/GE1/0/0
10.1.3.0/24 28/3 -/GE1/0/0
10.1.3.0/24 NULL/3 -/GE1/0/1
10.1.3.0/24 28/3 -/GE1/0/1
10.1.4.0/24 NULL/3 -/GE1/0/1
10.1.4.0/24 29/3 -/GE1/0/1
**LDP FRR** NULL/26 -/GE1/0/0
**LDP FRR** 29/26 -/GE1/0/0

The command output shows that a backup LSP has been established for the
primary LSP on the direct link LSRA -> LSRC -> LSRD.

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
auto-frr lsp-trigger all
#
isis 1
frr
loop-free-alternate level-1
loop-free-alternate level-2
network-entity 10.0000.0000.0001.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.1 255.255.255.0
isis enable 1
mpls
mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 640


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
interface LoopBack0
ip address 1.1.1.9 255.255.255.255
isis enable 1
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
isis 1
network-entity 10.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.3.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 2.2.2.9 255.255.255.255
isis enable 1
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
isis 1
network-entity 10.0000.0000.0003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.4.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.2 255.255.255.0
isis enable 1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 641


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls
mpls ldp
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.1.3.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 3.3.3.9 255.255.255.255
isis enable 1
#
return

● LSRD configuration file


#
sysname LSRD
#
mpls lsr-id 4.4.4.9
#
mpls
lsp-trigger all
#
mpls ldp
#
ipv4-family
#
isis 1
network-entity 10.0000.0000.0004.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.4.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 4.4.4.9 255.255.255.255
isis enable 1
#
return

1.1.4.29.13 Example for Configuring LDP Session Protection


This session provides an example for configuring LDP session protection. The
configuration involves configuring a local LDP session and the LDP session
protection function.

Networking Requirements
On the network shown in Figure 1-55, PE1 and PE2 are directly connected, and a
redundancy link is deployed between them. The customer requires that the LDP
session between PE1 and PE2 and and their peer relationship remain connected if
the direct link between the PEs fails. To meet this requirement, you can configure
LDP session protection.

Figure 1-55 Networking diagram of LDP session protection


NOTE

Interfaces 1 and 2 in this example represent GE 1/0/0 and GE 1/0/1, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 642


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address to each interface and configure an IGP.
2. Configure a local LDP session.
3. Configure LDP session protection.

Data Preparation
To complete the configuration, you need the following data:

Table 1-22 Data to be prepared


Device Parameter Value
Name

PE1 Session hold time Infinite

PE2 Session hold time Infinite

Procedure
Step 1 Assign an IP address to each interface and configure an IGP. For configuration
details, see Configuration Files in this section.
Step 2 Configure a local LDP session.
# Configure PE1.
<PE1> system-view
[~PE1] mpls lsr-id 1.1.1.1
[*PE1] mpls
[*PE1-mpls] quit
[*PE1] mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 643


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-mpls-ldp] quit
[*PE1] interface gigabitethernet 1/0/1
[*PE1-GigabitEthernet1/0/1] mpls
[*PE1-GigabitEthernet1/0/1] mpls ldp
[*PE1-GigabitEthernet1/0/1] quit
[*PE1-GigabitEthernet1/0/1] commit

# Repeat this step for PE2. For configuration details, see Configuration Files in
this section.
Step 3 Configure LDP session protection.
# Configure PE1.
[~PE1] mpls ldp
[*PE1-mpls-ldp] session protection duration infinite
[*PE1-mpls-ldp] commit
[~PE1-mpls-ldp] quit

# Configure PE2.
[~PE2] mpls ldp
[*PE2-mpls-ldp] session protection duration infinite
[*PE2-mpls-ldp] commit
[~PE2-mpls-ldp] quit

Step 4 Verify the configuration.


# Shut down GE 1/0/1 on PE1 to simulate a link fault. Run the display mpls ldp
remote-peer command. The command output shows that LDP session protection
has taken effect.
[~PE1] display mpls ldp remote-peer
LDP Remote Entity Information
------------------------------------------------------------------------------
Remote Peer Name : pe2
Description : ----
Remote Peer IP : 3.3.3.3 LDP ID : 1.1.1.1:0
Transport Address : 1.1.1.1 Entity Status : Active

Configured Keepalive Hold Timer : 45 Sec


Configured Keepalive Send Timer : ----
Configured Hello Hold Timer : 45 Sec
Negotiated Hello Hold Timer : 45 Sec
Configured Hello Send Timer : ----
Configured Delay Timer : 10 Sec
Hello Packet sent/received : 91/86
Label Advertisement Mode : Downstream Unsolicited
Auto-config : Session-Protect
Manual-config : effective
Session-Protect effect : YES
Session-Protect Duration : infinite
Session-Protect Remain : ----
------------------------------------------------------------------------------
TOTAL: 1 Remote-Peer(s) Found.

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 1.1.1.1
#
mpls
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 644


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls ldp
session protection duration infinite
#
ipv4-family
#
isis 1
is-level level-2
network-entity 10.0000.0000.0001.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
isis enable 1
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.1 255.255.255.252
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
return
● PE3 configuration file
#
sysname PE3
#
isis 1
is-level level-2
network-entity 10.0000.0000.0003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
isis enable 1
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.3.1 255.255.255.252
isis enable 1
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
return
● PE2 configuration file
#
sysname PE2
#
mpls lsr-id 3.3.3.3
#
mpls
#
mpls ldp
session protection duration infinite
#
ipv4-family
#
isis 1
is-level level-2
network-entity 10.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 645


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 10.1.3.2 255.255.255.252


isis enable 1
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.2.2 255.255.255.252
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return

1.1.4.29.14 Example for Configuring LDP-IGP Synchronization


This section provides an example for configuring LDP-IGP synchronization. OSPF is
used as an IGP.

Networking Requirements
On the network shown in Figure 1-56, three paths are established between PE1
and PE2. The path PE1 -> P1 -> P2 -> PE2 functions as the primary path. P3
functions a backup device because P4 operates important services. Therefore, the
path PE1 -> P1 -> P3 -> PE2 functions as a backup path.
Enable LDP-IGP synchronization on the interfaces on both ends of the link
between P1 (intersection node of the active and backup links) and P2 (LDP
neighbor node on the active link). On a network with both a primary LSP and a
backup LSP, after the primary LSP recovers, LDP-IGP synchronization minimizes the
traffic interruption period to milliseconds.
Setting a delay time for deleting upstream labels prevents traffic interruptions if
LDP traffic is switched to a backup path.

Figure 1-56 Networking diagram of LDP-IGP synchronization

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 646


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Table 1-23 Interfaces and IP addresses


Device Interface Name IP Address
Name

P1 Loopback1 1.1.1.9/32

GigabitEthernet1/0/0 10.1.1.1/30

GigabitEthernet1/0/1 10.5.1.1/30

GigabitEthernet2/0/0 10.3.1.1/30

P2 Loopback1 2.2.2.9/32

GigabitEthernet1/0/0 10.1.1.2/30

GigabitEthernet2/0/0 10.2.1.1/30

P3 Loopback1 3.3.3.9/32

GigabitEthernet1/0/0 10.3.1.2/30

GigabitEthernet2/0/0 10.4.1.1/30

P4 Loopback1 4.4.4.9/32

GigabitEthernet1/0/0 10.5.1.2/30

GigabitEthernet2/0/0 10.6.1.1/30

PE2 Loopback1 5.5.5.9/32

GigabitEthernet1/0/0 10.2.1.2/32

GigabitEthernet1/0/1 10.6.1.2/30

GigabitEthernet2/0/0 10.4.1.2/30

Configuration Notes
During the configuration, note the following:
To prevent repeated failures in LDP session reestablishment, you can set the Hold-
max-cost timer to adjust the interval at which OSPF sends LSAs to advertise the
maximum cost on the local device. Ensure that traffic is transmitted along the
backup link before the LDP session is reestablished on the active link.

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure basic OSPF functions on P1, P2, P3, and P4 to allow them to
interwork.
2. Establish LDP sessions between neighboring nodes and between P1 and PE2.
3. Set the priorities of equal-cost routes on P1 to ensure that the link PE1 -> P1 -
> P2 ->PE2 functions as the primary link.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 647


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

4. Enable LDP-IGP synchronization in the OSPF process on P1.


5. Block LDP-IGP synchronization on the interfaces on both ends of the link
between P1 and P4.
6. Set the values of the Hold-max-cost and delay timers on the interfaces on
both ends of the link between P1 and P2.

Data Preparation
To complete the configuration, you need the following data:
● IP addresses of the interfaces on each node (as shown in Figure 1-56), OSPF
process ID, and OSPF area ID
● Priorities of equal-cost routes on P1
● Values of the Hold-max-cost and igp-sync-delay timers

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address to each interface (as shown in Figure 1-56), including the
loopback interfaces. Configure OSPF to advertise the route to the network
segment to which each interface is connected and the host route to each LSR ID.
For details, see Example for Configuring Basic OSPF Functions.
After completing the configuration, run the display ip routing-table command on
each node. The command outputs show that the nodes have learned routes from
each other. P1 has three equal-cost routes to 5.5.5.9/32. The following example
uses the command output on P1.
[~P1] display ip routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 20 Routes : 20

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.9/32 Direct 0 0 D 127.0.0.1 LoopBack1


2.2.2.9/32 OSPF 10 2 D 10.1.1.2 GigabitEthernet1/0/0
3.3.3.9/32 OSPF 10 2 D 10.3.1.2 GigabitEthernet2/0/0
5.5.5.9/32 OSPF 10 3 D 10.5.1.2 GigabitEthernet1/0/1
OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
OSPF 10 3 D 10.3.1.2 GigabitEthernet2/0/0
10.1.1.0/30 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.3/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.2.1.0/30 OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
10.3.1.0/30 Direct 0 0 D 10.3.1.1 GigabitEthernet2/0/0
10.3.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0
10.3.1.3/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0
10.4.1.0/30 OSPF 10 3 D 10.3.1.2 GigabitEthernet2/0/0
10.5.1.0/30 Direct 0 0 D 10.5.1.1 GigabitEthernet1/0/1
10.5.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/1
10.5.1.3/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/1
10.6.1.0/30 OSPF 10 3 D 10.5.1.2 GigabitEthernet1/0/1
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Step 2 Set the priorities of equal-cost routes on P1 to ensure that the link PE1 -> P1 -> P2
->PE2 functions as the primary link.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 648


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~P1] ospf
[~P1-ospf-1] nexthop 10.1.1.2 weight 1
[*P1-ospf-1] nexthop 10.3.1.2 weight 2
[*P1-ospf-1] nexthop 10.5.1.2 weight 2
[*P1-ospf-1] commit
[~P1-ospf-1] quit

After completing the preceding configuration, run the display ip routing-table


command on P1. There is only one route to 5.5.5.9/32, and the outbound interface
of the route is changed to GE1/0/0. Therefore, the link PE1 -> P1 -> P2 -> PE2
becomes the primary link, and the link PE1 -> P1 -> P3 -> PE2 becomes the
backup link.
[~P1] display ip routing-table
5.5.5.9/32 OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 20 Routes : 20

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.9/32 Direct 0 0 D 127.0.0.1 LoopBack1


2.2.2.9/32 OSPF 10 2 D 10.1.1.2 GigabitEthernet1/0/0
3.3.3.9/32 OSPF 10 2 D 10.3.1.2 GigabitEthernet2/0/0
5.5.5.9/32 OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
10.1.1.0/30 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.3/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.2.1.0/30 OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
10.3.1.0/30 Direct 0 0 D 10.3.1.1 GigabitEthernet2/0/0
10.3.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0
10.3.1.3/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0
10.4.1.0/30 OSPF 10 3 D 10.3.1.2 GigabitEthernet2/0/0
10.5.1.0/30 Direct 0 0 D 10.5.1.1 GigabitEthernet1/0/1
10.5.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/1
10.5.1.3/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/1
10.6.1.0/30 OSPF 10 3 D 10.5.1.2 GigabitEthernet1/0/1
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Step 3 Enable MPLS and MPLS LDP globally on each node and on each interface.
# Configure P1.
[~P1] mpls lsr-id 1.1.1.9
[*P1] mpls
[*P1-mpls] quit
[*P1] mpls ldp
[*P1-mpls-ldp] quit
[*P1] interface gigabitethernet 1/0/0
[*P1-GigabitEthernet1/0/0] mpls
[*P1-GigabitEthernet1/0/0] mpls ldp
[*P1-GigabitEthernet1/0/0] quit
[*P1] interface gigabitethernet 2/0/0
[*P1-GigabitEthernet2/0/0] mpls
[*P1-GigabitEthernet2/0/0] mpls ldp
[*P1-GigabitEthernet2/0/0] commit
[~P1-GigabitEthernet2/0/0] quit

# Configure P2.
[~P2] mpls lsr-id 2.2.2.9
[*P2] mpls
[*P2-mpls] quit
[*P2] mpls ldp
[*P2-mpls-ldp] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 649


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*P2] interface gigabitethernet 1/0/0


[*P2-GigabitEthernet1/0/0] mpls
[*P2-GigabitEthernet1/0/0] mpls ldp
[*P2-GigabitEthernet1/0/0] quit
[*P2] interface gigabitethernet 2/0/0
[*P2-GigabitEthernet2/0/0] mpls
[*P2-GigabitEthernet2/0/0] mpls ldp
[*P2-GigabitEthernet2/0/0] commit
[~P2-GigabitEthernet2/0/0] quit

# Configure P3.
[~P3] mpls lsr-id 3.3.3.9
[*P3] mpls
[*P3-mpls] quit
[*P3] mpls ldp
[*P3-mpls-ldp] quit
[*P3] interface gigabitethernet 1/0/0
[*P3-GigabitEthernet1/0/0] mpls
[*P3-GigabitEthernet1/0/0] mpls ldp
[*P3-GigabitEthernet1/0/0] quit
[*P3] interface gigabitethernet 2/0/0
[*P3-GigabitEthernet2/0/0] mpls
[*P3-GigabitEthernet2/0/0] mpls ldp
[*P3-GigabitEthernet2/0/0] commit
[~P3-GigabitEthernet2/0/0] quit

# Configure PE2.
[~PE2] mpls lsr-id 5.5.5.9
[*PE2] mpls
[*PE2-mpls] quit
[*PE2] mpls ldp
[*PE2-mpls-ldp] quit
[*PE2] interface gigabitethernet 1/0/0
[*PE2-GigabitEthernet1/0/0] mpls
[*PE2-GigabitEthernet1/0/0] mpls ldp
[*PE2-GigabitEthernet1/0/0] quit
[*PE2] interface gigabitethernet 2/0/0
[*PE2-GigabitEthernet2/0/0] mpls
[*PE2-GigabitEthernet2/0/0] mpls ldp
[*PE2-GigabitEthernet2/0/0] commit
[~PE2-GigabitEthernet2/0/0] quit

After completing the preceding configuration, check that LDP sessions have been
established between neighboring nodes. Run the display mpls ldp session
command on each node. The command output shows that Status is Operational.
The following example uses the command output on P1.
[~P1] display mpls ldp session
LDP Session(s) in Public Network
Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
An asterisk (*) before a session means the session is being deleted.
--------------------------------------------------------------------------
PeerID Status LAM SsnRole SsnAge KASent/Rcv
--------------------------------------------------------------------------
2.2.2.9:0 Operational DU Passive 0000:00:56 227/227
3.3.3.9:0 Operational DU Passive 0000:00:56 227/227
5.5.5.9:0 Operational DU Passive 0000:00:56 227/227
--------------------------------------------------------------------------
TOTAL: 3 Session(s) Found.

Step 4 Enable LDP-IGP synchronization on P1.


# Configure P1.
[~P1] ospf 1
[~P1-ospf-1] area 0
[~P1-ospf-1-area-0.0.0.0] ldp-sync enable

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 650


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*P1-ospf-1-area-0.0.0.0] commit
[~P1-ospf-1-area-0.0.0.0] quit
[~P1-ospf-1] quit

# Configure P2.
[~P2] ospf 1
[~P2-ospf-1] area 0
[~P2-ospf-1-area-0.0.0.0] ldp-sync enable
[*P2-ospf-1-area-0.0.0.0] commit
[~P2-ospf-1-area-0.0.0.0] quit
[~P2-ospf-1] quit

Step 5 Block LDP-IGP synchronization on an interface of P1.

# Configure P1.
[~P1] interface gigabitethernet 1/0/1
[~P1-GigabitEthernet1/0/1] ospf ldp-sync block
[*P1-GigabitEthernet1/0/1] commit
[~P1-GigabitEthernet1/0/1] quit

Step 6 Set the value of the Hold-max-cost timer on the interfaces on both ends of the
link between P1 and P2.

# Configure P1.
[~P1] interface gigabitethernet 1/0/0
[~P1-GigabitEthernet1/0/0] ospf timer ldp-sync hold-max-cost 9
[*P1-GigabitEthernet1/0/0] commit
[~P1-GigabitEthernet1/0/0] quit

# Configure P2.
[~P2] interface gigabitethernet 1/0/0
[~P2-GigabitEthernet1/0/0] ospf timer ldp-sync hold-max-cost 9
[*P2-GigabitEthernet1/0/0] commit
[~P2-GigabitEthernet1/0/0] quit

Step 7 Set the value of the delay timer on the interfaces on both ends of the link
between P1 and P2.

# Configure P1.
[~P1] interface gigabitethernet 1/0/0
[~P1-GigabitEthernet1/0/0] mpls ldp timer igp-sync-delay 6
[*P1-GigabitEthernet1/0/0] commit
[~P1-GigabitEthernet1/0/0] quit

# Configure P2.
[~P2] interface gigabitethernet 1/0/0
[~P2-GigabitEthernet1/0/0] mpls ldp timer igp-sync-delay 6
[*P2-GigabitEthernet1/0/0] commit
[~P2-GigabitEthernet1/0/0] quit

Step 8 Verify the configuration.

After completing the preceding configuration, run the display ospf ldp-sync
command on P1. The interface status is Sync-Achieved.
[~P1] display ospf ldp-sync interface gigabitethernet 1/0/0
Interface GE1/0/0
HoldDown Timer: 10 HoldMaxCost Timer: 9
LDP State: Up OSPF Sync State: Sync-Achieved

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 651


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Files
● P1 configuration file
#
sysname P1
#
mpls lsr-id 1.1.1.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
ospf ldp-sync
ospf timer ldp-sync holdmaxcost 9
mpls ldp timer igp-sync-delay 6
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.252
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.5.1.1 255.255.255.252
ospf ldp-sync block
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
ospf 1
nexthop 10.1.1.2 weight 1
nexthop 10.3.1.2 weight 2
nexthop 10.5.1.2 weight 2
area 0.0.0.0
ldp-sync enable
network 1.1.1.9 0.0.0.0
network 10.1.1.0 0.0.0.3
network 10.3.1.0 0.0.0.3
network 10.5.1.0 0.0.0.3
#
return

● P2 configuration file
#
sysname P2
#
mpls lsr-id 2.2.2.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.252
ospf ldp-sync
ospf timer ldp-sync holdmaxcost 9
mpls ldp timer igp-sync-delay 6
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 652


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface LoopBack1
ip address 2.2.2.9 255.255.255.255
#
ospf 1
area 0.0.0.0
ldp-sync enable
network 2.2.2.9 0.0.0.0
network 10.1.1.0 0.0.0.3
network 10.2.1.0 0.0.0.3
#
return
● P3 configuration file
#
sysname P3
#
mpls lsr-id 3.3.3.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.252
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.252
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 10.3.1.0 0.0.0.3
network 10.4.1.0 0.0.0.3
#
return
● P4 configuration file
#
sysname P4
#
mpls lsr-id 4.4.4.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.5.1.2 255.255.255.252
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.6.1.1 255.255.255.252
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 4.4.4.9 0.0.0.0
network 10.5.1.0 0.0.0.3

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 653


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

network 10.6.1.0 0.0.0.3


#
return

● PE2 configuration file


#
sysname PE2
#
mpls lsr-id 5.5.5.9
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.252
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.6.1.2 255.255.255.252
#
interface LoopBack1
ip address 5.5.5.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 5.5.5.9 0.0.0.0
network 10.2.1.0 0.0.0.3
network 10.4.1.0 0.0.0.3
network 10.6.1.0 0.0.0.3
#
return

1.1.4.29.15 Example for Configuring LDP GR


This section provides an example for configuring LDP GR. The configuration
procedure involves enabling MPLS and MPLS LDP on each LSR and interface and
enabling LDP GR on a GR Restarter and its neighbor.

Networking Requirements
On the network shown in Figure 1-57, LSRA, LSRB, and LSRC are devices with a
single main control board. Without GR, during a master/backup switchover or
system upgrade, the LSPs are torn down because the neighbor goes Down, which
causes a traffic interruption for a short period. LDP GR can be configured to
remain labels before and after the master/backup switchover or protocol restart.
This allows the LDP sessions and LSPs to be successfully reestablished after the
active/standby switchover or system upgrade. The MPLS forwarding is
uninterrupted, and traffic is unaffected.

Figure 1-57 LDP GR


NOTE

Interfaces 1 and 2 in this example represent GE1/0/0 and GE2/0/0, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 654


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Notes
When configuring LDP GR, note the following:
● Enabling or disabling LDP GR causes an LDP session to be reestablished.
● Changing the value of an LDP GR timer also causes an LDP session to be
reestablished.

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign an IP address to each interface, configure loopback addresses as LSR
IDs, and configure OSPF to advertise the route to the network segment to
which each interface is connected and the host route to each LSR ID.
2. Enable MPLS and MPLS LDP globally on each LSR.
3. Enable MPLS and MPLS LDP on each interface.
4. Configure LDP GR.
5. Set LDP GR parameters on a GR Restarter.

Data Preparation
To complete the configuration, you need the following data:
● IP address of each interface on each LSR as shown in Figure 1-57, OSPF
process ID, and area ID
● OSPF GR interval
● LDP reconnecting time
● LDP neighbor-liveness time
● LDP recovery time

Procedure
Step 1 Assign an IP address to each interface and configure OSPF to advertise the route
to the network segment to which each interface is connected and the host route
to each LSR ID. For configuration details, see Configuration Files in this section.
Step 2 Enable MPLS and MPLS LDP globally on each LSR.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.9
[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 655


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRA-mpls-ldp] commit
[~LSRA-mpls-ldp] quit

# Configure LSRB.
[~LSRB] mpls lsr-id 2.2.2.9
[*LSRB] mpls
[*LSRB-mpls] quit
[*LSRB] mpls ldp
[*LSRB-mpls-ldp] commit
[~LSRB-mpls-ldp] quit

# Configure LSRC.
[~LSRC] mpls lsr-id 3.3.3.9
[*LSRC] mpls
[*LSRC-mpls] quit
[*LSRC] mpls ldp
[*LSRC-mpls-ldp] commit
[~LSRC-mpls-ldp] quit

Step 3 Enable MPLS and MPLS LDP on each interface.


# Configure LSRA.
[~LSRA] interface gigabitethernet 1/0/0
[~LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls ldp
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Configure LSRB.
[~LSRB] interface gigabitethernet 1/0/0
[~LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] mpls ldp
[*LSRB-GigabitEthernet1/0/0] commit
[~LSRB-GigabitEthernet1/0/0] quit
[~LSRB] interface gigabitethernet 2/0/0
[~LSRB-GigabitEthernet2/0/0] mpls
[*LSRB-GigabitEthernet2/0/0] mpls ldp
[*LSRB-GigabitEthernet2/0/0] commit
[~LSRB-GigabitEthernet2/0/0] quit

# Configure LSRC.
[~LSRC] interface gigabitethernet 1/0/0
[~LSRC-GigabitEthernet1/0/0] mpls
[*LSRC-GigabitEthernet1/0/0] mpls ldp
[*LSRC-GigabitEthernet1/0/0] commit
[~LSRC-GigabitEthernet1/0/0] quit

After the preceding configurations are complete, local LDP sessions are
successfully established between LSRA and LSRB, and between LSRB and LSRC.
# Run the display mpls ldp session command on an LSR to view information
about the established LDP session. The following example uses the command
output on LSRA.
[~LSRA] display mpls ldp session
LDP Session(s) in Public Network
Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDD:HH:MM)
An asterisk (*) before a session means the session is being deleted.
--------------------------------------------------------------------------
PeerID Status LAM SsnRole SsnAge KASent/Rcv
--------------------------------------------------------------------------
2.2.2.9:0 Operational DU Passive 000:00:02 9/9
--------------------------------------------------------------------------
TOTAL: 1 Session(s) Found.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 656


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 4 Configure LDP GR.

# Configure LSRA.
[~LSRA] mpls ldp
[~LSRA-mpls-ldp] graceful-restart
Warning: All the related sessions will be deleted if the operation is performed!
Continue? [Y/N]:y
[*LSRA-mpls-ldp] commit
[~LSRA-mpls-ldp] quit

# Configure LSRB.
[~LSRB] mpls ldp
[~LSRB-mpls-ldp] graceful-restart
Warning: All the related sessions will be deleted if the operation is performed!
Continue? [Y/N]:y
[*LSRB-mpls-ldp] commit
[~LSRB-mpls-ldp] quit

# Configure LSRC.
[~LSRC] mpls ldp
[~LSRC-mpls-ldp] graceful-restart
Warning: All the related sessions will be deleted if the operation is performed!
Continue? [Y/N]:y
[*LSRC-mpls-ldp] commit
[~LSRC-mpls-ldp] quit

Step 5 Verify the configuration.

# After completing the preceding configuration, run the display mpls ldp session
verbose command on an LSR. The command output shows that the Session FT
Flag field indicates On. The following example uses the command output on
LSRA.
[~LSRA] display mpls ldp session verbose
LDP Session(s) in Public Network
------------------------------------------------------------------------
Peer LDP ID : 2.2.2.9:0 Local LDP ID : 1.1.1.9:0
TCP Connection : 1.1.1.9 <- 2.2.2.9
Session State : Operational Session Role : Passive
Session FT Flag : On MD5 Flag : Off
Reconnect Timer : 300 Sec Recovery Timer : 300 Sec
Keychain Name : kc1
Tcpao Name : ---
Authentication applied : ---

Negotiated Keepalive Hold Timer : 45 Sec


Configured Keepalive Send Timer : 30 Sec
Keepalive Message Sent/Rcvd : 1/1 (Message Count)
Label Advertisement Mode : Downstream Unsolicited
Label Resource Status(Peer/Local) : Available/Available
Session Age : 0000:00:00 (DDDD:HH:MM)

Capability:
Capability-Announcement : Off
mLDP P2MP Capability : Off
mLDP MBB Capability : Off
mLDP MP2MP Capability : Off

Outbound Policies applied: NULL

Addresses received from peer: ( Count: 3 )


2.2.2.9 10.1.1.2 10.2.1.1
------------------------------------------------------------------------

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 657


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Alternatively, run the display mpls ldp peer verbose command on an LSR. The
command output shows that the Peer FT Flag field indicates On. The following
example uses the command output on LSRA.
[~LSRA] display mpls ldp peer verbose
LDP Peer Information in Public network
-------------------------------------------------------------------------------
Peer LDP ID : 2.2.2.9:0
Peer Max PDU Length : 4096 Peer Transport Address : 2.2.2.9
Peer Loop Detection : Off Peer Path Vector Limit : --
Peer FT Flag : On Peer Keepalive Timer : 45 Sec
Recovery Timer : 300 Sec Reconnect Timer : 300 Sec
Peer Type : Local
Peer Label Advertisement Mode : Downstream Unsolicited
Distributed ID :0
Peer Discovery Source : GigabitEthernet1/0/0
Capability-Announcement : On
-------------------------------------------------------------------------------

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.9
#
mpls
#
mpls ldp
graceful-restart
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.252
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 1.1.1.9 0.0.0.0
network 10.1.1.0 0.0.0.3
#
return

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 2.2.2.9
#
mpls
#
mpls ldp
graceful-restart
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 658


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ip address 10.1.1.2 255.255.255.252


mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.252
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 2.2.2.9 0.0.0.0
network 10.1.1.0 0.0.0.3
network 10.2.1.0 0.0.0.3
#
return

● LSRC configuration file


#
sysname LSRC
#
mpls lsr-id 3.3.3.9
#
mpls
#
mpls ldp
graceful-restart
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.252
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 3.3.3.9 0.0.0.0
network 10.2.1.0 0.0.0.3
#
Return

1.1.4.29.16 Example for Configuring LDP over TE


This section provides an example for configuring LDP over TE. The configuration
procedure involves the establishment of a TE tunnel and a remote LDP peer.

Networking Requirements
On the network shown in Figure 1-58, LSRB and LSRD are on the edge of a
backbone network. LDP over TE is to be deployed on this network to allow an LDP
LSP to across an RSVP-TE area. LDP services can be transmitted between LSRA and
LSRB, and between LSRD and LSRE. In addition, TE services are transmitted
between LSR B, LSRC, and between LSRC and LSRD. A TE tunnel destined for LSRD
is established on LSRB, and an RSVP tunnel destined for LSRB is established on
LSRD. Traffic between LSRA and LSRE needs to be transmitted through the tunnel.
LDP over TE can transmit VPN services.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 659


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-58 LDP over TE

Table 1-24 Interface IP addresses

Device Interface Name IP Address


Name

LSRA Loopback1 1.1.1.1/32

GigabitEthernet1/0/0 10.1.1.1/24

LSRB Loopback1 2.2.2.2/32

GigabitEthernet1/0/0 10.1.1.2/24

GigabitEthernet2/0/0 10.2.1.1/24

LSRC Loopback1 3.3.3.3/32

GigabitEthernet1/0/0 10.2.1.2/24

GigabitEthernet2/0/0 10.3.1.1/24

LSRD Loopback1 4.4.4.4/32

GigabitEthernet1/0/0 10.3.1.2/24

GigabitEthernet2/0/0 10.4.1.2/24

LSRE Loopback1 5.5.5.5/32

GigabitEthernet1/0/0 10.4.1.1/24

Configuration Notes
When configuring LDP over TE, note that the tunnel destination address must be
the LSR ID of the egress.

Configuration Roadmap
The configuration roadmap is as follows:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 660


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1. Assign an IP address to each interface, configure the loopback address as the


LSR ID, and configure an IGP to advertise routes.
2. Enable OSPF TE in a TE-aware area and establish an MPLS TE tunnel.
3. Enable MPLS LDP in each non-TE-aware area and configure remote LDP peers
at the edge of the TE-aware area.
4. Configure the forwarding adjacency.

Data Preparation
To complete the configuration, you need the following data:
● OSPF process ID and OSPF area ID
● Policy for triggering the LSP establishment
● Name and IP address of each remote LDP peer of LSRB and LSRD
● Link bandwidth attributes of the tunnel
● Tunnel interface number, IP address, destination address, tunnel ID, RSVP-TE
tunnel signaling protocol, tunnel bandwidth, TE metric value, link cost on
LSRB and LSRD

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address to each interface, including the loopback interface according
to Figure 1-58. For configuration details, see the configuration files.
Step 2 Configure OSPF to advertise the route to the network segment to which each
interface is connected and the host route to each LSR ID. For configuration details,
see Configuration Files in this section.
Step 3 Enable MPLS on each LSR. Enable LDP to set up LDP sessions between LSRA and
LSRB, and between LSRD and LSRE. Enable RSVP to establish RSVP neighbor
relationships between LSRB and LSRC, and between LSRC and LSRD.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] quit
[*LSRA] mpls ldp
[*LSRA-mpls-ldp] quit
[*LSRA] interface gigabitethernet 1/0/0
[*LSRA-GigabitEthernet1/0/0] mpls
[*LSRA-GigabitEthernet1/0/0] mpls ldp
[*LSRA-GigabitEthernet1/0/0] commit
[~LSRA-GigabitEthernet1/0/0] quit

# Configure LSRB.
[~LSRB] mpls lsr-id 2.2.2.2
[*LSRB] mpls
[*LSRB-mpls] mpls te
[*LSRB-mpls] mpls rsvp-te
[*LSRB-mpls] mpls te cspf
[*LSRB-mpls] quit
[*LSRB] mpls ldp
[*LSRB-mpls-ldp] quit
[*LSRB] interface gigabitethernet 1/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 661


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRB-GigabitEthernet1/0/0] mpls
[*LSRB-GigabitEthernet1/0/0] mpls ldp
[*LSRB-GigabitEthernet1/0/0] quit
[*LSRB] interface gigabitethernet 2/0/0
[*LSRB-GigabitEthernet2/0/0] mpls
[*LSRB-GigabitEthernet2/0/0] mpls te
[*LSRB-GigabitEthernet2/0/0] mpls rsvp-te
[*LSRB-GigabitEthernet2/0/0] commit
[~LSRB-GigabitEthernet2/0/0] quit

# Configure LSRC.
[~LSRC] mpls lsr-id 3.3.3.3
[*LSRC] mpls
[*LSRC-mpls] mpls te
[*LSRC-mpls] mpls rsvp-te
[*LSRC-mpls] quit
[*LSRC] interface gigabitethernet 1/0/0
[*LSRC-GigabitEthernet1/0/0] mpls
[*LSRC-GigabitEthernet1/0/0] mpls te
[*LSRC-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] interface gigabitethernet 2/0/0
[*LSRC-GigabitEthernet2/0/0] mpls
[*LSRC-GigabitEthernet2/0/0] mpls te
[*LSRC-GigabitEthernet2/0/0] mpls rsvp-te
[*LSRC-GigabitEthernet2/0/0] commit
[~LSRC-GigabitEthernet2/0/0] quit

# Configure LSRD.
[~LSRD] mpls lsr-id 4.4.4.4
[*LSRD] mpls
[*LSRD-mpls] mpls te
[*LSRD-mpls] mpls rsvp-te
[*LSRD-mpls] mpls te cspf
[*LSRD-mpls] quit
[*LSRD] mpls ldp
[*LSRD-mpls-ldp] quit
[*LSRD] interface gigabitethernet 1/0/0
[*LSRD-GigabitEthernet1/0/0] mpls
[*LSRD-GigabitEthernet1/0/0] mpls te
[*LSRD-GigabitEthernet1/0/0] mpls rsvp-te
[*LSRD-GigabitEthernet1/0/0] quit
[*LSRD] interface gigabitethernet 2/0/0
[*LSRD-GigabitEthernet2/0/0] mpls
[*LSRD-GigabitEthernet2/0/0] mpls ldp
[*LSRD-GigabitEthernet2/0/0] commit
[~LSRD-GigabitEthernet2/0/0] quit

# Configure LSRE.
[~LSRE] mpls lsr-id 5.5.5.5
[*LSRE] mpls
[*LSRE-mpls] quit
[*LSRE] mpls ldp
[*LSRE-mpls-ldp] quit
[*LSRE] interface gigabitethernet 1/0/0
[*LSRE-GigabitEthernet1/0/0] mpls
[*LSRE-GigabitEthernet1/0/0] mpls ldp
[*LSRE-GigabitEthernet1/0/0] commit
[~LSRE-GigabitEthernet1/0/0] quit

After the preceding configurations are complete, the local LDP sessions are
successfully set up between LSRA and LSRB, and between LSRD and LSRE.
# Run the display mpls ldp session command on LSRA, LSRB, LSRD, or LSRE to
view information about the established LDP session. The following example uses
the command output on LSRA.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 662


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~LSRA] display mpls ldp session


LDP Session(s) in Public Network
Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
An asterisk (*) before a session means the session is being deleted.
--------------------------------------------------------------------------
PeerID Status LAM SsnRole SsnAge KASent/Rcv
--------------------------------------------------------------------------
2.2.2.2:0 Operational DU Passive 0000:00:05 23/23
--------------------------------------------------------------------------
TOTAL: 1 Session(s) Found.

# Run the display mpls ldp peer command on an LSR to view information about
the established LDP peer. The following example uses the command output on
LSRA.
[~LSRA] display mpls ldp peer
LDP Peer Information in Public network
An asterisk (*) before a peer means the peer is being deleted.
-------------------------------------------------------------------------
PeerID TransportAddress DiscoverySource
-------------------------------------------------------------------------
2.2.2.2:0 2.2.2.2 GigabitEthernet1/0/0
-------------------------------------------------------------------------
TOTAL: 1 Peer(s) Found.

# Run the display mpls lsp command on an LSR. You can view information about
LDP LSPs and RSVP tunnels are not set up. The following example uses the
command output on LSRA.
[~LSRA] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.1/32 3/NULL -/-
2.2.2.2/32 NULL/3 -/GE1/0/0
2.2.2.2/32 32841/3 -/GE1/0/0

Step 4 Configure a remote LDP session between LSRB and LSRD.


# Configure LSRB.
[~LSRB] mpls ldp remote-peer lsrd
[*LSRB-mpls-ldp-remote-lsrd] remote-ip 4.4.4.4
[*LSRB-mpls-ldp-remote-lsrd] commit
[~LSRB-mpls-ldp-remote-lsrd] quit

# Configure LSRD.
[~LSRD] mpls ldp remote-peer lsrb
[*LSRD-mpls-ldp-remote-lsrb] remote-ip 2.2.2.2
[*LSRD-mpls-ldp-remote-lsrb] commit
[~LSRD-mpls-ldp-remote-lsrb] quit

# After completing the preceding configurations, run the display mpls ldp
remote-peer command on LSRB or LSRD. The commando output shows that a
remote LDP session has been established between LSRB and LSRD. The following
example uses the command output on LSRB.
[~LSRB] display mpls ldp remote-peer lsrd
LDP Remote Entity Information
------------------------------------------------------------------------------
Remote Peer Name : lsrd
Description : ----
Remote Peer IP : 4.4.4.4 LDP ID : 2.2.2.2:0
Transport Address : 2.2.2.2 Entity Status : Active

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 663


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configured Keepalive Hold Timer : 45 Sec


Configured Keepalive Send Timer : ----
Configured Hello Hold Timer : 45 Sec
Negotiated Hello Hold Timer : 45 Sec
Configured Hello Send Timer : ----
Configured Delay Timer : 10 Sec
Hello Packet sent/received : 425/382
Label Advertisement Mode : Downstream Unsolicited
Auto-config : ----
Manual-config : effective
Session-Protect effect : YES
Session-Protect Duration : infinite
Session-Protect Remain : ----
------------------------------------------------------------------------------
TOTAL: 1 Remote-Peer(s) Found.

Step 5 Configure bandwidth attributes on each outbound interface along the link of the
TE tunnel.
# Configure LSRB.
[~LSRB] interface gigabitethernet 2/0/0
[~LSRB-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 20000
[*LSRB-GigabitEthernet2/0/0] mpls te bandwidth bc0 20000
[*LSRB-GigabitEthernet2/0/0] commit
[~LSRB-GigabitEthernet2/0/0] quit

# Configure LSRC.
[~LSRC] interface gigabitethernet 1/0/0
[~LSRC-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 20000
[*LSRC-GigabitEthernet1/0/0] mpls te bandwidth bc0 20000
[*LSRC-GigabitEthernet1/0/0] quit
[*LSRC] interface gigabitethernet 2/0/0
[*LSRC-GigabitEthernet2/0/0] mpls te bandwidth max-reservable-bandwidth 20000
[*LSRC-GigabitEthernet2/0/0] mpls te bandwidth bc0 20000
[*LSRC-GigabitEthernet2/0/0] commit
[~LSRC-GigabitEthernet2/0/0] quit

# Configure LSRD.
[~LSRD] interface gigabitethernet 1/0/0
[~LSRD-GigabitEthernet1/0/0] mpls te bandwidth max-reservable-bandwidth 20000
[*LSRD-GigabitEthernet1/0/0] mpls te bandwidth bc0 20000
[*LSRD-GigabitEthernet1/0/0] commit
[~LSRD-GigabitEthernet1/0/0] quit

Step 6 Configure a tunnel from LSRB to LSRD.


# On LSRB, enable the forwarding adjacency on the tunnel interface and adjust
the metric value of the forwarding adjacency to direct traffic destined for LSRD or
LSRE to the tunnel.
[~LSRB] interface tunnel1
[*LSRB-Tunnel1] ip address unnumbered interface LoopBack1
[*LSRB-Tunnel1] tunnel-protocol mpls te
[*LSRB-Tunnel1] destination 4.4.4.4
[*LSRB-Tunnel1] mpls te tunnel-id 100
[*LSRB-Tunnel1] mpls te bandwidth ct0 10000
[*LSRB-Tunnel1] mpls te igp advertise
[*LSRB-Tunnel1] mpls te igp metric absolute 1
[*LSRB-Tunnel1] quit
[*LSRB] ospf 1
[*LSRB-ospf-1] opaque-capability enable
[*LSRB-ospf-1] area 0
[*LSRB-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRB-ospf-1-area-0.0.0.0] quit
[*LSRB-ospf-1] enable traffic-adjustment advertise

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 664


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*LSRB-ospf-1] commit

Step 7 Configure a tunnel from LSRD to LSRB.


# On LSRD, enable the forwarding adjacency on the tunnel interface and adjust
the metric value of the forwarding adjacency to direct traffic destined for LSRA or
LSRB to the tunnel.
[~LSRD] interface tunnel1
[*LSRD-Tunnel1] ip address unnumbered interface LoopBack1
[*LSRD-Tunnel1] tunnel-protocol mpls te
[*LSRD-Tunnel1] destination 2.2.2.2
[*LSRD-Tunnel1] mpls te tunnel-id 101
[*LSRD-Tunnel1] mpls te bandwidth ct0 10000
[*LSRD-Tunnel1] mpls te igp advertise
[*LSRD-Tunnel1] mpls te igp metric absolute 1
[*LSRD-Tunnel1] quit
[*LSRD] ospf 1
[*LSRD-ospf-1] opaque-capability enable
[*LSRD-ospf-1] area 0
[*LSRD-ospf-1-area-0.0.0.0] mpls-te enable
[*LSRD-ospf-1-area-0.0.0.0] quit
[*LSRD-ospf-1] enable traffic-adjustment advertise
[*LSRD-ospf-1] commit

Step 8 Verify the configuration.


# After completing the preceding configurations, run the display mpls te tunnel-
interface command on LSRB. The command output shows that the tunnels have
been successfully established.
[~LSRB] display mpls te tunnel-interface
Tunnel Name : Tunnel1
Signalled Tunnel Name: -
Tunnel State Desc : CR-LSP is Up
Tunnel Attributes :
Active LSP : Primary LSP
Traffic Switch :-
Session ID : 100
Ingress LSR ID : 2.2.2.2 Egress LSR ID: 4.4.4.4
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
FTid :1
Tie-Breaking Policy : None Metric Type : None

# Run the display ip routing-table command on LSRB to view route information.


The command output shows that the outbound interfaces destined for LSRD and
LSRE are tunnel interfaces.
[~LSRB] display ip routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 18 Routes : 19

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.1/32 OSPF 10 1 D 10.1.1.1 GigabitEthernet1/0/0


2.2.2.2/32 Direct 0 0 D 127.0.0.1 LoopBack1
3.3.3.3/32 OSPF 10 1 D 10.2.1.2 GigabitEthernet2/0/0
4.4.4.4/32 OSPF 10 1 D 2.2.2.2 Tunnel1
5.5.5.5/32 OSPF 10 2 D 2.2.2.2 Tunnel1
10.1.1.0/24 Direct 0 0 D 10.1.1.2 GigabitEthernet1/0/0
10.1.1.1/32 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.2.1.0/24 Direct 0 0 D 10.2.1.1 GigabitEthernet2/0/0
10.2.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 665


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

10.2.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0


10.3.1.0/24 OSPF 10 2 D 2.2.2.2 Tunnel1
OSPF 10 2 D 10.2.1.2 GigabitEthernet2/0/0
10.4.1.0/24 OSPF 10 2 D 2.2.2.2 Tunnel1
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

# Run the display mpls lsp command on LSRB, LSRC, or LSRD to view information
about LSPs. You can view information about RSVP LSPs. The following example
uses the command output on LSRB.
[~LSRB] display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: RSVP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
4.4.4.4/32 NULL/32832 -/GE2/0/0
2.2.2.2/32 3/NULL GE2/0/0/-
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.1/32 NULL/3 -/GE1/0/0
1.1.1.1/32 32834/3 -/GE1/0/0
2.2.2.2/32 3/NULL -/-
4.4.4.4/32 NULL/3 -/Tun1
4.4.4.4/32 32844/3 -/Tun1
5.5.5.5/32 NULL/32837 -/Tun1
5.5.5.5/32 32845/32837 -/Tun1

# Run the display ip routing-table command to view the routing table on LSRA.
The command output shows that the cost values change after the forwarding
adjacency was configured.
[~LSRA] display ip routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 16 Routes : 16

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack1


2.2.2.2/32 OSPF 10 1 D 10.1.1.2 GigabitEthernet1/0/0
3.3.3.3/32 OSPF 10 2 D 10.1.1.2 GigabitEthernet1/0/0
4.4.4.4/32 OSPF 10 2 D 10.1.1.2 GigabitEthernet1/0/0
5.5.5.5/32 OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.2/32 Direct 0 0 D 10.1.1.2 GigabitEthernet1/0/0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.2.1.0/24 OSPF 10 2 D 10.1.1.2 GigabitEthernet1/0/0
10.3.1.0/24 OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
10.4.1.0/24 OSPF 10 3 D 10.1.1.2 GigabitEthernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 666


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
#
return

● LSRB configuration file


#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
mpls ldp
#
ipv4-family
#
mpls ldp remote-peer lsrd
remote-ip 4.4.4.4
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 20000
mpls te bandwidth bc0 20000
mpls rsvp-te
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 667


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

destination 4.4.4.4
mpls te igp advertise
mpls te igp metric absolute 1
mpls te bandwidth ct0 10000
mpls te tunnel-id 100
#
ospf 1
opaque-capability enable
enable traffic-adjustment advertise
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
network 10.2.1.0 0.0.0.255
mpls-te enable
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#
mpls
mpls te
mpls rsvp-te
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 20000
mpls te bandwidth bc0 20000
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 20000
mpls te bandwidth bc0 20000
mpls rsvp-te
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 10.2.1.0 0.0.0.255
network 10.3.1.0 0.0.0.255
mpls-te enable
#
return
● LSRD configuration file
#
sysname LSRD
#
mpls lsr-id 4.4.4.4
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 668


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
ipv4-family
#
mpls ldp remote-peer lsrb
remote-ip 2.2.2.2
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
mpls
mpls te
mpls te bandwidth max-reservable-bandwidth 20000
mpls te bandwidth bc0 20000
mpls rsvp-te
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
interface Tunnel1
ip address unnumbered interface LoopBack1
tunnel-protocol mpls te
destination 2.2.2.2
mpls te igp advertise
mpls te igp metric absolute 1
mpls te bandwidth ct0 10000
mpls te tunnel-id 101
#
ospf 1
opaque-capability enable
enable traffic-adjustment advertise
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.3.1.0 0.0.0.255
network 10.4.1.0 0.0.0.255
mpls-te enable
#
return
● LSRE configuration file
#
sysname LSRE
#
mpls lsr-id 5.5.5.5
#
mpls
#
mpls ldp
#
ipv4-family
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
#
ospf 1
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 10.4.1.0 0.0.0.255
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 669


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

return

1.1.4.29.17 Example for Configuring an mLDP P2MP LSP


This section provides an example for configuring an mLDP P2MP LSP.

Networking Requirements
The mLDP P2MP technique is driven by the increasing demand to support the
growing scale of multicast services on IP/MPLS backbone networks. A P2P LDP-
enabled transmit end must replicate a packet and send it to multiple receive ends.
Each replicated packet is sent along a separate LSP to its receive end, which
wastes bandwidth resources. To address this problem, enable mLDP P2MP to
establish P2MP LSPs, without the need to deploy Protocol Independent Multicast
(PIM). A tree-shaped mLDP P2MP LSP consists of sub-LSPs originating from the
root node (ingress) and destined for leaf nodes. The root node directs multicast
traffic to the P2MP LSP and sends packets to a branch node for replication. The
branch node replicates the packets and forwards them to each leaf node
connected to the branch node.
On the network shown in Figure 1-59, an mLDP P2MP LSP originates from root
node LSRA and is destined for leaf nodes LSRC, LSRE, and LSRF.

Figure 1-59 Networking diagram of mLDP P2MP LSPs

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 670


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Table 1-25 Interfaces and IP addresses


Device Interface IP Address Device Interface IP Address
Name Name Name Name

LSRA GigabitEth 10.1.1.1/24 LSRE GigabitEth 10.4.1.2/24


ernet1/0/1 ernet1/0/0

Loopback1 1.1.1.1/32 Loopback1 5.5.5.5/32

LSRB GigabitEth 10.1.1.2/24 LSRD GigabitEth 10.2.1.2/24


ernet1/0/1 ernet1/0/0

GigabitEth 10.2.1.1/24 GigabitEth 10.4.1.1/24


ernet1/0/0 ernet1/0/2

GigabitEth 10.3.1.1/24 GigabitEth 10.5.1.1/24


ernet1/0/2 ernet1/0/1

Loopback1 2.2.2.2/32 Loopback1 4.4.4.4/32

LSRC GigabitEth 10.3.1.2/24 LSRF GigabitEth 10.5.1.2/24


ernet1/0/2 ernet1/0/1

Loopback1 3.3.3.3/32 Loopback1 6.6.6.6/32

Configuration Roadmap
The configuration roadmap is as follows:
1. Assign IP addresses to all physical and loopback interfaces listed in Table
1-25.
2. Configure Intermediate System to Intermediate System (IS-IS) to advertise the
route to each network segment to which each interface is connected and
advertise the host route to each LSR ID.
3. Set an MPLS LSR ID and globally enable MPLS, MPLS LDP, and mLDP P2MP
on each node.
4. Configure MPLS LDP to establish a local LDP session on each interface along
a P2MP LSP to be established.
5. Configure leaf nodes LSRC, LSRE, and LSRF to trigger P2MP LSP
establishment.

Data Preparation
To complete the configuration, you need the following data:
● IP address of each interface on every node listed in Table 1-25
● IS-IS process ID (1) and IS-IS level (Level-2) on each node
● Root node address (1.1.1.1), mLDP P2MP LSP name (lsp1), and LSP ID (1)

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 671


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address to each interface according to Table 1-25 and create a
loopback interface on each node. For configuration details, see Configuration
Files in this section.
Step 2 Configure IS-IS to advertise the route to each network segment to which each
interface is connected and to advertise the host route to each LSR ID.
Configure IS-IS on each node to implement network layer connectivity. For
configuration details, see the configuration files.
Step 3 Configure mLDP P2MP globally on each node.
Set an MPLS LSR ID and globally enable MPLS, MPLS LDP, and mLDP P2MP on
each node.
# Configure LSRA.
[~LSRA] mpls lsr-id 1.1.1.1
[*LSRA] mpls
[*LSRA-mpls] mpls ldp
[*LSRA-mpls-ldp] mldp p2mp
[*LSRA-mpls-ldp] commit
[~LSRA-mpls-ldp] quit

Repeat this step for LSRB, LSRC, LSRD, LSRE, and LSRF. For configuration details,
see Configuration Files in this section.
Step 4 Establish local LDP sessions between nodes.
Configure MPLS and MPLS LDP on each directly connected interface to establish a
local LDP session.
# Configure LSRA.
[~LSRA] interface gigabitethernet 1/0/1
[*LSRA-GigabitEthernet1/0/1] mpls
[*LSRA-GigabitEthernet1/0/1] mpls ldp
[*LSRA-GigabitEthernet1/0/1] commit
[~LSRA-GigabitEthernet1/0/1] quit

Repeat this step for LSRB, LSRC, LSRD, LSRE, and LSRF. For configuration details,
see Configuration Files in this section.
Step 5 Configure leaf nodes to trigger mLDP P2MP LSP establishment.
# Configure LSRC.
<LSRC> system-view
[~LSRC] mpls ldp
[*LSRC-mpls-ldp] mldp p2mp-lsp name lsp1 root-ip 1.1.1.1 lsp-id 1
[*LSRC-mpls-ldp] commit
[~LSRC-mpls-ldp] quit

# Configure LSRE.
<LSRE> system-view
[~LSRE] mpls ldp
[*LSRE-mpls-ldp] mldp p2mp-lsp name lsp1 root-ip 1.1.1.1 lsp-id 1
[*LSRE-mpls-ldp] commit
[~LSRE-mpls-ldp] quit

# Configure LSRF.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 672


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

<LSRF> system-view
[~LSRF] mpls ldp
[*LSRF-mpls-ldp] mldp p2mp-lsp name lsp1 root-ip 1.1.1.1 lsp-id 1
[*LSRF-mpls-ldp] commit
[~LSRF-mpls-ldp] quit

Step 6 Verify the configuration.


# Run the ping multicast-lsp mldp p2mp root-ip 1.1.1.1 lsp-id 1 command on
LSRA. The command output shows that the mLDP P2MP LSP is reachable.
[~LSRA] ping multicast-lsp mldp p2mp root-ip 1.1.1.1 lsp-id 1
LSP PING FEC: root-ip 1.1.1.1 lsp-id 1 : 100 data bytes, press CTRL_C to break
Reply from 3.3.3.3: bytes=100 Sequence=1 time=150 ms
Reply from 5.5.5.5: bytes=100 Sequence=1 time=180 ms
Reply from 6.6.6.6: bytes=100 Sequence=1 time=200 ms
Reply from 3.3.3.3: bytes=100 Sequence=2 time=120 ms
Reply from 5.5.5.5: bytes=100 Sequence=2 time=150 ms
Reply from 6.6.6.6: bytes=100 Sequence=2 time=190 ms
Reply from 3.3.3.3: bytes=100 Sequence=3 time=80 ms
Reply from 6.6.6.6: bytes=100 Sequence=3 time=80 ms
Reply from 5.5.5.5: bytes=100 Sequence=3 time=110 ms
Reply from 3.3.3.3: bytes=100 Sequence=4 time=100 ms
Reply from 5.5.5.5: bytes=100 Sequence=4 time=130 ms
Reply from 6.6.6.6: bytes=100 Sequence=4 time=160 ms
Reply from 3.3.3.3: bytes=100 Sequence=5 time=110 ms
Reply from 5.5.5.5: bytes=100 Sequence=5 time=140 ms
Reply from 6.6.6.6: bytes=100 Sequence=5 time=140 ms

round-trip min/avg/max = 80/136/200 ms

# Run the display mpls mldp lsp p2mp command on LSRB. The command output
shows that mLDP P2MP LSP information is consistent with the configuration.
<LSRB> display mpls mldp lsp p2mp
An asterisk (*) before a Label means the USCB or DSCB is stale
An asterisk (*) before a Peer means the session is stale
-------------------------------------------------------------------------------
LSP Information: mLDP P2MP-LSP
-------------------------------------------------------------------------------
Root IP : 1.1.1.1 Instance : --
Opaque decoded : LSP-ID 1
Opaque value : 01 0004 00000001
Lsr Type : Transit
Trigger Type : --
Upstream Count : 1 Downstream Count : 2
Upstream:
In Label Peer MBB State
4101 1.1.1.1 --
Downstream:
Out Label Peer MBB State Next Hop Out Interface
4101 4.4.4.4 -- 10.2.1.2 GigabitEthernet1/0/0
4101 3.3.3.3 -- 10.3.1.2 GigabitEthernet1/0/2

----End

Configuration Files
● LSRA configuration file
#
sysname LSRA
#
mpls lsr-id 1.1.1.1
#
mpls
#
mpls ldp
mldp p2mp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 673


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
ipv4-family
#
isis 1
is-level level-2
network-entity 00.0005.0000.0000.0001.00
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
isis enable 1
#
return
● LSRB configuration file
#
sysname LSRB
#
mpls lsr-id 2.2.2.2
#
mpls
#
mpls ldp
mldp p2mp
#
ipv4-family
#
isis 1
is-level level-2
network-entity 00.0005.0000.0000.0002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.3.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.1.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
return
● LSRC configuration file
#
sysname LSRC
#
mpls lsr-id 3.3.3.3
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 674


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls
#
mpls ldp
mldp p2mp
#
ipv4-family
mldp p2mp-lsp name lsp1 root-ip 1.1.1.1 lsp-id 1
#
isis 1
is-level level-2
network-entity 00.0005.0000.0000.0003.00
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.3.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
return

● LSRD configuration file


#
sysname LSRD
#
mpls lsr-id 4.4.4.4
#
mpls
#
mpls ldp
mldp p2mp
#
ipv4-family
#
isis 1
is-level level-2
network-entity 00.0005.0000.0000.0004.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/2
undo shutdown
ip address 10.4.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.5.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
return

● LSRE configuration file

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 675


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
sysname LSRE
#
mpls lsr-id 5.5.5.5
#
mpls
#
mpls ldp
mldp p2mp
#
ipv4-family
mldp p2mp-lsp name lsp1 root-ip 1.1.1.1 lsp-id 1
#
isis 1
is-level level-2
network-entity 00.0005.0000.0000.0005.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
isis enable 1
#
return

● LSRF configuration file


#
sysname LSRF
#
mpls lsr-id 6.6.6.6
#
mpls
#
mpls ldp
mldp p2mp
#
ipv4-family
mldp p2mp-lsp name lsp1 root-ip 1.1.1.1 lsp-id 1
#
isis 1
is-level level-2
network-entity 00.0005.0000.0000.0006.00
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 10.5.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 6.6.6.6 255.255.255.255
isis enable 1
#
return

1.1.5 Seamless MPLS Configuration


This section describes how to configure seamless Multiprotocol Label Switching
(MPLS) in various usage scenarios.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 676


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.5.1 Overview of Seamless MPLS


Seamless MPLS is a bearer technique that extends MPLS techniques to access
networks. Seamless MPLS establishes an E2E LSP across the access, aggregation,
and core layers. All services can be encapsulated using MPLS at the access layer
and transmitted along the E2E LSP across the three layers.
With current trends moving towards a flat network structure, metropolitan area
networks (MANs) are steadily evolving into the Ethernet architecture, which calls
for the application of MPLS on the MAN and access networks. To meet this
requirement, seamless MPLS was developed. Seamless MPLS uses existing BGP,
IGP, and MPLS techniques to establish an E2E LSP across the access, aggregation,
and core layers, allowing end-to-end traffic to be encapsulated and forwarded
using MPLS.

1.1.5.2 Feature Requirements for Seamless MPLS

1.1.5.3 Configuring Intra-AS Seamless MPLS


In the intra-seamless MPLS networking, the access, aggregation, and core layers
are within a single AS. A BGP LSP is established across the three layers within the
AS to implement E2E service connectivity.

Usage Scenario
As shown in Figure 1-60, the access, aggregation, and core layers belong to the
same AS. Intra-AS seamless MPLS can be configured to transmit services between
gNodeBs or eNodeBs and a Mobility Management Entity (MME) or Serving
Gateway (SGW). Intra-AS seamless MPLS applies to mobile bearer networks.

Figure 1-60 Intra-AS seamless MPLS networking

NOTE

When intra-AS seamless MPLS is configured for an L3VPN, BGP LSPs can be recursed to
load-balancing LDP, TE, or LDP over TE tunnels and support ECMP/UCMP.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 677


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Pre-configuration Tasks
Before configuring intra-AS seamless MPLS, complete the following tasks:

● Configure IGP protocols to implement connectivity at the access, aggregation,


and core layers and enable MPLS LDP or MPLS TE to implement MPLS
forwarding on a public network.
● Configure IBGP peer relationships between each Cell Site Gateway (CSG) and
Aggregation (AGG), between each AGG and Core ABR, and between each
Core ABR and Mobile Aggregate Service Gateway (MASG).
NOTE

If MPLS TE tunnels are used across the three layers, a tunnel policy or tunnel selector must
be configured. For configuration details, see VPN Tunnel Management Configuration.

1.1.5.3.1 Configuring an AGG and a Core ABR as RRs


In the intra-AS seamless MPLS networking, the AGG and core ABR can be
configured as RRs so that CSGs and MASGs can learn loopback routes from one
another. The loopback route information is used to establish an MP-IBPG peer
relationship between each CSG and MASG.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run bgp as-number

The BGP view is displayed.

Step 3 Run ipv4-family unicast

The IPv4 unicast address family view is displayed.

Step 4 Run peer { ipv4-address | group-name } reflect-client

An RR is configured, and the peer is specified as a client.

The AGG's clients are its connected CSG and core ABR. The core ABR's clients are
its connected AGG and MASG.

Step 5 Run peer { ipv4-address | group-name } next-hop-local

The device is configured to use its own IP address as the next-hop address of
routes when advertising these routes.

To enable the AGG or core ABR to advertise routes with the next-hop address set
to its own IP address, run the peer next-hop-local command on the AGG or core
ABR.

Step 6 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 678


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.5.3.2 Enabling BGP Peers to Exchange Labeled IPv4 Routes


In the seamless MPLS networking, before an E2E BGP LSP is established, BGP
peers must be able to exchange labeled IPv4 routes with each other.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run bgp as-number

The BGP view is displayed.

Step 3 Run peer { ipv4-address | group-name } label-route-capability [ check-tunnel-


reachable ]

The ability to exchange labeled IPv4 routes with a BGP peer is enabled.

● If the check-tunnel-reachable is configured, a local device advertises an IPv4


unicast route to its peer if a tunnel between the local and remote devices is
unreachable and advertises a labeled IPv4 route if the tunnel is reachable.
This parameter helps prevent a data forwarding failure when an MP-IBGP
peer relationship between the CSG and MASG is established but an LSP over
the peer relationship fails to be established.
● If the check-tunnel-reachable parameter is not configured, the local device
advertises a labeled IPv4 route, regardless of whether a tunnel between the
local and remote devices is unreachable.

Step 4 Run commit

The configuration is committed.

----End

1.1.5.3.3 Configuring a BGP LSP


Before a BGP LSP is established, a routing policy must be configured to control
label distribution. The egress of the BGP LSP to be established needs to assign an
MPLS label to the route advertised to an upstream node. If a transit node receives
a labeled IPv4 route from downstream, the downstream node must re-assign an
MPLS label to the transit node and advertises the label upstream.

Prerequisites
Before configuring a BGP LSP, configure an IGP on each device to implement
interworking at the network layer, configure basic MPLS functions on each device,
and establish MPLS tunnels.

Procedure
● Perform the following steps on each CSG and MASG:
a. Run system-view

The system view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 679


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

b. Run route-policy route-policy-name matchMode node node


A Route-Policy node is created.
c. Run apply mpls-label
The local device is enabled to assign a label to an IPv4 route.
d. Run quit
Return to the system view.
e. Run bgp as-number
The BGP view is displayed.
f. Run peer { ipv4-address | group-name } route-policy route-policy-name
export
A routing policy for advertising routes matching Route-Policy conditions
to a BGP peer or a BGP peer group is configured.

NOTE

Repeat this step for each BGP peer.


g. Run network ip-address [ mask | mask-length ] [ route-policy route-
policy-name ]
The route destined for the loopback interface address is advertised.
This route is labeled and advertised along a path over which a BGP LSP is
established.
h. Run commit
The configuration is committed.
● Perform the following steps on each AGG and core ABR:
a. Run system-view
The system view is displayed.
b. Run route-policy route-policy-name matchMode node node
A Route-Policy node is created.
c. Run if-match mpls-label
An IPv4 route is enabled to match an MPLS label.
d. Run apply mpls-label
The local device is enabled to assign a label to an IPv4 route.
e. Run quit
Return to the system view.
f. Run bgp as-number
The BGP view is displayed.
g. Run peer { ipv4-address | group-name } route-policy route-policy-name
export
A routing policy for advertising routes matching Route-Policy conditions
to a BGP peer or a BGP peer group is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 680


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

Repeat this step for each BGP peer.


h. Run commit

The configuration is committed.

----End

1.1.5.3.4 (Optional) Configuring Traffic Statistics Collection for BGP LSPs


To check the traffic statistics of BGP LSPs, configure traffic statistics collection on
the ingress and transit nodes of the BGP LSPs.

Context
Traffic statistics collection for BGP LSPs allows you to query and monitor the
traffic statistics of BGP LSPs in real time. To enable this function, run the bgp host
command.
NOTE

Traffic statistics collection for BGP LSPs takes effect only for BGP LSPs of which the FEC
mask length is 32 bits.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

MPLS is enabled globally, and the MPLS view is displayed.

Step 3 Run quit

Return to the system view.

Step 4 Run mpls traffic-statistics

MPLS traffic statistics collection is enabled globally, and the traffic statistics
collection view is displayed.

Step 5 Run bgp host [ ip-prefix ip-prefix-name ]

Traffic statistics collection is enabled for BGP LSPs.

If the ip-prefix parameter needs to be set to limit the range of BGP LSPs for which
traffic statistics collection is to be enabled, run the ip ip-prefix command to
create an IP prefix list first.

Step 6 Run commit

The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 681


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.5.3.5 (Optional) Configuring the Protection Switching Function


Protection switching can be configured to provide high availability for an intra-AS
seamless MPLS network.

Context
On an intra-AS seamless MPLS network that has protection switching enabled, if a
link or node fails, traffic switches to a backup path, which implements
uninterrupted traffic transmission.
Tunnel Type Protected Nodes to Be Detection Protection
Object Configured Method Function

MPLS TE Protects All nodes Configure Configure


tunnel access rings, BFD for either of the
(without Ps aggregation interface. following TE
on links at rings, and FRR functions:
the network links at the ● Configure
layer) core layer. TE manual
FRR.
● Configure
MPLS TE
Auto FRR.

MPLS TE Protects All nodes Configure


tunnel (with access rings, static BFD for
Configure
Ps on links at aggregation CR-LSP or
CR-LSP hot
the network rings, and dynamic BFD
standby.
layer) links at the for CR-LSP.
core layer.

MPLS TE Protects AGGs All nodes Configure


Configure
tunnel and core BFD for TE.
BGP LSP FRR.
ABRs.

MPLS LDP Protects All nodes


LSP access and Configure
aggregation static BFD to
rings, as well monitor an Configure
as links, LDP LSP or BGP LSP FRR.
AGGs, and dynamic BFD
core ABRs at for LDP LSPs.
the core layer.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 682


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Tunnel Type Protected Nodes to Be Detection Protection


Object Configured Method Function

MPLS TE Protects a CSGs and Configure Configure


tunnel or whole BGP MASGs BFD for BGP either of the
MPLS LDP LSP and MP- tunnel. following VPN
LSP BGP peers on FRR functions:
an L3VPN. ● Enable
VPN FRR
in the VPN
instance
IPv4
address
family
view.
● Enable
VPN FRR
in the
BGP-VPN
instance
IPv4
address
family
view.

Procedure
● Configure BFD for interface.
a. Run system-view
The system view is displayed.
b. Run bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-name ]
interface interface-type interface-number [ source-ip source-ip ]
A BFD session for IPv4 is bound to an interface.
c. Run discriminator local discr-value
The local discriminator of the BFD session is created.
d. Run discriminator remote discr-value
The remote discriminator of the BFD session is configured.

NOTE

The local and remote discriminators on the two ends of a BFD session must be
correctly associated. That is, the local discriminator of the local device must be
the same as the remote discriminator of the remote device, and the remote
discriminator of the local device must be the same as the local discriminator of
the remote device. If the association is incorrect, a BFD session cannot be set up.
e. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 683


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Configure TE manual FRR.

Perform the following steps on the ingress of the primary tunnel:

a. Run system-view

The system view is displayed.


b. Run interface tunnel tunnel-number

The tunnel interface view of the primary tunnel is displayed.


c. Run mpls te fast-reroute [ bandwidth ]

The TE FRR function is enabled.


d. Run commit

The configuration is committed.

Configure an FRR bypass tunnel.

a. Run system-view

The system view is displayed.


b. Run interface tunnel tunnel-number

The tunnel interface view of a bypass tunnel is displayed.


c. Run tunnel-protocol mpls te

MPLS TE is configured as a tunnel protocol.


d. Run destination ip-address

The LSR ID of an MP is configured as the destination address of the


bypass tunnel.
e. Run mpls te tunnel-id tunnel-id

A tunnel ID of the bypass tunnel is set.


f. (Optional) Run mpls te path explicit-path path-name

An explicit path is specified for the bypass tunnel.

NOTE

Physical links of a bypass tunnel cannot overlap protected physical links of the
primary tunnel.
g. (Optional) Run mpls te bandwidth ct0 bandwidth

The bandwidth is set for the bypass tunnel.


h. Run mpls te bypass-tunnel

The bypass tunnel function is enabled.

After a bypass tunnel is configured, the device automatically records


routes related to the bypass tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 684


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

Note the following settings to prevent a protection failure:


● A tunnel interface can only be used by either a bypass tunnel or a backup
tunnel. That is, you can configure either the mpls te bypass-tunnel
command or mpls te backup command.
● A tunnel interface can only be used by either a bypass tunnel or a primary
tunnel. That is, you can configure either the mpls te bypass-tunnel
command or mpls te fast-reroute command.
i. Run mpls te protected-interface interface-type interface-number
The interface on which traffic is protected by the bypass tunnel is
specified.

NOTE

● A tunnel interface can only be used by either a bypass tunnel or a backup


tunnel. That is, you can configure either the mpls te protected-interface
command or mpls te backup command.
● A tunnel interface can only be used by either a bypass tunnel or a backup
tunnel. That is, you can configure either the mpls te protected-interface
command or mpls te fast-reroute command.
j. Run commit
The configuration is committed.
● Configure MPLS TE Auto FRR.
Perform the following steps on the ingress or a transit node of a primary
tunnel:
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te auto-frr
MPLS TE Auto FRR is enabled globally.
d. Run quit
Return to the system view.
e. Run interface interface-type interface-number
The view of the outbound interface on the primary tunnel is displayed.
f. (Optional) Run mpls te auto-frr { link | node | default }
TE Auto FRR is enabled on the interface.
By default, all MPLS TE-enabled interfaces support TE Auto FRR after
MPLS TE Auto FRR is enabled globally. To disable TE Auto FRR on
interfaces, run the mpls te auto-frr block command on these interfaces.
The mpls te auto-frr block command disables TE Auto FRR on
interfaces, even if TE Auto FRR is enabled or re-enabled globally.
By default, TE Auto FRR is disabled.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 685


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

● If the mpls te auto-frr default command is run, the interface Auto FRR
capability status is the same as the global Auto FRR capability status.
g. Run mpls te fast-reroute [ bandwidth ]
The TE FRR function is enabled.
The bandwidth parameter can be configured to enable FRR bandwidth
protection for the primary tunnel.
h. (Optional) Run mpls te bypass-attributes bandwidth bandwidth
[ priority setup-priority [ hold-priority ] ]
Attributes for the Auto FRR bypass tunnel are set.

NOTE

● These attributes for the Auto FRR bypass tunnel can be set only after the
mpls te fast-reroute bandwidth command is run for the primary tunnel.
● The Auto FRR bypass tunnel bandwidth cannot exceed the primary tunnel
bandwidth.
● If no attributes are configured for an Auto FRR bypass tunnel, the Auto FRR
bypass tunnel by default uses the same bandwidth as that of the primary
tunnel.
● The setup priority of the bypass tunnel cannot be higher than the holding
priority. Each priority of the bypass tunnel cannot be higher than that of the
primary tunnel.
● If the primary tunnel FRR is disabled, the bypass tunnel attributes are
automatically deleted.
● On one TE tunnel interface, the bypass tunnel bandwidth and the multi-CT
are mutually exclusive.
i. Run commit
The configuration is committed.
● Configure static BFD for CR-LSP.
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run quit
Return to the system view.
d. Run bfd session-name bind mpls-te interface tunnel interface-number
te-lsp [ backup ]
The BFD session is bound to the primary or backup CR-LSP of the
specified tunnel.
If the backup parameter is specified, the BFD session is bound to the
backup CR-LSP.
e. Run discriminator local discr-value
The local discriminator of the BFD session is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 686


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

f. Run discriminator remote discr-value

The remote discriminator of the BFD session is configured.

NOTE

The local discriminator of the local device and the remote discriminator of the
remote device are the same, and the remote discriminator of the local device and
the local discriminator of the remote device are the same. A discriminator
inconsistency causes the BFD session to fail to be established.
g. Run process-pst

BFD is enabled to modify the port status table or link status table.

If the BFD session on a trunk or VLAN member interface allows BFD to


modify the port status table or link status table, and the interface is
configured with the BFD session, you must configure the WTR time for
the BFD session for detecting the interface. This prevents the BFD session
on the interface from flapping when the member interface joins or leave
the interface.
h. (Optional) Run min-tx-interval tx-interval

The minimum interval at which BFD packets are sent is configured.


i. (Optional) Run min-rx-interval rx-interval

The local minimum interval at which BFD packets are received is


configured.
j. (Optional) Run detect-multiplier multiplier

The local BFD detection multiplier is configured.


k. Run commit

The configuration is committed.


● Configure dynamic BFD for CR-LSP.
a. Run system-view

The system view is displayed.


b. Run bfd

BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run interface tunnel interface-number

The tunnel interface view is displayed.


d. Run mpls te bfd enable

The capability of dynamically creating BFD sessions is enabled on the TE


tunnel.

The command configured in the tunnel interface view takes effect only
on the current tunnel interface.
e. Run commit

The configuration is committed.


● Configure CR-LSP hot standby.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 687


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

a. Run system-view
The system view is displayed.
b. Run interface tunnel tunnel-number
The MPLS TE tunnel interface view is displayed.
c. Run mpls te backup hot-standby [ mode { revertive [ wtr interval ] |
non-revertive } | overlap-path | wtr [ interval ] | dynamic-bandwidth ]
CR-LSP hot standby is configured.
Select the following parameters as needed to enable sub-functions:

▪ mode revertive [ wtr interval ]: enables a device to switch traffic


back to the primary CR-LSP.

▪ mode non-revertive: disables a device from switching traffic back to


the primary CR-LSP.

▪ overlap-path: allows a hot-standby CR-LSP to overlap the primary


CR-LSP if no available path is provided for the hot-standby CR-LSP.

▪ wtr interval: sets the time before a traffic switchback is performed.

▪ dynamic-bandwidth: enables a hot-standby CR-LSP to obtain


bandwidth resources only after the hot-standby CR-LSP takes over
traffic from a faulty primary CR-LSP. This function helps efficiently
use network resources and reduce network costs.
d. Run commit
The configuration is committed.
● Configure BFD for TE.
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run quit
Return to the system view.
d. Run bfd session-name bind mpls-te interface tunnel interface-number
The TE tunnel to be detected by BFD sessions is specified.
When the TE tunnel is in the Down state, a BFD session cannot be
established.
e. Run bfd session session-name
A session is added to the BFD session group and the BFD session view is
displayed.
f. Run discriminator local discr-value
The local discriminator of the BFD session is configured.
g. Run discriminator remote discr-value

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 688


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The remote discriminator of the BFD session is configured.

NOTE

The local discriminator of the local device and the remote discriminator of the
remote device are the same, and the remote discriminator of the local device and
the local discriminator of the remote device are the same. A discriminator
inconsistency causes the BFD session to fail to be established.
h. Run process-pst

BFD is enabled to modify the port status table or link status table.

If the BFD session on a trunk or VLAN member interface allows BFD to


modify the port status table or link status table, and the interface is
configured with the BFD session, you must configure the WTR time for
the BFD session for detecting the interface. This prevents the BFD session
on the interface from flapping when the member interface joins or leave
the interface.
i. (Optional) Run min-tx-interval tx-interval

The minimum interval at which BFD packets are sent is configured.


j. (Optional) Run min-rx-interval rx-interval

The local minimum interval at which BFD packets are received is


configured.
k. (Optional) Run detect-multiplier multiplier

The local BFD detection multiplier is configured.


l. Run commit

The configuration is committed.


● Configure static BFD to monitor an LDP LSP.
a. Run system-view

The system view is displayed.


b. Run bfd

BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run quit

Return to the system view.


d. Run bfd session-name bind ldp-lsp peer-ip ip-address nexthop ip-
address [ interface interface-type interface-number ]

A BFD session is bound to an LDP LSP.


e. Run discriminator local discr-value

The local discriminator of the BFD session is configured.


f. Run discriminator remote discr-value

The remote discriminator of the BFD session is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 689


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

The local discriminator of the local device and the remote discriminator of the
remote device are the same, and the remote discriminator of the local device and
the local discriminator of the remote device are the same. A discriminator
inconsistency causes the BFD session to fail to be established.
g. Run process-pst
BFD is enabled to modify the port status table or link status table.
If the BFD session on a trunk or VLAN member interface allows BFD to
modify the port status table or link status table, and the interface is
configured with the BFD session, you must configure the WTR time for
the BFD session for detecting the interface. This prevents the BFD session
on the interface from flapping when the member interface joins or leave
the interface.
h. (Optional) Run min-tx-interval tx-interval
The minimum interval at which BFD packets are sent is configured.
i. (Optional) Run min-rx-interval rx-interval
The local minimum interval at which BFD packets are received is
configured.
j. (Optional) Run detect-multiplier multiplier
The local BFD detection multiplier is configured.
k. Run commit
The configuration is committed.
● Configure dynamic BFD for LDP LSPs.
Perform the following steps on the ingress:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally.
c. Run quit
Return to the system view.
d. Run mpls
The MPLS view is displayed.
e. Run mpls bfd enable
The capability of dynamically establishing a BFD session is configured on
the ingress.
f. Run mpls bfd-trigger { host | fec-list list-name }
A policy for establishing an LDP BFD session is configured.
g. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 690


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Perform the following steps on the egress:


a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally, and the BFD view is displayed.
c. Run mpls-passive
The capability of passively creating a BFD session is configured on the
egress.
d. Run commit
The configuration is committed.
● Configure BGP LSP FRR.
NOTE

In a seamless MPLS scenario, BGP LSP FRR must be configured on both the ingress
and a transit node.
In a seamless MPLS scenario, before you configure BGP LSP FRR, run the ingress-lsp
trigger route-policy command on a transit node to filter the ingress role and then run
the auto-frr command on the transit node to enable BGP LSP FRR to take effect.

Perform the following steps on the ingress:


a. Run system-view
The system view is displayed.
b. Run bgp as-number
The BGP view is displayed.
c. Run ipv4-family unicast
The BGP-IPv4 unicast address family view is displayed.
d. Run auto-frr
BGP Auto FRR is enabled for unicast routes.
e. Run bestroute nexthop-resolved tunnel [ inherit-ip-cost ]
Labeled BGP IPv4 unicast routes can participate in route selection only
when their next hops recurse to tunnels.
f. Run ingress-lsp protect-mode bgp-frr
BGP LSP FRR is enabled.

NOTE

Perform this step on each CSG and MASG to enable the protection switching
function for the whole BGP LSP.
g. (Optional) Run route-select delay delay-value
A delay for selecting a route is configured. After the primary path
recovers, the device on the primary path performs route selection only
after the corresponding forwarding entries on the device are stable. This
prevents traffic loss during traffic switchback.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 691


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

h. Run commit
The configuration is committed.
Perform the following steps on the transit node:
a. Run system-view
The system view is displayed.
b. Run bgp as-number
The BGP view is displayed.
c. Run ipv4-family unicast
The BGP-IPv4 unicast address family view is displayed.
d. Run auto-frr
BGP Auto FRR for unicast routes is enabled.
e. Run bestroute nexthop-resolved tunnel [ inherit-ip-cost ]
Labeled BGP IPv4 unicast routes can participate in route selection only
when their next hops recurse to tunnels.
f. (Optional) Run route-select delay delay-value
A delay for selecting a route to the intermediate device on the primary
path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.
g. Run commit
The configuration is committed.
● Configure BFD for BGP tunnel.
Perform the following steps on the ingress of an E2E BGP tunnel:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally.
c. Run quit
Return to the system view.
d. Run mpls
The MPLS view is displayed.
e. Run mpls bgp bfd enable
The ability to dynamically establish BGP BFD sessions is enabled.
f. Run mpls bgp bfd-trigger-tunnel { host | ip-prefix ip-prefix-name }
The policy for dynamically establishing BGP BFD sessions is configured.
g. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 692


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Perform the following steps on the egress of an E2E BGP tunnel:


a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally, and the BFD view is displayed.
c. Run mpls-passive
The capability of passively creating a BFD session is configured on the
egress.
d. Run commit
The configuration is committed.
● Enable VPN FRR in the VPN instance IPv4 address family view.
a. Run system-view
The system view is displayed.
b. Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
c. Run ipv4-family
The VPN instance IPv4 address family view is displayed.
d. Run vpn frr
VPN FRR is enabled.
e. (Optional) Run quit
Return to the VPN instance view.
f. (Optional) Run quit
Return to the system view.
g. (Optional) Run bgp as-number
The BGP view is displayed.
h. (Optional) Run ipv4-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 address family view is displayed.
i. (Optional) Run route-select delay delay-value
A delay for selecting a route to the intermediate device on the primary
path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.
The delay-value is an integer ranging from 0 to 3600, in seconds. The
default delay-value is 0, indicating that the device on which FRR is
configured selects a route to the intermediate device on the primary path
without a delay.
j. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 693


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Enable VPN FRR in the BGP-VPN instance IPv4 address family view.
a. Run system-view

The system view is displayed.


b. Run bgp as-number

The BGP view is displayed.


c. Run ipv4-family vpn-instance vpn-instance-name

The BGP-VPN instance IPv4 address family view is displayed.


d. Run auto-frr

VPN Auto FRR is enabled.


e. (Optional) Run route-select delay delay-value

A delay for selecting a route to the intermediate device on the primary


path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.

The delay-value is an integer ranging from 0 to 3600, in seconds. The


default delay-value is 0, indicating that the device on which FRR is
configured selects a route to the intermediate device on the primary path
without a delay.
f. Run commit

The configuration is committed.

----End

1.1.5.3.6 (Optional) Configuring the Egress Protection Function


The egress protection function reduces E2E BFD sessions to be established,
bandwidth resources to be consumed, and the burden on devices.

Context
In seamless MPLS scenarios, when an egress MASG fails, E2E BFD for BGP tunnel
is used to instruct a CSG to perform VPN FRR switching. In this protection solution,
both BGP LSPs and BFD sessions are in great numbers, which consumes a lot of
bandwidth resources and burdens the device. To optimize the solution, the egress
protection function can be configured on the master and backup MASGs. With this
function enabled, both the master and backup MASGs assign the same private
network label value to a core ASBR. If the master MASG fails, BFD for LDP LSP or
BFD for TE can instruct a core ASBR to perform BGP FRR protection switching.
After traffic is switched to the backup MASG, the MASG removes the BGP public
network label and uses the private network label the same as that on the faulty
master MASG to search for a matching VPN instance. Traffic can then be properly
forwarded.

The egress protection function is configured on both the master and backup
MASGs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 694


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

If the egress protection function is configured on egress MASGs between which a tunnel
exists and a route imported by BGP on one of the MASGs recurses to the tunnel, this MASG
then recurses the route to another tunnel of a different type. In this case, traffic is directed
to the other MASG, which slows down traffic switchover. As a result, the egress protection
function does not take effect. To address this problem, specify non-relay-tunnel when
running the import-route or network command to prevent the routes imported by BGP
from recursing to tunnels.

Prerequisites
Before configuring the egress protection function, complete the following tasks:
● Configure a loopback interface on each of the master and backup MASGs.
The IP address of each loopback interface on an MASG is used to establish a
remote BGP peer relationship with a remote device.
● Host routes to the loopback interfaces are imported into the BGP routing
table, and both the master and backup MASGs assigns BGP labeled routes to
a core ASBR. Therefore, the core ASBR has two BGP labeled routes destined
for the same loopback interface. A routing policy is configured to enable the
core ASBR to select one route to implement BGP FRR.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Step 3 Run ipv4-family
The VPN instance IPv4 address family view is displayed.
Step 4 Run route-distinguisher route-distinguisher
An RD is configured for the VPN instance IPv4 address family.
Step 5 Run apply-label per-instance static static-label-value
A device is enabled to assign the same static label to all routes destined for a
remote PE in a VPN instance IPv4 address family.
The same static label value must be set on both the master and backup MASGs.

NOTE

A change in the label allocation mode leads to re-advertising of IPv4 address family routes
in a VPN instance. This step causes a temporary service interruption. Exercise caution when
using this command.

Step 6 Run commit


The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 695


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.5.3.7 Verifying the Configuration


After configuring intra-AS seamless MPLS, you can check established LSPs and the
connectivity of the BGP LSPs between a CSG and an MASG.

Prerequisites
Intra-AS seamless MPLS has been configured.

Procedure
● Run the display ip routing-table command on a CSG or an MASG to check
the routes to the peer end.
● Run the display mpls lsp command to check LSP information.
● Run the ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m
interval | -r reply-mode | -s packet-size | -t time-out | -v ] * bgp destination-
iphost mask-length [ ip-address ] command on a CSG or an MASG to check
the BGP LSP connectivity.
● Run the display mpls lsp protocol bgp traffic-statistics inbound command
to check the incoming traffic statistics of BGP LSPs.
● Run the display mpls lsp protocol bgp traffic-statistics outbound [ ipv4-
address mask-length ] verbose command to check the outgoing traffic
statistics of BGP LSPs.
● Run the display mpls lsp protocol bgp traffic-statistics outbound
aggregated command to check the traffic statistics of BGP LSPs aggregated
by FEC.
----End

1.1.5.4 Configuring Inter-AS Seamless MPLS


In the inter-AS seamless MPLS networking, the access and aggregation layers
belong to one AS, and the core layer belong to another AS. An inter-AS BGP LSP is
established across the three layers to implement E2E service connectivity.

Usage Scenario
As shown in Figure 1-61, the access and aggregation layers belong to one AS, and
the core layer belongs to another AS. Inter-AS seamless MPLS can be configured
to transmit services between gNodeBs or eNodeBs and a Mobility Management
Entity (MME) or Serving Gateway (SGW).

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 696


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-61 Inter-AS seamless MPLS networking

NOTE

When inter-AS seamless MPLS is configured for an L3VPN, BGP LSPs can be recursed to
load-balancing LDP, TE, or LDP over TE tunnels and support ECMP/UCMP.

Pre-configuration Tasks
Before configuring inter-AS seamless MPLS, complete the following tasks:

● Configure IGP protocols to implement connectivity at the access, aggregation,


and core layers and enable MPLS LDP or MPLS TE to implement MPLS
forwarding on a public network.
● Configure EBGP peer relationships for each AGG ASBR-and-core ASBR pair
and an IBGP peer relationship between each pair of the following nodes:
– Cell Site Gateway (CSG) and Aggregation (AGG)
– AGG and AGG ASBR
– Core ASBR and Mobile Aggregate Service Gateway (MASG)
NOTE

If MPLS TE tunnels are used across the three layers, a tunnel policy or tunnel selector must
be configured. For configuration details, see VPN Tunnel Management Configuration.

1.1.5.4.1 Configure an AGG as an RR


In the inter-AS seamless MPLS networking, an AGG is configured as an RR to
advertise the route to the CSG's loopback interface to an AGG ASBR, and the AGG
ASBR advertises the route to the core layer over an EBGP peer connection. The
loopback route information is used to establish an MP-EBGP peer relationship
between each CSG and MASG.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 697


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bgp as-number
The BGP view is displayed.
Step 3 Run ipv4-family unicast
The IPv4 unicast address family view is displayed.
Step 4 Run peer { ipv4-address | group-name } reflect-client
An RR is configured, and the CSG and AGG ASBR are specified as its clients.
Step 5 Run peer { ipv4-address | group-name } next-hop-local
The device is configured to use its own IP address as the next-hop address of
routes when advertising these routes.
To enable the AGG to advertise routes with the next-hop address set to its own
address, run the peer next-hop-local command on the AGG.
Step 6 Run commit
The configuration is committed.

----End

1.1.5.4.2 Enabling BGP Peers to Exchange Labeled IPv4 Routes


In the seamless MPLS networking, before an E2E BGP LSP is established, BGP
peers must be able to exchange labeled IPv4 routes with each other.

Procedure
● Perform the following steps on each CSG, AGG, and MASG:
a. Run system-view
The system view is displayed.
b. Run bgp as-number
The BGP view is displayed.
c. Run peer { ipv4-address | group-name } label-route-capability [ check-
tunnel-reachable ]
The ability to exchange labeled IPv4 routes between devices in the local
AS is enabled.

▪ If the check-tunnel-reachable is configured, a local device


advertises an IPv4 unicast route to its peer if a tunnel between the
local and remote devices is unreachable and advertises a labeled
IPv4 route if the tunnel is reachable. This parameter helps prevent a
data forwarding failure when an MP-EBGP peer relationship between
the CSG and MASG is established but an LSP over the peer
relationship fails to be established.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 698


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

▪ If the check-tunnel-reachable parameter is not configured, the local


device advertises a labeled IPv4 route, regardless of whether a tunnel
between the local and remote devices is unreachable.
d. Run commit

The configuration is committed.


● Perform the following steps on each AGG ASBR and core ASBR:
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The view of the interface connected to the peer ASBR is displayed.


c. Run ip address ip-address { mask | mask-length }

An IP address is assigned to the interface.


d. Run mpls

MPLS is enabled.
e. Run quit

Return to the system view.


f. Run bgp as-number

The BGP view is displayed.


g. Run peer { ipv4-address | group-name } label-route-capability [ check-
tunnel-reachable ]

The ability to exchange labeled IPv4 routes between BGP peers, including
the peer ASBR and the devices in the local AS, is enabled.

▪ If the check-tunnel-reachable is configured, a local device


advertises an IPv4 unicast route to its peer if a tunnel between the
local and remote devices is unreachable and advertises a labeled
IPv4 route if the tunnel is reachable. This parameter helps prevent a
data forwarding failure when an MP-EBGP peer relationship between
the CSG and MASG is established but an LSP over the peer
relationship fails to be established.

▪ If the check-tunnel-reachable parameter is not configured, the local


device advertises a labeled IPv4 route, regardless of whether a tunnel
between the local and remote devices is unreachable.
h. Run commit

The configuration is committed.

----End

1.1.5.4.3 Configuring a BGP LSP


Before a BGP LSP is established, a routing policy must be configured to control
label distribution. The egress of the BGP LSP to be established needs to assign an
MPLS label to the route advertised to an upstream node. If a transit node receives

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 699


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

a labeled IPv4 route from downstream, the downstream node must re-assign an
MPLS label to the transit node and advertises the label upstream.

Procedure
● Perform the following steps on each CSG and MASG:
a. Run system-view
The system view is displayed.
b. Run route-policy route-policy-name matchMode node node
A Route-Policy node is created.
c. Run apply mpls-label
The local device is enabled to assign a label to an IPv4 route.
d. Run quit
Return to the system view.
e. Run bgp as-number
The BGP view is displayed.
f. Run peer { ipv4-address | group-name } route-policy route-policy-name
export
A routing policy for advertising routes matching Route-Policy conditions
to a BGP peer or a BGP peer group is configured.

NOTE

Repeat this step for each BGP peer.


g. Run network ip-address [ mask | mask-length ] [ route-policy route-
policy-name ]
The route destined for the loopback interface address is advertised.
This route is labeled and advertised along a path over which a BGP LSP is
established.
h. Run commit
The configuration is committed.
● Perform the following steps on each AGG, AGG ASBR, and core ASBR:
a. Run system-view
The system view is displayed.
b. Run route-policy route-policy-name matchMode node node
A Route-Policy node is created.
c. Run if-match mpls-label
An IPv4 route is enabled to match an MPLS label.
d. Run apply mpls-label
The local device is enabled to assign a label to an IPv4 route.
e. Run quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 700


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Return to the system view.


f. Run bgp as-number

The BGP view is displayed.


g. Run peer { ipv4-address | group-name } route-policy route-policy-name
export

A routing policy for advertising routes matching Route-Policy conditions


to a BGP peer or a BGP peer group is configured.

NOTE

Repeat this step for each BGP peer.


h. Run commit

The configuration is committed.

----End

1.1.5.4.4 (Optional) Configuring Traffic Statistics Collection for BGP LSPs


To check the traffic statistics of BGP LSPs, configure traffic statistics collection on
the ingress and transit nodes of the BGP LSPs.

Context
Traffic statistics collection for BGP LSPs allows you to query and monitor the
traffic statistics of BGP LSPs in real time. To enable this function, run the bgp host
command.
NOTE

Traffic statistics collection for BGP LSPs takes effect only for BGP LSPs of which the FEC
mask length is 32 bits.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run mpls

MPLS is enabled globally, and the MPLS view is displayed.

Step 3 Run quit

Return to the system view.

Step 4 Run mpls traffic-statistics

MPLS traffic statistics collection is enabled globally, and the traffic statistics
collection view is displayed.

Step 5 Run bgp host [ ip-prefix ip-prefix-name ]

Traffic statistics collection is enabled for BGP LSPs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 701


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

If the ip-prefix parameter needs to be set to limit the range of BGP LSPs for which
traffic statistics collection is to be enabled, run the ip ip-prefix command to
create an IP prefix list first.
Step 6 Run commit
The configuration is committed.

----End

1.1.5.4.5 (Optional) Configuring the Mode in Which a BGP Label Inherits the QoS
Priority in an Outer Tunnel Label
When data packets are transmitted from a core ASBR to an AGG ASBR, you can
determine whether a BGP label inherits the QoS priority carried in an outer tunnel
label.

Context
In the inter-AS seamless MPLS or inter-AS seamless MPLS+HVPN networking, each
packet arriving at a core ASBR or AGG ASBR carries an inner private label, a BGP
LSP label, and an outer MPLS tunnel label. The core ASBR and AGG ASBR remove
outer MPLS tunnel labels from packets before sending the packets to each other. If
a BGP LSP label in a packet carries a QoS priority different from that in the outer
MPLS tunnel label in the packet, you can configure the core ASBR or AGG ASBR to
determine whether the BGP LSP label inherits the QoS priority carried in the outer
MPLS tunnel label to be removed.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run bgp as-number
The BGP view is displayed.
Step 3 (Optional) Run ipv4-family unicast
The BGP-IPv4 unicast address family view is displayed.
Step 4 Run peer { group-name | ipv4-address } exp-mode { pipe | uniform }
The mode in which a BGP label inherits the QoS priority in the outer tunnel label
is specified.
You can configure either of the following parameters:
● uniform: The BGP label inherits the QoS priority carried in the outer MPLS
tunnel label.
● pipe: The QoS priority carried in the BGP label does not change, and the BGP
label does not inherit the QoS priority carried in the outer MPLS tunnel label.
The default QoS priority inheriting mode varies according to the outer MPLS
tunnel type:
● LDP: By default, the BGP label inherits the QoS priority carried in the outer
MPLS tunnel label.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 702


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● TE: By default, the BGP label does not inherit the QoS priority carried in the
outer MPLS tunnel label.

----End

1.1.5.4.6 (Optional) Configuring the Protection Switching Function


A protection switching function, such as link or node protection, can be configured
to provide high availability for an inter-AS seamless MPLS network.

Context
On an inter-AS seamless MPLS network that has protection switching enabled, if a
link or node fails, traffic switches to a backup path, which implements
uninterrupted traffic transmission.
Tunnel Type Protected Nodes to Be Detection Protection
Object Configured Method Function

MPLS TE Protects All nodes Configure Configure


tunnel access rings, BFD for either of the
(without Ps aggregation interface. following TE
on links at rings, and FRR functions:
the network links at the ● Configure
layer) core layer. TE manual
FRR.
● Configure
MPLS TE
Auto FRR.

MPLS TE Protects All nodes Configure


tunnel (with access rings, static BFD for
Configure
Ps on links at aggregation CR-LSP or
CR-LSP hot
the network rings, and dynamic BFD
standby.
layer) links at the for CR-LSP.
core layer.

MPLS TE Protects CSGs, AGGs, Configure


tunnel AGGs, AGG AGG ASBRs, BFD for TE. Configure
ASBRs, and and MASGs BGP LSP FRR.
core ASBRs.

MPLS LDP Protects All nodes


LSP access rings
and Configure
aggregation static BFD to
rings, as well monitor an Configure
as links, LDP LSP or BGP LSP FRR.
AGGs, AGG dynamic BFD
ASBRs, and for LDP LSPs.
core ASBRs at
the core layer.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 703


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Tunnel Type Protected Nodes to Be Detection Protection


Object Configured Method Function

MPLS TE Protect links AGG ASBRs Configure Configure


tunnel or between each and core BFD for BGP LSP FRR.
MPLS LDP pair of an ASBRs interface.
LSP AGG ASBR
and a core
ASBR.

MPLS TE Protects a CSGs and Configure Configure


tunnel or whole BGP MASGs BFD for BGP either of the
MPLS LDP LSP and MP- tunnel. following VPN
LSP BGP peers on FRR functions:
an L3VPN. ● Enable
VPN FRR
in the VPN
instance
IPv4
address
family
view.
● Enable
VPN FRR
in the
BGP-VPN
instance
IPv4
address
family
view.

Procedure
● Configure BFD for interface.
a. Run system-view
The system view is displayed.
b. Run bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-name ]
interface interface-type interface-number [ source-ip source-ip ]
A BFD session for IPv4 is bound to an interface.
c. Run discriminator local discr-value
The local discriminator of the BFD session is created.
d. Run discriminator remote discr-value
The remote discriminator of the BFD session is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 704


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

The local and remote discriminators on the two ends of a BFD session must be
correctly associated. That is, the local discriminator of the local device must be
the same as the remote discriminator of the remote device, and the remote
discriminator of the local device must be the same as the local discriminator of
the remote device. If the association is incorrect, a BFD session cannot be set up.
e. Run commit

The configuration is committed.


● Configure TE manual FRR.

Perform the following steps on the ingress of the primary tunnel:

a. Run system-view

The system view is displayed.


b. Run interface tunnel tunnel-number

The tunnel interface view of the primary tunnel is displayed.


c. Run mpls te fast-reroute [ bandwidth ]

The TE FRR function is enabled.


d. Run commit

The configuration is committed.

Configure an FRR bypass tunnel.

a. Run system-view

The system view is displayed.


b. Run interface tunnel tunnel-number

The tunnel interface view of a bypass tunnel is displayed.


c. Run tunnel-protocol mpls te

MPLS TE is configured as a tunnel protocol.


d. Run destination ip-address

The LSR ID of an MP is configured as the destination address of the


bypass tunnel.
e. Run mpls te tunnel-id tunnel-id

A tunnel ID of the bypass tunnel is set.


f. (Optional) Run mpls te path explicit-path path-name

An explicit path is specified for the bypass tunnel.

NOTE

Physical links of a bypass tunnel cannot overlap protected physical links of the
primary tunnel.
g. (Optional) Run mpls te bandwidth ct0 bandwidth

The bandwidth is set for the bypass tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 705


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

h. Run mpls te bypass-tunnel


The bypass tunnel function is enabled.
After a bypass tunnel is configured, the device automatically records
routes related to the bypass tunnel.

NOTE

Note the following settings to prevent a protection failure:


● A tunnel interface can only be used by either a bypass tunnel or a backup
tunnel. That is, you can configure either the mpls te bypass-tunnel
command or mpls te backup command.
● A tunnel interface can only be used by either a bypass tunnel or a primary
tunnel. That is, you can configure either the mpls te bypass-tunnel
command or mpls te fast-reroute command.
i. Run mpls te protected-interface interface-type interface-number
The interface on which traffic is protected by the bypass tunnel is
specified.

NOTE

● A tunnel interface can only be used by either a bypass tunnel or a backup


tunnel. That is, you can configure either the mpls te protected-interface
command or mpls te backup command.
● A tunnel interface can only be used by either a bypass tunnel or a backup
tunnel. That is, you can configure either the mpls te protected-interface
command or mpls te fast-reroute command.
j. Run commit
The configuration is committed.
● Configure MPLS TE Auto FRR.
Perform the following steps on the ingress or a transit node of a primary
tunnel:
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te auto-frr
MPLS TE Auto FRR is enabled globally.
d. Run quit
Return to the system view.
e. Run interface interface-type interface-number
The view of the outbound interface on the primary tunnel is displayed.
f. (Optional) Run mpls te auto-frr { link | node | default }
TE Auto FRR is enabled on the interface.
By default, all MPLS TE-enabled interfaces support TE Auto FRR after
MPLS TE Auto FRR is enabled globally. To disable TE Auto FRR on

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 706


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interfaces, run the mpls te auto-frr block command on these interfaces.


The mpls te auto-frr block command disables TE Auto FRR on
interfaces, even if TE Auto FRR is enabled or re-enabled globally.
By default, TE Auto FRR is disabled.

NOTE

● If the mpls te auto-frr default command is run, the interface Auto FRR
capability status is the same as the global Auto FRR capability status.
g. Run mpls te fast-reroute [ bandwidth ]
The TE FRR function is enabled.
The bandwidth parameter can be configured to enable FRR bandwidth
protection for the primary tunnel.
h. (Optional) Run mpls te bypass-attributes bandwidth bandwidth
[ priority setup-priority [ hold-priority ] ]
Attributes for the Auto FRR bypass tunnel are set.

NOTE

● These attributes for the Auto FRR bypass tunnel can be set only after the
mpls te fast-reroute bandwidth command is run for the primary tunnel.
● The Auto FRR bypass tunnel bandwidth cannot exceed the primary tunnel
bandwidth.
● If no attributes are configured for an Auto FRR bypass tunnel, the Auto FRR
bypass tunnel by default uses the same bandwidth as that of the primary
tunnel.
● The setup priority of the bypass tunnel cannot be higher than the holding
priority. Each priority of the bypass tunnel cannot be higher than that of the
primary tunnel.
● If the primary tunnel bandwidth is changed or FRR is disabled, the bypass
tunnel attributes are automatically deleted.
● On one TE tunnel interface, the bypass tunnel bandwidth and the multi-CT
are mutually exclusive.
i. Run commit
The configuration is committed.
● Configure static BFD for CR-LSP.
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run quit
Return to the system view.
d. Run bfd session-name bind mpls-te interface tunnel interface-number
te-lsp [ backup ]
The BFD session is bound to the primary or backup CR-LSP of the
specified tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 707


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

If the backup parameter is specified, the BFD session is bound to the


backup CR-LSP.
e. Run discriminator local discr-value
The local discriminator of the BFD session is configured.
f. Run discriminator remote discr-value
The remote discriminator of the BFD session is configured.

NOTE

The local discriminator of the local device and the remote discriminator of the
remote device are the same, and the remote discriminator of the local device and
the local discriminator of the remote device are the same. A discriminator
inconsistency causes the BFD session to fail to be established.
g. Run process-pst
BFD is enabled to modify the port status table or link status table.
If the BFD session on a trunk or VLAN member interface allows BFD to
modify the port status table or link status table, and the interface is
configured with the BFD session, you must configure the WTR time for
the BFD session for detecting the interface. This prevents the BFD session
on the interface from flapping when the member interface joins or leave
the interface.
h. (Optional) Run min-tx-interval tx-interval
The minimum interval at which BFD packets are sent is configured.
i. (Optional) Run min-rx-interval rx-interval
The local minimum interval at which BFD packets are received is
configured.
j. (Optional) Run detect-multiplier multiplier
The local BFD detection multiplier is configured.
k. Run commit
The configuration is committed.
● Configure dynamic BFD for CR-LSP.
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run interface tunnel interface-number
The tunnel interface view is displayed.
d. Run mpls te bfd enable
The capability of dynamically creating BFD sessions is enabled on the TE
tunnel.
The command configured in the tunnel interface view takes effect only
on the current tunnel interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 708


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

e. Run commit
The configuration is committed.
● Configure CR-LSP hot standby.
a. Run system-view
The system view is displayed.
b. Run interface tunnel tunnel-number
The MPLS TE tunnel interface view is displayed.
c. Run mpls te backup hot-standby [ mode { revertive [ wtr interval ] |
non-revertive } | overlap-path | wtr [ interval ] | dynamic-bandwidth ]
CR-LSP hot standby is configured.
Select the following parameters as needed to enable sub-functions:

▪ mode revertive [ wtr interval ]: enables a device to switch traffic


back to the primary CR-LSP.

▪ mode non-revertive: disables a device from switching traffic back to


the primary CR-LSP.

▪ overlap-path: allows a hot-standby CR-LSP to overlap the primary


CR-LSP if no available path is provided for the hot-standby CR-LSP.

▪ wtr interval: sets the time before a traffic switchback is performed.

▪ dynamic-bandwidth: enables a hot-standby CR-LSP to obtain


bandwidth resources only after the hot-standby CR-LSP takes over
traffic from a faulty primary CR-LSP. This function helps efficiently
use network resources and reduce network costs.
d. Run commit
The configuration is committed.
● Configure BFD for TE.
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run quit
Return to the system view.
d. Run bfd session-name bind mpls-te interface tunnel interface-number
The TE tunnel to be detected by BFD sessions is specified.
When the TE tunnel is in the Down state, a BFD session cannot be
established.
e. Run discriminator local discr-value
The local discriminator of the BFD session is configured.
f. Run discriminator remote discr-value

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 709


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The remote discriminator of the BFD session is configured.

NOTE

The local discriminator of the local device and the remote discriminator of the
remote device are the same, and the remote discriminator of the local device and
the local discriminator of the remote device are the same. A discriminator
inconsistency causes the BFD session to fail to be established.
g. Run process-pst

BFD is enabled to modify the port status table or link status table.

If the BFD session on a trunk or VLAN member interface allows BFD to


modify the port status table or link status table, and the interface is
configured with the BFD session, you must configure the WTR time for
the BFD session for detecting the interface. This prevents the BFD session
on the interface from flapping when the member interface joins or leave
the interface.
h. (Optional) Run min-tx-interval tx-interval

The minimum interval at which BFD packets are sent is configured.


i. (Optional) Run min-rx-interval rx-interval

The local minimum interval at which BFD packets are received is


configured.
j. (Optional) Run detect-multiplier multiplier

The local BFD detection multiplier is configured.


k. Run commit

The configuration is committed.


● Configure static BFD to monitor an LDP LSP.
a. Run system-view

The system view is displayed.


b. Run bfd

BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run quit

Return to the system view.


d. Run bfd session-name bind ldp-lsp peer-ip ip-address nexthop ip-
address [ interface interface-type interface-number ]

A BFD session is bound to an LDP LSP.


e. Run discriminator local discr-value

The local discriminator of the BFD session is configured.


f. Run discriminator remote discr-value

The remote discriminator of the BFD session is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 710


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

The local discriminator of the local device and the remote discriminator of the
remote device are the same, and the remote discriminator of the local device and
the local discriminator of the remote device are the same. A discriminator
inconsistency causes the BFD session to fail to be established.
g. Run process-pst
BFD is enabled to modify the port status table or link status table.
If the BFD session on a trunk or VLAN member interface allows BFD to
modify the port status table or link status table, and the interface is
configured with the BFD session, you must configure the WTR time for
the BFD session for detecting the interface. This prevents the BFD session
on the interface from flapping when the member interface joins or leave
the interface.
h. (Optional) Run min-tx-interval tx-interval
The minimum interval at which BFD packets are sent is configured.
i. (Optional) Run min-rx-interval rx-interval
The local minimum interval at which BFD packets are received is
configured.
j. (Optional) Run detect-multiplier multiplier
The local BFD detection multiplier is configured.
k. Run commit
The configuration is committed.
● Configure dynamic BFD for LDP LSPs.
Perform the following steps on the ingress:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally.
c. Run quit
Return to the system view.
d. Run mpls
The MPLS view is displayed.
e. Run mpls bfd enable
The capability of dynamically establishing a BFD session is configured on
the ingress.
f. Run mpls bfd-trigger { host | fec-list list-name }
A policy for establishing an LDP BFD session is configured.
g. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 711


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Perform the following steps on the egress:


a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally, and the BFD view is displayed.
c. Run mpls-passive
The capability of passively creating a BFD session is configured on the
egress.
d. Run commit
The configuration is committed.
● Configure BGP LSP FRR.
NOTE

In a seamless MPLS scenario, BGP LSP FRR must be configured on both the ingress
and a transit node.
In a seamless MPLS scenario, before you configure BGP LSP FRR, run the ingress-lsp
trigger route-policy command on a transit node to filter the ingress role and then run
the auto-frr command on the transit node to enable BGP LSP FRR to take effect.

Perform the following steps on the ingress:


a. Run system-view
The system view is displayed.
b. Run bgp as-number
The BGP view is displayed.
c. Run ipv4-family unicast
The BGP-IPv4 unicast address family view is displayed.
d. Run auto-frr
BGP Auto FRR is enabled for unicast routes.
e. Run bestroute nexthop-resolved tunnel [ inherit-ip-cost ]
Labeled BGP IPv4 unicast routes can participate in route selection only
when their next hops recurse to tunnels.
f. Run ingress-lsp protect-mode bgp-frr
BGP LSP FRR is enabled.

NOTE

Perform this step on each CSG and MASG to enable the protection switching
function for the whole BGP LSP.
g. (Optional) Run route-select delay delay-value
A delay for selecting a route to the intermediate device on the primary
path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 712


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

h. Run commit
The configuration is committed.
Perform the following steps on the transit node:
a. Run system-view
The system view is displayed.
b. Run bgp as-number
The BGP view is displayed.
c. Run ipv4-family unicast
The BGP-IPv4 unicast address family view is displayed.
d. Run auto-frr
BGP Auto FRR for unicast routes is enabled.
e. Run bestroute nexthop-resolved tunnel [ inherit-ip-cost ]
Labeled BGP IPv4 unicast routes can participate in route selection only
when their next hops recurse to tunnels.
f. (Optional) Run route-select delay delay-value
A delay for selecting a route to the intermediate device on the primary
path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.
g. Run commit
The configuration is committed.
● Configure BFD for BGP tunnel.
Perform the following steps on the ingress of an E2E BGP tunnel:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally.
c. Run quit
Return to the system view.
d. Run mpls
The MPLS view is displayed.
e. Run mpls bgp bfd enable
The capability of dynamically establishing BGP BFD sessions is enabled on
the ingress.
f. Run mpls bgp bfd-trigger-tunnel { host | ip-prefix ip-prefix-name }
A policy for dynamically establishing a BGP BFD session is configured.
g. Run commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 713


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The configuration is committed.


Perform the following steps on the egress of an E2E BGP tunnel:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally, and the BFD view is displayed.
c. Run mpls-passive
The capability of passively creating a BFD session is configured on the
egress.
d. Run commit
The configuration is committed.
● Enable VPN FRR in the VPN instance IPv4 address family view.
a. Run system-view
The system view is displayed.
b. Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
c. Run ipv4-family
The VPN instance IPv4 address family view is displayed.
d. Run vpn frr
VPN FRR is enabled.
e. (Optional) Run quit
Return to the VPN instance view.
f. (Optional) Run quit
Return to the system view.
g. (Optional) Run bgp as-number
The BGP view is displayed.
h. (Optional) Run peer { group-name | ipv4-address } mpls-local-ifnet
disable
The capability of establishing an MPLS local IFNET tunnel between a CSG
and MASG is disabled.
In the inter-AS seamless MPLS network transmitting L3VPN services, a
CSG and MASG establish an MP-EBGP peer relationship. Therefore, an
MPLS local IFNET tunnel between the CSG and MASG is automatically
established over the MP-EBGP peer relationship. The MPLS local IFNET
tunnel fails to transmit traffic because the CSG and MASG are indirectly
connected.
If a fault occurs on the tunnel between the CSG and MASG, traffic
recurses to the MPLS local IFNET tunnel, not a backup tunnel or an FRR
bypass tunnel. As the MPLS local IFNET tunnel cannot forward traffic,

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 714


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

traffic is interrupted. To prevent the traffic interruption, run the peer


mpls-local-ifnet disable command to disable the establishment of an
MPLS local IFNET tunnel between the CSG and MASG.
i. (Optional) Run ipv4-family vpn-instance vpn-instance-name

The BGP-VPN instance IPv4 address family view is displayed.


j. (Optional) Run route-select delay delay-value

A delay for selecting a route to the intermediate device on the primary


path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.

The delay-value is an integer ranging from 0 to 3600, in seconds. The


default delay-value is 0, indicating that the device on which FRR is
configured selects a route to the intermediate device on the primary path
without a delay.
k. Run commit

The configuration is committed.


● Enable VPN FRR in the BGP-VPN instance IPv4 address family view.
a. Run system-view

The system view is displayed.


b. Run bgp as-number

The BGP view is displayed.


c. (Optional) Run peer { group-name | ipv4-address } mpls-local-ifnet
disable

The capability of establishing an MPLS local IFNET tunnel between a CSG


and MASG is disabled.

In the inter-AS seamless MPLS network transmitting L3VPN services, a


CSG and MASG establish an MP-EBGP peer relationship. Therefore, an
MPLS local IFNET tunnel between the CSG and MASG is automatically
established over the MP-EBGP peer relationship. The MPLS local IFNET
tunnel fails to transmit traffic because the CSG and MASG are indirectly
connected.

If a fault occurs on the tunnel between the CSG and MASG, traffic
recurses to the MPLS local IFNET tunnel, not a backup tunnel or an FRR
bypass tunnel. As the MPLS local IFNET tunnel cannot forward traffic,
traffic is interrupted. To prevent the traffic interruption, run the peer
mpls-local-ifnet disable command to disable the establishment of an
MPLS local IFNET tunnel between the CSG and MASG.
d. Run ipv4-family vpn-instance vpn-instance-name

The BGP-VPN instance IPv4 address family view is displayed.


e. Run auto-frr

VPN Auto FRR is enabled.


f. (Optional) Run route-select delay delay-value

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 715


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

A delay for selecting a route to the intermediate device on the primary


path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.

The delay-value is an integer ranging from 0 to 3600, in seconds. The


default delay-value is 0, indicating that the device on which FRR is
configured selects a route to the intermediate device on the primary path
without a delay.
g. Run commit

The configuration is committed.

----End

1.1.5.4.7 (Optional) Configuring the Egress Protection Function


The egress protection function reduces E2E BFD sessions to be established,
bandwidth resources to be consumed, and the burden on devices.

Context
In seamless MPLS scenarios, when an egress MASG fails, E2E BFD for BGP tunnel
is used to instruct a CSG to perform VPN FRR switching. In this protection solution,
both BGP LSPs and BFD sessions are in great numbers, which consumes a lot of
bandwidth resources and burdens the device. To optimize the solution, the egress
protection function can be configured on the master and backup MASGs. With this
function enabled, both the master and backup MASGs assign the same private
network label value to a core ASBR. If the master MASG fails, BFD for LDP LSP or
BFD for TE can instruct a core ASBR to perform BGP FRR protection switching.
After traffic is switched to the backup MASG, the MASG removes the BGP public
network label and uses the private network label the same as that on the faulty
master MASG to search for a matching VPN instance. Traffic can then be properly
forwarded.

The egress protection function is configured on both the master and backup
MASGs.

NOTE

If the egress protection function is configured on egress MASGs between which a tunnel
exists and a route imported by BGP on one of the MASGs recurses to the tunnel, this MASG
then recurses the route to another tunnel of a different type. In this case, traffic is directed
to the other MASG, which slows down traffic switchover. As a result, the egress protection
function does not take effect. To address this problem, specify non-relay-tunnel when
running the import-route or network command to prevent the routes imported by BGP
from recursing to tunnels.

Prerequisites
Before configuring the egress protection function, complete the following tasks:

● Configure a loopback interface on each of the master and backup MASGs.


The IP address of each loopback interface on an MASG is used to establish a
remote BGP peer relationship with a remote device.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 716


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Host routes to the loopback interfaces are imported into the BGP routing
table, and both the master and backup MASGs assigns BGP labeled routes to
a core ASBR. Therefore, the core ASBR has two BGP labeled routes destined
for the same loopback interface. A routing policy is configured to enable the
core ASBR to select one route to implement BGP FRR.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Step 3 Run ipv4-family
The VPN instance IPv4 address family view is displayed.
Step 4 Run route-distinguisher route-distinguisher
An RD is configured for the VPN instance IPv4 address family.
Step 5 Run apply-label per-instance static static-label-value
A device is enabled to assign the same static label to all routes destined for a
remote PE in a VPN instance IPv4 address family.
The same static label value must be set on both the master and backup MASGs.

NOTE

A change in the label allocation mode leads to re-advertising of IPv4 address family routes
in a VPN instance. This step causes a temporary service interruption. Exercise caution when
using this command.

Step 6 Run commit


The configuration is committed.

----End

1.1.5.4.8 Verifying the Configuration


After configuring inter-AS seamless MPLS, you can check established LSPs and the
connectivity of BGP LSPs between a CSG and an MASG.

Prerequisites
Inter-AS seamless MPLS has been configured.

Procedure
● Run the display ip routing-table command on a CSG or an MASG to check
the routes to the peer end.
● Run the display mpls lsp command to check LSP information.
● Run the ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m
interval | -r reply-mode | -s packet-size | -t time-out | -v ] * bgp destination-

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 717


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

iphost mask-length [ ip-address ] command on a CSG or MASG to check the


BGP LSP connectivity.
● Run the display mpls lsp protocol bgp traffic-statistics inbound command
to check the incoming traffic statistics of BGP LSPs.
● Run the display mpls lsp protocol bgp traffic-statistics outbound [ ipv4-
address mask-length ] verbose command to check the outgoing traffic
statistics of BGP LSPs.
● Run the display mpls lsp protocol bgp traffic-statistics outbound
aggregated command to check the traffic statistics of BGP LSPs aggregated
by FEC.

----End

1.1.5.5 Configuring Inter-AS Seamless MPLS+HVPN


In the inter-AS seamless MPLS+HVPN networking, an HVPN between each CSG
and AGG is configured, and inter-AS seamless MPLS is configured for the link
between each AGG and MASG. The networking integrates the seamless MPLS and
HVPN advantages.

Usage Scenario
Figure 1-62 illustrates the inter-AS seamless MPLS+HVPN networking. A Cell Site
Gateway (CSG) and an Aggregation (AGG) establish an HVPN connection, and the
AGG and a Mobile Aggregate Service Gateway (MASG) establish a seamless MPLS
LSP. The AGG provides hierarchical L3VPN access services and routing
management services. Seamless MPLS+HVPN combines the advantages of both
seamless MPLS and HVPN. Seamless MPLS allows any two nodes to be
interconnected through an LSP in scenarios where the access, aggregation, and
core layers involve different domains, providing high service scalability. HVPN
enables carriers to cut down network deployment costs by deploying devices with
layer-specific capacities to meet service requirements.

Figure 1-62 Inter-AS seamless MPLS+HVPN networking

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 718


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Pre-configuration Tasks
Before configuring inter-AS seamless MPLS+HVPN, complete the following tasks:

● Configure IGP protocols to implement connectivity at the access, aggregation,


and core layers and enable MPLS LDP or MPLS TE to implement MPLS
forwarding on a public network.
● Configure an EBGP peer relationship for each AGG ASBR-and-core ASBR pair
and an IBGP peer relationship between each pair of the following nodes:
– CSG and AGG
– AGG and AGG ASBR
– Core ASBR and MASG
● Configure an HVPN for each CSG-and-AGG pair.
NOTE

If MPLS TE tunnels are used across the three layers, a tunnel policy or tunnel selector must
be configured. For configuration details, see VPN Tunnel Management Configuration.

1.1.5.5.1 Establishing an MP-EBGP Peer Relationship Between Each AGG and MASG
MP-EBGP supports BGP extended community attributes that are used to advertise
VPNv4 routes between each pair of the AGG and MASG.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run bgp as-number

The BGP view is displayed.

Step 3 Run peer { ipv4-address | group-name } as-number { as-number-plain | as-


number-dot }
A BGP peer is configured.

Step 4 Run peer { ipv4-address | group-name } connect-interface loopback interface-


number
The interface on which a TCP connection to the specified EBGP peer is established
is specified.

NOTE

The AGG and MASG must use loopback interface addresses with 32-bit masks to establish
an MP-EBGP peer relationship so that the MP-EBGP connection can recurse to a tunnel.

Step 5 Run peer { ipv4-address | group-name } ebgp-max-hop [ hop-count ]

The maximum number of hops for an EBGP peer relationship is set.

Step 6 Run ipv4-family vpnv4

The BGP-VPNv4 address family view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 719


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 7 Run peer { ipv4-address | group-name } enable


The ability to exchange BGP-VPNv4 routes with the specified BGP peer is enabled.
Step 8 (Optional) Run quit
Return to the BGP view.
Step 9 (Optional) Run ipv4-family unicast
The BGP-IPv4 unicast address family view is displayed.
Step 10 (Optional) Run undo peer { ipv4-address | group-name } enable
The capability to exchange BGP-IPv4 unicast routes between BGP peers is disabled.
If multiple links exist between two ASs, the capability to exchange BGP-IPv4
unicast routes between BGP peers must be disabled to prevent route loops
between BGP peers that need to establish MP-EBGP peer relationships.
Step 11 Run commit
The configuration is committed.

----End

1.1.5.5.2 Enabling BGP Peers to Exchange Labeled IPv4 Routes


In the inter-AS seamless MPLS+HVPN networking, before an E2E BGP LSP is
established between an AGG and MASG, these two BGP peers must be able to
exchange labeled IPv4 routes with each other.

Procedure
● Perform the following steps on each AGG and MASG:
a. Run system-view
The system view is displayed.
b. Run bgp as-number
The BGP view is displayed.
c. Run peer { ipv4-address | group-name } label-route-capability
The ability to exchange labeled IPv4 routes between devices in the local
AS is enabled.
d. Run commit
The configuration is committed.
● Perform the following steps on each AGG ASBR and core ASBR:
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The view of the interface connected to the peer ASBR is displayed.
c. Run ip address ip-address { mask | mask-length }
An IP address is assigned to the interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 720


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

d. Run mpls
MPLS is enabled.
e. Run quit
Return to the system view.
f. Run bgp as-number
The BGP view is displayed.
g. Run peer { ipv4-address | group-name } label-route-capability [ check-
tunnel-reachable ]
The ability to exchange labeled IPv4 routes between BGP peers, including
the peer ASBR and the devices in the local AS, is enabled.

▪ If the check-tunnel-reachable is configured, a local device


advertises an IPv4 unicast route to its peer if a tunnel between the
local and remote devices is unreachable and advertises a labeled
IPv4 route if the tunnel is reachable. This parameter helps prevent a
data forwarding failure when an MP-EBGP peer relationship between
the CSG and MASG is established but an LSP over the peer
relationship fails to be established.

▪ If the check-tunnel-reachable parameter is not configured, the local


device advertises a labeled IPv4 route, regardless of whether a tunnel
between the local and remote devices is unreachable.
h. Run commit
The configuration is committed.
----End

1.1.5.5.3 Configuring a BGP LSP


Before a BGP LSP is established, a routing policy must be configured to control
label distribution. The egress of the BGP LSP to be established needs to assign an
MPLS label to the route advertised to an upstream node. If a transit node receives
a labeled IPv4 route from downstream, the downstream node must re-assign an
MPLS label to the transit node and advertises the label upstream.

Procedure
● Perform the following steps on each AGG and MASG:
a. Run system-view
The system view is displayed.
b. Run route-policy route-policy-name matchMode node node
A Route-Policy node is created.
c. Run apply mpls-label
The local device is enabled to assign a label to an IPv4 route.
d. Run quit
Return to the system view.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 721


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

e. Run bgp as-number


The BGP view is displayed.
f. Run peer { ipv4-address | group-name } route-policy route-policy-name
export
A routing policy for advertising routes matching Route-Policy conditions
to a BGP peer or a BGP peer group is configured.

NOTE

Repeat this step for each BGP peer.


g. Run network ip-address [ mask | mask-length ] [ route-policy route-
policy-name ]
The route destined for the loopback interface address is advertised.
This route is labeled and advertised along a path over which a BGP LSP is
established.
h. Run commit
The configuration is committed.
● Perform the following steps on each AGG ASBR and core ASBR:
a. Run system-view
The system view is displayed.
b. Run route-policy route-policy-name matchMode node node
A Route-Policy node is created.
c. Run if-match mpls-label
An IPv4 route is enabled to match an MPLS label.
d. Run apply mpls-label
The local device is enabled to assign a label to an IPv4 route.
e. Run quit
Return to the system view.
f. Run bgp as-number
The BGP view is displayed.
g. Run peer { ipv4-address | group-name } route-policy route-policy-name
export
A routing policy for advertising routes matching Route-Policy conditions
to a BGP peer or a BGP peer group is configured.

NOTE

Repeat this step for each BGP peer.


h. Run commit
The configuration is committed.
----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 722


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.5.5.4 (Optional) Configuring Traffic Statistics Collection for BGP LSPs


To check the traffic statistics of BGP LSPs, configure traffic statistics collection on
the ingress and transit nodes of the BGP LSPs.

Context
Traffic statistics collection for BGP LSPs allows you to query and monitor the
traffic statistics of BGP LSPs in real time. To enable this function, run the bgp host
command.
NOTE

Traffic statistics collection for BGP LSPs takes effect only for BGP LSPs of which the FEC
mask length is 32 bits.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run mpls
MPLS is enabled globally, and the MPLS view is displayed.
Step 3 Run quit
Return to the system view.
Step 4 Run mpls traffic-statistics
MPLS traffic statistics collection is enabled globally, and the traffic statistics
collection view is displayed.
Step 5 Run bgp host [ ip-prefix ip-prefix-name ]
Traffic statistics collection is enabled for BGP LSPs.
If the ip-prefix parameter needs to be set to limit the range of BGP LSPs for which
traffic statistics collection is to be enabled, run the ip ip-prefix command to
create an IP prefix list first.
Step 6 Run commit
The configuration is committed.

----End

1.1.5.5.5 (Optional) Configuring the Mode in Which a BGP Label Inherits the QoS
Priority in an Outer Tunnel Label
When data packets are transmitted from a core ASBR to an AGG ASBR, you can
determine whether a BGP label inherits the QoS priority carried in an outer tunnel
label.

Context
In the inter-AS seamless MPLS or inter-AS seamless MPLS+HVPN networking, each
packet arriving at a core ASBR or AGG ASBR carries an inner private label, a BGP

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 723


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

LSP label, and an outer MPLS tunnel label. The core ASBR and AGG ASBR remove
outer MPLS tunnel labels from packets before sending the packets to each other. If
a BGP LSP label in a packet carries a QoS priority different from that in the outer
MPLS tunnel label in the packet, you can configure the core ASBR or AGG ASBR to
determine whether the BGP LSP label inherits the QoS priority carried in the outer
MPLS tunnel label to be removed.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run bgp as-number

The BGP view is displayed.

Step 3 (Optional) Run ipv4-family unicast

The BGP-IPv4 unicast address family view is displayed.

Step 4 Run peer { group-name | ipv4-address } exp-mode { pipe | uniform }

The mode in which a BGP label inherits the QoS priority in the outer tunnel label
is specified.

You can configure either of the following parameters:


● uniform: The BGP label inherits the QoS priority carried in the outer MPLS
tunnel label.
● pipe: The QoS priority carried in the BGP label does not change, and the BGP
label does not inherit the QoS priority carried in the outer MPLS tunnel label.

The default QoS priority inheriting mode varies according to the outer MPLS
tunnel type:
● LDP: By default, the BGP label inherits the QoS priority carried in the outer
MPLS tunnel label.
● TE: By default, the BGP label does not inherit the QoS priority carried in the
outer MPLS tunnel label.

----End

1.1.5.5.6 (Optional) Configuring the Protection Switching Function


A protection switching function, such as link or node protection, can be configured
to provide high availability for an inter-AS seamless MPLS+HVPN network.

Context
On an inter-AS seamless MPLS+HVPN network that has protection switching
enabled, if a link or node fails, traffic switches to a backup path, which
implements uninterrupted traffic transmission.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 724


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Tunnel Type Protected Nodes to Be Detection Protection


Object Configured Method Function

MPLS TE Protects All nodes Configure Configure


tunnel access rings, BFD for either of the
(without Ps aggregation interface. following TE
on links at rings, and FRR functions:
the network links at the ● Configure
layer) core layer. TE manual
FRR.
● Configure
MPLS TE
Auto FRR.

MPLS TE Protects All nodes Configure Configure


tunnel (with access rings, static BFD for CR-LSP hot
Ps on links at aggregation CR-LSP or standby.
the network rings, and dynamic BFD
layer) links at the for CR-LSP.
core layer.

MPLS TE Protects AGG AGGs and Configure Configure


tunnel ASBRs and MASGs BFD for TE. BGP LSP FRR.
core ASBRs.

MPLS TE Protects CSGs CSGs and Configure Configure


tunnel and AGGs. AGGs BFD for TE. either of the
following VPN
FRR functions:
● Enable
VPN FRR
in the VPN
instance
IPv4
address
family
view.
Enable
VPN FRR
in the
BGP-VPN
instance
IPv4
address
family
view.

MPLS LDP Protects links CSGs and Configure Configure


LSP on access AGGs BFD for LDP Auto
rings. interface. FRR.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 725


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Tunnel Type Protected Nodes to Be Detection Protection


Object Configured Method Function

MPLS LDP Protects AGGs, AGG Configure Configure


LSP aggregation ASBRs, core static BFD to BGP LSP FRR.
rings and ASBRs, and monitor an
links, AGG MASGs LDP LSP or
ASBRs, and dynamic BFD
core ASBRs at for LDP LSPs.
the core layer.

MPLS LDP Protects CSGs CSGs and Configure Configure


LSP and AGGs. AGGs static BFD to either of the
monitor an following VPN
LDP LSP or FRR functions:
dynamic BFD ● Enable
for LDP LSPs. VPN FRR
in the VPN
instance
IPv4
address
family
view.
Enable
VPN FRR
in the
BGP-VPN
instance
IPv4
address
family
view.

MPLS TE Protect links AGG ASBRs Configure Configure


tunnel or between each and core BFD for BGP LSP FRR.
MPLS LDP pair of an ASBRs interface.
LSP AGG ASBR
and a core
ASBR.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 726


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Tunnel Type Protected Nodes to Be Detection Protection


Object Configured Method Function

MPLS TE Protects a AGGs and Configure Configure


tunnel or whole BGP MASGs BFD for BGP either of the
MPLS LDP LSP and MP- tunnel. following VPN
LSP BGP peers on FRR functions:
an L3VPN. ● Enable
VPN FRR
in the VPN
instance
IPv4
address
family
view.
Enable
VPN FRR
in the
BGP-VPN
instance
IPv4
address
family
view.

NOTE

If both LDP FRR and BGP Auto FRR functions are configured, only BGP Auto FRR takes
effect.

Procedure
● Configure BFD for interface.
a. Run system-view
The system view is displayed.
b. Run bfd session-name bind peer-ip peer-ip [ vpn-instance vpn-name ]
interface interface-type interface-number [ source-ip source-ip ]
A BFD session for IPv4 is bound to an interface.
c. Run discriminator local discr-value
The local discriminator of the BFD session is created.
d. Run discriminator remote discr-value
The remote discriminator of the BFD session is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 727


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

The local and remote discriminators on the two ends of a BFD session must be
correctly associated. That is, the local discriminator of the local device must be
the same as the remote discriminator of the remote device, and the remote
discriminator of the local device must be the same as the local discriminator of
the remote device. If the association is incorrect, a BFD session cannot be set up.
e. Run commit

The configuration is committed.


● Configure TE manual FRR.

Perform the following steps on the ingress of the primary tunnel:

a. Run system-view

The system view is displayed.


b. Run interface tunnel tunnel-number

The tunnel interface view of the primary tunnel is displayed.


c. Run mpls te fast-reroute [ bandwidth ]

TE FRR is enabled.
d. Run commit

The configuration is committed.

Configure an FRR bypass tunnel.

a. Run system-view

The system view is displayed.


b. Run interface tunnel tunnel-number

The tunnel interface view of a bypass tunnel is displayed.


c. Run tunnel-protocol mpls te

MPLS TE is configured as a tunnel protocol.


d. Run destination ip-address

The LSR ID of an MP is configured as the destination address of the


bypass tunnel.
e. Run mpls te tunnel-id tunnel-id

A tunnel ID of the bypass tunnel is set.


f. (Optional) Run mpls te path explicit-path path-name

An explicit path is specified for the bypass tunnel.

NOTE

Physical links of a bypass tunnel cannot overlap protected physical links of the
primary tunnel.
g. (Optional) Run mpls te bandwidth ct0 bandwidth

The bandwidth is set for the bypass tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 728


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

h. Run mpls te bypass-tunnel


The bypass tunnel function is enabled.
After a bypass tunnel is configured, the device automatically records
routes related to the bypass tunnel.

NOTE

Note the following settings to prevent a protection failure:


● A tunnel interface can only be used by either a bypass tunnel or a backup
tunnel. That is, you can configure either the mpls te bypass-tunnel
command or mpls te backup command.
● A tunnel interface can only be used by either a bypass tunnel or a primary
tunnel. That is, you can configure either the mpls te bypass-tunnel
command or mpls te fast-reroute command.
i. Run mpls te protected-interface interface-type interface-number
The interface on which traffic is protected by the bypass tunnel is
specified.

NOTE

● A tunnel interface can only be used by either a bypass tunnel or a backup


tunnel. That is, you can configure either the mpls te protected-interface
command or mpls te backup command.
● A tunnel interface can only be used by either a bypass tunnel or a backup
tunnel. That is, you can configure either the mpls te protected-interface
command or mpls te fast-reroute command.
j. Run commit
The configuration is committed.
● Configure MPLS TE Auto FRR.
Perform the following steps on the ingress or a transit node of a primary
tunnel:
a. Run system-view
The system view is displayed.
b. Run mpls
The MPLS view is displayed.
c. Run mpls te auto-frr
MPLS TE Auto FRR is enabled globally.
d. Run quit
Return to the system view.
e. Run interface interface-type interface-number
The view of the outbound interface on the primary tunnel is displayed.
f. (Optional) Run mpls te auto-frr { link | node | default }
TE Auto FRR is enabled on the interface.
By default, all MPLS TE-enabled interfaces support TE Auto FRR after
MPLS TE Auto FRR is enabled globally. To disable TE Auto FRR on

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 729


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interfaces, run the mpls te auto-frr block command on these interfaces.


The mpls te auto-frr block command disables TE Auto FRR on
interfaces, even if TE Auto FRR is enabled or re-enabled globally.
By default, TE Auto FRR is disabled.

NOTE

● If the mpls te auto-frr default command is run, the interface Auto FRR
capability status is the same as the global Auto FRR capability status.
g. Run mpls te fast-reroute [ bandwidth ]
The TE FRR function is enabled.
The bandwidth parameter can be configured to enable FRR bandwidth
protection for the primary tunnel.
h. (Optional) Run mpls te bypass-attributes bandwidth bandwidth
[ priority setup-priority [ hold-priority ] ]
Attributes for the Auto FRR bypass tunnel are set.

NOTE

● These attributes for the Auto FRR bypass tunnel can be set only after the
mpls te fast-reroute bandwidth command is run for the primary tunnel.
● The Auto FRR bypass tunnel bandwidth cannot exceed the primary tunnel
bandwidth.
● If no attributes are configured for an Auto FRR bypass tunnel, the Auto FRR
bypass tunnel by default uses the same bandwidth as that of the primary
tunnel.
● The setup priority of the bypass tunnel cannot be higher than the holding
priority. Each priority of the bypass tunnel cannot be higher than that of the
primary tunnel.
● If the primary tunnel bandwidth is changed or FRR is disabled, the bypass
tunnel attributes are automatically deleted.
● On one TE tunnel interface, the bypass tunnel bandwidth and the multi-CT
are mutually exclusive.
i. Run commit
The configuration is committed.
● Configure static BFD for CR-LSP.
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run quit
Return to the system view.
d. Run bfd session-name bind mpls-te interface tunnel interface-number
te-lsp [ backup ]
The BFD session is bound to the primary or backup CR-LSP of the
specified tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 730


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

If the backup parameter is specified, the BFD session is bound to the


backup CR-LSP.
e. Run discriminator local discr-value
The local discriminator of the BFD session is configured.
f. Run discriminator remote discr-value
The remote discriminator of the BFD session is configured.

NOTE

The local discriminator of the local device and the remote discriminator of the
remote device are the same, and the remote discriminator of the local device and
the local discriminator of the remote device are the same. A discriminator
inconsistency causes the BFD session to fail to be established.
g. Run process-pst
BFD is enabled to modify the port status table or link status table.
If the BFD session on a trunk or VLAN member interface allows BFD to
modify the port status table or link status table, and the interface is
configured with the BFD session, you must configure the WTR time for
the BFD session for detecting the interface. This prevents the BFD session
on the interface from flapping when the member interface joins or leave
the interface.
h. (Optional) Run min-tx-interval tx-interval
The minimum interval at which BFD packets are sent is configured.
i. (Optional) Run min-rx-interval rx-interval
The local minimum interval at which BFD packets are received is
configured.
j. (Optional) Run detect-multiplier multiplier
The local BFD detection multiplier is configured.
k. Run commit
The configuration is committed.
● Configure dynamic BFD for CR-LSP.
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run interface tunnel interface-number
The tunnel interface view is displayed.
d. Run mpls te bfd enable
The capability of dynamically creating BFD sessions is enabled on the TE
tunnel.
The command configured in the tunnel interface view takes effect only
on the current tunnel interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 731


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

e. Run commit
The configuration is committed.
● Configure CR-LSP hot standby.
a. Run system-view
The system view is displayed.
b. Run interface tunnel tunnel-number
The MPLS TE tunnel interface view is displayed.
c. Run mpls te backup hot-standby [ mode { revertive [ wtr interval ] |
non-revertive } | overlap-path | wtr [ interval ] | dynamic-bandwidth ]
CR-LSP hot standby is configured.
Select the following parameters as needed to enable sub-functions:

▪ mode revertive [ wtr interval ]: enables a device to switch traffic


back to the primary CR-LSP.

▪ mode non-revertive: disables a device from switching traffic back to


the primary CR-LSP.

▪ overlap-path: allows a hot-standby CR-LSP to overlap the primary


CR-LSP if no available path is provided for the hot-standby CR-LSP.

▪ wtr interval: sets the time before a traffic switchback is performed.

▪ dynamic-bandwidth: enables a hot-standby CR-LSP to obtain


bandwidth resources only after the hot-standby CR-LSP takes over
traffic from a faulty primary CR-LSP. This function helps efficiently
use network resources and reduce network costs.
d. Run commit
The configuration is committed.
● Configure BFD for TE.
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run quit
Return to the system view.
d. Run bfd session-name bind mpls-te interface tunnel interface-number
The TE tunnel to be detected by BFD sessions is specified.
When the TE tunnel is in the Down state, a BFD session cannot be
established.
e. Run discriminator local discr-value
The local discriminator of the BFD session is configured.
f. Run discriminator remote discr-value

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 732


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The remote discriminator of the BFD session is configured.

NOTE

The local discriminator of the local device and the remote discriminator of the
remote device are the same, and the remote discriminator of the local device and
the local discriminator of the remote device are the same. A discriminator
inconsistency causes the BFD session to fail to be established.
g. Run process-pst

BFD is enabled to modify the port status table or link status table.

If the BFD session on a trunk or VLAN member interface allows BFD to


modify the port status table or link status table, and the interface is
configured with the BFD session, you must configure the WTR time for
the BFD session for detecting the interface. This prevents the BFD session
on the interface from flapping when the member interface joins or leave
the interface.
h. (Optional) Run min-tx-interval tx-interval

The minimum interval at which BFD packets are sent is configured.


i. (Optional) Run min-rx-interval rx-interval

The local minimum interval at which BFD packets are received is


configured.
j. (Optional) Run detect-multiplier multiplier

The local BFD detection multiplier is configured.


k. Run commit

The configuration is committed.


● Configure static BFD to monitor an LDP LSP.
a. Run system-view

The system view is displayed.


b. Run bfd

BFD is enabled globally on the local node, and the BFD view is displayed.
c. Run quit

Return to the system view.


d. Run bfd session-name bind ldp-lsp peer-ip ip-address nexthop ip-
address [ interface interface-type interface-number ]

A BFD session is bound to an LDP LSP.


e. Run discriminator local discr-value

The local discriminator of the BFD session is configured.


f. Run discriminator remote discr-value

The remote discriminator of the BFD session is configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 733


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

The local discriminator of the local device and the remote discriminator of the
remote device are the same, and the remote discriminator of the local device and
the local discriminator of the remote device are the same. A discriminator
inconsistency causes the BFD session to fail to be established.
g. Run process-pst
BFD is enabled to modify the port status table or link status table.
If the BFD session on a trunk or VLAN member interface allows BFD to
modify the port status table or link status table, and the interface is
configured with the BFD session, you must configure the WTR time for
the BFD session for detecting the interface. This prevents the BFD session
on the interface from flapping when the member interface joins or leave
the interface.
h. (Optional) Run min-tx-interval tx-interval
The minimum interval at which BFD packets are sent is configured.
i. (Optional) Run min-rx-interval rx-interval
The local minimum interval at which BFD packets are received is
configured.
j. (Optional) Run detect-multiplier multiplier
The local BFD detection multiplier is configured.
k. Run commit
The configuration is committed.
● Configure dynamic BFD for LDP LSPs.
Perform the following steps on the ingress:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally.
c. Run quit
Return to the system view.
d. Run mpls
The MPLS view is displayed.
e. Run mpls bfd enable
The capability of dynamically establishing a BFD session is configured on
the ingress.
f. Run mpls bfd-trigger { host | fec-list list-name }
A policy for establishing an LDP BFD session is configured.
g. Run commit
The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 734


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Perform the following steps on the egress:

a. Run system-view

The system view is displayed.


b. Run bfd

BFD is enabled globally, and the BFD view is displayed.


c. Run mpls-passive

The capability of passively creating a BFD session is configured on the


egress.
d. Run commit

The configuration is committed.


● Configure LDP Auto FRR.
a. Run system-view

The system view is displayed.


b. Run mpls ldp

The MPLS-LDP view is displayed.


c. Run ipv4-family

The MPLS-LDP-IPv4 view is displayed.


d. Run auto-frr lsp-trigger { all | host | ip-prefix ip-prefix-name | none }

A policy for triggering backup LDP LSP establishment is configured.

NOTE

The auto-frr lsp-trigger command is affected by the lsp-trigger command. If


both the auto-frr lsp-trigger command and the lsp-trigger command are run,
the established backup LSPs satisfy both the policy for triggering LDP LSP
establishment and the policy for triggering backup LDP LSP establishment.
e. Run commit

The configuration is committed.


● Configure BGP LSP FRR.
NOTE

In a seamless MPLS scenario, BGP LSP FRR must be configured on both the ingress
and a transit node.
In a seamless MPLS scenario, before you configure BGP LSP FRR, run the ingress-lsp
trigger route-policy command on a transit node to filter the ingress role and then run
the auto-frr command on the transit node to enable BGP LSP FRR to take effect.

Perform the following steps on the ingress:

a. Run system-view

The system view is displayed.


b. Run bgp as-number

The BGP view is displayed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 735


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

c. Run ipv4-family unicast

The BGP-IPv4 unicast address family view is displayed.


d. Run auto-frr

BGP Auto FRR is enabled for unicast routes.


e. Run bestroute nexthop-resolved tunnel [ inherit-ip-cost ]

Labeled BGP IPv4 unicast routes can participate in route selection only
when their next hops recurse to tunnels.
f. Run ingress-lsp protect-mode bgp-frr

BGP LSP FRR is enabled.

NOTE

Perform this step on each CSG and MASG to enable the protection switching
function for the whole BGP LSP.
g. (Optional) Run route-select delay delay-value

A delay for selecting a route to the intermediate device on the primary


path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.
h. Run commit

The configuration is committed.

Perform the following steps on the transit node:

a. Run system-view

The system view is displayed.


b. Run bgp as-number

The BGP view is displayed.


c. Run ipv4-family unicast

The BGP-IPv4 unicast address family view is displayed.


d. Run auto-frr

BGP Auto FRR for unicast routes is enabled.


e. Run bestroute nexthop-resolved tunnel [ inherit-ip-cost ]

Labeled BGP IPv4 unicast routes can participate in route selection only
when their next hops recurse to tunnels.
f. (Optional) Run route-select delay delay-value

A delay for selecting a route to the intermediate device on the primary


path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.
g. Run commit

The configuration is committed.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 736


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Configure BFD for BGP tunnel.


Perform the following steps on the ingress of an E2E BGP tunnel
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally.
c. Run quit
Return to the system view.
d. Run mpls
The MPLS view is displayed.
e. Run mpls bgp bfd enable
The capability of dynamically establishing BGP BFD sessions is enabled on
the ingress.
f. Run mpls bgp bfd-trigger-tunnel { host | ip-prefix ip-prefix-name }
A policy for dynamically establishing a BGP BFD session is configured.
g. Run commit
The configuration is committed.
Perform the following steps on the egress of an E2E BGP tunnel:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally, and the BFD view is displayed.
c. Run mpls-passive
The capability of passively creating a BFD session is configured on the
egress.
d. Run commit
The configuration is committed.
● Enable VPN FRR in the VPN instance IPv4 address family view.
a. Run system-view
The system view is displayed.
b. Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
c. Run ipv4-family
The VPN instance IPv4 address family view is displayed.
d. Run vpn frr
VPN FRR is enabled.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 737


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

e. (Optional) Run quit


Return to the VPN instance view.
f. (Optional) Run quit
Return to the system view.
g. (Optional) Run bgp as-number
The BGP view is displayed.
h. (Optional) Run peer { group-name | ipv4-address } mpls-local-ifnet
disable
The capability of establishing an MPLS local IFNET tunnel between an
AGG and MASG is disabled.
In the inter-AS seamless MPLS+HVPN network transmitting L3VPN
services, an AGG and MASG establish an MP-EBGP peer relationship.
Therefore, an MPLS local IFNET tunnel between the AGG and MASG is
automatically established over the MP-EBGP peer relationship. The MPLS
local IFNET tunnel fails to transmit traffic because the AGG and MASG
are indirectly connected.
If a fault occurs on the tunnel between the AGG and MASG, traffic
recurses to the MPLS local IFNET tunnel, not a backup tunnel or an FRR
bypass tunnel. As the MPLS local IFNET tunnel cannot forward traffic,
traffic is interrupted. To prevent the traffic interruption, run the peer
mpls-local-ifnet disable command to disable the establishment of an
MPLS local IFNET tunnel between the AGG and MASG.
i. (Optional) Run ipv4-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 address family view is displayed.
j. (Optional) Run route-select delay delay-value
A delay for selecting a route to the intermediate device on the primary
path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.
The delay-value is an integer ranging from 0 to 3600, in seconds. The
default delay-value is 0, indicating that the device on which FRR is
configured selects a route to the intermediate device on the primary path
without a delay.
k. Run commit
The configuration is committed.
● Enable VPN FRR in the BGP-VPN instance IPv4 address family view.
a. Run system-view
The system view is displayed.
b. Run bgp as-number
The BGP view is displayed.
c. (Optional) Run peer { group-name | ipv4-address } mpls-local-ifnet
disable

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 738


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The capability of establishing an MPLS local IFNET tunnel between an


AGG and MASG is disabled.
In the inter-AS seamless MPLS+HVPN network transmitting L3VPN
services, an AGG and MASG establish an MP-EBGP peer relationship.
Therefore, an MPLS local IFNET tunnel between the AGG and MASG is
automatically established over the MP-EBGP peer relationship. The MPLS
local IFNET tunnel fails to transmit traffic because the AGG and MASG
are indirectly connected.
If a fault occurs on the tunnel between the AGG and MASG, traffic
recurses to the MPLS local IFNET tunnel, not a backup tunnel or an FRR
bypass tunnel. As the MPLS local IFNET tunnel cannot forward traffic,
traffic is interrupted. To prevent the traffic interruption, run the peer
mpls-local-ifnet disable command to disable the establishment of an
MPLS local IFNET tunnel between the AGG and MASG.
d. Run ipv4-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 address family view is displayed.
e. Run auto-frr
VPN Auto FRR is enabled.
f. (Optional) Run route-select delay delay-value
A delay for selecting a route to the intermediate device on the primary
path is configured. After the primary path recovers, an appropriate delay
ensures that traffic switches back to the primary path after the
intermediate device completes refreshing forwarding entries.
The delay-value is an integer ranging from 0 to 3600, in seconds. The
default delay-value is 0, indicating that the device on which FRR is
configured selects a route to the intermediate device on the primary path
without a delay.
g. Run commit
The configuration is committed.
----End

1.1.5.5.7 (Optional) Configuring the Egress Protection Function


The egress protection function reduces E2E BFD sessions to be established,
bandwidth resources to be consumed, and the burden on devices.

Context
In seamless MPLS scenarios, when an egress MASG fails, E2E BFD for BGP tunnel
is used to instruct a CSG to perform VPN FRR switching. In this protection solution,
both BGP LSPs and BFD sessions are in great numbers, which consumes a lot of
bandwidth resources and burdens the device. To optimize the solution, the egress
protection function can be configured on the master and backup MASGs. With this
function enabled, both the master and backup MASGs assign the same private
network label value to a core ASBR. If the master MASG fails, BFD for LDP LSP or
BFD for TE can instruct a core ASBR to perform BGP FRR protection switching.
After traffic is switched to the backup MASG, the MASG removes the BGP public

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 739


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

network label and uses the private network label the same as that on the faulty
master MASG to search for a matching VPN instance. Traffic can then be properly
forwarded.
The egress protection function is configured on both the master and backup
MASGs.

NOTE

If the egress protection function is configured on egress MASGs between which a tunnel
exists and a route imported by BGP on one of the MASGs recurses to the tunnel, this MASG
then recurses the route to another tunnel of a different type. In this case, traffic is directed
to the other MASG, which slows down traffic switchover. As a result, the egress protection
function does not take effect. To address this problem, specify non-relay-tunnel when
running the import-route or network command to prevent the routes imported by BGP
from recursing to tunnels.

Prerequisites
Before configuring the egress protection function, complete the following tasks:
● Configure a loopback interface on each of the master and backup MASGs.
The IP address of each loopback interface on an MASG is used to establish a
remote BGP peer relationship with a remote device.
● Host routes to the loopback interfaces are imported into the BGP routing
table, and both the master and backup MASGs assigns BGP labeled routes to
a core ASBR. Therefore, the core ASBR has two BGP labeled routes destined
for the same loopback interface. A routing policy is configured to enable the
core ASBR to select one route to implement BGP FRR.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Step 3 Run ipv4-family
The VPN instance IPv4 address family view is displayed.
Step 4 Run route-distinguisher route-distinguisher
An RD is configured for the VPN instance IPv4 address family.
Step 5 Run apply-label per-instance static static-label-value
A device is enabled to assign the same static label to all routes destined for a
remote PE in a VPN instance IPv4 address family.
The same static label value must be set on both the master and backup MASGs.

NOTE

A change in the label allocation mode leads to re-advertising of IPv4 address family routes
in a VPN instance. This step causes a temporary service interruption. Exercise caution when
using this command.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 740


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 6 Run commit


The configuration is committed.

----End

1.1.5.5.8 Verifying the Configuration


After configuring inter-AS seamless MPLS+HVPN, you can check all BGP peer
relationships, VPNv4 routing information on AGGs and MASGs, and the
connectivity of the BGP LSP between each pair of an AGG and MASG.

Prerequisites
Inter-AS seamless MPLS+HVPN has been configured.

Procedure
● Run the display bgp vpnv4 all peer command on an AGG or MASG to check
BGP peer relationship information.
● Run the display bgp vpnv4 all routing-table command to check the VPNv4
routing table on an AGG or MASG.
● Run the display bgp routing-table label command on an AGG, AGG ASBR,
core ASBR, or MASG to check label information of IPv4 routes.
● Run the display ip routing-table vpn-instance vpn-instance-name command
to check the VRF table on an AGG or MASG.
● Run the display mpls lsp protocol bgp traffic-statistics inbound command
to check the incoming traffic statistics of BGP LSPs.
● Run the display mpls lsp protocol bgp traffic-statistics outbound [ ipv4-
address mask-length ] verbose command to check the outgoing traffic
statistics of BGP LSPs.
● Run the display mpls lsp protocol bgp traffic-statistics outbound
aggregated command to check the traffic statistics of BGP LSPs aggregated
by FEC.
----End

1.1.5.6 Configuring Dynamic BFD to Monitor a BGP Tunnel


BFD for BGP tunnel rapidly detects faults in E2E BGP tunnels.

Usage Scenario
On an IP/MPLS network transmitting VPN services, PEs establish a multi-segment
MPLS tunnel between each other. Therefore VPN services are sent to multiple PEs.
In this case, VPN service provision on PEs becomes complex, and the VPN service
scalability decreases. As PEs establish BGP peer relationships, a routing policy can
be used to assign MPLS labels for BGP routes so that an End-to-end (E2E) BGP
tunnel can be established. The BGP tunnel consists of a primary BGP LSP and a
backup BGP LSP. VPN services can travel along the E2E BGP tunnel, which
simplifies service provision and improves VPN service scalability.
To rapidly detect faults in an E2E BGP tunnel, BFD for BGP tunnel is used. BFD for
BGP tunnel establishes a dynamic BFD session, also called a BGP BFD session,

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 741


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

which is bound to both the primary and backup BGP LSPs. If both BGP LSPs fail,
the BGP BFD session detects the faults and triggers VPN FRR switching.

Pre-configuration Tasks
Before configuring dynamic BFD to monitor a BGP tunnel, configure basic MPLS
functions.

1.1.5.6.1 Enabling an MPLS Device to Dynamically Establish a BGP BFD Session


Before a dynamic BGP BFD session is established, the capability to dynamically
establish BGP BFD sessions must be enabled on each MPLS device.

Procedure
● Perform the following steps on the ingress of an E2E BGP tunnel:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally.
c. Run quit
Return to the system view.
d. Run mpls
The MPLS view is displayed.
e. Run mpls bgp bfd enable
The ability to dynamically establish BGP BFD sessions is enabled on the
ingress.
The mpls bgp bfd enable command does not create a BFD session. A
BGP BFD session can only be dynamically established only after a policy
for dynamically establish BGP BFD session is configured.
f. Run commit
The configuration is committed.
● Perform the following steps on the egress of an E2E BGP tunnel:
a. Run system-view
The system view is displayed.
b. Run bfd
BFD is enabled globally, and the BFD view is displayed.
c. Run mpls-passive
The capability of passively creating a BFD session is configured on the
egress.
The mpls-passive command does not create a BFD session. The egress
has to receive an LSP ping request carrying a BFD TLV before creating a
BFD session with the ingress.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 742


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

d. Run commit
The configuration is committed.
----End

1.1.5.6.2 Configuring a Policy for Dynamically Establishing a BGP BFD Session


BGP BFD sessions can be dynamically established based on either host addresses
or an IP address prefix list.

Context
The policies for dynamically establishing BGP BFD sessions are as follows:
● Host address-based policy: used when all host addresses are available to
trigger the creation of BGP BFD sessions.
● IP address prefix list-based policy: used when only some host addresses can
be used to establish BFD sessions.
Perform the following steps on the ingress of an E2E BGP tunnel:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 (Optional) Run ip ip-prefix ip-prefix-name [ index index-number ] { permit |
deny } ipv4-address mask-length [ match-network ] [ greater-equal greater-
equal-value ] [ less-equal less-equal-value ]
An IPv4 address prefix list is configured, and list entries are configured.
You can perform this step when you want to use an IP address prefix list to
dynamically establish BGP BFD sessions. For configuration details about how to
configure an IP address prefix list, see Configuring an IPv4 Address Prefix List.
Step 3 Run mpls
The MPLS view is displayed.
Step 4 Run mpls bgp bfd-trigger-tunnel { host | ip-prefix ip-prefix-name }
A policy for dynamically establishing a BGP BFD session is configured.
After a policy is configured, the device starts to dynamically establish a BFD
session.
Step 5 Run commit
The configuration is committed.

----End

1.1.5.6.3 (Optional) Adjusting BGP BFD Parameters


You can adjust BGP BFD parameters, including the minimum interval at which BGP
BFD packets are sent, the minimum interval at which BGP BFD packets are
received, and the BGP BFD detection multiplier.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 743


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
Perform the following steps on the ingress of an E2E BGP tunnel:

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run bfd

The BFD view is displayed.

Step 3 Run mpls ping interval interval

The interval at which LSP ping packets are sent is set.

Step 4 Run quit

Return to the system view.

Step 5 Run mpls

The MPLS view is displayed.

Step 6 Run mpls bgp bfd { detect-multiplier value-detect-multiplier | min-rx-interval


value-min-rx-interval | min-tx-interval value-min-tx-interval } *
Time parameters for BGP BFD are set.

The BFD detection intervals are calculated as follows:

● Effective interval at which BFD packets are sent from the local device = Max
(min-tx-interval configured on the local device, min-rx-interval configured
on the remote device)
● Effective interval at which BFD packets are received by the local device = Max
(min-tx-interval configured on the remote device, min-rx-interval
configured on the local device)
● Detection interval of the local device = Effective interval at which BFD packets
are received by the local device x BFD detection multiplier configured on the
remote device

The egress has the fixed minimum interval at which BGP BFD packets are sent, the
fixed minimum interval at which BGP BFD packets are received, and the detection
multiplier of 3. You can only change the time parameters on the ingress so that
the BFD time parameters can be updated on both the ingress and egress.

Step 7 Run commit

The configuration is committed.

----End

1.1.5.6.4 Verifying the Configuration of Dynamic BFD to Monitor a BGP Tunnel


After configuring a dynamic BFD session to monitor a BGP tunnel, you can view
BGP BFD session information on the ingress of the BGP tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 744


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Prerequisites
The dynamic BFD for BGP tunnel function has been configured.

Procedure
● Run the display mpls bfd session protocol bgp [ fec fec-address
[ verbose ] ] command to check information about a BFD session with the
protocol type of BGP on the ingress on an E2E BGP tunnel.

----End

1.1.5.7 Maintaining Seamless MPLS


The seamless MPLS maintenance involves checking the connectivity and
reachability of seamless MPLS networks.

1.1.5.7.1 Checking Network Connectivity and Reachability


Run the ping and tracert commands to check the connectivity and reachability of
seamless MPLS networks.

Context
Run the following commands in any view of a BGP LSP endpoint node to check
the connectivity and reachability of a BGP LSP.

Procedure
● Run the ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m
interval | -r reply-mode | -s packet-size | -t time-out | -v ] * bgp destination-
iphost mask-length [ ip-address ] command to check BGP LSP connectivity.
----End

1.1.5.7.2 Clearing the Traffic Statistics of BGP LSPs


After BGP LSP traffic statistics collection is configured, you can query and monitor
BGP LSP traffic in real time. Unneeded traffic statistics of BGP LSPs can be cleared.

Context
By default, the reset mpls traffic-statistics bgp command clears the traffic
statistics of all BGP LSPs. If an IPv4 address and a mask length are specified, the
command clears only the traffic statistics of the BGP LSPs whose FEC matches the
specified IPv4 address and mask length.

Procedure
● Run the reset mpls traffic-statistics bgp [ipv4-address mask-length]
command to clear the traffic statistics of BGP LSPs.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 745


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.5.8 Configuration Examples


This section provides examples for configuring seamless MPLS networks. In each
configuration example, the networking requirements, configuration notes,
configuration roadmap, configuration procedures, and configuration files are
provided.

1.1.5.8.1 Example for Configuring Intra-AS Seamless MPLS


When the access, aggregation, and core layers belong to the same AS, intra-AS
seamless MPLS can be configured to implement the service connectivity between
base stations and an MME or SGW.

Networking Requirements
In Figure 1-63, the access, aggregation, and core layers belong to the same AS.
Base stations need to communicate with an MME or SGW through a VPN. To meet
this requirement, intra-AS seamless MPLS can be configured.

Figure 1-63 Intra-AS seamless MPLS networking (1)

Addresses of interfaces are planned for CSGs, AGGs, core ABRs, and MASGs shown
in Figure 1-64.

Figure 1-64 Intra-AS seamless MPLS networking (2)


NOTE

Interfaces 1 and 2 in this example are GE1/0/0 and GE2/0/0, respectively.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 746


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure IGP protocols at the access, aggregation, and core layers to
implement network connectivity at each layer.
2. Configure MPLS and MPLS LDP and establish MPLS LSPs on devices.
3. Establish IBGP peer relationships at each layer and enable devices to
exchange labeled routes.
4. Configure each AGG and core ABR as RRs to help a CSG and MASG obtain the
route destined for each other's loopback interface.
5. Configure a routing policy to control label distribution for a BGP LSP to be
established on each device. The egress of the BGP LSP to be established needs
to assign an MPLS label to the route advertised to an upstream node. If a
transit node receives a labeled IPv4 route from downstream, the downstream
node must re-assign an MPLS label to the transit node.

Data Preparation
To complete the configuration, you need the following data:
● OSPF process ID (1) at the access layer, IS-IS process ID (1) at the aggregation
layer, and OSPF process ID (2) at the core layer
● MPLS LSR IDs: 1.1.1.1 for the CSG, 2.2.2.2 for the AGG, 3.3.3.3 for the core
ABR, and 4.4.4.4 for the MASG
● Name of a routing policy (policy1)

Procedure
Step 1 Assign an IP address to each interface.
Configure interface IP addresses and masks; configure a loopback interface
address as an LSR ID on every device shown in Figure 1-64; configure OSPF and
IS-IS to advertise the route to the network segment of each interface and a host
route to each loopback interface address (LSR ID). For configuration details, see
Configuration Files in this section.
Step 2 Enable MPLS and LDP globally on each device.
# Configure the CSG.
[~CSG] mpls lsr-id 1.1.1.1
[*CSG] mpls
[*CSG-mpls] quit
[*CSG] mpls ldp
[*CSG-mpls-ldp] quit
[*CSG] interface GigabitEthernet 1/0/0
[*CSG-GigabitEthernet1/0/0] mpls
[*CSG-GigabitEthernet1/0/0] mpls ldp
[*CSG-GigabitEthernet1/0/0] quit
[*CSG] commit

# Configure the AGG.


[~AGG] mpls lsr-id 2.2.2.2
[*AGG] mpls
[*AGG-mpls] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 747


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*AGG] mpls ldp


[*AGG-mpls-ldp] quit
[*AGG] interface GigabitEthernet 1/0/0
[*AGG-GigabitEthernet1/0/0] mpls
[*AGG-GigabitEthernet1/0/0] mpls ldp
[*AGG-GigabitEthernet1/0/0] quit
[*AGG] interface GigabitEthernet 2/0/0
[*AGG-GigabitEthernet2/0/0] mpls
[*AGG-GigabitEthernet2/0/0] mpls ldp
[*AGG-GigabitEthernet2/0/0] quit
[*AGG] commit

# Configure the core ABR.


[~Core ABR] mpls lsr-id 3.3.3.3
[*Core ABR] mpls
[*Core ABR-mpls] quit
[*Core ABR] mpls ldp
[*Core ABR-mpls-ldp] quit
[*Core ABR] interface GigabitEthernet 1/0/0
[*Core ABR-GigabitEthernet1/0/0] mpls
[*Core ABR-GigabitEthernet1/0/0] mpls ldp
[*Core ABR-GigabitEthernet1/0/0] quit
[*Core ABR] interface GigabitEthernet 2/0/0
[*Core ABR-GigabitEthernet2/0/0] mpls
[*Core ABR-GigabitEthernet2/0/0] mpls ldp
[*Core ABR-GigabitEthernet2/0/0] quit
[*Core ABR] commit

# Configure the MASG.


[~MASG] mpls lsr-id 4.4.4.4
[*MASG] mpls
[*MASG-mpls] quit
[*MASG] mpls ldp
[*MASG-mpls-ldp] quit
[*MASG] interface GigabitEthernet 1/0/0
[*MASG-GigabitEthernet1/0/0] mpls
[*MASG-GigabitEthernet1/0/0] mpls ldp
[*MASG-GigabitEthernet1/0/0] quit
[*MASG] commit

Step 3 Establish IBGP peer relationships at each layer and enable devices to exchange
labeled routes.
# Configure the CSG.
[~CSG] bgp 100
[*CSG-bgp] peer 2.2.2.2 as-number 100
[*CSG-bgp] peer 2.2.2.2 connect-interface LoopBack 1
[*CSG-bgp] peer 2.2.2.2 label-route-capability
[*CSG-bgp] network 1.1.1.1 32
[*CSG-bgp] quit
[*CSG] commit

# Configure the AGG.


[~AGG] bgp 100
[*AGG-bgp] peer 1.1.1.1 as-number 100
[*AGG-bgp] peer 1.1.1.1 connect-interface LoopBack 1
[*AGG-bgp] peer 1.1.1.1 label-route-capability
[*AGG-bgp] peer 3.3.3.3 as-number 100
[*AGG-bgp] peer 3.3.3.3 connect-interface LoopBack 1
[*AGG-bgp] peer 3.3.3.3 label-route-capability
[*AGG-bgp] quit
[*AGG] commit

# Configure the core ABR.


[~Core ABR] bgp 100

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 748


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*Core ABR-bgp] peer 2.2.2.2 as-number 100


[*Core ABR-bgp] peer 2.2.2.2 connect-interface LoopBack 1
[*Core ABR-bgp] peer 2.2.2.2 label-route-capability
[*Core ABR-bgp] peer 4.4.4.4 as-number 100
[*Core ABR-bgp] peer 4.4.4.4 connect-interface LoopBack 1
[*Core ABR-bgp] peer 4.4.4.4 label-route-capability
[*Core ABR-bgp] quit
[*Core ABR] commit

# Configure the MASG.


[~MASG] bgp 100
[*MASG-bgp] peer 3.3.3.3 as-number 100
[*MASG-bgp] peer 3.3.3.3 connect-interface LoopBack 1
[*MASG-bgp] peer 3.3.3.3 label-route-capability
[*MASG-bgp] network 4.4.4.4 32
[*MASG-bgp] quit
[*MASG] commit

Step 4 Configure each AGG and core ABR as RRs to help a CSG and MASG obtain the
route destined for each other's loopback interface.
# Configure the AGG.
[~AGG] bgp 100
[~AGG-bgp] peer 1.1.1.1 reflect-client
[*AGG-bgp] peer 1.1.1.1 next-hop-local
[*AGG-bgp] peer 3.3.3.3 reflect-client
[*AGG-bgp] peer 3.3.3.3 next-hop-local
[*AGG-bgp] quit
[*AGG] commit

# Configure the core ABR.


[~Core ABR] bgp 100
[~Core ABR-bgp] peer 2.2.2.2 reflect-client
[*Core ABR-bgp] peer 2.2.2.2 next-hop-local
[*Core ABR-bgp] peer 4.4.4.4 reflect-client
[*Core ABR-bgp] peer 4.4.4.4 next-hop-local
[*Core ABR-bgp] quit
[*Core ABR] commit

Step 5 Configure a routing policy on each device to establish a BGP LSP.


# Configure a routing policy for advertising routes matching Route-Policy
conditions to the CSG's BGP peer.
[~CSG] route-policy policy1 permit node 1
[*CSG-route-policy] apply mpls-label
[*CSG-route-policy] quit
[*CSG] bgp 100
[*CSG-bgp] peer 2.2.2.2 route-policy policy1 export
[*CSG-bgp] quit
[*CSG] commit
[~CSG] quit

Repeat this step for the MASG. For configuration details, see Configuration Files in
this section.
# Configure a routing policy for advertising routes matching Route-Policy
conditions to the AGG's BGP peer.
[~AGG] route-policy policy1 permit node 1
[*AGG-route-policy] if-match mpls-label
[*AGG-route-policy] apply mpls-label
[*AGG-route-policy] quit
[*AGG] bgp 100
[*AGG-bgp] peer 1.1.1.1 route-policy policy1 export

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 749


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*AGG-bgp] peer 3.3.3.3 route-policy policy1 export


[*AGG-bgp] quit
[*AGG] commit

Repeat this step for the core ABR. For configuration details, see Configuration Files
in this section.
Step 6 Verify the configuration.
After completing the configuration, run the display ip routing-table command on
a CSG or MASG to view information about a route to the BGP peer's loopback
interface.
The following example uses the command output on the CSG.
<CSG> display ip routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 10 Routes : 10

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack1


2.2.2.2/32 OSPF 10 1 D 10.1.1.2 GigabitEthernet1/0/0
4.4.4.4/32 IBGP 255 0 RD 2.2.2.2 GigabitEthernet1/0/0
10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Run the display mpls lsp command on the CSG or MASG to view LSP information.
The following example uses the command output on the CSG.
<CSG> display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.1/32 3/NULL -/-
2.2.2.2/32 NULL/3 -/GE1/0/0
2.2.2.2/32 32828/3 -/GE1/0/0
-------------------------------------------------------------------------------
LSP Information: BGP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.1/32 32829/NULL -/-
4.4.4.4/32 NULL/32831 -/-

----End

Configuration Files
● CSG configuration file
#
sysname CSG
#
mpls lsr-id 1.1.1.1
#
mpls
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 750


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack1
#
ipv4-family unicast
network 1.1.1.1 255.255.255.255
peer 2.2.2.2 enable
peer 2.2.2.2 route-policy policy1 export
peer 2.2.2.2 label-route-capability
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return
● AGG configuration file
#
sysname AGG
#
mpls lsr-id 2.2.2.2
#
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0000.0010.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack1
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack1
#
ipv4-family unicast
peer 1.1.1.1 enable
peer 1.1.1.1 route-policy policy1 export

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 751


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

peer 1.1.1.1 reflect-client


peer 1.1.1.1 next-hop-local
peer 1.1.1.1 label-route-capability
peer 3.3.3.3 enable
peer 3.3.3.3 route-policy policy1 export
peer 3.3.3.3 reflect-client
peer 3.3.3.3 next-hop-local
peer 3.3.3.3 label-route-capability
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
● Core ABR configuration file
#
sysname Core ABR
#
mpls lsr-id 3.3.3.3
#
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0000.0020.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack1
peer 4.4.4.4 as-number 100
peer 4.4.4.4 connect-interface LoopBack1
#
ipv4-family unicast
peer 2.2.2.2 enable
peer 2.2.2.2 route-policy policy1 export
peer 2.2.2.2 reflect-client
peer 2.2.2.2 next-hop-local
peer 2.2.2.2 label-route-capability
peer 4.4.4.4 enable
peer 4.4.4.4 route-policy policy1 export
peer 4.4.4.4 reflect-client
peer 4.4.4.4 next-hop-local
peer 4.4.4.4 label-route-capability
#
ospf 2
area 0.0.0.0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 752


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

network 3.3.3.3 0.0.0.0


network 10.3.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return

● MASG configuration file


#
sysname MASG
#
mpls lsr-id 4.4.4.4
#
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
bgp 100
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack1
#
ipv4-family unicast
network 4.4.4.4 255.255.255.255
peer 3.3.3.3 enable
peer 3.3.3.3 route-policy policy1 export
peer 3.3.3.3 label-route-capability
#
ospf 2
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.3.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return

1.1.5.8.2 Example for Configuring Inter-AS Seamless MPLS


When the access and aggregation layers belong to one AS, and the core layer
belongs to another AS, inter-AS seamless MPLS can be configured to implement
the service connectivity between base stations and an MME or SGW.

Networking Requirements
In Figure 1-65, the access and aggregation layers belong to AS 100, and the core
layer belongs to AS 200. Base stations and an MME or SGW can communicate
with each other through a VPN. To meet this requirement, inter-AS seamless MPLS
can be configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 753


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-65 Inter-AS seamless MPLS networking (1)

Addresses of interfaces are planned for the CSGs, AGGs, AGG ASBRs, core ASBRs,
and MASGs shown in Figure 1-66.

Figure 1-66 Inter-AS seamless MPLS networking (2)


NOTE

Interfaces 1 and 2 in this example are GE1/0/0 and GE2/0/0, respectively.

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure IGP protocols at the access, aggregation, and core layers to


implement network connectivity at each layer.
2. Configure MPLS and MPLS LDP and establish MPLS LSPs at the access,
aggregation, and core layers.
3. Establish IBGP peer relationships at each layer and enable devices to
exchange labeled routes.
4. Configure an EBGP peer relationship for each AGG ASBR-and-core ASBR pair
and enable these devices to exchange labeled routes across ASs.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 754


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

5. Configure each AGG as an RR to help the CSG and MASG obtain the route
destined for each other's loopback interface.
6. Configure a routing policy to control label distribution for a BGP LSP to be
established on each device. The egress of the BGP LSP to be established needs
to assign an MPLS label to the route advertised to an upstream node. If a
transit node receives a labeled IPv4 route from downstream, the downstream
node must re-assign an MPLS label to the transit node.

Data Preparation
To complete the configuration, you need the following data:

● OSPF process ID (1) at the access layer, IS-IS process ID (1) at the aggregation
layer, and OSPF process ID (2) at the core layer
● MPLS LSR IDs: 1.1.1.1 for the CSG, 2.2.2.2 for the AGG, 3.3.3.3 for the AGG
ASBR, 4.4.4.4 for the core ASBR, and 5.5.5.5 for the MASG.
● Name of a routing policy (policy1)

Procedure
Step 1 Assign an IP address to each interface.

Configure interface IP addresses and masks; configure a loopback interface


address as an LSR ID on every device shown in Figure 1-66; configure OSPF and
IS-IS to advertise the route to the network segment of each interface and a host
route to each loopback interface address (LSR ID). For configuration details, see
Configuration Files in this section.

Step 2 Enable MPLS and LDP globally on each device.

# Configure the CSG.


[~CSG] mpls lsr-id 1.1.1.1
[*CSG] mpls
[*CSG-mpls] quit
[*CSG] mpls ldp
[*CSG-mpls-ldp] quit
[*CSG] interface GigabitEthernet 1/0/0
[*CSG-GigabitEthernet1/0/0] mpls
[*CSG-GigabitEthernet1/0/0] mpls ldp
[*CSG-GigabitEthernet1/0/0] quit
[*CSG] commit

# Configure the AGG.


<AGG> system-view
[~AGG] mpls lsr-id 2.2.2.2
[*AGG] mpls
[*AGG-mpls] quit
[*AGG] mpls ldp
[*AGG-mpls-ldp] quit
[*AGG] interface GigabitEthernet 1/0/0
[*AGG-GigabitEthernet1/0/0] mpls
[*AGG-GigabitEthernet1/0/0] mpls ldp
[*AGG-GigabitEthernet1/0/0] quit
[*AGG] interface GigabitEthernet 2/0/0
[*AGG-GigabitEthernet2/0/0] mpls
[*AGG-GigabitEthernet2/0/0] mpls ldp
[*AGG-GigabitEthernet2/0/0] quit
[*AGG] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 755


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure the AGG ASBR.


[~AGG ASBR] mpls lsr-id 3.3.3.3
[*AGG ASBR] mpls
[*AGG ASBR-mpls] quit
[*AGG ASBR] mpls ldp
[*AGG ASBR-mpls-ldp] quit
[*AGG ASBR] interface GigabitEthernet 1/0/0
[*AGG ASBR-GigabitEthernet1/0/0] mpls
[*AGG ASBR-GigabitEthernet1/0/0] mpls ldp
[*AGG ASBR-GigabitEthernet1/0/0] quit
[*AGG ASBR] commit

# Configure the core ASBR.


[~Core ASBR] mpls lsr-id 4.4.4.4
[*Core ASBR] mpls
[*Core ASBR-mpls] quit
[*Core ASBR] mpls ldp
[*Core ASBR-mpls-ldp] quit
[*Core ASBR] interface GigabitEthernet 2/0/0
[*Core ASBR-GigabitEthernet2/0/0] mpls
[*Core ASBR-GigabitEthernet2/0/0] mpls ldp
[*Core ASBR-GigabitEthernet2/0/0] quit
[*Core ASBR] commit

# Configure the MASG.


[~MASG] mpls lsr-id 5.5.5.5
[*MASG] mpls
[*MASG-mpls] quit
[*MASG] mpls ldp
[*MASG-mpls-ldp] quit
[*MASG] interface GigabitEthernet 1/0/0
[*MASG-GigabitEthernet1/0/0] mpls
[*MASG-GigabitEthernet1/0/0] mpls ldp
[*MASG-GigabitEthernet1/0/0] quit
[*MASG] commit

Step 3 Establish IBGP peer relationships at each layer and enable devices to exchange
labeled routes.
# Configure the CSG.
[~CSG] bgp 100
[*CSG-bgp] peer 2.2.2.2 as-number 100
[*CSG-bgp] peer 2.2.2.2 connect-interface LoopBack 1
[*CSG-bgp] peer 2.2.2.2 label-route-capability
[*CSG-bgp] network 1.1.1.1 32
[*CSG-bgp] quit
[*CSG] commit

# Configure the AGG.


[~AGG] bgp 100
[*AGG-bgp] peer 1.1.1.1 as-number 100
[*AGG-bgp] peer 1.1.1.1 connect-interface LoopBack 1
[*AGG-bgp] peer 1.1.1.1 label-route-capability
[*AGG-bgp] peer 3.3.3.3 as-number 100
[*AGG-bgp] peer 3.3.3.3 connect-interface LoopBack 1
[*AGG-bgp] peer 3.3.3.3 label-route-capability
[*AGG-bgp] quit
[*AGG] commit

# Configure the AGG ASBR.


<AGG ASBR> system-view
[~AGG ASBR] bgp 100
[*AGG ASBR-bgp] peer 2.2.2.2 as-number 100

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 756


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*AGG ASBR-bgp] peer 2.2.2.2 connect-interface LoopBack 1


[*AGG ASBR-bgp] peer 2.2.2.2 label-route-capability
[*AGG ASBR-bgp] quit
[*AGG ASBR] commit

# Configure the core ASBR.


<Core ASBR> system-view
[~Core ASBR] bgp 200
[*Core ASBR-bgp] peer 5.5.5.5 as-number 200
[*Core ASBR-bgp] peer 5.5.5.5 connect-interface LoopBack 1
[*Core ASBR-bgp] peer 5.5.5.5 label-route-capability
[*Core ASBR-bgp] quit
[*Core ASBR] commit

# Configure the MASG.


[~MASG] bgp 200
[*MASG-bgp] peer 4.4.4.4 as-number 200
[*MASG-bgp] peer 4.4.4.4 connect-interface LoopBack 1
[*MASG-bgp] peer 4.4.4.4 label-route-capability
[*MASG-bgp] network 5.5.5.5 32
[*MASG-bgp] quit
[*MASG] commit

Step 4 Establish an EBGP peer relationship for each AGG ASBR-and-core ASBR pair and
enable these devices to exchange labeled routes.
# Configure the AGG ASBR.
[~AGG ASBR] interface GigabitEthernet 2/0/0
[~AGG ASBR-GigabitEthernet2/0/0] ip address 10.3.1.1 24
[*AGG ASBR-GigabitEthernet2/0/0] mpls
[*AGG ASBR-GigabitEthernet2/0/0] quit
[*AGG ASBR] bgp 100
[*AGG ASBR-bgp] peer 10.3.1.2 as-number 200
[*AGG ASBR-bgp] peer 10.3.1.2 label-route-capability check-tunnel-reachable
[*AGG ASBR-bgp] quit
[*AGG ASBR] commit

# Configure the core ASBR.


[~Core ASBR] interface GigabitEthernet 1/0/0
[~Core ASBR-GigabitEthernet1/0/0] ip address 10.3.1.2 24
[*Core ASBR-GigabitEthernet1/0/0] mpls
[*Core ASBR-GigabitEthernet1/0/0] quit
[*Core ASBR] bgp 200
[*Core ASBR-bgp] peer 10.3.1.1 as-number 100
[*Core ASBR-bgp] peer 10.3.1.1 label-route-capability check-tunnel-reachable
[*Core ASBR-bgp] quit
[*Core ASBR] commit

Step 5 Configure each AGG as an RR to help the CSG and MASG obtain the route
destined for each other's loopback interface.
# Configure the AGG.
[~AGG] bgp 100
[~AGG-bgp] peer 1.1.1.1 reflect-client
[*AGG-bgp] peer 1.1.1.1 next-hop-local
[*AGG-bgp] peer 3.3.3.3 reflect-client
[*AGG-bgp] peer 3.3.3.3 next-hop-local
[*AGG-bgp] quit
[*AGG] commit

Step 6 Configure a routing policy on each device to establish a BGP LSP.


# Configure a routing policy for advertising routes matching Route-Policy
conditions to the CSG's BGP peer.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 757


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~CSG] route-policy policy1 permit node 1


[*CSG-route-policy] apply mpls-label
[*CSG-route-policy] quit
[*CSG] bgp 100
[*CSG-bgp] peer 2.2.2.2 route-policy policy1 export
[*CSG-bgp] quit
[*CSG] commit
[~CSG] quit

Repeat this step for the MASG. For configuration details, see Configuration Files in
this section.
# Configure a routing policy for advertising routes matching Route-Policy
conditions to the AGG's BGP peer.
[~AGG] route-policy policy1 permit node 1
[*AGG-route-policy] if-match mpls-label
[*AGG-route-policy] apply mpls-label
[*AGG-route-policy] quit
[*AGG] bgp 100
[*AGG-bgp] peer 1.1.1.1 route-policy policy1 export
[*AGG-bgp] peer 3.3.3.3 route-policy policy1 export
[*AGG-bgp] quit
[*AGG] commit

Repeat this step for the AGG ASBR and core ASBR. For configuration details, see
Configuration Files in this section.
Step 7 Verify the configuration.
After completing the configuration, run the display ip routing-table command on
a CSG or MASG to view information about a route to the BGP peer's loopback
interface.
The following example uses the command output on the CSG.
<CSG> display ip routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 10 Routes : 10

Destination/Mask Proto Pre Cost Flags NextHop Interface

1.1.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack1


2.2.2.2/32 OSPF 10 1 D 10.1.1.2 GigabitEthernet1/0/0
5.5.5.5/32 IBGP 255 0 RD 2.2.2.2 GigabitEthernet1/0/0
10.1.1.0/24 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0
10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0

Run the display mpls lsp command on the CSG or MASG to view LSP information.
The following example uses the command output on the CSG.
<CSG> display mpls lsp
Flag after Out IF: (I) - RLFA Iterated LSP, (I*) - Normal and RLFA Iterated LSP
Flag after LDP FRR: (L) - Logic FRR LSP
-------------------------------------------------------------------------------
LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.1/32 3/NULL -/-
2.2.2.2/32 NULL/3 -/GE1/0/0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 758


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

2.2.2.2/32 32828/3 -/GE1/0/0


-------------------------------------------------------------------------------
LSP Information: BGP LSP
-------------------------------------------------------------------------------
FEC In/Out Label In/Out IF Vrf Name
1.1.1.1/32 32830/NULL -/-
5.5.5.5/32 NULL/32835 -/-

----End

Configuration Files
● CSG configuration file
#
sysname CSG
#
mpls lsr-id 1.1.1.1
#
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack1
#
ipv4-family unicast
network 1.1.1.1 255.255.255.255
peer 2.2.2.2 enable
peer 2.2.2.2 route-policy policy1 export
peer 2.2.2.2 label-route-capability
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return

● AGG configuration file


#
sysname AGG
#
mpls lsr-id 2.2.2.2
#
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0000.0010.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 759


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack1
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack1
#
ipv4-family unicast
peer 1.1.1.1 enable
peer 1.1.1.1 route-policy policy1 export
peer 1.1.1.1 reflect-client
peer 1.1.1.1 next-hop-local
peer 1.1.1.1 label-route-capability
peer 3.3.3.3 enable
peer 3.3.3.3 route-policy policy1 export
peer 3.3.3.3 reflect-client
peer 3.3.3.3 next-hop-local
peer 3.3.3.3 label-route-capability
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
● AGG ASBR configuration file
#
sysname AGG ASBR
#
mpls lsr-id 3.3.3.3
#
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0000.0020.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
mpls
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 760


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

isis enable 1
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack1
peer 10.3.1.2 as-number 200
#
ipv4-family unicast
peer 2.2.2.2 enable
peer 2.2.2.2 route-policy policy1 export
peer 2.2.2.2 label-route-capability
peer 10.3.1.2 enable
peer 10.3.1.2 route-policy policy1 export
peer 10.3.1.2 label-route-capability check-tunnel-reachable
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return

● Core ASBR configuration file


#
sysname Core ASBR
#
mpls lsr-id 4.4.4.4
#
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
mpls
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
bgp 200
peer 5.5.5.5 as-number 200
peer 5.5.5.5 connect-interface LoopBack1
peer 10.3.1.1 as-number 100
#
ipv4-family unicast
peer 5.5.5.5 enable
peer 5.5.5.5 route-policy policy1 export
peer 5.5.5.5 label-route-capability
peer 10.3.1.1 enable
peer 10.3.1.1 route-policy policy1 export
peer 10.3.1.1 label-route-capability check-tunnel-reachable
#
ospf 2
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.4.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return

● MASG configuration file

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 761


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
sysname MASG
#
mpls lsr-id 5.5.5.5
#
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
#
bgp 200
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface LoopBack1
#
ipv4-family unicast
network 5.5.5.5 255.255.255.255
peer 4.4.4.4 enable
peer 4.4.4.4 route-policy policy1 export
peer 4.4.4.4 label-route-capability
#
ospf 2
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 10.4.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return

1.1.5.8.3 Example for Configuring Inter-AS Seamless MPLS+HVPN


In the inter-AS seamless MPLS+HVPN networking, an HVPN connection between a
CSG and AGG is established, and an inter-AS seamless MPLS LSP between an AGG
and MASG is established. The inter-AS seamless MPLS+HVPN networking obtains
the collective advantages of the inter-AS seamless MPLS network and HVPN.

Networking Requirements
In Figure 1-67, the access and aggregation layers belong to AS 100, and the core
layer belongs to AS 200. To provision VPN services, the inter-AS seamless MPLS
+HVPN networking can be deployed. This networking allows base stations and the
MME/SGW to communicate with each other and cuts networking construction
costs with the use of HVPN. An HVPN connection for each CSG-and-AGG pair is
established, and an inter-AS seamless MPLS LSP for each AGG-and-MASG pair is
established.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 762


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-67 Inter-AS seamless MPLS+HVPN networking (1)

Addresses of interfaces are planned for the CSGs, AGGs, AGG ASBRs, core ASBRs,
and MASGs shown in Figure 1-68.

Figure 1-68 Inter-AS seamless MPLS+HVPN networking (2)


NOTE

Interfaces 1 and 2 in this example are GE1/0/0 and GE2/0/0, respectively.

Configuration Roadmap
The configuration roadmap is as follows:

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 763


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1. Configure IGP protocols at the access, aggregation, and core layers to


implement network connectivity at each layer.
2. Configure MPLS and MPLS LDP and establish MPLS LSPs at the access,
aggregation, and core layers.
3. Establish IBGP peer relationships at the aggregation and core layers and
enable devices to exchange labeled routes.
4. Configure an EBGP peer relationship for each AGG ASBR-and-core ASBR pair
and enable these devices to exchange labeled routes across ASs.
5. Configure a routing policy to control label distribution for a BGP LSP to be
established on each device, except CGSs. The egress of the BGP LSP to be
established needs to assign an MPLS label to the route advertised to an
upstream node. If a transit node receives a labeled IPv4 route from
downstream, the downstream node must re-assign an MPLS label to the
transit node.
6. Configure an MP-EBGP peer relationship between an AGG and MASG to allow
these devices to exchange VPNv4 route information.
7. Configure an MP-IBGP peer relationship between a CSG and AGG to allow
these devices to exchange VPNv4 route information.
8. Configure VPN instances on each CSG, AGG, and MASG.
9. Configure a default route and an IP address prefix list on each AGG so that
the AGG only advertises the default route to its directly connected CSG.

Data Preparation
To complete the configuration, you need the following data:
● OSPF process ID (1) at the access layer, IS-IS process ID (1) at the aggregation
layer, and OSPF process ID (2) at the core layer
● MPLS LSR IDs: 1.1.1.1 for the CSG, 2.2.2.2 for the AGG, 3.3.3.3 for the AGG
ASBR, 4.4.4.4 for the core ASBR, and 5.5.5.5 for the MASG.
● Name of a routing policy (policy1)

Procedure
Step 1 Assign an IP address to each interface.
Configure interface IP addresses and masks; configure a loopback interface
address as an LSR ID on every device shown in Figure 1-68; configure OSPF and
IS-IS to advertise the route to the network segment of each interface and a host
route to each loopback interface address (LSR ID). For configuration details, see
Configuration Files in this section.
Step 2 Enable MPLS and LDP globally on each device.
# Configure the CSG.
[~CSG] mpls lsr-id 1.1.1.1
[*CSG] mpls
[*CSG-mpls] quit
[*CSG] mpls ldp
[*CSG-mpls-ldp] quit
[*CSG] interface GigabitEthernet 1/0/0
[*CSG-GigabitEthernet1/0/0] mpls
[*CSG-GigabitEthernet1/0/0] mpls ldp

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 764


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*CSG-GigabitEthernet1/0/0] quit
[*CSG] commit

# Configure the AGG.


[~AGG] mpls lsr-id 2.2.2.2
[*AGG] mpls
[*AGG-mpls] quit
[*AGG] mpls ldp
[*AGG-mpls-ldp] quit
[*AGG] interface GigabitEthernet 1/0/0
[*AGG-GigabitEthernet1/0/0] mpls
[*AGG-GigabitEthernet1/0/0] mpls ldp
[*AGG-GigabitEthernet1/0/0] quit
[*AGG] interface GigabitEthernet 2/0/0
[*AGG-GigabitEthernet2/0/0] mpls
[*AGG-GigabitEthernet2/0/0] mpls ldp
[*AGG-GigabitEthernet2/0/0] quit
[*AGG] commit

# Configure the AGG ASBR.


[~AGG ASBR] mpls lsr-id 3.3.3.3
[*AGG ASBR] mpls
[*AGG ASBR-mpls] quit
[*AGG ASBR] mpls ldp
[*AGG ASBR-mpls-ldp] quit
[*AGG ASBR] interface GigabitEthernet 1/0/0
[*AGG ASBR-GigabitEthernet1/0/0] mpls
[*AGG ASBR-GigabitEthernet1/0/0] mpls ldp
[*AGG ASBR-GigabitEthernet1/0/0] quit
[*AGG ASBR] commit

# Configure the core ASBR.


[~Core ASBR] mpls lsr-id 4.4.4.4
[*Core ASBR] mpls
[*Core ASBR-mpls] quit
[*Core ASBR] mpls ldp
[*Core ASBR-mpls-ldp] quit
[*Core ASBR] interface GigabitEthernet 2/0/0
[*Core ASBR-GigabitEthernet2/0/0] mpls
[*Core ASBR-GigabitEthernet2/0/0] mpls ldp
[*Core ASBR-GigabitEthernet2/0/0] quit
[*Core ASBR] commit

# Configure the MASG.


[~MASG] mpls lsr-id 5.5.5.5
[*MASG] mpls
[*MASG-mpls] quit
[*MASG] mpls ldp
[*MASG-mpls-ldp] quit
[*MASG] interface GigabitEthernet 1/0/0
[*MASG-GigabitEthernet1/0/0] mpls
[*MASG-GigabitEthernet1/0/0] mpls ldp
[*MASG-GigabitEthernet1/0/0] quit
[*MASG] commit

Step 3 Establish IBGP peer relationships at the aggregation and core layers and enable
devices to exchange labeled routes.
# Configure the AGG.
[~AGG] bgp 100
[*AGG-bgp] peer 3.3.3.3 as-number 100
[*AGG-bgp] peer 3.3.3.3 connect-interface LoopBack 1
[*AGG-bgp] peer 3.3.3.3 label-route-capability
[*AGG-bgp] network 2.2.2.2 32
[*AGG-bgp] quit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 765


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*AGG] commit

# Configure the AGG ASBR.


[~AGG ASBR] bgp 100
[*AGG ASBR-bgp] peer 2.2.2.2 as-number 100
[*AGG ASBR-bgp] peer 2.2.2.2 connect-interface LoopBack 1
[*AGG ASBR-bgp] peer 2.2.2.2 label-route-capability
[*AGG ASBR-bgp] quit
[*AGG ASBR] commit

# Configure the core ASBR.


[~Core ASBR] bgp 200
[*Core ASBR-bgp] peer 5.5.5.5 as-number 200
[*Core ASBR-bgp] peer 5.5.5.5 connect-interface LoopBack 1
[*Core ASBR-bgp] peer 5.5.5.5 label-route-capability
[*Core ASBR-bgp] quit
[*Core ASBR] commit

# Configure the MASG.


[~MASG] bgp 200
[*MASG-bgp] peer 4.4.4.4 as-number 200
[*MASG-bgp] peer 4.4.4.4 connect-interface LoopBack 1
[*MASG-bgp] peer 4.4.4.4 label-route-capability
[*MASG-bgp] network 5.5.5.5 32
[*MASG-bgp] quit
[*MASG] commit

Step 4 Establish an EBGP peer relationship for each AGG ASBR-and-core ASBR pair and
enable these devices to exchange labeled routes.
# Configure the AGG ASBR.
[~AGG ASBR] interface GigabitEthernet 2/0/0
[~AGG ASBR-GigabitEthernet2/0/0] ip address 10.3.1.1 24
[*AGG ASBR-GigabitEthernet2/0/0] mpls
[*AGG ASBR-GigabitEthernet2/0/0] quit
[*AGG ASBR] bgp 100
[*AGG ASBR-bgp] peer 10.3.1.2 as-number 200
[*AGG ASBR-bgp] peer 10.3.1.2 label-route-capability check-tunnel-reachable
[*AGG ASBR-bgp] quit
[*AGG ASBR] commit

# Configure the core ASBR.


[~Core ASBR] interface GigabitEthernet 1/0/0
[~Core ASBR-GigabitEthernet1/0/0] ip address 10.3.1.2 24
[*Core ASBR-GigabitEthernet1/0/0] mpls
[*Core ASBR-GigabitEthernet1/0/0] quit
[*Core ASBR] bgp 200
[*Core ASBR-bgp] peer 10.3.1.1 as-number 100
[*Core ASBR-bgp] peer 10.3.1.1 label-route-capability check-tunnel-reachable
[*Core ASBR-bgp] quit
[*Core ASBR] commit

Step 5 Configure an MP-EBGP peer relationship for each AGG-and-MASG pair.


# Configure the AGG.
[~AGG] bgp 100
[~AGG-bgp] peer 5.5.5.5 as-number 200
[*AGG-bgp] peer 5.5.5.5 connect-interface LoopBack 1
[*AGG-bgp] peer 5.5.5.5 ebgp-max-hop 10
[*AGG-bgp] ipv4-family vpnv4
[*AGG-bgp-af-vpnv4] peer 5.5.5.5 enable
[*AGG-bgp-af-vpnv4] quit
[*AGG-bgp] quit
[*AGG] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 766


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure the MASG.


[~MASG] bgp 200
[~MASG-bgp] peer 2.2.2.2 as-number 100
[*MASG-bgp] peer 2.2.2.2 connect-interface LoopBack 1
[*MASG-bgp] peer 2.2.2.2 ebgp-max-hop 10
[*MASG-bgp] ipv4-family vpnv4
[*MASG-bgp-af-vpnv4] peer 2.2.2.2 enable
[*MASG-bgp-af-vpnv4] quit
[*MASG-bgp] quit
[*MASG] commit

Step 6 Configure a routing policy to establish a BGP LSP.


# Configure a routing policy for advertising routes matching Route-Policy
conditions to the AGG's BGP peer.
<AGG> system-view
[~AGG] route-policy policy1 permit node 1
[*AGG-route-policy] apply mpls-label
[*AGG-route-policy] quit
[*AGG] bgp 100
[*AGG-bgp] peer 3.3.3.3 route-policy policy1 export
[*AGG-bgp] quit
[*AGG] commit

Repeat this step for the MASG. For configuration details, see Configuration Files in
this section.
# Configure a routing policy for advertising routes matching Route-Policy
conditions to the AGG ASBR's BGP peer.
[~AGG ASBR] route-policy policy1 permit node 1
[*AGG ASBR-route-policy] if-match mpls-label
[*AGG ASBR-route-policy] apply mpls-label
[*AGG ASBR-route-policy] quit
[*AGG ASBR] bgp 100
[*AGG ASBR-bgp] peer 2.2.2.2 route-policy policy1 export
[*AGG ASBR-bgp] peer 10.3.1.2 route-policy policy1 export
[*AGG ASBR-bgp] quit
[*AGG ASBR] commit

Repeat this step for the core ASBR. For configuration details, see Configuration
Files in this section.
Step 7 Configure an MP-IBGP peer relationship for each CSG-and-AGG pair.
# Configure the CSG.
[~CSG] bgp 100
[~CSG-bgp] peer 2.2.2.2 as-number 100
[*CSG-bgp] peer 2.2.2.2 connect-interface LoopBack 1
[*CSG-bgp] network 1.1.1.1 32
[*CSG-bgp] ipv4-family vpnv4
[*CSG-bgp-af-vpnv4] peer 2.2.2.2 enable
[*CSG-bgp-af-vpnv4] quit
[*CSG-bgp] quit
[*CSG] commit

# Configure the AGG.


[~AGG] bgp 100
[~AGG-bgp] peer 1.1.1.1 as-number 100
[*AGG-bgp] peer 1.1.1.1 connect-interface LoopBack 1
[*AGG-bgp] ipv4-family vpnv4
[*AGG-bgp-af-vpnv4] peer 1.1.1.1 enable
[*AGG-bgp] quit
[*AGG] commit

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 767


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 8 Configure a VPN instance and bind an interface of each device to the VPN
instance.
# Configure the CSG.
[~CSG] ip vpn-instance vpn1
[*CSG-vpn-instance-vpn1] ipv4-family
[*CSG-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1
[*CSG-vpn-instance-vpn1-af-ipv4] vpn-target 1:1
[*CSG-vpn-instance-vpn1-af-ipv4] quit
[*CSG-vpn-instance-vpn1] quit
[*CSG] interface GigabitEthernet 2/0/0
[*CSG-GigabitEthernet2/0/0] ip binding vpn-instance vpn1
[*CSG-GigabitEthernet2/0/0] ip address 10.5.1.1 255.255.255.0
[*CSG-GigabitEthernet2/0/0] quit
[*CSG] bgp 100
[*CSG-bgp] ipv4-family vpn-instance vpn1
[*CSG-bgp-vpn1] import-route direct
[*CSG-bgp-vpn1] quit
[*CSG-bgp] quit
[*CSG] commit
[~CSG] quit

Repeat this step for the MASG. For configuration details, see Configuration Files in
this section.
# Configure the AGG.
[~AGG] ip vpn-instance vpn1
[*AGG-vpn-instance-vpn1] ipv4-family
[*AGG-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1
[*AGG-vpn-instance-vpn1-af-ipv4] vpn-target 1:1
[*AGG-vpn-instance-vpn1-af-ipv4] quit
[*AGG-vpn-instance-vpn1] quit
[*AGG] commit

Step 9 Configure a default route and an IP address prefix list on each AGG so that the
AGG only advertises the default route to its directly connected CSG.
[~AGG] ip route-static vpn-instance vpn1 0.0.0.0 0.0.0.0 NULL0
[*AGG] ip ip-prefix default index 10 permit 0.0.0.0 0
[*AGG] bgp 100
[*AGG-bgp] ipv4-family vpnv4
[*AGG-bgp-af-vpnv4] peer 1.1.1.1 ip-prefix default export
[*AGG-bgp-af-vpnv4] quit
[*AGG-bgp] ipv4-family vpn-instance vpn1
[*AGG-bgp-vpn1] network 0.0.0.0 0
[*AGG-bgp-vpn1] quit
[*AGG-bgp] quit
[*AGG] commit

Step 10 Verify the configuration.


After completing the preceding configurations, run the display ip routing-table
command on the CSG. The command output shows that the CSG has a default
route with its directly connected AGG as the next hop, but does not have a VPN
route to the MME or SGW. In addition, the CSG can ping the MME or SGW.
The following example uses the command output on the CSG.
<CSG> display ip routing-table vpn-instance vpn1
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : vpn1
Destinations : 5 Routes : 5

Destination/Mask Proto Pre Cost Flags NextHop Interface

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 768


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

0.0.0.0/0 IBGP 255 0 RD 2.2.2.2 GigabitEthernet2/0/0


10.5.1.0/24 Direct 0 0 D 10.5.1.1 GigabitEthernet2/0/0
10.5.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0
10.5.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
<CSG> ping -vpn-instance vpn1 10.6.1.1
PING 10.6.1.0: 56 data bytes, press CTRL_C to break
Reply from 10.6.1.0: bytes=56 Sequence=1 ttl=252 time=6 ms
Reply from 10.6.1.0: bytes=56 Sequence=2 ttl=252 time=3 ms
Reply from 10.6.1.0: bytes=56 Sequence=3 ttl=252 time=3 ms
Reply from 10.6.1.0: bytes=56 Sequence=4 ttl=252 time=4 ms
Reply from 10.6.1.0: bytes=56 Sequence=5 ttl=252 time=2 ms

--- 10.6.1.1 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 2/3/6 ms

----End

Configuration Files
● CSG configuration file
#
sysname CSG
#
ip vpn-instance vpn1
ipv4-family
route-distinguisher 100:1
apply-label per-instance
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
mpls lsr-id 1.1.1.1
#
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip binding vpn-instance vpn1
ip address 10.5.1.1 255.255.255.0
#
interface LoopBack1
ip address 1.1.1.1 255.255.255.255
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack1
#
ipv4-family unicast
peer 2.2.2.2 enable
#
ipv4-family vpnv4
policy vpn-target
peer 2.2.2.2 enable
#
ipv4-family vpn-instance vpn1
import-route direct
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 769


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
#
return
● AGG configuration file
#
sysname AGG
#
ip vpn-instance vpn1
ipv4-family
route-distinguisher 100:1
apply-label per-instance
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
mpls lsr-id 2.2.2.2
#
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0000.0010.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack1
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack1
peer 5.5.5.5 as-number 200
peer 5.5.5.5 ebgp-max-hop 10
peer 5.5.5.5 connect-interface LoopBack1
#
ipv4-family unicast
network 2.2.2.2 255.255.255.255
peer 1.1.1.1 enable
peer 3.3.3.3 enable
peer 3.3.3.3 route-policy policy1 export
peer 3.3.3.3 label-route-capability
peer 5.5.5.5 enable
#
ipv4-family vpnv4
policy vpn-target
peer 1.1.1.1 enable
peer 1.1.1.1 ip-prefix default export
peer 5.5.5.5 enable
#
ipv4-family vpn-instance vpn1
network 0.0.0.0
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 770


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
ip ip-prefix default index 10 permit 0.0.0.0 0
#
ip route-static vpn-instance vpn1 0.0.0.0 0.0.0.0 NULL0
#
return
● AGG ASBR configuration file
#
sysname AGG ASBR
#
mpls lsr-id 3.3.3.3
#
mpls
#
mpls ldp
#
isis 1
network-entity 10.0000.0000.0000.0020.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
mpls
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack1
peer 10.3.1.2 as-number 200
#
ipv4-family unicast
peer 2.2.2.2 enable
peer 2.2.2.2 route-policy policy1 export
peer 2.2.2.2 label-route-capability
peer 10.3.1.2 enable
peer 10.3.1.2 route-policy policy1 export
peer 10.3.1.2 label-route-capability check-tunnel-reachable
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
● Core ASBR configuration file
#
sysname Core ASBR
#
mpls lsr-id 4.4.4.4
#
mpls
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 771


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
mpls
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
bgp 200
peer 5.5.5.5 as-number 200
peer 5.5.5.5 connect-interface LoopBack1
peer 10.3.1.1 as-number 100
#
ipv4-family unicast
peer 5.5.5.5 enable
peer 5.5.5.5 route-policy policy1 export
peer 5.5.5.5 label-route-capability
peer 10.3.1.1 enable
peer 10.3.1.1 route-policy policy1 export
peer 10.3.1.1 label-route-capability check-tunnel-reachable
#
ospf 2
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.4.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
● MASG configuration file
#
sysname MASG
#
ip vpn-instance vpn1
ipv4-family
route-distinguisher 100:1
apply-label per-instance
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity
#
mpls lsr-id 5.5.5.5
#
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip binding vpn-instance vpn1
ip address 10.6.1.1 255.255.255.0
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 772


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
bgp 200
peer 2.2.2.2 as-number 100
peer 2.2.2.2 ebgp-max-hop 10
peer 2.2.2.2 connect-interface LoopBack1
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface LoopBack1
#
ipv4-family unicast
network 5.5.5.5 255.255.255.255
peer 2.2.2.2 enable
peer 4.4.4.4 enable
peer 4.4.4.4 route-policy policy1 export
peer 4.4.4.4 label-route-capability
#
ipv4-family vpnv4
policy vpn-target
peer 2.2.2.2 enable
#
ipv4-family vpn-instance vpn1
import-route direct
#
ospf 2
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 10.4.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return

1.1.5.8.4 Example for Configuring Dynamic BFD to Monitor a BGP Tunnel


This section provides an example for configuring dynamic BFD to monitor a BGP
tunnel. The configuration involves configuring a BGP tunnel and configuring
dynamic BFD for BGP tunnel.

Networking Requirements
Seamless MPLS integrates the access, aggregation, and core layers on the same
MPLS network to transmit VPN services. Seamless MPLS establishes an E2E BGP
tunnel to provide E2E access services. To rapidly detect faults in BGP tunnels, BFD
for BGP tunnel needs to be configured.
In Figure 1, the access and aggregation layers belong to one AS, and the core
layer belongs to another AS. The base station needs to communicate with an
MME or SGW over a VPN. To meet this requirement, inter-AS seamless MPLS can
be configured to form a BGP tunnel between the CSG and MASG. To monitor the
connectivity of the BGP tunnel, BFD for BGP tunnel needs to be configured.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 773


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-69 Inter-AS seamless MPLS networking

Table 1-26 Interface parameters

Device Name Interface Name IP Address and Mask

CSG GE 1/0/0 10.1.1.1/24

AGG GE 1/0/0 10.1.1.2/24

GE 2/0/0 10.2.1.1/24

AGG ASBR GE 1/0/0 10.2.1.2/24

GE 2/0/0 10.3.1.1/24

Core ASBR GE 1/0/0 10.3.1.2/24

GE 2/0/0 10.4.1.1/24

MASG GE 2/0/0 10.4.1.2/24

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure inter-AS seamless MPLS.


2. Configure BFD for BGP tunnel.

Data Preparation
To complete the configuration, you need the following data:

● OSPF process ID (1) at the access layer, IS-IS process ID (1) at the aggregation
layer, and OSPF process ID (2) at the core layer
● IS-IS area number (10.0001) and IS-IS system IDs (which are obtained based
on loopback addresses)
● MPLS LSR IDs: 1.1.1.1 for the CSG, 2.2.2.2 for the AGG, 3.3.3.3 for the AGG
ASBR, 4.4.4.4 for the core ASBR, and 5.5.5.5 for the MASG

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 774


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Name of a routing policy (policy1)

Procedure
Step 1 Assign an IP address to each interface.
Assign an IP address and mask to each interface, including each loopback
interface, according to Figure 1. For configuration details, see Configuration Files
in this section.
Step 2 Configure an IGP.
Configure OSPF with process ID 1 at the access layer, IS-IS with process ID 1 at the
aggregation layer, and OSPF with process ID 2 at the core layer. Configure IGP
protocols to advertise the route to each network segment to which each interface
is connected and to advertise the host route to each loopback address which is
used as an LSR ID. For configuration details, see Configuration Files in this
section.
Step 3 Configure basic MPLS and MPLS LDP functions.
Enable MPLS and MPLS LDP globally on each device and on interfaces in each AS.
For configuration details, see Configuration Files in this section.
Step 4 Establish IBGP peer relationships at each layer and enable devices to exchange
labeled routes.
# Configure the CSG.
[~CSG] bgp 100
[*CSG-bgp] peer 2.2.2.2 as-number 100
[*CSG-bgp] peer 2.2.2.2 connect-interface LoopBack 0
[*CSG-bgp] peer 2.2.2.2 label-route-capability
[*CSG-bgp] network 1.1.1.1 32
[*CSG-bgp] quit
[*CSG] commit

# Configure the AGG.


[~AGG] bgp 100
[*AGG-bgp] peer 1.1.1.1 as-number 100
[*AGG-bgp] peer 1.1.1.1 connect-interface LoopBack 0
[*AGG-bgp] peer 1.1.1.1 label-route-capability
[*AGG-bgp] peer 3.3.3.3 as-number 100
[*AGG-bgp] peer 3.3.3.3 connect-interface LoopBack 0
[*AGG-bgp] peer 3.3.3.3 label-route-capability
[*AGG-bgp] quit
[*AGG] commit

# Configure the AGG ASBR.


<AGG ASBR> system-view
[~AGG ASBR] bgp 100
[*AGG ASBR-bgp] peer 2.2.2.2 as-number 100
[*AGG ASBR-bgp] peer 2.2.2.2 connect-interface LoopBack 0
[*AGG ASBR-bgp] peer 2.2.2.2 label-route-capability
[*AGG ASBR-bgp] quit
[*AGG ASBR] commit

# Configure the core ASBR.


<Core ASBR> system-view
[~Core ASBR] bgp 200
[*Core ASBR-bgp] peer 5.5.5.5 as-number 200
[*Core ASBR-bgp] peer 5.5.5.5 connect-interface LoopBack 0

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 775


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*Core ASBR-bgp] peer 5.5.5.5 label-route-capability


[*Core ASBR-bgp] quit
[*Core ASBR] commit

# Configure the MASG.


[~MASG] bgp 100
[*MASG-bgp] peer 4.4.4.4 as-number 100
[*MASG-bgp] peer 4.4.4.4 connect-interface LoopBack 0
[*MASG-bgp] peer 4.4.4.4 label-route-capability
[*MASG-bgp] network 5.5.5.5 32
[*MASG-bgp] quit
[*MASG] commit

Step 5 Establish an EBGP peer relationship for each AGG ASBR-and-core ASBR pair and
enable these devices to exchange labeled routes.
# Configure the AGG ASBR.
[~AGG ASBR] interface GigabitEthernet 2/0/0
[~AGG ASBR-GigabitEthernet2/0/0] ip address 10.3.1.1 24
[*AGG ASBR-GigabitEthernet2/0/0] mpls
[*AGG ASBR-GigabitEthernet2/0/0] quit
[*AGG ASBR] bgp 100
[*AGG ASBR-bgp] peer 10.3.1.2 as-number 200
[*AGG ASBR-bgp] peer 10.3.1.2 label-route-capability check-tunnel-reachable
[*AGG ASBR-bgp] quit
[*AGG ASBR] commit

# Configure the core ASBR.


[~Core ASBR] interface GigabitEthernet 1/0/0
[~Core ASBR-GigabitEthernet1/0/0] ip address 10.3.1.2 24
[*Core ASBR-GigabitEthernet1/0/0] mpls
[*Core ASBR-GigabitEthernet1/0/0] quit
[*Core ASBR] bgp 200
[*Core ASBR-bgp] peer 10.3.1.1 as-number 100
[*Core ASBR-bgp] peer 10.3.1.1 label-route-capability check-tunnel-reachable
[*Core ASBR-bgp] quit
[*Core ASBR] commit

Step 6 Configure each AGG as an RR to help the CSG and MASG obtain the route
destined for each other's loopback interface.
# Configure the AGG.
[~AGG] bgp 100
[~AGG-bgp] peer 1.1.1.1 reflect-client
[*AGG-bgp] peer 1.1.1.1 next-hop-local
[*AGG-bgp] peer 3.3.3.3 reflect-client
[*AGG-bgp] peer 3.3.3.3 next-hop-local
[*AGG-bgp] quit
[*AGG] commit

Step 7 Configure a routing policy on each device to establish a BGP tunnel.


# Configure a routing policy for advertising routes matching Route-Policy
conditions to the CSG's BGP peer.
[~CSG] route-policy policy1 permit node 1
[*CSG-route-policy] apply mpls-label
[*CSG-route-policy] quit
[*CSG] bgp 100
[*CSG-bgp] peer 2.2.2.2 route-policy policy1 export
[*CSG-bgp] quit
[*CSG] commit

Repeat this step for the MASG. For configuration details, see Configuration Files
in this section.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 776


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

# Configure a routing policy for advertising routes matching Route-Policy


conditions to the AGG's BGP peer.
[~AGG] route-policy policy1 permit node 1
[*AGG-route-policy] if-match mpls-label
[*AGG-route-policy] apply mpls-label
[*AGG-route-policy] quit
[*AGG] bgp 100
[*AGG-bgp] peer 1.1.1.1 route-policy policy1 export
[*AGG-bgp] peer 3.3.3.3 route-policy policy1 export
[*AGG-bgp] quit
[*AGG] commit

Repeat this step for the AGG ASBR and core ASBR. For configuration details, see
Configuration Files in this section.
Step 8 Configure BFD for BGP tunnel.
# On the CSG, enable the MPLS capability to dynamically establish BGP BFD
sessions based on host addresses.
[~CSG] bfd
[*CSG-bfd] quit
[*CSG] mpls
[*CSG-mpls] mpls bgp bfd enable
[*CSG-mpls] mpls bgp bfd-trigger-tunnel host
[*CSG-mpls] quit
[*CSG] commit

# On the MASG, enable the MPLS capability of passively creating a BFD session.
[~MASG] bfd
[*MASG-bfd] mpls-passive
[*MASG-bfd] quit
[*MASG] commit

Step 9 Verify the configuration.


After completing the preceding configurations, run the display mpls bfd session
protocol bgp command on the CSG to view information about the BFD session
that monitors a BGP tunnel.
[~CSG] display mpls bfd session protocol bgp
-------------------------------------------------------------------------------
BFD Information: BGP TUNNEL
-------------------------------------------------------------------------------
FEC DISC OUT-IF NEXTHOP TUNNEL STATE
-------------------------------------------------------------------------------
5.5.5.5 16385 - -.-.-.- - Up

----End

Configuration Files
● CSG configuration file
#
sysname CSG
#
bfd
#
mpls lsr-id 1.1.1.1
#
mpls
mpls bgp bfd enable
mpls bgp bfd-trigger-Tunnel host
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 777


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack0
#
ipv4-family unicast
network 1.1.1.1 255.255.255.255
peer 2.2.2.2 enable
peer 2.2.2.2 route-policy policy1 export
peer 2.2.2.2 label-route-capability
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return
● AGG configuration file
#
sysname AGG
#
mpls lsr-id 2.2.2.2
#
mpls
#
mpls ldp
#
isis 1
network-entity 10.0001.0020.0200.2002.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.2.1.1 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
isis enable 1
#
bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack0
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack0
#
ipv4-family unicast
peer 1.1.1.1 enable
peer 1.1.1.1 route-policy policy1 export

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 778


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

peer 1.1.1.1 reflect-client


peer 1.1.1.1 next-hop-local
peer 1.1.1.1 label-route-capability
peer 3.3.3.3 enable
peer 3.3.3.3 route-policy policy1 export
peer 3.3.3.3 reflect-client
peer 3.3.3.3 next-hop-local
peer 3.3.3.3 label-route-capability
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.1.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return

● AGG ASBR configuration file


#
sysname AGG ASBR
#
mpls lsr-id 3.3.3.3
#
mpls
#
mpls ldp
#
isis 1
network-entity 10.0001.0030.0300.3003.00
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.2.1.2 255.255.255.0
isis enable 1
mpls
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.3.1.1 255.255.255.0
mpls
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
isis enable 1
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack0
peer 10.3.1.2 as-number 200
#
ipv4-family unicast
peer 2.2.2.2 enable
peer 2.2.2.2 route-policy policy1 export
peer 2.2.2.2 label-route-capability
peer 10.3.1.2 enable
peer 10.3.1.2 route-policy policy1 export
peer 10.3.1.2 label-route-capability check-tunnel-reachable
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return

● Core ASBR configuration file

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 779


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
sysname Core ASBR
#
mpls lsr-id 4.4.4.4
#
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ip address 10.3.1.2 255.255.255.0
mpls
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.1 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
bgp 200
peer 5.5.5.5 as-number 200
peer 5.5.5.5 connect-interface LoopBack0
peer 10.3.1.1 as-number 100
#
ipv4-family unicast
peer 5.5.5.5 enable
peer 5.5.5.5 route-policy policy1 export
peer 5.5.5.5 label-route-capability
peer 10.3.1.1 enable
peer 10.3.1.1 route-policy policy1 export
peer 10.3.1.1 label-route-capability check-tunnel-reachable
#
ospf 2
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.4.1.0 0.0.0.255
#
route-policy policy1 permit node 1
if-match mpls-label
apply mpls-label
#
return
● MASG configuration file
#
sysname MASG
#
bfd
mpls-passive
#
mpls lsr-id 5.5.5.5
#
mpls
#
mpls ldp
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 10.4.1.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack0
ip address 5.5.5.5 255.255.255.255
#
bgp 100

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 780


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

peer 4.4.4.4 as-number 200


peer 4.4.4.4 connect-interface LoopBack0
#
ipv4-family unicast
network 5.5.5.5 255.255.255.255
peer 4.4.4.4 enable
peer 4.4.4.4 route-policy policy1 export
peer 4.4.4.4 label-route-capability
#
ospf 2
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 10.4.1.0 0.0.0.255
#
route-policy policy1 permit node 1
apply mpls-label
#
return

1.1.6 GMPLS UNI Configuration


This document describes basic principles of Generalized Multiprotocol Label
Switching User-to-Network Interface (GMPLS UNI), configuration procedures, and
configuration examples of GMPLS UNI bidirectional tunnels based on Resource
Reservation Protocol-Technical Engineering (RSVP-TE).

1.1.6.1 Overview of GMPLS UNI


GMPLS UNI provides a unified control plane for an IP network and a transport
network, dramatically reducing carriers' costs and time on network upgrade,
capacity expansion, and service deployment.

Interconnection Between IP Networks and Transport Networks


To be specific, many User-Network Interfaces (UNIs) are statically configured
between IP networks and transport networks, but this configuration has many
drawbacks:
● Transmission channels between IP networks and transport networks need to
be configured manually, which is time consuming and increases carriers'
network construction cost.
● When a fault occurs and both the primary and secondary paths fail,
additional configurations are needed to restore services, increasing carriers'
network maintenance cost.
● Bandwidth cannot be dynamically adjusted because IP networks and transport
networks are interconnected based on static configurations. This defect will
waste abundant network resources and lead to unnecessary capacity
expansion.
The automatic UNI service deployment feature provided by Generalized
Multiprotocol Label Switching (GMPLS) properly solves the preceding problems.
GMPLS provides packet switching, wavelength switching, time division switching,
and spatial switching, supports multiple interconnection models between
transmission networks and IP networks, and truly implements an end-to-end
solution. GMPLS brings the following benefits:
● Simplified network management, intelligent service provisioning, flexible
transmission channel setup, and lower operational and maintenance cost

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 781


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● Abundant protection levels, enhanced network robustness based on an


effective protection recovery mechanism, and lower operational&maintenance
cost
● Flexible resource allocation policies, improved network resource usage, and
lower pressure on capacity expansion

GMPLS UNI
GMPLS is developed from MPLS so that it inherits nearly all MPLS features and
protocols. GMPLS also extends the definition of MPLS labels and it can be
considered as an extension of MPLS in transmission networks. GMPLS provides a
unified control plane for the IP layer and transport layer. In this manner, the
network architecture is simplified, the network management cost is reduced, and
the network performance is optimized.

The GMPLS User-Network Interface (UNI) is defined by IETF as a network


connection interface. It is applicable to the overlay model in the GMPLS network
structure and it meets the trend in network development.

1.1.6.2 Feature Requirements for GMPLS UNI

1.1.6.3 Configuring a GMPLS UNI Tunnel


An IP network user can configure a GMPLS UNI tunnel on an edge node for
interconnection between the IP network and a transport network, quickly
deploying new services and saving operation and maintenance costs.

Usage Scenario
GMPLS UNI tunneling technology is applicable to the following scenarios, as
shown in Table 1-27.

Table 1-27 Usage scenarios of GMPLS UNI tunneling technology

Scenario Description

Rapid service provisioning A GMPLS UNI tunneling technology is used to


between the IP and quickly deploy new services and implement
optical layers interconnection between an IP network and a
transport network when a new network is
constructed. GMPLS UNI tunnels carry various types
of IP or MPLS services.

SRLG information sharing After a GMPLS UNI tunnel is established to connect


between the IP and the IP layer to the optical layer, the ingress EN and
optical layers CN can advertise SRLG information at the optical
layer to all devices at the IP layer. In this situation,
when TE FRR or CR-LSP backup is configured at the
IP layer, the ingress can use the SRLG information
to calculate more accurate backup paths.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 782


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

NOTE

Some GMPLS UNI tunnel configurations need to be performed on edge devices on the
transport network. This document mainly describes tunnel configurations on IP network
devices. For tunnel configurations of transport network edge devices, see the related
configuration guide.

Pre-configuration Tasks
Before configuring a GMPLS UNI tunnel, complete the following tasks:
● Enable MPLS-TE and RSVP-TE globally on the ingress EN and egress EN.
● (Optional) Configure static routes to ensure that the out-of-band control
channel between an IP network and a transport network is reachable at the
network layer if the out-of-band mode is used to separate the data channel
from the control channel.
● (Optional) Enable EFM globally if the in-band mode is used to separate the
data channel from the control channel.

Configuration Procedures
Either of the following methods can be used to calculate paths for GMPLS UNI
tunnels:
● Independent path calculation at IP and optical layers
● PCE path calculation for a path crossing the IP and optical layers
Figure 1-70 illustrates path calculation processes using the preceding two
methods.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 783


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Figure 1-70 GMPLS UNI tunnel configuration

1.1.6.3.1 (Optional) Configuring PCE to Calculate a Path Crossing Both the IP and
Optical Layers
A specific path calculation mode must be planned for a GMPLS UNI tunnel.

Context
The NE9000 calculates a path for a GMPLS UNI tunnel in either of the following
modes:
● Independent path calculation at IP and optical layers
● PCE path calculation for a path crossing the IP and optical layers
The independent path calculation mode is enabled by default. PCE path
calculation can be configured to calculate a path crossing both the IP and optical
layers.

Procedure
Step 1 Configure the ingress EN to send a request to a PCE server to calculate a path
crossing both the IP and optical layers.
1. Run system-view

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 784


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

The system view is displayed.


2. Run mpls
The MPLS view is displayed.
3. Run mpls te pce inter-layer delegate
The ingress EN is configured to send a request to a PCE server to calculate a
path crossing both the IP and optical layers.
4. Run commit
The configuration is committed.
Step 2 Specify a candidate server for a PCE client.
Step 3 (Optional) Configure PCEP session authentication.
Step 4 (Optional) Configure timers for a PCE client.

----End

1.1.6.3.2 Configuring a Service Interface


On the NE9000, a logical GMPLS UNI is bound to a GMPLS UNI tunnel so that the
logical GMPLS UNI can transmit upper layer services, such as MPLS, IGP, and VPN
services, along the GMPLS UNI tunnel.

Context
Using logical GMPLS UNIs as service interfaces facilitates redundancy protection
for interfaces connecting the IP and optical layer devices. If a GMPLS UNI tunnel
bound to a logical GMPLS UNI fails, the logical GMPLS UNI automatically searches
for another available GMPLS UNI tunnel and switches traffic to the new tunnel,
which implements redundancy protection.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface gmpls-uni interface-number
A service interface is created, and the logical GMPLS UNI view is displayed.
Step 3 Run ip address ip-address { mask | mask-length }
An IP address is assigned to the interface.
Step 4 (Optional) Configure upper layer service applications, such as a static route, an
IGP, or MPLS.
The configuration procedure is similar to that on a physical interface. The
configuration details are not provided.
Step 5 Run commit
The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 785


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.6.3.3 Configuring LMP and an LMP Neighbor


LMP and an LMP neighbor are configured on an edge node on a transport
network and an IP network to manage the data and control channels and detect
link connectivity.

Context
GMPLS uses LMP to manage links of the control and data channels. LMP is
classified into the following types:
● Static LMP: LMP neighbors, control channels, and data channels are manually
configured, without exchanging LMP packets.
● Dynamic LMP: LMP neighbors, control channels, and data channels are all
automatically discovered, which minimizes configurations and speeds up
network deployment.
Currently, the NE9000 supports only static LMP. Perform the following steps to
configure LMP and a neighbor on an edge node:

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run lmp
The LMP view is displayed.
Step 3 Run peer name
An LMP neighbor is created, and its view is displayed.

NOTE

The neighbor of an IP network edge node is a transport network edge node that directly
connects to the IP network edge node. This means that LMP neighbor relationships are
created between the ingress EN and ingress CN, and between the egress EN and egress CN.

Step 4 Run lmp static


The working mode of an LMP neighbor is set to static LMP.
Step 5 Run node-id ip-address
An IP address is assigned to the LMP neighbor.
The ingress EN's LMP neighbor is the ingress CN on an optical network, and the
egress EN's LMP neighbor is the egress CN on the optical network. The ip-address
parameter is set to the node ID of the ingress CN or egress CN.
Step 6 Run te-link te-link-id
A TE-link is configured between the neighbors, and the TE-link view is displayed.
A TE-link is a bundle of data-links that directly connected LMP neighbors.
Step 7 Run link-id local ip local-ip-value

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 786


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

A local TE-link ID is set.

Step 8 Run link-id remote ip remote-ip-value

A remote TE-link ID is set.

Step 9 Run data-link interface { interface-name | interface-type interface-number }


local interface-id loccalIpAddr remote interface-id remoteIpAddr

A data-link is configured for the TE-link.

Step 10 Run commit

The configuration is committed.

----End

1.1.6.3.4 Configuring a Control Channel


A control channel is configured on the ingress EN and egress EN of a GMPLS UNI
tunnel to carry GMPLS UNI signaling packets and ensure the normal exchange of
GMPLS UNI signaling packets.

Context
A GMPLS UNI control channel carries control packets such as RSVP-TE signaling
packets. GMPLS, as an enhancement to MPLS, separates control and data
channels physically and uses LMP to manage and maintain control and data
channels. A fault in the control channel does not affect the data channel, which
implements uninterrupted service forwarding and improves the reliability of the
entire network.

The data and control channels are separated in either out-of-band or in-band
mode. Table 1-28 describes the comparison between the two modes.

Table 1-28 Comparison between in-band and out-of-band modes

Item In-band Control Out-of-Band Control


Channel Channel

Implementation Available internal 10 Mbit/s and 100


requirements communication Mbit/s out-of-band
overheads are required. Ethernet interfaces are
required. An independent
control channel network
must be set up based on
these interfaces.

Implementation mode Its implementation uses Static routes are


communication configured to ensure the
overheads of the data communication on the
channel and depends on out-of-band control
the EFM OAM function. channel network.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 787


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Item In-band Control Out-of-Band Control


Channel Channel

Maintainability Good maintainability: by Common maintainability:


sharing the same It uses an independent
physical links with the network to carry the
service plane. control plane data and
needs special
maintenance. The
maintainability of the
control channel is
determined by the
control channel network.

Independence Poor independence: It is Good independence: It is


not completely separated completely separated
from the service plane by from the service plane by
sharing the same using different physical
physical links with the links from the service
service plane. If the plane. A physical link
physical link goes Down, fault on the control
data transmission on plane does not affect
both the control and services on the service
service planes are plane.
affected.

The two separation modes have advantages of their own. Select one mode as
needed.

Procedure
● In-band mode
NOTE

In-band control channel configurations depend on the EFM OAM function. Enable
EFM OAM globally before performing the following steps.
a. Run system-view

The system view is displayed.


b. Run efm enable

EFM OAM is enabled globally.


c. Run interface interface-type interface-number

The view of an interface is displayed.


d. Run efm enable

EFM OAM is enabled on the interface.


e. (Optional) Run efm packet max-size size

The maximum size of an EFM OAMPDU is configured on the interface.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 788


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

f. Run lmp interface enable

An LMP interface is created. This interface functions as both data channel


interface and control channel interface.

NOTE

After the configuration is committed, the system automatically generates a


virtual LMP interface. Therefore, the in-band control channel interface is also
called LMP interface. The LMP interface number is the same as the
corresponding physical interface number, and the LMP interface automatically
borrows the address of the data channel interface. For example, after the lmp
interface enable command is run on GE 3/0/0, LMP 3/0/0 is automatically
generated and automatically borrows the IP address of GE 3/0/0.
g. Run commit

The configuration is committed.


● Out-of-band mode

In out-of-band mode, static routes are configured to ensure communication


on the out-of-band control channel network, and ensure routes between the
ingress EN and ingress CN and between the egress CN and egress EN are
reachable.

a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The view of the out-of-band control channel interface is displayed.


c. Run ip address ip-address { mask | mask-length }

An IP address is configured for the interface.


d. Run quit

Return to the system view.


e. Run ip route-static ip-address { mask | mask-length } { nexthop-address |
interface-type interface-number [ nexthop-address ] }
A static route that destines for an edge device on the transport network
is configured (the destination address of the route is the Node ID of the
edge device), and the IP address of the peer interface of the control
channel is specified as the next-hop address.
f. Run commit

The configuration is committed.

----End

1.1.6.3.5 Configuring an Explicit Path


GMPLS UNI cannot automatically discover paths between an IP network and a
transport network. To ensure successful GMPLS UNI establishment, configure an
explicit path on the ingress EN to traverse data channel interfaces on the ingress
EN, ingress CN, egress EN, and egress CN.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 789


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Context
Determine whether you need to configure an explicit path based on a tunnel
calculation mode:
● If paths are calculated separately at the IP and optical layers, configure an
explicit path.
● If PCE is used to calculate a patch across both the IP and optical layers, you
do not need to configure an explicit path. This is because PCE automatically
calculates a path for a tunnel.
A GMPLS UNI tunnel originates from the ingress EN. An explicit path must be
configured on the ingress EN for a GMPLS UNI tunnel.

NOTE

An explicit path for a GMPLS UNI tunnel, different from that for an MPLS TE tunnel, must
pass through only four data channel interfaces on the ingress EN, ingress CN, egress EN,
and egress CN.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run explicit-path path-name
An explicit path is created and the explicit path view is displayed.
Step 3 Run next hop ip-address
A next-hop address is specified for the explicit path.

NOTE

Perform Step 3 for four consecutive times to complete the configuration of the explicit path
for a GMPLS UNI tunnel.

Step 4 (Optional) Perform the following steps to modify the configured explicit path:
1. Run add hop ip-address1 { after | before } ip-address2
A node is added to the explicit path.
2. Run modify hop ip-address1 ip-address2
The address of a node is changed to the address of another existing node.
3. Run delete hop ip-address
A node is deleted from the explicit path.
Step 5 (Optional) Run list hop [ ip-address ]
Information about nodes on the explicit path is displayed.
Step 6 Run commit
The configuration is committed.

----End

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 790


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

1.1.6.3.6 Configuring a Forward GMPLS UNI Tunnel


A GMPLS UNI tunnel is unidirectional. A forward GMPLS UNI tunnel and a reverse
GMPLS UNI tunnel must be established to implement bidirectional traffic
transmission. The ingress EN initiates tunnel establishment requests containing
tunnel attributes. Therefore, basic tunnel attributes and functions must be
configured on the ingress EN.

Context
Forward and reverse UNI-LSPs are established for bidirectional GMPLS UNI tunnels
and have the same requirements on traffic engineering. A GMPLS UNI tunnel is
established using extended RSVP-TE. The ingress EN initiates tunnel establishment
requests containing tunnel attributes by sending Path messages. Therefore, tunnel
attributes and functions need to be configured on the ingress EN and do not need
to be configured on the egress EN for a reverse GMPLS UNI tunnel.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run gmpls-tunnel gmpls-tunnel-name
A GMPLS UNI tunnel is established, and the tunnel view is displayed.
Step 3 Run tunnel-id tunnel-id
The tunnel ID is configured.
Step 4 Run destination ip-address
A destination IP address is set for the GMPLS UNI tunnel. Generally, the LSR ID of
the sink C node is set as the destination IP address.
Step 5 Run bandwidth bw-value
The bandwidth is configured for the GMPLS UNI tunnel.
Step 6 Run explicit-path path-name
Explicit path constraints are configured.
Step 7 Run switch-type { dcsc | evpl }
A data switching type is set for a GMPLS UNI tunnel.
Step 8 Run bind interface interface-type interface-number
A GMPLS UNI tunnel interface is bound to a service interface.
Only a local GMPLS UNI can function as a service interface.
Step 9 (Optional) Run link protection-type unprotected
The link protection function is configured for the GMPLS UNI tunnel.
If PCE path calculation is configured, this command does not need to be run. This
is because the device forcibly sets the protection type to rerouting for PCE path
calculation.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 791


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Step 10 Run commit


The configuration is committed.

----End

1.1.6.3.7 Configuring a Reverse GMPLS UNI Tunnel


A GMPLS UNI tunnel is unidirectional. After a forward GMPLS UNI tunnel is
configured, a reverse GMPLS UNI tunnel must be configured on the egress EN.

Context
A GMPLS UNI tunnel is bound to the physical interface of the data channel to
carry data services on the ingress EN and egress EN. A GMPLS UNI tunnel is
established using extended RSVP-TE. The ingress EN initiates tunnel establishment
requests containing tunnel attributes by sending Path messages. Therefore, tunnel
attributes and functions need to be configured on the ingress EN and do not need
to be configured on the egress EN for a reverse GMPLS UNI tunnel. A reverse
GMPLS UNI tunnel only needs to be matched with its corresponding forward
GMPLS UNI tunnel and bound to the service bearer interface.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run gmpls-tunnel gmpls-tunnel-name
A GMPLS UNI tunnel is established, and the tunnel view is displayed.
Step 3 Run passive
The established tunnel is configured as a reverse GMPLS UNI tunnel.
Step 4 Run bind interface interface-type interface-number
A GMPLS UNI tunnel interface is bound to a service interface.
Only a local GMPLS UNI can function as a service interface.
Step 5 Run match-tunnel ingress-lsr-id ingress-lsr-id tunnel-id tunnel-id
The name and node ID of the ingress are configured for the forward GMPLS UNI
tunnel.
The ingress-lsr-id parameter is set to the LSR ID of the ingress EN. The tunnel-id
parameter is set to the forward tunnel ID.
Step 6 Run commit
The configuration is committed.

----End

Follow-up Procedure
After the preceding configurations are complete, a GMPLS UNI tunnel is
established, and the service bearer interface bound to the tunnel goes Up. IP and

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 792


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

MPLS services can be configured on the interface. Configurations are the same as
those of other interfaces that are not bound to the GMPLS UNI tunnel. Detailed
configuration procedures are not mentioned here.

1.1.6.3.8 Verifying the GMPLS UNI Tunnel Configuration


After configuring a GMPLS UNI tunnel, you can view information about the
GMPLS UNI tunnel and the tunnel status.

Prerequisites
A GMPLS UNI tunnel has been configured.

Procedure
● Run the display lmp peer command to check information about LMP
neighbors.
● Run the display explicit-path [ path-name ] [ verbose ] command to check
information about the configured explicit path.
● Run the display mpls te gmpls tunnel path [ path-name ] [ verbose ]
command to check GMPLS UNI tunnel path information.
● Run the display mpls te gmpls tunnel c-hop [ tunnel-name tunnel-name ]
[ lsp-id ingress-lsr-id egress-lsr-id tunnel-id lsp-id ] command to check
information about the calculated path for a GMPLS UNI tunnel.
● Run the display mpls gmpls lsp [ in-label in-label | incoming-interface
interface-type interface-number | lsr-role { egress | ingress } | out-label out-
label | outgoing-interface interface-type interface-number ] * [ verbose ]
command to check GMPLS UNI LSP information.
● Run the display mpls te gmpls tunnel [ name gmpls-tunnel-name ]
[ verbose ] command to check information about a GMPLS UNI tunnel.
● Run the display mpls te gmpls tunnel-interface [ name gmpls-tunnel-
name ] command to check information about GMPLS UNI tunnel interfaces
on the ingress EN and egress EN.

----End

1.1.6.4 Maintaining GMPLS UNI


This section describes how to clear GMPLS UNI information and debug GMPLS
UNI.

1.1.6.4.1 Disabling a GMPLS UNI Tunnel


Before you release bandwidth resources of an existing GMPLS UNI tunnel or
modify tunnel parameters, disable the GMPLS UNI tunnel on the ingress EN.

Context
To shut down an existing GMPLS UNI tunnel, run the shutdown command on the
ingress EN to release label and bandwidth resources assigned to the tunnel.
GMPLS UNI tunnel configurations, however, are kept.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 793


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

To start this tunnel again, run the undo shutdown command to re-establish the
tunnel based on the original configuration file. The path of the re-established UNI
LSP within a transport network may be different from the original one because
topology or bandwidth within a transport network may change.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run gmpls-tunnel gmpls-tunnel-name
The view of the established GMPLS UNI tunnel is displayed.
Step 3 Run shutdown
A GMPLS UNI tunnel is disabled.
Step 4 Run commit
The configuration is committed.

----End

1.1.6.4.2 Resetting a GMPLS UNI Tunnel


Resetting a GMPLS UNI tunnel can make tunnel configurations to take effect
immediately.

Context
If the path within a transport network is re-planned, and configurations on the
ingress EN do not change, you can run the following command to reset a GMPLS
UNI tunnel. UNI LSPs are re-established according to the new path.

Procedure
● Run the reset mpls te gmpls tunnel gmpls-tunnel-name command to reset a
GMPLS UNI tunnel.
----End

1.1.6.5 Configuration Examples for GMPLS UNI Tunnels


This section provides several examples for configuring GMPLS UNI tunnels.

1.1.6.5.1 Configuring an In-Band GMPLS UNI Tunnel


This section describes how to establish a GMPLS UNI tunnel using an in-band
control channel to connect an IP network to an optical network.

Networking Requirements
In Figure 1-71, PE1 and PE2 are IP devices, and NE1 and NE2 are optical transport
devices. A customer wants to establish a GMPLS UNI tunnel to connect the IP

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 794


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

network to the optical network. To efficiently use interfaces on devices, an in-band


control channel can be used to establish a GMPLS UNI tunnel.

Figure 1-71 In-band GMPLS UNI tunnel


NOTE

Interface 3 in this example represents GE 3/0/0.

Table 1-29 Interfaces and their IP addresses on each device

Devic Interface Name IP Address and Mask


e
Name

PE1 Loopback 0 1.1.1.1/32

GE 3/0/0 -
This interface is a link
interface of the TE-link
and does not need to be
assigned an IP address.

GMPLS-UNI1 10.2.1.1/30

NE1 Node ID 7.7.7.7/32

PE2 Loopback 0 2.2.2.2/32

GE 3/0/0 -
This interface is a link
interface of the TE-link
and does not need to be
assigned an IP address.

GMPLS-UNI1 10.2.1.2/30

NE2 Node ID 8.8.8.8/32

Configuration Notes
● Configurations on the ingress and the egress of the GMPLS UNI tunnel are
different.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 795


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

● In this example, configurations only of IP devices (PE1 and PE2) are described.
For configuration details about optical devices, see the configuration guide for
a specific optical device.

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure loopback interfaces and a GMPLS UNI service interface and assign
IP addresses to the interfaces.
2. Enable MPLS, MPLS TE, and MPLS RSVP-TE globally.
3. Configure LMP, a TE-link, and a data-link.
4. Configure an in-band control channel.
5. Configure an explicit path.
6. Configure a GMPLS UNI tunnel along the path PE1 -> PE2 to connect the IP
network to the transport network.

Data Preparation
To complete the configuration, you need the following data:

Table 1-30 Data to be prepared

Device Parameter Value


Name

PE1 Number of a GMPLS UNI 1


service interface

Name of a GMPLS UNI toPE2


tunnel

Tunnel ID 1

Data switching type dcsc

LMP peer ne1

TE-link Number: 1
Local interface ID: 192.168.1.1
Remote interface ID: 192.168.1.2

Explicit path Name: unipath


Hops:
1. 192.168.1.1
2. 192.168.1.2
3. 192.168.2.2
4. 192.168.2.1

PE2 Number of a GMPLS UNI 1


service interface

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 796


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Device Parameter Value


Name

Name of a GMPLS UNI toPE1


tunnel

LMP peer ne2

TE-link Number: 1
Local interface ID: 192.168.2.2
Remote interface ID: 192.168.2.1

Procedure
Step 1 Configure loopback interfaces and a GMPLS UNI service interface and assign IP
addresses to the interfaces.
# Configure PE1.
<PE1> system-view
[~PE1] interface LoopBack 0
[*PE1-LoopBack0] ip address 1.1.1.1 32
[*PE1-LoopBack0] quit
[*PE1] interface Gmpls-Uni 1
[*PE1-Gmpls-Uni1] ip address 10.2.1.1 255.255.255.252
[*PE1-Gmpls-Uni1] quit
[*PE1] commit

# Configure PE2.
<PE2> system-view
[~PE2] interface LoopBack 0
[*PE2-LoopBack0] ip address 2.2.2.2 32
[*PE2-LoopBack0] quit
[*PE2] interface Gmpls-Uni 1
[*PE2-Gmpls-Uni1] ip address 10.2.1.2 255.255.255.252
[*PE2-Gmpls-Uni1] quit
[*PE2] commit

Step 2 Enable MPLS, MPLS TE, and MPLS RSVP-TE globally.


# Configure PE1.
[~PE1] mpls lsr-id 1.1.1.1
[*PE1] mpls
[*PE1-mpls] mpls te
[*PE1-mpls] mpls rsvp-te
[*PE1-mpls] commit
[~PE1-mpls] quit

# Configure PE2.
[~PE2] mpls lsr-id 2.2.2.2
[*PE2] mpls
[*PE2-mpls] mpls te
[*PE2-mpls] mpls rsvp-te
[*PE2-mpls] commit
[~PE2-mpls] quit

Step 3 Configure LMP, a TE-link, and a data-link.


# Configure PE1.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 797


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~PE1] lmp
[*PE1-lmp] peer ne1
[*PE1-lmp-peer-ne1] lmp static
[*PE1-lmp-peer-ne1] node-id 7.7.7.7
[*PE1-lmp-peer-ne1] te-link 1
[*PE1-lmp-peer-ne1-te-link-1] link-id local ip 192.168.1.1
[*PE1-lmp-peer-ne1-te-link-1] link-id remote ip 192.168.1.2
[*PE1-lmp-peer-ne1-te-link-1] data-link interface GigabitEthernet3/0/0 local interface-id 192.168.1.1
remote interface-id 192.168.1.2
[*PE1-lmp-peer-ne1-te-link-1] commit
[~PE1-lmp-peer-ne1-te-link-1] quit
[~PE1-lmp-peer-ne1] quit
[~PE1-lmp] quit

# Configure PE2.
[~PE2] lmp
[*PE2-lmp] peer ne2
[*PE2-lmp-peer-ne2] lmp static
[*PE2-lmp-peer-ne2] node-id 8.8.8.8
[*PE2-lmp-peer-ne2] te-link 1
[*PE2-lmp-peer-ne2-te-link-1] link-id local ip 192.168.2.2
[*PE2-lmp-peer-ne2-te-link-1] link-id remote ip 192.168.2.1
[*PE2-lmp-peer-ne2-te-link-1] data-link interface GigabitEthernet3/0/0 local interface-id 192.168.2.2
remote interface-id 192.168.2.1
[*PE2-lmp-peer-ne2-te-link-1] commit
[~PE2-lmp-peer-ne2-te-link-1] quit
[~PE2-lmp-peer-ne2] quit
[~PE2-lmp] quit

Step 4 Configure an in-band control channel.


# Configure PE1.
[~PE1] efm enable
[*PE1] interface gigabitethernet3/0/0
[*PE1-GigabitEthernet3/0/0] efm enable
[*PE1-GigabitEthernet3/0/0] efm packet max-size 1518
[*PE1-GigabitEthernet3/0/0] lmp interface enable
[*PE1-GigabitEthernet3/0/0] quit

# Configure PE2.
[~PE2] efm enable
[*PE2] interface gigabitethernet3/0/0
[*PE2-GigabitEthernet3/0/0] efm enable
[*PE2-GigabitEthernet3/0/0] efm packet max-size 1518
[*PE2-GigabitEthernet3/0/0] lmp interface enable
[*PE2-GigabitEthernet3/0/0] quit

Step 5 Configure an explicit path.


# Configure the explicit path on the ingress EN (PE1). The explicit path must be a
strict four-hop path connecting ingress EN, ingress CN, egress CN, and egress EN.
# Configure PE1.
[~PE1] explicit-path unipath
[*PE1-explicit-path-unipath] next hop 192.168.1.1
[*PE1-explicit-path-unipath] next hop 192.168.1.2
[*PE1-explicit-path-unipath] next hop 192.168.2.1
[*PE1-explicit-path-unipath] next hop 192.168.2.2
[*PE1-explicit-path-unipath] commit
[~PE1-explicit-path-unipath] quit

Step 6 Configure forward and backward GMPLS UNI tunnels.


# Configure PE1.
[~PE1] gmpls-tunnel PE2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 798


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE1-gmpls-tunnel-PE2] bind interface Gmpls-Uni1


[*PE1-gmpls-tunnel-PE2] destination 2.2.2.2
[*PE1-gmpls-tunnel-PE2] explicit-path unipath
[*PE1-gmpls-tunnel-PE2] bandwidth 100000
[*PE1-gmpls-tunnel-PE2] tunnel-id 1
[*PE1-gmpls-tunnel-PE2] switch-type dcsc
[*PE1-gmpls-tunnel-PE2] commit
[~PE1-gmpls-tunnel-PE2] quit

# Configure PE2.
<PE2> system-view
[~PE2] gmpls-tunnel toPE1
[*PE2-gmpls-tunnel-toPE1] passive
[*PE2-gmpls-tunnel-toPE1] match-tunnel ingress-lsr-id 1.1.1.1 tunnel-id 1
[*PE2-gmpls-tunnel-toPE1] bind interface Gmpls-Uni1
[*PE2-gmpls-tunnel-toPE1] commit
[~PE2-gmpls-tunnel-toPE1] quit

Step 7 Verify the configuration.


After completing the preceding configuration, run the display mpls te gmpls
tunnel-interface command to view the status of the GMPLS UNI tunnel and the
protocol status of the service interface bound to the GMPLS UNI tunnel.
[~PE1] display mpls te gmpls tunnel-interface
Tunnel Name : toD
Tunnel State Desc : CR-LSP is Up
Session ID :1 FTid : 33
Ingress LSR ID : 1.1.1.1 Egress LSR ID: 2.2.2.2
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
Bandwidth(Kbit/sec) : 1000
Match Session ID : -
Passive : NO
Link Protect Type : REROUTE LSP Encoding Type : ETHERNET
Switch Type : DCSC Graceful Deleting : NO
Bind Interface : Gmpls-Uni1
Authentication : Disabled

Primary LSP ID : 1.1.1.1:43


LSP State : UP
Resv Style : SE Bandwidth(Kbit/sec) : 100000
Explicit Path Name : unipath

# After the tunnel goes Up, initiate a ping to the IP address of the service interface
bound to the tunnel. The ping is successful, which indicates that the IP and optical
networks have been successfully connected.
[~PE1] ping 10.2.1.2
PING 10.2.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.2.1.2: bytes=56 Sequence=1 ttl=255 time=6 ms
Reply from 10.2.1.2: bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 10.2.1.2: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 10.2.1.2: bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 10.2.1.2: bytes=56 Sequence=5 ttl=255 time=2 ms

--- 10.2.1.2 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/6 ms

----End

Configuration Files
● PE1 configuration file

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 799


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

#
sysname PE-1
#
efm enable
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path unipath
next hop 192.168.1.1
next hop 192.168.1.2
next hop 192.168.2.1
next hop 192.168.2.2
#
interface GigabitEthernet3/0/0
undo shutdown
lmp interface enable
efm enable
efm packet max-size 1518
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface Gmpls-Uni1
undo shutdown
ip address 10.2.1.1 255.255.255.252
#
lmp
peer ne1
lmp static
node-id 7.7.7.7
te-link 1
link-id local ip 192.168.1.1
link-id remote ip 192.168.1.2
data-link interface GigabitEthernet3/0/0 local interface-id 192.168.1.1 remote interface-id
192.168.1.2
#
gmpls-tunnel toPE2
destination 2.2.2.2
bind interface Gmpls-Uni1
switch-type dcsc
bandwidth 10000
explicit-path unipath
tunnel-id 1
#
return
● PE2 configuration file
#
sysname PE2
#
efm enable
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet3/0/0
undo shutdown
lmp interface enable
efm enable
efm packet max-size 1518
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 800


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface Gmpls-Uni1
undo shutdown
ip address 10.2.1.2 255.255.255.252
#
lmp
peer ne2
lmp static
node-id 8.8.8.8
te-link 1
link-id local ip 192.168.2.2
link-id remote ip 192.168.2.1
data-link interface GigabitEthernet3/0/0 local interface-id 192.168.2.2 remote interface-id
192.168.2.1
#
gmpls-tunnel toPE1
passive
bind interface Gmpls-Uni1
match-tunnel ingress-lsr-id 1.1.1.1 tunnel-id 1
#
return

1.1.6.5.2 Configuring an Out-of-Band GMPLS UNI Tunnel


This section describes how to establish a GMPLS UNI tunnel using an out-of-band
control channel to connect an IP network to an optical network.

Networking Requirements
In Figure 1-72, PE1 and PE2 are IP devices, and NE1 and NE2 are optical transport
devices. A customer wants to establish a GMPLS UNI tunnel to connect the IP
network to the optical network. Since devices have sufficient interfaces, an out-of-
bound control channel can be used to establish a GMPLS UNI tunnel.

Figure 1-72 Out-of-band GMPLS UNI tunnel


NOTE

Interface 3 in this example represents GE 3/0/0.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 801


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Table 1-31 Interfaces and their IP addresses on each device


Devi Interface Name IP Address and
ce Mask
Na
me

PE1 Loopback 0 1.1.1.1/32

GE 3/0/0 -
This interface is a link
interface of the TE-
link and does not
need to be assigned
an IP address.

GMPLS-UNI 1 10.2.1.1/30

GE 3/0/1 10.1.1.1/30

NE1 Node ID 7.7.7.7/32

Port 0 10.1.1.2/30

PE2 Loopback 0 2.2.2.2/32

GE 3/0/0 -
This interface is a link
interface of the TE-
link and does not
need to be assigned
an IP address.

GE 3/0/1 10.1.2.2/30

GMPLS-UNI 1 10.2.1.2/30

NE2 Node ID 8.8.8.8/32

Port 0 10.1.2.1/30

Configuration Notes
● Configurations on the ingress and the egress of the GMPLS UNI tunnel are
different.
● In this example, configurations only of IP devices (PE1 and PE2) are described.
For configuration details about optical devices, see the configuration guide for
a specific optical device.

Configuration Roadmap
The configuration roadmap is as follows:
1. Configure loopback interfaces and a GMPLS UNI service interface and assign
IP addresses to the interfaces.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 802


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

2. Enable MPLS, MPLS TE, and MPLS RSVP-TE globally.


3. Configure LMP, a TE-link, and a data-link.
4. Configure an out-of-band control channel.
5. Configure an explicit path.
6. Configure a GMPLS UNI tunnel along the path PE1 -> PE2 to connect the IP
network to the transport network.

Data Preparation
To complete the configuration, you need the following data:

Table 1-32 Data to be prepared

Device Parameter Value


Name

PE1 Number of a GMPLS UNI 1


service interface

Name of a GMPLS UNI toPE2


tunnel

Tunnel ID 1

Data switching type dcsc

LMP peer ne1

TE-link Number: 1
Local interface ID: 192.168.1.1
Remote interface ID: 192.168.1.2

Explicit path Name: unipath


Hops:
1. 192.168.1.1
2. 192.168.1.2
3. 192.168.2.2
4. 192.168.2.1

PE2 Number of a GMPLS UNI 1


service interface

Name of a GMPLS UNI toPE1


tunnel

LMP peer ne2

TE-link Number: 1
Local interface ID: 192.168.2.2
Remote interface ID: 192.168.2.1

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 803


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

Procedure
Step 1 Configure loopback interfaces and a GMPLS UNI service interface and assign IP
addresses to the interfaces.
# Configure PE1.
<PE1> system-view
[~PE1] interface LoopBack 0
[~PE1-LoopBack0] ip address 1.1.1.1 32
[*PE1-LoopBack0] quit
[*PE1] interface Gmpls-Uni 1
[*PE1-Gmpls-Uni1] ip address 10.2.1.1 255.255.255.252
[*PE1-Gmpls-Uni1] quit
[*PE1] commit

# Configure PE2.
<PE2> system-view
[~PE2] interface LoopBack 0
[~PE2-LoopBack0] ip address 2.2.2.2 32
[*PE2-LoopBack0] quit
[*PE2] interface Gmpls-Uni 1
[*PE2-Gmpls-Uni1] ip address 10.2.1.2 255.255.255.252
[*PE2-Gmpls-Uni1] quit
[*PE2] commit

Step 2 Enable MPLS, MPLS TE, and MPLS RSVP-TE globally.


# Configure PE1.
[~PE1] mpls lsr-id 1.1.1.1
[*PE1] mpls
[*PE1-mpls] mpls te
[*PE1-mpls] mpls rsvp-te
[*PE1-mpls] commit
[~PE1-mpls] quit

# Configure PE2.
[~PE2] mpls lsr-id 2.2.2.2
[*PE2] mpls
[*PE2-mpls] mpls te
[*PE2-mpls] mpls rsvp-te
[*PE2-mpls] commit
[~PE2-mpls] quit

Step 3 Configure LMP, a TE-link, and a data-link.


# Configure PE1.
[~PE1] lmp
[*PE1-lmp] peer ne1
[*PE1-lmp-peer-ne1] lmp static
[*PE1-lmp-peer-ne1] node-id 7.7.7.7
[*PE1-lmp-peer-ne1] te-link 1
[*PE1-lmp-peer-ne1-te-link-1] link-id local ip 192.168.1.1
[*PE1-lmp-peer-ne1-te-link-1] link-id remote ip 192.168.1.2
[*PE1-lmp-peer-ne1-te-link-1] data-link interface GigabitEthernet3/0/0 local interface-id 192.168.1.1
remote interface-id 192.168.1.2
[*PE1-lmp-peer-ne1-te-link-1] commit
[~PE1-lmp-peer-ne1-te-link-1] quit
[~PE1-lmp-peer-ne1] quit
[~PE1-lmp] quit

# Configure PE2.
[~PE2] lmp
[*PE2-lmp] peer ne2

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 804


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[*PE2-lmp-peer-ne2] lmp static


[*PE2-lmp-peer-ne2] node-id 8.8.8.8
[*PE2-lmp-peer-ne2] te-link 1
[*PE2-lmp-peer-ne2-te-link-1] link-id local ip 192.168.2.2
[*PE2-lmp-peer-ne2-te-link-1] link-id remote ip 192.168.2.1
[*PE2-lmp-peer-ne2-te-link-1] data-link interface GigabitEthernet3/0/0 local interface-id 192.168.2.2
remote interface-id 192.168.2.1
[*PE2-lmp-peer-ne2-te-link-1] commit
[~PE2-lmp-peer-ne2-te-link-1] quit
[~PE2-lmp-peer-ne2] quit
[~PE2-lmp] quit

Step 4 Configure an out-of-band control channel.


# Configure PE1.
[~PE1] ip route-static 7.7.7.7 32 10.1.1.2
[*PE1] commit

# Configure PE2.
[~PE2] ip route-static 8.8.8.8 32 10.1.2.1
[*PE2] commit

Step 5 Configure an explicit path.


# Configure the explicit path on the ingress EN (PE1). The explicit path must be a
strict four-hop path connecting ingress EN, ingress CN, egress CN, and egress EN.
# Configure PE1.
[~PE1] explicit-path unipath
[*PE1-explicit-path-unipath] next hop 192.168.1.1
[*PE1-explicit-path-unipath] next hop 192.168.1.2
[*PE1-explicit-path-unipath] next hop 192.168.2.1
[*PE1-explicit-path-unipath] next hop 192.168.2.2
[*PE1-explicit-path-unipath] commit
[~PE1-explicit-path-unipath] quit

Step 6 Configure forward and backward GMPLS UNI tunnels.


# Configure PE1.
[~PE1] gmpls-tunnel PE2
[*PE1-gmpls-tunnel-PE2] bind interface Gmpls-Uni1
[*PE1-gmpls-tunnel-PE2] destination 2.2.2.2
[*PE1-gmpls-tunnel-PE2] explicit-path unipath
[*PE1-gmpls-tunnel-PE2] bandwidth 100000
[*PE1-gmpls-tunnel-PE2] tunnel-id 1
[*PE1-gmpls-tunnel-PE2] switch-type dcsc
[*PE1-gmpls-tunnel-PE2] commit
[~PE1-gmpls-tunnel-PE2] quit

# Configure PE2.
<PE2> system-view
[~PE2] gmpls-tunnel toPE1
[*PE2-gmpls-tunnel-toPE1] passive
[*PE2-gmpls-tunnel-toPE1] match-tunnel ingress-lsr-id 1.1.1.1 tunnel-id 1
[*PE2-gmpls-tunnel-toPE1] bind interface Gmpls-Uni1
[*PE2-gmpls-tunnel-toPE1] commit
[~PE2-gmpls-tunnel-toPE1] quit

Step 7 Verify the configuration.


After completing the preceding configuration, run the display mpls te gmpls
tunnel-interface command to view the status of the GMPLS UNI tunnel and the
protocol status of the service interface bound to the GMPLS UNI tunnel.

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 805


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

[~PE1] display mpls te gmpls tunnel-interface


Tunnel Name : toD
Tunnel State Desc : CR-LSP is Up
Session ID :1 FTid : 33
Ingress LSR ID : 1.1.1.1 Egress LSR ID: 2.2.2.2
Admin State : UP Oper State : UP
Signaling Protocol : RSVP
Bandwidth(Kbit/sec) : 1000
Match Session ID : -
Passive : NO
Link Protect Type : REROUTE LSP Encoding Type : ETHERNET
Switch Type : DCSC Graceful Deleting : NO
Bind Interface : Gmpls-Uni1
Authentication : Disabled

Primary LSP ID : 1.1.1.1:43


LSP State : UP
Resv Style : SE Bandwidth(Kbit/sec) : 100000
Explicit Path Name : unipath

# After the tunnel goes Up, initiate a ping to the IP address of the service interface
bound to the tunnel. The ping is successful, which indicates that the IP and optical
networks have been successfully connected.
[~PE1] ping 10.2.1.2
PING 10.2.1.2: 56 data bytes, press CTRL_C to break
Reply from 10.2.1.2: bytes=56 Sequence=1 ttl=255 time=6 ms
Reply from 10.2.1.2: bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 10.2.1.2: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 10.2.1.2: bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 10.2.1.2: bytes=56 Sequence=5 ttl=255 time=2 ms

--- 10.2.1.2 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/2/6 ms

----End

Configuration Files
● PE1 configuration file
#
sysname PE1
#
mpls lsr-id 1.1.1.1
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path unipath
next hop 192.168.1.1
next hop 192.168.1.2
next hop 192.168.2.1
next hop 192.168.2.2
#
interface GigabitEthernet3/0/0
undo shutdown
#
interface GigabitEthernet3/0/1
undo shutdown
ip address 10.1.1.1 255.255.255.252
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 806


HUAWEI NetEngine9000
Configuration Guide 1 Configuration

interface Gmpls-Uni1
undo shutdown
ip address 10.2.1.1 255.255.255.252
#
lmp
peer ne1
lmp static
node-id 7.7.7.7
te-link 1
link-id local ip 192.168.1.1
link-id remote ip 192.168.1.2
data-link interface GigabitEthernet3/0/0 local interface-id 192.168.1.1 remote interface-id
192.168.1.2
#
ip route-static 7.7.7.7 255.255.255.255 10.1.1.2
#
gmpls-tunnel gmpls-tunnel toPE2
destination 2.2.2.2
bind interface Gmpls-Uni1
switch-type dcsc
bandwidth 1000
explicit-path unipath
tunnel-id 1
#
return

● PE2 configuration file


#
sysname PE2
#
mpls lsr-id 2.2.2.2
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface GigabitEthernet3/0/0
undo shutdown
#
interface GigabitEthernet3/0/1
undo shutdown
ip address 10.1.2.2 255.255.255.252
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface Gmpls-Uni1
undo shutdown
ip address 10.2.1.2 255.255.255.252
#
lmp
peer ne2
lmp static
node-id 8.8.8.8
te-link 1
link-id local ip 192.168.2.2
link-id remote ip 192.168.2.1
data-link interface GigabitEthernet3/0/0 local interface-id 192.168.2.2 remote interface-id
192.168.2.1
#
ip route-static 8.8.8.8 255.255.255.255 10.1.2.1
#
gmpls-tunnel toPE1
passive
bind interface Gmpls-Uni1
match-tunnel ingress-lsr-id 1.1.1.1 tunnel-id 1
#
return

Issue 01 (2023-09-30) Copyright © Huawei Technologies Co., Ltd. 807

You might also like