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