Checking the LSP Connectivity
Context
In MPLS, the control panel used for setting up an LSP cannot detect data forwarding failures on the LSP. This makes network maintenance difficult.
MPLS ping checks LSP connectivity, and MPLS traceroute locates network faults in addition to checking LSP connectivity.
MPLS ping and MPLS traceroute can be performed in any view.
Procedure
(Optional) Run the lspv mpls-lsp-ping cpu-defend cpu-defend command to set an upper limit for the rate of sending MPLS echo request packets to the main control board.
(Optional) Run the lspv echo-reply compitable fec enable command to enable the device to respond to MPLS echo request packets with MPLS echo reply packets that do not carry FEC information.
If the device interworks with a non-Huawei device, perform the preceding step.
Run the ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m interval | -r reply-mode | -s packet-size | -t time-out | -v | -g ] * ip destination-iphost mask-length [ ip-address ] [ nexthop nexthop-address ] command to perform an MPLS ping test.
Run the tracert lsp [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode | -t time-out | -g ] * ip destination-iphost mask-length [ ip-address ] [ nexthop nexthop-address ] [ detail ] command to perform an MPLS traceroute test.
Follow-up Procedure
Run the display lspv statistics command to check the LSPV test statistics. A large amount of statistical information is saved in the system after MPLS ping or traceroute tests are performed multiple times, which is unhelpful for problem analysis. To obtain more accurate statistics, run the reset lspv statistics command to clear LSPV test statistics before running the display lspv statistics command.
Run the lspv mpls-lsp-ping echo disable command to disable response to MPLS Echo Request packets. It is recommended that you run this command after completing an MPLS ping or traceroute test to save system resources.