05-Mpls Oam Commands

Embed Size (px)

DESCRIPTION

Mpls Oam Commands

Citation preview

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Table of Contents

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    i

    Table of Contents

    Chapter 1 MPLS OAM Configuration Commands ...................................................................... 1-1 1.1 MPLS OAM Configuration Commands.............................................................................. 1-1

    1.1.1 mpls oam................................................................................................................. 1-1 1.1.2 mpls oam ingress .................................................................................................... 1-2 1.1.3 mpls oam ingress enable ........................................................................................ 1-2 1.1.4 mpls oam egress..................................................................................................... 1-2 1.1.5 mpls oam egress enable ......................................................................................... 1-2 1.1.6 display mpls oam ingress........................................................................................ 1-2 1.1.7 display mpls oam egress......................................................................................... 1-2 1.1.8 display mpls oam ingress send-packet ................................................................... 1-2 1.1.9 display mpls oam ingress receive-packet ............................................................... 1-2 1.1.10 display mpls oam egress send-packet.................................................................. 1-2 1.1.11 display mpls oam egress receive-packet .............................................................. 1-2 1.1.12 reset mpls oam packet-statistics ingress .............................................................. 1-2 1.1.13 reset mpls oam packet-statistics egress ............................................................... 1-2 1.1.14 reset mpls oam packet-statistics slot .................................................................... 1-2 1.1.15 debugging mpls oam............................................................................................. 1-2

    1.2 MPLS Protection Group Configuration Commands........................................................... 1-2 1.2.1 debugging mpls protect-switch................................................................................ 1-2 1.2.2 display mpls protect-switch ..................................................................................... 1-2 1.2.3 mpls protect-switch ................................................................................................. 1-2 1.2.4 mpls protect-switch work-lsp ................................................................................... 1-2 1.2.5 static-lsp ingress...................................................................................................... 1-2

    1.3 MPLS LSP Ping Configuration Commands ....................................................................... 1-2 1.3.1 debugging mpls lspc ............................................................................................... 1-2 1.3.2 lsp ping .................................................................................................................... 1-2 1.3.3 lsp tracert................................................................................................................. 1-2

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-2 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1.1.2 mpls oam ingress

    Syntax

    mpls oam ingress lsp-name lsp-name lsp-id lsp-id [ type { cv | ffd [ frequency ffd-fre ] } ] [ backward-lsp { share | lsp-name rev-lsp-name } ]

    undo mpls oam ingress { all | lsp-name lsp-name }

    View

    System view

    Parameters

    lsp-name: Name of the static LSP, which is used for OAM configuration on the ingress node.

    lsp-id: ID of the static LSP, which is used for setting trail termination source identifier (TTSI).

    type: Specifies the type of OAM verification packet: connectivity verification (CV) or fast failure detection (FFD). By default, the packet type is CV.

    ffd-fre: Transmission frequency only specific to FFD packet, which defaults to 100ms.

    share: Sets the backward LSP to share LSP.

    rev-lsp-name: Name of the reverse static LSP. For a share backward LSP, the name is not specified.

    Description

    Use the mpls oam ingress command to configure OAM and modify OAM parameters for a specified static LSP.

    Use the undo mpls oam ingress command to remove the OAM instance of the specified LSP. If the all argument is specified, the system will clear all configurations on the ingress node.

    Note: The ingress node and the egress node should have the same backward LSP configuration: share or exclusive.

    Examples

    # Configure OAM on the ingress node.

    system view

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-1

    Chapter 1 MPLS OAM Configuration Commands

    Note: Currently, the Quidway S8500 series routing switches do not support the FFD mode.

    1.1 MPLS OAM Configuration Commands

    1.1.1 mpls oam

    Syntax

    mpls oam

    undo mpls oam

    View

    System view

    Parameters

    None

    Description

    Use the mpls oam command to enable OAM globally.

    Use the undo mpls oam command to disable OAM.

    When you execute the mpls oam command, the system will clear all the current OAM configurations. As a result, all OAM configuration query operations do not take effect.

    OAM instances can be configured only after the OAM function is enabled globally.

    By default, OAM is disabled.

    Examples

    # Enable OAM globally.

    system view

    [Quidway] mpls oam

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-3

    [Quidway] mpls oam ingress lsp-name pe1-pe2 lsp-id 1 type ffd backward-lsp

    lsp-name pe2-pe1

    1.1.3 mpls oam ingress enable

    Syntax

    mpls oam ingress enable { all | lsp-name lsp-name }

    undo mpls oam ingress enable { all | lsp-name lsp-name }

    View

    System view

    Parameters

    all: Specifies to verify all the OAM-enabled LSPs.

    lsp-name: Name of the OAM-enabled LSP to be verified.

    Description

    Use the mpls oam ingress enable command to enable the OAM verification function for a specified LSP or all LSPs on the ingress node. If OAM is disabled, the configuration of the LSP will be reserved, that is, OAM instance configured for the LSP will be retained.

    Use the undo mpls oam ingress enable command to disable the OAM verification function.

    By default, the OAM verification function is disabled.

    Examples

    # Enable the OAM verification function on the ingress node.

    system view

    [Quidway] mpls oam ingress enable lsp-name pe1-pe2

    1.1.4 mpls oam egress

    Syntax

    mpls oam egress lsp-name lsp-name lsr-id lsr-id lsp-id lsp-id [ type { cv | ffd [ frequency ffd-fre ] } ] [ backward-lsp rev-lsp-name [ private | share ] ]

    undo mpls oam egress { all | lsp-name lsp-name }

    View

    System view

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-4 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    Parameters

    lsp-name: Name of the static LSP, which is used for OAM configuration on the egress node.

    lsp-id: LSP ID of the egress node, which should be the same as that on the ingress node.

    lsr-id: LSR ID of the egress node, which should be the same as that on the ingress node.

    ffd-fre: Transmission frequency only specific to FFD packet, in the range of 50, 100, 200 and 500 (in ms). By default, it is 100 ms.

    rev-lsp-name: Name of the backward LSP to be bound.

    private: Specifies to use the reverse channel exclusively.

    share: Specifies to use the reverse channel with others.

    all: Clear all OAM configurations on the egress node.

    Description

    Use the mpls oam egress command to configure OAM for an LSP on the egress node.

    Use the undo mpls oam egress command to remove the configuration.

    Note: The detection frequency configured for the OAM instance on the egress node must be the same as on the ingress node.

    Examples

    # Configure OAM on the egress node.

    system view

    [Quidway] mpls oam egress pe1-pe2 lsr-id 3.3.3.3 lsp-id 2 ffd 50 backward-lsp

    pe2-pe1 private

    1.1.5 mpls oam egress enable

    Syntax

    mpls oam egress enable { all | lsp-name lsp-name }

    undo mpls oam egress enable { all | lsp-name lsp-name }

    View

    System view

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-5

    Parameters

    all: Specifies to verify all the OAM-enabled LSPs.

    lsp-name: Name of the OAM-enabled LSP to be verified.

    Description

    Use the mpls oam egress enable command to enable the OAM verification function for a specified LSP or all LSPs on the egress node.

    Use the undo mpls oam egress enable command to disable the OAM verification function.

    Examples

    # Enable and disable the OAM verification function on the egress node.

    system view

    [Quidway] mpls oam egress enable lsp-name pe1-pe2

    [Quidway] undo mpls oam egress enable lsp-name pe1-pe2

    1.1.6 display mpls oam ingress

    Syntax

    display mpls oam ingress { all | lsp-name lsp-name } [ verbose | slot slot-id ]

    View

    User view/system view/MPLS view

    Parameters

    all: Displays the current state and configuration information of all the OAM-enabled LSPs.

    lsp-name: Name of the specified LSP with OAM enabled.

    verbose: Displays detailed information, including enable state, OAM verification packet type, FFD packet transmission frequency, LSP ID, and defect state.

    Description

    Use the display mpls oam ingress command to display the current state and configuration information of a specified LSP or all LSPs with OAM enabled on the ingress node.

    By default, the system displays detailed information.

    Examples

    # Display detailed information of LSPs with OAM enabled on the ingress node.

    display mpls oam ingress all verbose

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-6 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    --------------------------------------------------------------------------

    Verbose information about the 1th oam at the ingress

    --------------------------------------------------------------------------

    lsp basic information: oam basic information:

    ------------------------------------------------------------------------

    Lsp-name : pe1-pe2 Oam-Index : 64

    Lsp signal status : Down Oam select board : 2

    Enable-state : Manual

    enable

    Lsp ingress lsr-id : 20.1.1.1 Ttsi/lsr-id : 20.1.1.1

    Ttsi/lsp-id : 1

    oam detect information: oam backward information:

    --------------------------------------------------------------------------

    Type : FFD Share attribute : Share

    Frequency : 100 ms Lsp-name : --

    Detect-state : Start Lsp-inLabel : --

    Defect-state : non-defect Lsp-state : --

    --------------------------------------------------------------------------

    Total Oam Num: 1

    Total Start Oam Num: 1

    Total Defect Oam Num: 0

    Table 1-1 Description on the fields of the display mpls oam ingress command

    Field Description

    lsp basic information LSP basic information

    Lsp-name Name of the LSP

    Lsp signal status State of the LSP

    Lsp ingress lsr-id Ingress LSR ID of the LSP

    oam basic information OAM basic information

    Oam-Index OAM index

    Oam select board Main process unit for processing OAM instances

    Enable-state Enable state of OAM instance

    Ttsi/lsr-id LSR ID in TTSI

    Ttsi/lsp-id LSP ID in TTSI

    oam detect information Information about OAM verification

    Type Packet type: CV/FFD/BDI

    Frequency Transmission frequency

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-7

    Field Description

    Detect-state Verification state: start/stop

    Defect-state Defect sate

    oam backward information Information about the backward LSP

    Share attribute Share attribute of the backward LSP: share or exclusive

    Lsp-name Name of the backward LSP

    Lsp-inLabel Ingress label of the backward LSP

    Lsp-state State of the backward LSP

    Total Oam Num Total number of OAM instances

    Total Start Oam Num Total number of OAM instances which verification starts

    Total Defect Oam Num Total number of OAM instances which have defects

    # Display the status and configuration information of LSPs with OAM enabled on slot 10 of the ingress node.

    display mpls oam ingress lsp-name 20.0.0.1_1 slot 10

    --------------------------------------------------------------------------

    ------

    Verbose information about the 1st OAM at ingress

    --------------------------------------------------------------------------

    ------

    lsp basic information: oam basic information:

    ---------------------------------------

    --------------------------------------

    Lsp-name : 20.0.0.1_1 Oam-Index : 2053

    Lsp signal status : Up Oam select board : 10

    Lsp ingress lsr-id : 20.0.0.5 Enable-state : Manual enable

    Ttsi/lsr-id : 20.0.0.5

    Ttsi/lsp-id : 4

    oam detect information: oam backward information:

    ---------------------------------------

    --------------------------------------

    Type : CV Share attribute : Private

    Frequency : 1 s Lsp-name : 20.0.0.511

    Detect-state : Start Lsp-inLabel : 3

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-8 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    Defect-state : No-defect Lsp-state : Up

    oam statistic information:

    ---------------------------------------

    Send cv-packet : 3039

    Send ffd-packet : 0

    Send autopro-packet : 0

    Receive bdi-packet : 2

    Table 1-2 Description on the fields of the display mpls oam ingress command

    Field Description

    lsp basic information LSP basic information

    Lsp-name Name of the LSP

    Lsp signal status State of the LSP

    Lsp ingress lsr-id Ingress LSR ID of the LSP

    oam basic information OAM basic information

    Oam-Index OAM index

    Oam select board Main process unit for processing OAM instances

    Enable-state State of the OAM instance

    Ttsi/lsr-id LSR ID in TTSI

    Ttsi/lsp-id LSP ID in TTSI

    oam detect information Information about OAM verification

    Type Packet type: CV/FFD/BDI

    Frequency Transmission frequency

    Detect-state Verification state: start/stop

    Defect-state Defect sate

    oam backward information Information about the backward LSP

    Share attribute Share attribute of the backward LSP: share or exclusive

    Lsp-name Name of the backward LSP

    Lsp-inLabel Ingress label of the backward LSP

    Lsp-state State of the backward LSP

    oam statistic information OAM statistics information

    Send cv-packet Number of cv-packets sent

    Send ffd-packet Number of ffd-packets sent

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-9

    Field Description

    Send autopro-packet Number of autopro-packet sent

    Receive bdi-packet Number of bdi-packets received

    1.1.7 display mpls oam egress

    Syntax

    display mpls oam egress { all | lsp-name lsp-name } [ verbose | slot slot-id ]

    View

    User view/system view/MPLS view

    Parameters

    all: Displays the current state and configuration information of all the OAM-enabled LSPs.

    lsp-name: Name of the specified LSP with OAM enabled.

    verbose: Displays detailed information, including enable state, OAM verification packet type, FFD packet transmission frequency, LSP ID, backward LSP name, backward LSP use mode.

    Description

    Use the display mpls oam egress command to display the current state and configuration information of a specified LSP or all LSPs with OAM enabled on the egress node.

    Examples

    # Display detailed information of LSPs with OAM enabled on the egress node.

    display mpls oam egress all verbose

    --------------------------------------------------------------------------

    Verbose information about the 1st OAM at egress

    --------------------------------------------------------------------------

    lsp basic information: oam basic information:

    --------------------------------------------------------------------------

    Lsp-name : pe1-pe2 Oam-Index : 1024

    Lsp signal status : Up Oam select board : 2

    Lsp incoming Label : 30 Enable-state : --

    Lsp ingress lsr-id : 20.1.1.1 Auto-protocol : Disable

    Auto-overtime (s) : 0

    Ttsi/lsr-id : 20.1.1.1

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-10 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    Ttsi/lsp-id : 1

    oam detect information: oam backward information:

    --------------------------------------------------------------------------

    Type : CV Share attribute : Share

    Frequency : 1 s Lsp-name : pe2-pe1

    Detect-state : Start Lsp-state : Down

    Defect-state : No-defect

    --------------------------------------------------------------------------

    Total Oam Num: 1

    Total Start Oam Num: 1

    Total Defect Oam Num: 0

    Table 1-3 Description on the fields of the display mpls oam egress command

    Field Description

    lsp basic information LSP basic information

    Lsp-name Name of the LSP

    Lsp signal status State of the LSP

    Lsp incoming Label Ingress label of the LSP

    Lsp ingress lsr-id Ingress LSR ID of the LSP

    oam basic information OAM basic information

    Oam-Index OAM index

    Oam select board Main process unit for processing OAM instances

    Enable-state Enable state of OAM instances

    Ttsi/lsr-id LSR ID in TTSI

    Ttsi/lsp-id LSP ID in TTSI

    oam detect information Information of OAM verification

    Type Packet type: CV/FFD

    Frequency Transmission frequency

    Detect-state Verification sate: start/stop

    Defect-state Defect state

    oam backward information Information about the backward LSP

    backward lsp name Name of the backward LSP

    Share attribute Share attribute of the backward LSP: share or exclusive

    Lsp-state State of the backward LSP

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-11

    Field Description

    Total Oam Num Total number of OAM instances

    Total Start Oam Num Total number of OAM instances which verification starts

    Total Defect Oam Num Total number of OAM instances which have defects

    # Display the status and configuration information of LSPs with OAM enabled on slot 10 of the egress node.

    display mpls oam egress lsp-name 20.0.0.5_0 slot 10

    --------------------------------------------------------------------------

    ------

    Verbose information about the 1st OAM at egress

    --------------------------------------------------------------------------

    ------

    lsp basic information: oam basic information:

    ---------------------------------------

    --------------------------------------

    Lsp-name : 20.0.0.5_0 Oam-Index : 2050

    Lsp signal status : Up Oam select board : 10

    Lsp incoming Label : 3 Enable-state : Manual enable

    Lsp ingress lsr-id : 20.0.0.2 Auto-protocol : Disable

    Auto-overtime (s) : 0

    Ttsi/lsr-id : 20.0.0.2

    Ttsi/lsp-id : 1

    oam detect information: oam backward information:

    ---------------------------------------

    --------------------------------------

    Type : CV Share attribute : Private

    Frequency : 1 s Lsp-name : 20.0.0.2_0

    Detect-state : Start Lsp-state : Up

    Defect-state : No-defect

    oam statistic information:

    ---------------------------------------

    Send bdi-packet : 381

    Receive cv-packet : 2704

    Receive ffd-packet : 0

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-12 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    Receive autopro-packet: 0

    Table 1-4 Description on the fields of the display mpls oam egress command

    Field Description

    lsp basic information LSP basic information

    Lsp-name Name of the LSP

    Lsp signal status State of the LSP

    Lsp incoming Label Ingress label of the LSP

    Lsp ingress lsr-id Ingress LSR ID of the LSP

    oam basic information OAM basic information

    Oam-Index OAM index

    Oam select board Main process unit for processing OAM instances

    Enable-state Enable state of OAM instances

    Ttsi/lsr-id LSR ID in TTSI

    Ttsi/lsp-id LSP ID in TTSI

    oam detect information Information of OAM verification

    Type Packet type: CV/FFD

    Frequency Transmission frequency

    Detect-state Verification sate: start/stop

    Defect-state Defect state

    oam backward information Information about the backward LSP

    backward lsp name Name of the backward LSP

    Share attribute Share attribute of the backward LSP: share or exclusive

    Lsp-state State of the backward LSP

    oam statistic information OAM statistics information

    Send bdi-packet t Number of cv-packets sent

    Receive cv-packet Number of ffd-packets received

    Receive ffd-packet Number of autopro-packets received

    Receive autopro-packet: Number of autopro-packets received

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-13

    1.1.8 display mpls oam ingress send-packet

    Syntax

    display mpls oam ingress send-packet { all | cv | ffd | ap-fdi | error } slot slot-id

    View

    Any view

    Parameters

    all: Displays all OAM packets sent from the ingress node.

    cv: Displays CV packets sent from the ingress node.

    ffd: Displays FFD packets sent from the ingress node.

    ap-fdi: Displays auto protocol packets sent from the ingress node.

    error: Displays wrong packets sent from the ingress node.

    slot-id: Number of the slot where the interface board resides.

    Description

    Use the display mpls oam ingress send-packet command to display the statistics of OAM packets sent from the ingress node.

    Examples

    # Display OAM packets sent from the ingress node.

    display mpls oam ingress send-packet all slot 2

    --------------------------------------------------------------------------

    CV Packet FFD Packet AP-FDI Packet Error Packet

    --------------------------------------------------------------------------

    4784 0 0 0

    Table 1-5 Description on the fields of display mpls oam ingress send-packet

    Field Description

    CV Packet Number of CV packets sent from the ingress node

    FFD Packet Number of FFD packets sent from the ingress node

    AP-FDI Packet Number of auto protocol FDI packets sent from the ingress node

    Error Packet Number of wrong packets sent from the ingress node

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-14 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1.1.9 display mpls oam ingress receive-packet

    Syntax

    display mpls oam ingress receive-packet { all | bdi | error } slot slot-id

    View

    User view/system view/MPLS view

    Parameters

    all: Displays all OAM packets received on the ingress node.

    bdi: Displays BDI packets received on the ingress node.

    error: Displays wrong packets received on the ingress node.

    slot-id: Number of the slot where the specified interface board resides.

    Description

    Use the display mpls oam ingress receive-packet command to display the statistics of OAM packets received on the ingress node.

    Examples

    # Display the statistics of OAM packets received on the ingress node.

    display mpls oam ingress receive-packet all slot 2

    --------------------------------------------------------------------------

    BDI Packet Error Packet

    --------------------------------------------------------------------------

    0

    Table 1-6 Description on the fields of display mpls oam ingress receive-packet

    Field Description

    BDI Packet Number of BDI packets received on the ingress node

    Error Packet Number of wrong packets received on the ingress node

    1.1.10 display mpls oam egress send-packet

    Syntax

    display mpls oam egress send-packet { all | cv | bdi | error } slot slot-id

    View

    Use view/system view/MPLS view

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-15

    Parameters

    all: Displays all OAM packets sent from the egress node.

    bdi: Displays BDI packets sent from the egress node.

    error: Displays wrong packets sent from the egress node.

    slot-id: Number of the slot where the specified interface board resides.

    Description

    Use the display mpls oam egress send-packet command to display the statistics of OAM packets sent from the egress node.

    Examples

    # Display OAM packets sent from the egress node.

    display mpls oam egress send-packet all slot 2

    --------------------------------------------------------------------------

    ------

    BDI Packet Error Packet

    --------------------------------------------------------------------------

    ------

    0

    Table 1-7 Description on the fields of display mpls oam egress send-packet

    Field Description

    BDI Packet Number of BDI packets sent from the egress node

    Error Packet Number of wrong packets sent from the egress node

    1.1.11 display mpls oam egress receive-packet

    Syntax

    display mpls oam egress receive-packet { all | cv | ffd | fdi | ap-fdi | error } slot slot-id

    View

    Any view

    Parameters

    all: Displays all OAM packets received on the egress node.

    cv: Displays CV packets received on the egress node.

    ffd: Displays FFD packets received on the egress node.

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-16 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    ap-fdi: Displays auto protocol FDI packets received on the egress node.

    error: Displays wrong packets received on the egress node.

    slot-id: Number of the slot where the specified interface board resides.

    Description

    Use the display mpls oam egress receive-packet command to display the statistics of OAM packets received on the egress node.

    Examples

    # Display the statistics of OAM packets received on the egress node.

    display mpls oam egress receive-packet all slot 2

    --------------------------------------------------------------------------

    CV Packet FFD Packet FDI Packet AP-FDI Packet Error Packet

    --------------------------------------------------------------------------

    3764 0 0 0 0

    Table 1-8 Description on the fields of display mpls oam egress receive-packet

    Field Description

    CV Packet Number of CV packets received on the egress node

    FFD Packet Number of FFD packets received on the egress node

    AP-FDI Packet Number of auto protocol FDI packets received on the egress node

    Error Packet Number of wrong packets received on the egress node

    1.1.12 reset mpls oam packet-statistics ingress

    Syntax

    reset mpls oam packet-statistics ingress { all | lsp-name lsp-name}

    View

    User view

    Parameters

    all: Specifies to clear the statistics of all OAM packets on the ingress node.

    lsp-name lsp-name: Specifies to clear the statistics of OAM packets for a specified LSP. lsp-name is the name of the specified LSP.

    Description

    Use the reset mpls oam packet-statistics ingress command to clear the statistics of all OAM packets or the OAM packets for a specified LSP on the ingress node.

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-17

    Examples

    # Clear the statistics of all OAM packets on the ingress node.

    reset mpls oam packet-statistics ingress all

    1.1.13 reset mpls oam packet-statistics egress

    Syntax

    reset mpls oam packet-statistics egress { all | lsp-name lsp-name}

    View

    User view

    Parameters

    all: Specifies to clear the statistics of all OAM packets on the egress node.

    lsp-name lsp-name: Specifies to clear the statistics of OAM packets for a specified LSP. lsp-name is the name of the specified LSP.

    Description

    Use the reset mpls oam packet-statistics egress command to clear the statistics of all OAM packets or the OAM packets for a specified LSP on the egress node.

    Examples

    # Clear the statistics of all OAM packets on the egress node.

    reset mpls oam packet-statistics egress all

    1.1.14 reset mpls oam packet-statistics slot

    Syntax

    reset mpls oam packet-statistics slot slot-id

    View

    User view

    Parameters

    slot-id: Number of the slot where the specified interface board resides.

    Description

    Use the reset mpls oam packet-statistics slot command to clear the statistics of OAM packets on the specified interface board.

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-18 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    Examples

    # Clear the statistics of OAM packets on the specified interface board in Slot 2.

    reset mpls oam packet-statistics slot 2

    1.1.15 debugging mpls oam

    Syntax

    debugging mpls oam { all | bdi | cv | decode | defect-detect | error | fdi | ffd | hsb | timer | main | packet | process}

    undo debugging mpls oam { all | bdi | cv | decode | defect-detect | error | fdi | ffd | hsb | timer | main | packet | process }

    View

    User view

    Parameters

    all: Enables all types of debugging.

    bdi: Displays debug messages related to BDI packets.

    cv: Displays debug messages related to CV packets.

    decode: Displays debug messages related to decode.

    defect-detect: Displays debugging information about defect verification.

    error: Displays debug messages related to wrong packets.

    fdi: Displays debug messages related to FDI packets.

    ffd: Displays debug messages related to FFD packets.

    hsb: Displays debug messages related to hot backup.

    timer: Displays debug messages related to timer.

    main: Displays debug messages related to main process unit.

    packet: Displays debug messages related to OAM packets.

    process: Displays debug messages related to debug process.

    Description

    Use the debugging mpls oam command to enable debugging for OAM.

    Use the undo command to disable debugging for OAM.

    Examples

    # Enable debugging for OAM.

    debugging mpls oam cv

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-19

    1.2 MPLS Protection Group Configuration Commands

    1.2.1 debugging mpls protect-switch

    Syntax

    debugging mpls protect-switch { all | error | process | timer }

    undo debugging mpls protect-switch

    View

    User view

    Parameters

    all: Enables all types of debugging.

    error: Displays debugging messages related to wrong packets.

    process: Displays debugging messages related to debug process.

    timer: Displays debugging messages related to timer.

    Description

    Use the debugging mpls protect-switch command to enable debugging for a protection groups.

    Use the undo debugging mpls protect-switch command to disable debugging for protection groups.

    Examples

    # Enable all types of debugging for protection groups.

    debugging mpls protect-switch all

    1.2.2 display mpls protect-switch

    Syntax

    display mpls protect-switch { all | protect-id } [ brief | verbose ]

    View

    System view

    Parameters

    protect-id: Specifies a protection group.

    all: Displays information about all protection groups.

    brief: Displays brief information.

    verbose: Displays detailed information.

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-20 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    Description

    Use the display mpls protect-switch command to display the information of the specified protection group, including ID and state of the primary LSP, ID and state of the secondary LSP, switch back mode, WTR time, Holdoff time, active LSP.

    Examples

    # Display information about the specified protection group.

    display mpls protect-switch 1 verbose

    --------------------------------------------------------------------------

    Protection-Switching Information

    --------------------------------------------------------------------------

    PG-ID : 16

    Working LSP : 12

    Working LSP Token : 0

    Working LSP User Plane Status : No-defect

    Working LSP Ctrl Plane Status : Up

    Protect LSP : 15

    Protect LSP Token : 4

    Protect LSP User Plane Status : No-defect

    Protect LSP Ctrl Plane Status : Up

    Switching Result : Working LSP

    Revertive Mode : Revertive

    Holdoff Time(unit 100ms) : 100

    Wait to Restore Time(unit 30s) : 60

    Current Command Priority : ----

    Table 1-9 Description on the fields of the display mpls protect-switch command

    Field Description

    PG-ID ID of the protection group

    Working LSP Primary LSP

    Working LSP Token Primary LSP Token

    Working LSP User Plane Status State of the user plane of the primary LSP

    Working LSP Ctrl Plane Status State of the control plane of the primary LSP

    Protect LSP Secondary LSP

    Protect LSP Token Secondary LSP Token

    Protect LSP User Plane Status State of the user plane of the secondary LSP

    Protect LSP Ctrl Plane Status State of the control plane of the secondary LSP

    Switching Result Protection switching results

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-21

    Field Description

    Revertive Mode Switch back mode: revertive or non-revertive

    Holdoff Time(unit 100ms) Protection switching delay at the step of 100ms

    Wait to Restore Time(unit 30s) Switch back time specific to revertive mode at the step of 30s

    Current Command Priority Priority of the current command

    1.2.3 mpls protect-switch

    Syntax

    mpls protect-switch manual { work-lsp | protect-lsp } protect-id

    View

    System view

    Parameters

    manual work-lsp: Manually switches data flows to the secondary LSP for transmission.

    manual protect-lsp: Manually switches data flows to the primary LSP for transmission.

    protect-id: Specifies a protection group.

    Description

    Use the mpls protect-switch command to run a protection switching command on the specified protection group.

    Examples

    # Run a protection switching command on the protection group pg1.

    system-view

    [Quidway] mpls protect-switch manual work-lsp pg1

    1.2.4 mpls protect-switch work-lsp

    Syntax

    mpls protect-switch protect-id work-lsp w-lsp-name protect-lsp p-lsp-name [ holdoff holdofftime ] [ mode revertive ] [ wtr wtrtime ]

    mpls protect-switch protect-id work-lsp w-lsp-name protect-lsp p-lsp-name [ holdoff holdofftime ] mode non-revertive

    undo mpls protect-switch protect-id

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-22 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    View

    System view

    Parameters

    protect-id: ID of the protection group.

    w-lsp-name: Name of the primary LSP.

    p-lsp-name: Name of the secondary LSP.

    holdofftime: Protection switching delay at the step of 100 ms. The default value is 0 ms and the maximum value is 10s.

    mode: Specifies a switch back mode (after the primary LSP recovered from a fault, data flows will switch from the secondary LSP back to the primary LSP): revertive or non-revertive. The default mode is non-revertive.

    wtrtime: Switch back time specific to revertive mode at the step of 30s. By default, it is 24 (12 min).

    Description

    Use the mpls protect-switch command to create a protection group.

    Use the undo mpls protect-switch command to delete a protection group.

    Note: In a protection group, the primary and secondary LSPs must have the same FEC, but different egress labels.

    Examples

    # Create a protection group.

    system-view

    [Quidway] mpls protect-switch 1 work-lsp pe1-pe2 protect-lsp pe1-pe3 holdoff

    3 mode revertive wtr 25

    1.2.5 static-lsp ingress

    Syntax

    static-lsp ingress lsp-name destination dest-addr { addr-mask | mask-length } nexthop next-hop-add } out-label out-label-value [ backup ]

    undo static-lsp ingress lsp-name

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-23

    View

    System view

    Parameters

    lsp-name: Name of the LSP.

    dest-addr: Destination IP address.

    addr-mask: Mask.

    mask-length: Mask length.

    next-hop-addr: IP address of the next hop.

    out-label-value: Egress label value.

    backup: Configures a secondary LSP.

    Description

    Use the static-lsp ingress command to configure a static LSP or a secondary static LSP.

    Use the undo static-lsp ingress command to remove the configuration.

    Note: The secondary static LSP only takes effect after the protection group is configured. If the protection group is not specified, no entry will be generated by the secondary static LSP.

    Examples

    # Configure a secondary static LSP.

    system-view

    [Quidway-mpls] static-lsp ingress pe1-pe2 destination 3.3.3.3 32 nexthop

    12.1.1.2 out-label 30 backup

    1.3 MPLS LSP Ping Configuration Commands

    1.3.1 debugging mpls lspc

    Syntax

    debugging mpls lspc { all | packet | error | event }

    undo debugging mpls lspc { all | packet | error | event }

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-24 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    View

    User view

    Parameters

    all: Enables all types of debugging for LSPC.

    packet: Enables debugging for LSPC packets.

    event: Enables debugging for LSPC events.

    error: Enables debugging for LSPC errors.

    Description

    Use the debugging mpls lspc command to enable debugging for MPLS lspc.

    Examples

    # Enable all types of debugging for MPLS lspc.

    debugging mpls lspc all

    1.3.2 lsp ping

    Syntax

    ping lsp [ [ -c count | -s packet-size | -t time-out | -h ttl-value | -v | -a source-ip | -exp exp-value | -m interval | -r reply-mode ]*] ipv4 dest-address dest-mask [ ip-address ]

    View

    Any view

    Parameters

    -c count: Number of Echo request packets sent.

    -s packet-size: Length of the sent packet, in byte.

    -t time-out: Time to wait for Echo response, in millisecond.

    -h ttl-value: TTL value of the sent Echo request packet.

    -v: Detailed information.

    -a source-ip: Source IP address of the sent Echo request packet.

    -exp exp-value: EXP value of the sent Echo request packet.

    -m interval: Interval to send the next packet, in millisecond.

    -r reply-mode: Response mode, in the range of 1 to 2, with 1 being no response and 2 being response with the IPv4/IPv6 UDP packet.

    ipv4 dest-address dest-mask: Destination IP address and mask of LDP IPv4 LSP.

  • Command Manual MPLS OAM Quidway S8500 Series Routing Switches Chapter 1 MPLS OAM Configuration Commands

    Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    1-25

    ip-address: Destination address in IP header of the MPLS Ping packet, with a prefix of 127/8.

    Description

    Use the ping lsp command to receive and send Echo request and response packets over an LSP. Its functions are similar to the common ping command. The difference is that the former command is executed on an LSP.

    Examples

    # Configure LSP ping.

    system-view

    [Quidway] ping lsp c 1000 s 2000 t 1000 ipv4 3.3.3.3 32 127.0.0.1

    1.3.3 lsp tracert

    Syntax

    tracert lsp [ [ -a source-ip | -t time-out | -h ttl-value | -exp exp-value | -r reply-mode ]*] ipv4 dest-address dest-mask [ ip-address ]

    View

    Any view

    Parameters

    -a source-ip: Source IP address of the sent Echo request packet.

    -t time-out: Time to wait Echo response packet, in millisecond.

    -h ttl-value: TTL value of the sent Echo request packet.

    -exp exp-value: EXP value of the sent Echo request packet.

    -r reply-mode: Response mode in the range of 1 to 2, with 1 being no response and 2 being response with the IPv4/IPv6 UDP packet.

    ipv4 dest-address dest-mask: Destination IP address and mask of LDP IPv4 LSP.

    ip-address: Destination address in IP header of the MPLS Ping packet, with a prefix of 127/8.

    Description

    Use the tracert lsp command to run Tracert function on the LSP.

    Its functions are similar to the common Tracert command. The difference is that the former command is executed on an LSP.

    Examples

    # Run Tracert on the LSP.

  • Chapter 1 MPLS OAM Configuration CommandsCommand Manual MPLS OAM

    Quidway S8500 Series Routing Switches

    1-26 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

    system-view

    [Quidway] tracert lsp a 1.1.1.1 t 100 ipv4 3.3.3.3 32 127.0.0.1

    Table of ContentsChapter 1 MPLS OAM Configuration Commands1.1 MPLS OAM Configuration Commands1.1.1 mpls oam1.1.2 mpls oam ingress1.1.3 mpls oam ingress enable1.1.4 mpls oam egress1.1.5 mpls oam egress enable1.1.6 display mpls oam ingress1.1.7 display mpls oam egress1.1.8 display mpls oam ingress send-packet1.1.9 display mpls oam ingress receive-packet1.1.10 display mpls oam egress send-packet1.1.11 display mpls oam egress receive-packet1.1.12 reset mpls oam packet-statistics ingress1.1.13 reset mpls oam packet-statistics egress1.1.14 reset mpls oam packet-statistics slot1.1.15 debugging mpls oam

    1.2 MPLS Protection Group Configuration Commands1.2.1 debugging mpls protect-switch1.2.2 display mpls protect-switch1.2.3 mpls protect-switch1.2.4 mpls protect-switch work-lsp1.2.5 static-lsp ingress

    1.3 MPLS LSP Ping Configuration Commands1.3.1 debugging mpls lspc1.3.2 lsp ping1.3.3 lsp tracert