Usage Scenario
In MPLS network management, the ping lsp or tracert lsp command can be used for LSP detection.
If the LSP detection fails, 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 delete the existing statistics.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display lspv statistics
Total sent: 1329 packet(s)
Total received: 1329 packet(s)
MPLS echo request sent: 2 packet(s), received: 1327 packet(s)
MPLS echo reply sent: 1327 packet(s), received: 2 packet(s)
Dropped because MPLS and virtual cluster access disabled: 0 packet(s)
Item | Description |
---|---|
Total sent | Total number of sent MPLS Echo Request packets and MPLS Echo Reply packets. |
Total received | Total number of received MPLS Echo Request packets and MPLS Echo Reply packets. |
MPLS echo request sent, received | Total number of sent and received MPLS Echo Request packets. |
MPLS echo reply sent, received | Total number of sent and received MPLS Echo Reply packets. |
Dropped because MPLS and virtual cluster access disabled | Total number of MPLS Echo Request and MPLS Echo Reply packets dropped because MPLS and virtual cluster are not enabled on the inbound interface. |