Configuration Guide - MPLS(V600R003C00_02).pdf

Embed Size (px)

Citation preview

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    1/641

    HUAWEI NetEngine80E/40E Router 

    V600R003C00

    Configuration Guide - MPLS

    Issue 02

    Date 2011-09-10

    HUAWEI TECHNOLOGIES CO., LTD.

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    2/641

     

    Copyright © Huawei Technologies Co., Ltd. 2011. 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 the 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:   http://www.huawei.com

    Email:   [email protected]

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    i

    http://www.huawei.com/

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    3/641

    About This Document

    Purpose

    This document describes related MPLS configurations supported by the NE80E/40E, including

    the basic principle and configuration procedures of static LSPs, MPLS LDP, MPLS TE, MPLS

    features, and MPLS OAM, and provides related configuration examples. The appendixes listcommon glossary, and acronyms and abbreviations of MPLS.

    NOTE

    l This document takes interface numbers and link types of the NE40E-X8 as an example. In working

    situations, the actual interface numbers and link types may be different from those used in this

    document.

    l On NE80E/40E series excluding NE40E-X1 and NE40E-X2, line processing boards are called Line

    Processing Units (LPUs) and switching fabric boards are called Switching Fabric Units (SFUs). On

    the NE40E-X1 and NE40E-X2, there are no LPUs and SFUs, and NPUs implement the same functions

    of LPUs and SFUs to exchange and forward packets.

    Related Versions

    The following table lists the product versions related to this document.

    Product Name Version

    HUAWEI NetEngine80E/40E

    Router 

    V600R003C00

     

    Intended Audience

    The intended audience of this document is:

    l Data Configuration Engineer 

    l Commissioning Engineer 

    l  Network Monitoring Engineer 

    l System Maintenance Engineer 

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS About This Document

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    ii

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    4/641

    Symbol Conventions

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

    Symbol Description

    DANGER

    Alerts you to a high risk hazard that could, if not avoided,

    result in serious injury or death.

    WARNING

    Alerts you to a medium or low risk hazard that could, if 

    not avoided, result in moderate or minor injury.

    CAUTION

    Alerts you to a potentially hazardous situation that could,

    if not avoided, result in equipment damage, data loss,

     performance deterioration, or unanticipated results.

    TIP Provides a tip that may help you solve a problem or save

    time.

    NOTE Provides additional information to emphasize or 

    supplement important points in the main text.

     

    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 byvertical 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.

    & The parameter before the & sign can be repeated 1 to n times.

    # A line starting with the # sign is comments.

     

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS About This Document

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    iii

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    5/641

    Change History

    Changes between document issues are cumulative. The latest document issue contains all the

    changes made in previous issues.

    Changes in Issue 02 (2011-09-10)

    The second commercial release has the following updates.

    l MPLS TE Configuration

    – 3.17.3 (Optional) Configuring the Path Overlapping Function for Hot-standby

    CR-LSPs is added in this chapter to describe how to configure the path overlapping

    function. The path overlapping function can be configured for hot-standby CR-LSPs,

    allowing a hot-standby CR-LSP to use links of a primary CR-LSP. After the hot-standby

    CR-LSP is established, it can protect traffic on the primary CR-LSP.

    – The section Configuring a Timer for LDP FRR Protection is deleted because the timer 

    for LDP FRR protection is not supported.

    Changes in Issue 01 (2011-05-30)

    Initial commercial release.

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS About This Document

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    iv

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    6/641

    Contents

    About This Document.....................................................................................................................ii

    1 Static LSPs Configuration............................................................................................................1

    1.1 Introduction to Static LSPs.................................................................................................................................2

    1.1.1 Overview of Static LSPs............................................................................................................................21.1.2 Static LSPs Features Supported by the NE80E/40E.................................................................................2

    1.2 Configuring Static LSPs.....................................................................................................................................2

    1.2.1 Establishing the Configuration Task.........................................................................................................2

    1.2.2 Configuring the LSR ID............................................................................................................................3

    1.2.3 Enabling MPLS.........................................................................................................................................4

    1.2.4 Configuring the Ingress for a Static LSP...................................................................................................4

    1.2.5 Configuring the Transit for a Static LSP...................................................................................................5

    1.2.6 Configuring the Egress for a Static LSP....................................................................................................5

    1.2.7 Checking the Configuration.......................................................................................................................6

    1.3 Configuring Static BFD for Static LSP..............................................................................................................6

    1.3.1 Esta blishing the Configuration Task........................................................................................ .................7

    1.3.2 Enable Global BFD Capability..................................................................................................................7

    1.3.3 Configuring BFD with Specific Parameters on Ingress............................................................................8

    1.3.4 Configuring BFD with Specific Parameters on Egress...........................................................................10

    1.3.5 Checking the Configuration.....................................................................................................................12

    1.4 Maintaining Static LSPs...................................................................................................................................12

    1.4.1 Clearing MPLS Statistics.........................................................................................................................12

    1.4.2 Checking the LSP Connectivity and Reachability..................................................................................13

    1.4.3 Enabling the Trap Function of LSP.........................................................................................................13

    1.5 Configuration Examples...................................................................................................................................13

    1.5.1 Example for Configuring Static LSPs.....................................................................................................14

    1.5.2 Example for Configuring Static BFD for Static LSP..............................................................................21

    2 MPLS LDP Configuration..........................................................................................................28

    2.1 Introduction to MPLS LDP..............................................................................................................................30

    2.1.1 MPLS LDP Overview.............................................................................................................................30

    2.1.2 MPLS LDP Features Supported by the NE80E/40E...............................................................................30

    2.2 Configuring LDP Sessions...............................................................................................................................32

    2.2.1 Establishing the Configuration Task.......................................................................................................32

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    v

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    7/641

    2.2.2 Configuring the LSR ID..........................................................................................................................34

    2.2.3 Enabling MPLS.......................................................................................................................................35

    2.2.4 Enable Global MPLS LDP......................................................................................................................35

    2.2.5 (Optional) Configuring the LDP Dynamic Capability Announcement Function....................................36

    2.2.6 Configuring LDP Sessions......................................................................................................................37

    2.2.7 (Optional) Configuring LDP Transport Addresses.................................................................................38

    2.2.8 (Optional) Configuring LDP Timers.......................................................................................................39

    2.2.9 (Optional) Configuring LDP Authentication...........................................................................................44

    2.2.10 Checking the Configuration...................................................................................................................46

    2.3 Configuring LDP LSP......................................................................................................................................49

    2.3.1 Establishing the Configuration Task.......................................................................................................49

    2.3.2 Conf iguring LDP LSP.............................................................................................................................50

    2.3.3 (Optional) Configuring Label Advertisement Modes.............................................................................50

    2.3.4 (Optional) Configuring LDP to Automatically Trigger the Request in DoD Mode................................51

    2.3.5 (Optional) Configuring Loop Detection..................................................................................................52

    2.3.6 (Optional) Configuring LDP MTU Signaling.........................................................................................53

    2.3.7 (Optional) Configuring an Inbound LDP Policy.....................................................................................54

    2.3.8 (Optional) Configuring an Outbound LDP Policy..................................................................................55

    2.3.9 (Optional) Configuring the Policy of Triggering to Establish LSPs.......................................................57

    2.3.10 (Optional) Configuring the Policy of Establishing Transit LSPs..........................................................58

    2.3.11 Checking the Configuration...................................................................................................................58

    2.4 Configuring LDP Extension for Inter-Area LSP..............................................................................................59

    2.4.1 Establishing the Configuration Task.......................................................................................................592.4.2 Configuring LDP Extension for Inter-Area LSP.....................................................................................60

    2.4.3 Checking the Configuration.....................................................................................................................61

    2.5 Configuring the LDP Multi-Instance................................................................................................................61

    2.5.1 Establishing the Configuration Task.......................................................................................................61

    2.5.2 Configuring the LDP Multi-Instance.......................................................................................................62

    2.5.3 Checking the Configuration.....................................................................................................................63

    2.6 Configuring Static BFD for LDP LSP..............................................................................................................63

    2.6.1 Establishing the Configuration Task.......................................................................................................63

    2.6.2 Enabling Global BFD Capability............................................................................................................64

    2.6.3 Configuring BFD with Specific Parameters on Ingress..........................................................................64

    2.6.4 Configuring BFD with Specific Parameters on Egress...........................................................................66

    2.6.5 Checking the Configuration.....................................................................................................................68

    2.7 Configuring Dynamic BFD for LDP LSP........................................................................................................69

    2.7.1 Establishing the Configuration Task.......................................................................................................69

    2.7.2 Enabling Global BFD Capability............................................................................................................70

    2.7.3 Enabling MPLS to Establish BFD Session Dynamically........................................................................70

    2.7.4 Configuring the Triggering Policy of Dynamic BFD for LDP LSP........................................................71

    2.7.5 (Optional) Adjusting BFD Parameters....................................................................................................72

    2.7.6 Checking the Configuration.....................................................................................................................73

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    vi

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    8/641

    2.8 Configuring Manual LDP FRR........................................................................................................................74

    2.8.1 Establishing the Configuration Task.......................................................................................................75

    2.8.2 Enabling Manual LDP FRR....................................................................................................................75

    2.8.3 (Optional) Allowing BFD to Modify the PST.........................................................................................76

    2.8.4 Checking the Configuration.....................................................................................................................77

    2.9 Configuring LDP Auto FRR.............................................................................................................................77

    2.9.1 Establishing the Configuration Task.......................................................................................................77

    2.9.2 Enabling LDP Auto FRR.........................................................................................................................78

    2.9.3 Checking the Configuration.....................................................................................................................78

    2.10 Configuring Synchronization Between LDP and IGP....................................................................................79

    2.10.1 Establishing the Configuration Task.....................................................................................................79

    2.10.2 Enabling Synchronization Between LDP and IGP................................................................................80

    2.10.3 (Optional) Setting the Hold-down Timer Value....................................................................................81

    2.10.4 (Optional) Setting the Hold-max-cost Timer Value..............................................................................82

    2.10.5 (Optional) Setting the Delay Timer Value............................................................................................83

    2.10.6 Checking the Configuration...................................................................................................................84

    2.11 Configuring Synchronization Between LDP and Static Routes.....................................................................84

    2.11.1 Establishing the Configuration Task.....................................................................................................84

    2.11.2 Enabling Synchronization Between LDP and Static Routes.................................................................86

    2.11.3 (Optional) Setting a Hold-down Timer.................................................................................................87

    2.11.4 Checking the Configuration...................................................................................................................87

    2.12 Configur ing LDP GTSM................................................................................................................................88

    2.12.1 Establishing the Configuration Task.....................................................................................................882.12.2 Configuring LDP GTSM.......................................................................................................................89

    2.12.3 Checking the Configuration...................................................................................................................89

    2.13 Configur ing LDP GR......................................................................................................................................90

    2.13.1 Establishing the Configuration Task.....................................................................................................90

    2.13.2 Enabling LDP GR..................................................................................................................................91

    2.13.3 (Optional) Configuring GR Restarter Timer.........................................................................................92

    2.13.4 (Optional) Configuring the timer of GR Helper....................................................................................92

    2.13.5 Checking the Configuration...................................................................................................................93

    2.14 Maintaining MPLS LDP.................................................................................................................................93

    2.14.1 Resetting LDP........................................................................................................................................94

    2.14.2 Clearing MPLS Statistics.......................................................................................................................94

    2.14.3 Checking the LSP Connectivity and Reachability................................................................................95

    2.14.4 Enabling the Trap Function of LSP.......................................................................................................95

    2.15 Configuration Examples.................................................................................................................................95

    2.15.1 Example for Configuring Local LDP Sessions.....................................................................................96

    2.15.2 Example for Configuring Remote MPLS LDP Sessions.......................................................................99

    2.15.3 Example for Configuring LSPs by Using LDP...................................................................................103

    2.15.4 Example for Configuring LDP to Automatically Trigger a Request in DoD Mode...........................106

    2.15.5 Example for Configuring an Inbound LDP Policy..............................................................................113

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    vii

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    9/641

    2.15.6 Example for Configuring an Outbound LDP Policy...........................................................................118

    2.15.7 Example for Configuring Transit LSPs Through the Prefix List........................................................122

    2.15.8 Example for Configuring LDP Extension for Inter-Area LSP............................................................128

    2.15.9 Example for Configuring Static BFD for LDP LSP............................................................................135

    2.15.10 Example for Configuring Dynamic BFD for LDP LSP....................................................................141

    2.15.11 Exam ple for Configuring Manual LDP FRR...................................................... ..............................145

    2.15.12 Exam ple for Configuring LDP Auto FRR.........................................................................................151

    2.15.13 Exam ple for Configuring Synchronization Between LDP and IGP..................................................159

    2.15.14 Exam ple for Configuring Synchronization Between LDP and Static Routes........................... ........166

    2.15.15 Exam ple for Configuring LDP GTSM..............................................................................................171

    2.15.16 Exam ple for Configuring LDP GR....................................................................................................174

    3 MPLS TE Config uration...........................................................................................................180

    3.1 Introduction to MPLS TE...............................................................................................................................183

    3.1.1 MPLS TE Overview..............................................................................................................................183

    3.1.2 MPLS TE Features Supported by the NE80E/40E................................................................................183

    3.2 Configuring Static CR-LSP............................................................................................................................186

    3.2.1 Establishing the Configuration Task.....................................................................................................186

    3.2.2 Enabling MPLS TE...............................................................................................................................187

    3.2.3 (Optional) Configuring Link Bandwidth...............................................................................................188

    3.2.4 Configuring the MPLS TE Tunnel Interface.........................................................................................189

    3.2.5 Configuring the Ingress of the Static CR-LSP......................................................................................190

    3.2.6 Configuring the Transit of the Static CR-LSP.......................................................................................191

    3.2.7 Conf iguring the Egress of the Static CR-LSP.......................................................................................191

    3.2.8 Checking the Configuration...................................................................................................................192

    3.3 Configuring a Static Bidirectional Co-routed LSP.........................................................................................193

    3.3.1 Establishing the Configuration Task.....................................................................................................193

    3.3.2 Enabling MPLS TE...............................................................................................................................194

    3.3.3 (Optional) Configuring Link Bandwidth...............................................................................................195

    3.3.4 Configuring a Tunnel Interface on the Ingress......................................................................................195

    3.3.5 Configure the Ingress of a Static Bidirectional Co-routed LSP............................................................197

    3.3.6 Configure a Transit Node of a Static Bidirectional Co-routed LSP......................................................197

    3.3.7 Conf igure the Egress of a Static Bidirectional Co-routed LSP.............................................................1983.3.8 Configuring the Tunnel Interface on the Egress....................................................................................199

    3.3.9 Checking the Configuration...................................................................................................................199

    3.4 Configuring an RSVP-TE Tunnel..................................................................................................................200

    3.4.1 Establishing the Configuration Task.....................................................................................................200

    3.4.2 Enabling MPLS TE and RSVP-TE.......................................................................................................201

    3.4.3 (Optional) Configuring Link Bandwidth...............................................................................................202

    3.4.4 Configuring OSPF TE...........................................................................................................................203

    3.4.5 Configuring IS-IS TE............................................................................................................................204

    3.4.6 (Optional) Configuring an MPLS TE Explicit Path..............................................................................205

    3.4.7 Configuring the MPLS TE Tunnel Interface.........................................................................................206

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    viii

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    10/641

    3.4.8 Configuring Constraints for an MPLS TE Tunnel................................................................................207

    3.4.9 (Optional) Configuring RSVP Resource Reservation Style..................................................................208

    3.4.10 Configuring CSPF...............................................................................................................................209

    3.4.11 Checking the Configuration.................................................................................................................210

    3.5 Referencing the CR-LSP Attribute Template to Set Up a CR-LSP...............................................................211

    3.5.1 Establishing the Configuration Task.....................................................................................................212

    3.5.2 Configuring a CR-LSP Attribute Template...........................................................................................213

    3.5.3 Setting Up a CR-LSP by Using a CR-LSP Attribute Template............................................................215

    3.5.4 Checking the Configuration...................................................................................................................216

    3.6 Adjusting RSVP Signaling Parameters..........................................................................................................217

    3.6.1 Establishing the Configuration Task.....................................................................................................217

    3.6.2 Configuring RSVP Hello Extension......................................................................................................218

    3.6.3 Conf iguring RSVP Timers....................................................................................................................219

    3.6.4 Configuring RSVP Refresh Mechanism................................................................................................220

    3.6.5 Enabling Reservation Confirmation Mechanism..................................................................................221

    3.6.6 Checking the Configuration...................................................................................................................221

    3.7 Configuring R SVP Authentication.................................................................................................................222

    3.7.1 Establishing the Configuration Task.....................................................................................................222

    3.7.2 Configuring RSVP Key Authentication................................................................................................223

    3.7.3 (Optional) Configuring the RSVP Authentication Lifetime..................................................................225

    3.7.4 (Optional) Configuring the Handshake Function..................................................................................225

    3.7.5 (Optional) Configuring the Message Window Function.......................................................................226

    3.7.6 Checking the Configuration...................................................................................................................2283.8 Adjusting the Path of CR-LSP........................................................................................................................228

    3.8.1 Establishing the Configuration Task.....................................................................................................228

    3.8.2 Configuring Administrative Group and Affinity Property....................................................................230

    3.8.3 Configuring SRLG................................................................................................................................231

    3.8.4 Configuring CR-LSP Hop Limit...........................................................................................................232

    3.8.5 Configuring Metrics for Path Calculation.............................................................................................232

    3.8.6 Configuring Tie-Breaking of CSPF.......................................................................................................234

    3.8.7 Conf iguring Failed Link Timer.............................................................................................................234

    3.8.8 Configuring Loop Detection..................................................................................................................235

    3.8.9 Configuring Route Pinning....................................................................................................................236

    3.8.10 Checking the Configuration.................................................................................................................237

    3.9 Adjusting the Establishment of MPLS TE Tunnels.......................................................................................237

    3.9.1 Establishing the Configuration Task.....................................................................................................238

    3.9.2 Configuring the Tunnel Priority............................................................................................................238

    3.9.3 Conf iguring Re-optimization for CR-LSP............................................................................................239

    3.9.4 Configuring Tunnel Reestablishment Parameters.................................................................................240

    3.9.5 Configuring Route Record and Label Record.......................................................................................241

    3.9.6 Configuring the RSVP Signaling Delay-Trigger Function...................................................................241

    3.9.7 Checking the Configuration...................................................................................................................242

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    ix

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    11/641

    3.10 Adjusting the Traffic Forwarding of an MPLS TE Tunnel..........................................................................242

    3.10.1 Establishing the Configuration Task...................................................................................................242

    3.10.2 Configuring IGP Shortcut....................................................................................................................243

    3.10.3 Configuring Forwarding Adjacency....................................................................................................244

    3.10.4 Configuring Switching Delay and Deletion Delay..............................................................................245

    3.11 Adjusting Flooding Threshold of Bandwidth Change..................................................................................246

    3.11.1 Establishing the Configuration Task...................................................................................................246

    3.11.2 Configuring Flooding Threshold.........................................................................................................247

    3.12 Configuring Automatic Adjustment of the Tunnel Bandwidth....................................................................248

    3.12.1 Establishing the Configuration Task...................................................................................................248

    3.12.2 Configuring Auto Bandwidth Adjustment..........................................................................................249

    3.12.3 Checking the Configuration.................................................................................................................250

    3.13 Configuring the Limit Rate of MPLS TE Traffic.........................................................................................251

    3.13.1 Establishing the Configuration Task...................................................................................................251

    3.13.2 Configuring the Limit Rate of MPLS TE Traffic................................................................................252

    3.13.3 Checking the Configuration.................................................................................................................252

    3.14 Configuring DS-TE Tunnel..........................................................................................................................253

    3.14.1 Establishing the Configuration Task...................................................................................................253

    3.14.2 Configuring DS-TE Mode...................................................................................................................254

    3.14.3 Configuring DS-TE Bandwidth Constraints Model............................................................................256

    3.14.4 (Optional) Configuring TE-Class Mapping Table...............................................................................256

    3.14.5 Configuring Link Bandwidth...............................................................................................................258

    3.14.6 Configuring the Tunnel Interface........................................................................................................2593.14.7 Configuring the Static CR-LSP and the Bandwidth............................................................................261

    3.14.8 Configuring the RSVP CR-LSP and Its Bandwidth............................................................................262

    3.14.9 Configuring Mappings Between CTs and Flow Queues.....................................................................264

    3.14.10 (Optional) Configuring the Interface Class Queue............................................................................266

    3.14.11 Check ing the Configuration...............................................................................................................267

    3.15 Configuring MPLS TE FRR.........................................................................................................................268

    3.15.1 Establishing the Configuration Task...................................................................................................268

    3.15.2 Ena bling TE Fast Reroute....................................................................................................................269

    3.15.3 Configuring Bypass Tunnels...............................................................................................................270

    3.15.4 (Optional) Configuring the Scanning Timer for FRR.........................................................................272

    3.15.5 (Optional) Modifying PSB and RSB Timeout Multiplier...................................................................273

    3.15.6 Checking the Configuration.................................................................................................................273

    3.16 Configuring MPLS TE Auto FRR................................................................................................................274

    3.16.1 Establishing the Configuration Task...................................................................................................274

    3.16.2 Enabling the TE Auto FRR.................................................................................................................275

    3.16.3 Ena bling the TE FRR and Configuring the Auto Bypass Tunnel Attributes................. ................ .....276

    3.16.4 (Optional) Configuring the Scanning Timer for FRR.........................................................................277

    3.16.5 (Optional) Modifying PSB and RSB Timeout Multiplier...................................................................278

    3.16.6 Checking the Configuration.................................................................................................................278

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    x

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    12/641

    3.17 Configuring CR-LSP Backup.......................................................................................................................279

    3.17.1 Establishing the Configuration Task...................................................................................................279

    3.17.2 Configuring CR-LSP Backup..............................................................................................................280

    3.17.3 (Optional) Configuring the Path Overlapping Function for Hot-standby CR-LSPs...........................281

    3.17.4 (Optional) Locking an Attribute Template for Backup CR-LSPs.......................................................282

    3.17.5 (Optional) Configuring the Dynamic Bandwidth Function for a Hot-standby CR-LSP.....................283

    3.17.6 (Optional) Configuring a Best-Effort LSP..........................................................................................284

    3.17.7 Checking the Configuration.................................................................................................................285

    3.18 Configuring Synchronization of the Bypass Tunnel and the Backup CR-LSP............................................287

    3.18.1 Establishing the Configuration Task...................................................................................................287

    3.18.2 Enabling Synchronization of the Bypass Tunnel and the Backup CR-LSP........................................288

    3.18.3 Checking the Configuration.................................................................................................................289

    3.19 Configuring RSVP GR.................................................................................................................................289

    3.19.1 Establishing the Configuration Task...................................................................................................289

    3.19.2 Ena bling the RSVP Hello Extension Function....................................................................................290

    3.19.3 Enabling Full GR of RSVP.................................................................................................................291

    3.19.4 (Optional) Enabling the RSVP GR Support Function.........................................................................292

    3.19.5 (Optional) Configuring Hello Sessions Between RSVP GR Nodes....................................................292

    3.19.6 (Optional) Modifying Basic Time.......................................................................................................293

    3.19.7 Checking the Configuration.................................................................................................................294

    3.20 Configur ing Static BFD for CR-LSP............................................................................................................294

    3.20.1 Establishing the Configuration Task...................................................................................................294

    3.20.2 Enabling BFD Globally.......................................................................................................................2963.20.3 Configuring BFD Parameters on the Ingress of the Tunnel................................................................296

    3.20.4 Configuring BFD Parameters on the Egress of the Tunnel.................................................................297

    3.20.5 Checking the Configuration.................................................................................................................299

    3.21 Configur ing Static BFD for TE....................................................................................................................300

    3.21.1 Establishing the Configuration Task...................................................................................................300

    3.21.2 Enabling BFD Globally.......................................................................................................................301

    3.21.3 Configuring BFD Parameters on the Ingress of the Tunnel................................................................302

    3.21.4 Configuring BFD Parameters on the Egress of the Tunnel.................................................................303

    3.21.5 Checking the Configuration.................................................................................................................304

    3.22 Configuring Dynamic BFD for CR-LSP......................................................................................................306

    3.22.1 Establishing the Configuration Task...................................................................................................306

    3.22.2 Ena bling BFD Globally.......................................................................................................................307

    3.22.3 Enabling the Capability of Dynamically Creating BFD Sessions on the Ingress...............................307

    3.22.4 Enabling the Capability of Passively Creating BFD Sessions on the Egress......................................308

    3.22.5 (Optional) Adjusting BFD Parameters................................................................................................309

    3.22.6 Checking the Configuration.................................................................................................................310

    3.23 Configuring Dynamic BFD for RSVP..........................................................................................................311

    3.23.1 Establishing the Configuration Task...................................................................................................311

    3.23.2 Enabling BFD Globally.......................................................................................................................312

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    xi

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    13/641

    3.23.3 Enabling BFD for RSVP.....................................................................................................................313

    3.23.4 (Optional) Adjusting BFD Parameters................................................................................................314

    3.23.5 Checking the Configuration.................................................................................................................315

    3.24 Configuring LDP over TE............................................................................................................................316

    3.24.1 Establishing the Configuration Task...................................................................................................316

    3.24.2 Configuring Forwarding Adjacency....................................................................................................317

    3.24.3 Establishing LDP Remote Peers on the Two Ends of the TE Tunnel.................................................318

    3.24.4 (Optional) Configuring the Policy for Triggering the Establishment of an LSP.................................318

    3.24.5 Checking the Configuration.................................................................................................................319

    3.25 Maintaining MPLS TE.................................................................................................................................319

    3.25.1 Checking the Connectivity of the TE Tunnel......................................................................................319

    3.25.2 Checking a TE Tunnel By Using NQA...............................................................................................320

    3.25.3 Checking Information About Tunnel Faults........................................................................................320

    3.25.4 Clearing the Operation Information....................................................................................................320

    3.25.5 Resetting the Tunnel Interface.............................................................................................................321

    3.25.6 Resetting the RSVP Process................................................................................................................321

    3.25.7 Deleting or Resetting the Bypass Tunnel............................................................................................321

    3.25.8 Enabling the Trap Function of LSP.....................................................................................................322

    3.26 Configuration Examples...............................................................................................................................322

    3.26.1 Example for Establishing a Static MPLS TE Tunnel..........................................................................322

    3.26.2 Example for Configuring a Static Bidirectional Co-routed LSP.........................................................329

    3.26.3 Example for Configuring a 1:1 Tunnel Protection Group Over a Bidirectional LSP.........................334

    3.26.4 Example for Configuring RSVP-TE Tunnel.......................................................................................3413.26.5 Example for Setting Up a CR-LSP by Using the CR-LSP Attribute Template..................................349

    3.26.6 Example for Configuring RSVP Authentication.................................................................................357

    3.26.7 Example for Configuring Tunnel Properties.......................................................................................362

    3.26.8 Example for Configuring SRLG (TE Auto FRR)...............................................................................374

    3.26.9 Example for Configuring SRLG (Hot-standby)..................................................................................383

    3.26.10 Example for Configuring the Limit Rate for TE Tunnel Traffic.......................................................391

    3.26.11 Exam ple for Configuring a DS-TE Tunnel in Non-IETF Mode (MAM)..........................................395

    3.26.12 Exam ple for Configuring a DS-TE Tunnel in IETF Mode (RDM)...................................................410

    3.26.13 Exam ple for Switching the Non-IETF Mode to the IETF Mode.............................. .................... ....429

    3.26.14 Exam ple for Configuring MPLS TE FRR.........................................................................................436

    3.26.15 Exam ple for Configuring MPLS TE Auto FRR................................................................................447

    3.26.16 Exam ple for Configuring RSVP Key Authentication (RSVP-TE FRR)...........................................455

    3.26.17 Exam ple for Configuring RSVP-TE Summary Refresh (RSVP-TE FRR)............................... ........463

    3.26.18 Exam ple for Configuring Board Removal Protection.......................................................................470

    3.26.19 Example for Configuring CR-LSP Hot Standby...............................................................................478

    3.26.20 Exam ple for Locking an Attribute Template for Hot-standby CR-LSPs..........................................485

    3.26.21 Exam ple for Configuring the Dynamic Bandwidth Function for a Hot-standby CR-LSP................494

    3.26.22 Exam ple for Configuring Synchronization of the Bypass Tunnel and the Backup CR-LSP......... ...503

    3.26.23 Exam ple for Configuring RSVP GR....................................................................................... ..........510

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    xii

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    14/641

    3.26.24 Example for Configuring Static BFD for CR-LSP............................................................................517

    3.26.25 Example for Configuring Static BFD for TE....................................................................................522

    3.26.26 Example for Configuring Dynamic BFD for CR-LSP......................................................................531

    3.26.27 Example for Configuring Dynamic BFD for RSVP..........................................................................536

    3.26.28 Example for Configuring LDP over TE............................................................................................545

    3.26.29 Exam ple for Advertising MPLS LSR IDs to Multiple OSPF Areas.................................................554

    3.26.30 Exam ple for Configuring an Inter-Area Tunnel................................................................................559

    4 MPLS Common Configuration...............................................................................................569

    4.1 Introduction to MPLS Common Configuration..............................................................................................570

    4.1.1 Over view of MPLS Common Features.................................................................................................570

    4.1.2 MPLS Common Features Supported by the NE80E/40E......................................................................570

    4.2 Configuring the Mode in Which MPLS Handles the TTL.............................................................................570

    4.2.1 Establishing the Configuration Task.....................................................................................................571

    4.2.2 Configuring MPLS Uniform Mode.......................................................................................................572

    4.2.3 Conf iguring MPLS Pipe Mode..............................................................................................................572

    4.2.4 Configuring the Path Taken by ICMP Response Packets.....................................................................573

    4.3 Configuring the Load Balancing of MPLS Layer 3 Forwarding....................................................................574

    4.3.1 Esta blishing the Configuration Task................................................................................... ..................574

    4.3.2 Configuring Layer 3 MPLS Forwarding in UCMP Mode....................................................................574

    4.4 Optimizing MPLS...........................................................................................................................................575

    4.4.1 Establishing the Configuration Task.....................................................................................................575

    4.4.2 Conf iguring PHP...................................................................................................................................576

    4.4.3 Configuring the MPLS MTU of the Interface.......................................................................................5764.4.4 Configuring the Interval for Collecting MPLS Statistics......................................................................577

    4.4.5 Checking the Configuration...................................................................................................................578

    4.5 Maintaining MPLS Common Configuration..................................................................................................578

    4.5.1 Clearing MPLS Statistics.......................................................................................................................578

    4.5.2 Checking the LSP Connectivity and Reachability................................................................................578

    5 MPLS OAM Configuration.....................................................................................................580

    5.1 Introduction to MPLS OAM...........................................................................................................................581

    5.1.1 MPLS OAM Overview..........................................................................................................................581

    5.1.2 MPLS OAM Features Supported by the NE80E/40E...........................................................................5815.2 Configuring Basic MPLS OAM Functions of LSP........................................................................................584

    5.2.1 Establishing the Configuration Task.....................................................................................................584

    5.2.2 Configuring MPLS OAM on the Ingress..............................................................................................585

    5.2.3 Conf iguring MPLS OAM on the Egress...............................................................................................586

    5.2.4 Checking the Configuration...................................................................................................................588

    5.3 Configuring MPLS OAM Protection Switching of LSP................................................................................588

    5.3.1 Esta blishing the Configuration Task................................................................................... ..................589

    5.3.2 Configuring a Tunnel Protection Group................................................................................................590

    5.3.3 (Optional) Configuring the Protection Switching Trigger Mechanism.................................................592

    5.3.4 (Optional) Enabling MPLS OAM to Detect Bidirectional LSPs..........................................................592

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    xiii

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    15/641

    5.3.5 Checking the Configuration...................................................................................................................594

    5.4 Maintaining MPLS OAM...............................................................................................................................594

    5.4.1 Monitoring the Running of MPLS OAM..............................................................................................594

    5.4.2 Monitoring the Running of Protection Group.......................................................................................595

    5.5 Configuration Examples.................................................................................................................................595

    5.5.1 Example for Configuring MPLS OAM to Detect a Static LSP.............................................................595

    5.5.2 Example for Configuring MPLS OAM Protection Switching..............................................................603

    A Glossary......................................................................................................................................617

    B Acronyms and Abbreviations.................................................................................................623

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS Contents

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    xiv

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    16/641

    1 Static LSPs ConfigurationAbout This Chapter

    You can set up a static LSP by manually allocating labels to LSRs. The static LSP is applicable

    to stable and small-scale networks.

    1.1 Introduction to Static LSPs

    You need to allocate labels to LSRs in manual mode to set up a static LSP.

    1.2 Configuring Static LSPs

    A static LSP can be set up only after each LSR is manually configured.

    1.3 Configuring Static BFD for Static LSP

    By configuring static BFD for static LSPs, you can detect connectivity of static LSPs.

    1.4 Maintaining Static LSPs

    The operations of static LSP maintenance include deleting MPLS statistics, detecting

    connectivity or reachability of an LSP, and configuring the trap function on an LDP LSP.

    1.5 Configur ation Examples

    The following sections provide several examples of the static LSP configurations. Familiarize

    yourself with the configuration procedures against the networking diagram. Each configuration

    example consists of the networking requirements, configuration precautions, configuration

    roadmap, configuration procedures, and configuration files.

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    1

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    17/641

    1.1 Introduction to Static LSPsYou need to allocate labels to LSRs in manual mode to set up a static LSP.

    1.1.1 Overview of Static LSPs

    The static LSP cannot be set up through a label distribution protocol but can be set up by an

    administrator. The static LSP is applicable to a stable and small-scaled network with the simple

    topology.

    When configuring a static LSP, the administrator needs to manually allocate labels for each LSR 

     by following the rule that the value of the outgoing label of the previous node is equal to the

    value of the incoming label of the next node. Each LSR on the static LSP cannot sense the

    changes of other LSRs on the LSP. Therefore, the static LSP is a local concept.

    A static LSP is set up without using label distribution protocols, and does not need to exchangecontrol packets. Thus, the static LSP consumes few resources and is applicable to small-scale

    networks with simple and stable topology. The static LSP cannot vary with the network topology

    dynamically. The administrator needs to adjust the static LSP according to the network topology.

    1.1.2 Static LSPs Features Supported by the NE80E/40E

    Static LSPs features supported by the system include configuring Static LSPs and Static BFD

    for Static LSP.

    Static LSPs

    Static LSPs need to be configured manually by the administrator. Each LSR on the static LSP

    cannot sense the status of the entire LSP, because the static LSP is a local concept. A static LSP

    cannot vary with the change of a route dynamically. The administrator then needs to adjust the

    static LSP.

    Static BFD for Static LSPs

    The NE80E/40E supports static BFD for static LSPs. BFD is a bidirectional detection

    mechanism. When static BFD is applied to static LSPs which are unidirectional, the reverse links

    can be either IP links or static LSPs.

    1.2 Configuring Static LSPsA static LSP can be set up only after each LSR is manually configured.

    1.2.1 Establishing the Configuration Task

    Before configuring a static LSP, familiarize yourself with the applicable environment, complete

    the pre-configuration tasks, and obtain the required data. This can help you rapidly and correctly

    finish the configuration task.

    Applicable Environment

    A static LSP works normally only after all the LSRs along the LSP are configured.

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    2

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    18/641

    The setup of static LSPs does not require the label distribution protocol or exchange any control

     packet. Thus, the static LSPs consume little resources and are applicable to small-scale networks

    with simple and stable topology. The static LSPs cannot vary with the network topology

    dynamically. The administrator, therefore, needs to adjust the static LSPs according to the

    network topology.

    Static LSPs and static CR-LSPs share the same label space (16 - 1023).

    Static LSPs are used over the MPLS L2VPN.

    For information about the MPLS L2VPN configuration, refer to the HUAWEI NetEngine80E/

    40E Router Configuration Guide - VPN .

    Pre-configuration Tasks

    Before configuring static LSPs, complete the following tasks:

    l Configuring the static unicast route or an IGP to connect LSRs on the network layer 

    Data Preparation

    To configure static LSPs, you need the following data.

    No. Data

    1 Name of the static LSP

    2 Destination address and mask  

    3 Value of incoming label or outgoing label on each LSR 

    4 Next hop address or outgoing interface on the ingress

    5 Incoming interface, next hop address, or outgoing interface on the transit node

    6 Incoming interface on the egress

     

    1.2.2 Configuring the LSR ID

    Before enabling MPLS, you must configure LSR ID.

    Context

    When configuring an LSR ID, note the following:

    l The LSR ID must be configured before other MPLS commands are run.

    l The LSR ID does not have a default value, and must be configured manually.

    l It is recommended to use the address of the loopback interface of the LSR as the LSR ID.

    l To modify the configured LSR ID, you must run the undo mpls command in the system

    view to delete all the MPLS configurations.

    Do as follows on each LSR in an MPLS domain:

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    3

    http://-/?-http://-/?-

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    19/641

    Procedure

    Step 1 Run:

    system-view

    The system view is displayed.

    Step 2 Run:

     mpls lsr-id  lsr-id 

    The LSR ID of the local node is configured.

    lsr-id : It is in dotted decimal notation and identifies an LSR.

    ----End

    1.2.3 Enabling MPLS

    MPLS features can be configured only after MPLS is enabled.

    Context

    Do as follows on each LSR in an MPLS domain:

    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:

    interface interface-type interface-number 

    The interface to participate in MPLS forwarding is specified.

    Step 5 Run:

     mpls

    MPLS is enabled on the interface.

    ----End

    1.2.4 Configuring the Ingress for a Static LSP

    To set up a static LSP, you need to configure the ingress node in manual mode.

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    4

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    20/641

    Context

    Do as follows on the LSR to be configured as the ingress:

    ProcedureStep 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 LSR is configured as the ingress on the specified LSP.

    NOTE

    It is recommended to set up a static LSP by specifying a next hop. In addition, ensure that the local routing

    table contains the route entries, including the destination IP address and the IP address of the next hops,

    which exactly match the specified destination IP address and next hop address of the LSP to be set up.

    ----End

    1.2.5 Configuring the Transit for a Static LSP

    To set up a static LSP, you need to configure the transit node in manual mode.

    Context

    Do as follows on the LSR to be configured as a 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 LSR is configured as the transit node on the specified LSP.

    NOTE

    It is recommended to set up a static LSP by specifying a next hop. In addition, ensure that the local routing

    table contains the route entries, including the destination IP address and the IP address of the next hops,

    which exactly match the specified destination IP address and next hop address of the LSP to be set up.

    ----End

    1.2.6 Configuring the Egress for a Static LSP

    To set up a static LSP, you need to configure the egress node in manual mode.

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    5

    http://-/?-http://-/?-http://-/?-http://-/?-

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    21/641

    Context

    Do as follows on the LSR to be configured as the egress:

    ProcedureStep 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 [ lsrid  ingress-lsr-id  tunnel-id  tunnel-id  ]

    The LSR is configured as the egress on the specified LSP.

    ----End

    1.2.7 Checking the Configuration

    After a static LSP is set up, you can view that the static LSP is Up and the route status is Ready.

    Prerequisite

    The configurations of the static LSP function are complete.

    Procedure

    l Run the display mpls static-lsp [ lsp-name ] [ { include | exclude } ip-address mask-

    length ] [ verbose ] command to check the static LSP.

    l Run the display mpls route-state [ vpn-instance vpn-instance-name ] [ { exclude |

    include } { idle | ready | settingup } * | destination-address mask-length ] [ verbose ]

    command to check the LSP route on the ingress.

    ----End

    Example

    If the configurations succeed, run the preceding commands, and you can view as follows:

    l When the display mpls static-lsp command, information about the static LSP

    configuration is displayed, including the name of the static LSP, FEC, values of the

    incoming label and the outgoing label, and the incoming and outgoing interfaces. In

    addition, you can view that the status of the LSP is Up.

    display mpls static-lspTOTAL : 1 STATIC LSP(S)UP : 1 STATIC LSP(S)

    DOWN : 0 STATIC LSP(S)

     Name  FEC  I/O Label  I/O If  Statlsp1 3.3.3.9/32 NULL/100 -/GE1/0/0 Up

    1.3 Configuring Static BFD for Static LSP

    By configuring static BFD for static LSPs, you can detect connectivity of static LSPs.

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    6

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    22/641

    1.3.1 Establishing the Configuration Task

    Before configuring static BFD for static LSPs, familiarize yourself with the applicable

    environment, complete the pre-configuration tasks, and obtain the required data. This can help

    you rapidly and correctly finish the configuration task.

    Applicable Environment

    BFD is used to detect the connectivity of the static LSP that is established manually.

    NOTE

    When the static BFD works on the static LSP, the BFD session can be created for non-host routes.

    BFD for LSP can function properly though the forward path is an LSP and the backward path is an IP link.

    The forward path and the backward path must be established over the same link; otherwise, if a fault occurs,

    BFD cannot identify the faulty path. Before deploying BFD, ensure that the forward and backward paths

    are over the same link so that BFD can correctly identify the faulty path.

    Pre-configuration Tasks

    Before configuring static BFD for static LSP, complete the following tasks:

    l Configuring the static LSP

    NOTE

    For the static CR-LSP bound to an MPLS TE tunnel, the BFD is available after it is bound to the MPLS

    TE tunnel.

    Data PreparationsBefore configuring static BFD for a static LSP, you need the following data.

    No. Data

    1 Name of static LSP

    2 BFD configuration name

    3 Parameters of reverse channel

    l IP link: IP address of egress, outgoing interface (optional), and source IP address

    (optional)

    l Dynamic LSP: IP address of egress, address of next hop in LSP, and egress

    (optional)

    l Static LSP: LSP name

    l MPLS TE: number of an MPLS TE tunnel

    4 Local discriminator and remote discriminator of a BFD session

     

    1.3.2 Enable Global BFD Capability

    You can enable BFD globally on both ends of a link to be detected.

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    7

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    23/641

    Context

    Do as follows on each LSR at both ends of the link to be detected:

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.

    Step 2 Run: bfd 

    This node is enabled with the global BFD function. The BFD global view is displayed.

    ----End

    1.3.3 Configuring BFD with Specific Parameters on IngressTo detect a static LSP through a static BFD session, you need to configure BFD parameters on

    the ingress node of the static LSP.

    Context

    Do as follows on the ingress of the static LSP:

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run: bfd  cfg-name  bind  static-lsp lsp-name

    The BFD session is bound to the static LSP.

    Step 3 Configure the discriminators.

    l Run:

    discriminator local discr-value

    The local discriminator is configured.

    l Or, run:

    discriminator remote discr-value

    The remote discriminator is configured.

    Step 4 (Optional) Run the following commands to adjust the minimum interval for the local device tosend BFD packets, the minimum interval for receiving BFD packets and the local BFD detection

    multiple:

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

    2. Run the mpls command to globally enable MPLS and the enter the MPLS view.

    3. Run the mpls bfd min-tx-interval interval  command to adjust the minimum interval for the local device to send BFD packets.

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    8

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    24/641

    The minimum interval for the local device to send BFD packets is set.

    By default, the value is 1000 milliseconds.

    If the backward link is an IP link, this parameter is not applicable.

    Actual interval for the local device to send BFD packets = MAX { Locally configured

    interval for sending BFD packets, Remotely configured interval for receiving BFD

     packets}; Actual interval for the local to receive BFD packets = MAX {Remotely

    configur ed interval for sending BFD packets, Locally configured interval for receiving

    BFD packets}; Local detection period = Actual interval for the local device to Receive BFD

     packets x Remotely configured BFD detection multiple.

    For example, assume that the values of parameters are as follows:

    l On the local device, the interval for sending BFD packets is set to 200 ms, the interval

    for receiving BFD packets is set to 300 ms, and the detection multiple is set to 4.

    l On the peer device, the interval for sending BFD packets is 100 ms, the interval for 

    receiving BFD packets is 600 ms, and the detection multiple is 5.

    Then,

    l On the local device, the actual interval for sending BFD packets is 600 ms calculated

     by using the formula max {200 ms, 600 ms}, the interval for receiving BFD packets is

    300 ms calculated by using the formula max {100 ms, 300 ms}, and the detection period

    is 1500 ms calculated by 300 ms multiplied by 5.

    l On the peer device, the actual interval for sending local BFD packets is 300 ms obtained

     by using the formula max {100 ms, 300 ms}, the interval for receiving BFD packets is

    600 ms obtained by using the formula max {200 ms, 600 ms}, and the detection period

    is 2400 ms obtained by 600 ms multiplied by 4.

    4. Run the mpls bfd min-rx-interval interval  command to adjust the minimum interval for 

    receiving BFD packets.

    The minimum interval for receiving BFD packets is adjusted on the local device.

    By default, the value is 1000 milliseconds.

    If the backward link is an IP link, this parameter is not applicable.

    5. Run the mpls bfd detect-multiplier multiplier  command to adjust the local BFD detection

    multiple.

    The default value is 3.

    6. Run the quit command to return to the system view.7. Run the bfd cfg-name command to enter the BFD session view.

    Step 5 Run: process-pst

    BFD session is configured to change the interface status table.

    When the BFD session status changes, the static LSP status in the interface status table is

    modified.

    Step 6 Run:commit

    The configuration is committed.

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    9

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    25/641

    When configuring the BFD session of the static LSP, note the following:

    l When the static LSP status goes Up, a BFD session is renewed.

    l When the static LSP status goes Down, the BFD session becomes Down too.

    lWhen the static LSP is deleted, the session and configuration entries of BFD are deleted.

    ----End

    1.3.4 Configuring BFD with Specific Parameters on Egress

    To detect a static LSP through a static BFD session, you need to configure BFD parameters on

    the egress node of the static LSP.

    Context

    The IP link, LSP, or TE tunnel can be used as the reverse tunnel to inform the ingress of a fault.

    To avoid affecting BFD detection, an IP link is preferentially selected to inform the ingress of 

    an LSP fault. The process-pst command is prohibited when a reverse tunnel is configured. If 

    the configured reverse tunnel requires BFD detection, you can configure a pair of BFD sessions

    for it.

    Do as follows on the egress of the LSP:

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Configure BFD sessions:

    l For the IP link, run:

     bfd  cfg-name  bind   peer-ip  peer-ip [ vpn-instance vpn-instance-name ][ interface interface-type interface-number  ] [ source-ip source-ip ]

    l For the dynamic LSP, run:

     bfd  cfg-name  bind  ldp-lsp  peer-ip ip-address nexthop ip-address [ interface interface-type interface-number  ]

    l For the static LSP, run:

     bfd  cfg-name  bind  static-lsp lsp-name

    l For MPLS TE, run:

     bfd  cfg-name  bind   mpls-te interface tunnel interface-number  [ te-lsp ]

    Step 3 Configure the discriminators.

    l Run:

    discriminator local discr-value

    The local discriminator is configured.

    l Run:

    discriminator remote discr-value

    The remote discriminator is configured.

    Step 4 (Optional) Run the following commands to adjust the minimum interval for the local device to

    send BFD packets, the minimum interval for receiving BFD packets and the local BFD detectionmultiple:

    HUAWEI NetEngine80E/40E Router 

    Configuration Guide - MPLS 1 Static LSPs Configuration

    Issue 02 (2011-09-10) Huawei Proprietary and Confidential

    Copyright © Huawei Technologies Co., Ltd.

    10

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-

  • 8/18/2019 Configuration Guide - MPLS(V600R003C00_02).pdf

    26/641

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

    2. Run the mpls command to globally enable MPLS and the enter the MPLS view.

    3. Run the mpls bfd min-tx-interval interval  command to adjust the minimum interval for 

    the local device to send BFD packets.

    The minimum interval for the local device to send BFD packets is set.

    By default, the value is 1000 milliseconds.

    If the backward link is an IP link, this parameter is not applicable.

    Actual interval for the local device to send BFD packets = MAX { Locally configured

    interval for sending BFD packets, Remotely configured interval for receiving BFD

     packets}; Actual inter val for the local to receive BFD packets = MAX {Remotely

    configured interval for sending BFD packets, Locally configured interval for receiving

    BFD packets}; Local detection period = Actual interval for the local device to Receive BFD

     packets x Remotely configured BFD detection multiple.

    For example, assume that the values of parameters are as follows:

    l On the local device, the interval for sending BFD packets is set to 200 ms, the interval

    for receiving BFD packets is set to 300 ms, and the detection multiple is set to 4.

    l On the peer device, the interval for sending BFD packets is 100 ms, the interval for 

    receiving BFD packets is 600 ms, and th