Configuration Guide - MPLS(V600R003C00_02)

Embed Size (px)

Citation preview

  • 8/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    1/641

    HUAWEI NetEngine80E/40E Router

    V600R003C00

    Configuration Guide - MPLS

    Issue 02

    Date 2011-09-10

    HUAWEI TECHNOLOGIES CO., LTD.

  • 8/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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-LSPsis 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 Establishing 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 ClearingMPLS Statistics.........................................................................................................................12

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

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

    1.5 ConfigurationExamples...................................................................................................................................13

    1.5.1 Examplefor 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    7/641

  • 8/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 Configuring 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 Configuring 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 Example for Configuring Manual LDP FRR...................................................... ..............................145

    2.15.12 Example for Configuring LDP Auto FRR.........................................................................................151

    2.15.13 Example for Configuring Synchronization Between LDP and IGP..................................................159

    2.15.14 Example for Configuring Synchronization Between LDP and Static Routes........................... ........166

    2.15.15 Example for Configuring LDP GTSM..............................................................................................171

    2.15.16 Example for Configuring LDP GR....................................................................................................174

    3 MPLS TE Configuration...........................................................................................................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 Configuring the Egress of the Static CR-LSP.......................................................................................191

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

    3.3 Configuring aStatic 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 Configure 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 Configuring 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 RSVP 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 Configuring 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 Configuring 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 Checking the Configuration...............................................................................................................267

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

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

    3.15.2 Enabling 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 Enabling 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 Enabling 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 Configuring 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 Configuring 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 Enabling 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 Example for Configuring a DS-TE Tunnel in Non-IETF Mode (MAM)..........................................395

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

    3.26.13 Example for Switching the Non-IETF Mode to the IETF Mode.............................. .................... ....429

    3.26.14 Example for Configuring MPLS TE FRR.........................................................................................436

    3.26.15 Example for Configuring MPLS TE Auto FRR................................................................................447

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

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

    3.26.18 Example for Configuring Board Removal Protection.......................................................................470

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

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

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

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

    3.26.23 Example 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 Example for Advertising MPLS LSR IDs to Multiple OSPF Areas.................................................554

    3.26.30 Example for Configuring an Inter-Area Tunnel................................................................................559

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

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

    4.1.1 Overview 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 Configuring 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 Establishing 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 Configuring 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 ClearingMPLS 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 Configuring 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 Establishing 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    16/641

    1Static 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 Configuration Examples

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

    yourself withthe 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 mplscommand 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    19/641

    Procedure

    Step 1 Run:

    system-view

    The system view is displayed.

    Step 2 Run:

    mpls lsr-idlsr-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:

    interfaceinterface-typeinterface-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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 ingresslsp-namedestinationip-address{ mask-length| mask}{ nexthopnext-hop-address| outgoing-interfaceinterface-typeinterface-number}out-labelout-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 transitlsp-nameincoming-interfaceinterface-typeinterface-numberin-labelin-label{ nexthopnext-hop-address| outgoing-interfaceinterface-typeinterface-number} out-labelout-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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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 egresslsp-nameincoming-interfaceinterface-typeinterface-numberin-labelin-label[ lsridingress-lsr-idtunnel-idtunnel-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-addressmask-

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

    l Run the display mpls route-state[ vpn-instancevpn-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-lspcommand, 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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:bfdcfg-namebindstatic-lsplsp-name

    The BFD session is bound to the static LSP.

    Step 3 Configure the discriminators.

    l Run:

    discriminatorlocaldiscr-value

    The local discriminator is configured.

    l Or, run:

    discriminatorremotediscr-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 quitcommand to return to the system view.

    2. Run the mplscommand to globally enable MPLS and the enter the MPLS view.

    3. Run the mpls bfdmin-tx-intervalintervalcommand to adjust the minimum interval forthe 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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

    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 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 bfdmin-rx-intervalintervalcommand 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 bfddetect-multipliermultipliercommand to adjust the local BFD detection

    multiple.

    The default value is 3.

    6. Run the quitcommand to return to the system view.7. Run the bfdcfg-namecommand 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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    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-pstcommand 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:

    bfdcfg-namebindpeer-ippeer-ip[ vpn-instancevpn-instance-name][ interfaceinterface-typeinterface-number] [ source-ipsource-ip]

    l For the dynamic LSP, run:

    bfdcfg-namebindldp-lsppeer-ipip-addressnexthopip-address[ interfaceinterface-typeinterface-number]

    l For the static LSP, run:

    bfdcfg-namebindstatic-lsplsp-name

    l For MPLS TE, run:

    bfdcfg-namebindmpls-teinterfacetunnelinterface-number[ te-lsp]

    Step 3 Configure the discriminators.

    l Run:

    discriminatorlocaldiscr-value

    The local discriminator is configured.

    l Run:

    discriminatorremotediscr-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/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    26/641

    1. Run the quitcommand to return to the system view.

    2. Run the mplscommand to globally enable MPLS and the enter the MPLS view.

    3. Run the mpls bfdmin-tx-intervalintervalcommand 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 interval 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 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 bfdmin-rx-intervalintervalcommand 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 bfddetect-multipliermultipliercommand to adjust the local BFD detection

    multiple.

    The default value is 3.

    6. Run the quitcommand to return to the system view.

    7. Run the bfdcfg-namecommand to enter the BFD session view.

    Step 5 Run:commit

    The configuration is committed.

    ----End

    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.

    11

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-
  • 8/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    27/641

    1.3.5 Checking the Configuration

    After the configuration of detecting a static LSP through a static BFD session, you can view the

    BFD configuration, BFD session information, BFD statistics, and the status of the static LSP.

    Prerequisite

    The configurations of the static BFD for static LSP function are complete.

    Procedure

    l Run the display bfd configuration{ all| static} [ for-lsp] command to check the BFD

    configuration.

    l Run the display bfd session{all| static} [ for-lsp] command to check information about

    the BFD session.

    l Run the display bfd statistics session{ all| static} [ for-ip| for-lsp] command to checkinformation about BFD statistics.

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

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

    ----End

    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.4.1 Clearing MPLS Statistics

    By running the resetcommand, you can delete MPLS statistics.

    Context

    CAUTION

    MPLS statistics cannot be restored after being cleared. Therefore, confirm the action before you

    run the following commands.

    Procedure

    l Run the reset mpls statisticsinterface{ interface-typeinterface-number| all} command

    in the user view to clear the statistics of the MPLS interface.

    l Run the reset mpls statisticslsp{ lsp-name| all} command in the user view to clear LSP

    statistics.

    ----End

    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.

    12

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-
  • 8/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    28/641

    1.4.2 Checking the LSP Connectivity and Reachability

    By running the pingor tracertcommand, you can detect connectivity or reachability of an LSP.

    ContextYou can run the following commands in any view to perform MPLS ping and MPLS tracert.

    Procedure

    l Run:

    ping lsp[ -asource-ip| -ccount| -expexp-value| -httl-value| -m

    interval| -rreply-mode| -spacket-size| -ttime-out| -v] *ipdestination-addressmask-length[ ip-address] [ nexthopnexthop-address| draft6]

    MPLS ping is performed.

    If draft6is specified, the command is implemented according to draft-ietf-mpls-lsp-

    ping-06. By default, the command is implemented according to RFC4379.

    l Run:

    tracert lsp[ -asource-ip| -expexp-value| -httl-value| -rreply-mode| -

    ttime-out] *ipdestination-addressmask-length[ ip-address] [ nexthopnexthop-address| draft6]

    MPLS tracert is performed.

    If draft6is specified, the command is implemented according to draft-ietf-mpls-lsp-

    ping-06. By default, the command is implemented according to RFC 4379.

    ----End

    1.4.3 Enabling the Trap Function of LSP

    By configuring the trap function on an LSP, you can notify the NMS of the changes of the LSP

    status.

    Context

    Run the following commands in the system view to notify the Network Management System

    (NMS) of the LSP status change.

    By default, the trap function is disabled during the setup of the LDP LSP.

    Procedure

    l Run the snmp-agent trap suppress feature-name lsptrap-name{ mplsxcup|

    mplsxcdown} trap-intervaltrap-interval[ max-trap-numbermax-trap-number]

    command in the system view to enable the trap function for the LDP LSP and enable the

    debugging of excessive mplsxcup or mplsxcdown.

    ----End

    1.5 Configuration Examples

    The following sections provide several examples of the static LSP configurations. Familiarizeyourself with the configuration procedures against the networking diagram. Each configuration

    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.

    13

    http://-/?-http://-/?-http://-/?-http://-/?-
  • 8/11/2019 Configuration Guide - MPLS(V600R003C00_02)

    29/641

    example consists of the networking requirements, configuration precautions, configuration

    roadmap, configuration procedures, and configuration files.

    Follow-up Procedure

    NOTE

    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.

    1.5.1 Example for Configuring Static LSPs

    This section provides an example for configuring a static LSP.

    Networking Requirements

    As shown in Figure 1-1, the LSRs support MPLS and OSPF as an IGP running on the MPLS

    backbone network.

    Bidirectional static LSPs are set up between LSRA and LSRD. The LSP from LSRA to LSRD

    is LSRA -> LSRB -> LSRD; the LSP from LSRD to LSRA is LSRD -> LSRC -> LSRA.

    Figure 1-1Networking diagram of configuring static LSPs

    Loopback11.1.1.9/32

    Loopback13.3.3.9/32

    Loopback1

    2.2.2.9/32

    LSRA

    Loopback14.4.4.9/32

    LSRB

    LSRC

    LSRDPO

    S2/0/0

    10.3.1.1/30

    POS1

    /0/0

    10.1.1.2/30