Usage Scenario
In MPLS network management, the ping lsp or tracert lsp command can be used for LSP detection.
If the LSP detection fails, you can run the display lspv statistics command to view statistics about MPLS packets sent and received on the local device. If the number of MPLS packets that the local device sends is the same as the number of MPLS packets that the local device receives, but the ping or trace operation fails, the detection failure is caused by the fault of the local device, not the LSP.
Precautions
Before running the display lspv statistics command to collect LSPV statistics, run the reset lspv statistics command to clear the existing statistics.
# Display LSPV statistics on the device.
<HUAWEI> display lspv statistics
Total sent: 0 packet(s)
Total received: 0 packet(s)
MPLS echo request sent: 0 packet(s), received: 0 packet(s)
MPLS echo reply sent: 0 packet(s), received: 0 packet(s)
---------------------------------------------------------------------
Statistics base on ReturnCode:
0 - No return code,1 - Malformed echo request received,2 - One or more
of the TLVs was not understood,3 - Replying router is an egress for
the FEC at stack-depth, 4 - Replying router has no mapping for the FEC
at stack-depth,5 - Downstream Mapping Mismatch, 6 - Upstream Interface
Index Unknown, 7 - Reserved, 8 - Label switched at stack-depth,9 -
Label switched but no MPLS forwarding at stack-depth,10 - Mapping for
this FEC is not the given label at stack-depth,11 - No label entry at
stack-depth,12 - Protocol not associated with interface at FEC
stack-epth,13 - Premature termination of ping due to label stack
shrinking to a single label.:
---------------------------------------------------------------------
Value SendNum RecvNum Value SendNum RecvNum
0 0 0 1 0 0
2 0 0 3 0 0
4 0 0 5 0 0
6 0 0 7 0 0
8 0 0 9 0 0
10 0 0 11 0 0
12 0 0 13 0 0
---------------------------------------------------------------------
Item |
Description |
---|---|
Total sent |
Total number of sent MPLS Echo Request and MPLS Echo Reply packets |
Total received |
Total number of received MPLS Echo Request and MPLS Echo Reply packets |
MPLS echo request sent, received |
Number of sent and received MPLS Echo Request packets |
MPLS echo reply sent, received |
Number of sent and received MPLS Echo Reply packets |
Statistics base on ReturnCode |
Statistics base on ReturnCode:
|
Value |
The value of ReturnCode in sent or received LSP verification packets. |
SendNum |
Number of sent packets with this ReturnCode. |
RecvNum |
Number of received packets with this ReturnCode. |