< Home

label-type

Function

Using the label-type command, you can configure the label type.

Using the undo label-type command, you can cancel the operation of configuring the label type.

By default, the label type is control-word.

Format

label-type { control-word | { label-alert | normal } [ no-control-word ] }

undo label-type

Parameters

Parameter Description Value
control-word Indicates that the control word option is encapsulated in MPLS Echo Request packets. -
label-alert Indicates that the router alert option is encapsulated in MPLS Echo Request packets. -
normal Indicates that neither control words nor router alert options are encapsulated in MPLS Echo Request packets. -
no-control-word Indicates that the control word option is not encapsulated in MPLS Echo Request packets. This parameter can be used in NQA PWE3 ping and NQA PWE3 trace tests. -

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The usage scenarios of the label types are as follows:

  • control-word:

    • If the encapsulation type is set to control-word, at a switch node on a multi-hop PW, the MPLS Echo Request packets are not delivered to the CPU for processing until the TTL of the label times out. In this case, the source obtains little PW information. This type, however, ensures system performance and the source cannot learn information on the downstream interfaces of the switch node. You should use this type when there are a great number of packets.

    • Only control-word is supported when the vc-type is BGP and lsp-version is draft6.
  • label-alert:

    • If the encapsulation type is set to label-alert, at a switch node on a multi-hop PW, the MPLS Echo Request packets are delivered to the CPU for processing. In this case, the source can obtain more PW information. The system performance is greatly affected when there are a great number of packets. You can use this type to obtain details about the switch node when test instances are few.

    • Only control-word or label-alert is supported when the vc-type is BGP and lsp-version is rfc4379.
  • In the case that a device communicates with Huawei devices running earlier versions and the label alert or normal mode is adopted, the no-control-word option must be carried in the test packets.

  • normal is unsupported when the lsp-version is draft6.

Prerequisites

Before running the label-type command, you must set the test type to PWE3 Trace or PWE3 Ping in the NQA view; otherwise, label-type cannot be specified.

Precautions

The label-type value must be the same as the local VCCV value in the display mpls l2vc command output; otherwise, the test may fail.

Example

# Configure the encapsulation type of test packets as label-alert in the NQA view.

<HUAWEI> system-view
[HUAWEI] nqa test-instance admin pwe3
[HUAWEI-nqa-admin-pwe3] test-type pwe3trace
[HUAWEI-nqa-admin-pwe3] label-type label-alert
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >