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. MPLS ping and MPLS traceroute do not support packet fragmentation.
Procedure
- Run the system-view command to enter the system view.
- Run the lspv mpls-lsp-ping echo enable command to enable the response to MPLS Echo Request packets.
By default, the device is enabled to respond to MPLS Echo Request packets.
- (Optional) Run the lspv packet-filter acl-number command to enable MPLS Echo Request packet filtering based on source IP addresses. The filtering
rule is specified in the ACL.
By default, the device does not filter MPLS Echo Request packets based on their source IP addresses.
- Run the following command to check the LSP connectivity.
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 ] * ip destination-address mask-length [ ip-address ] [ nexthop nexthop-address | draft6 ] command to perform an MPLS ping test.
If draft6 is specified, the command is implemented according to draft-ietf-mpls-lsp-ping-06.
Run the tracert lsp [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode | -t time-out | -v ] * ip destination-address mask-length [ ip-address ] [ nexthop nexthop-address | draft6 ] command to perform an MPLS traceroute test.
If draft6 is specified, the command is implemented according to draft-ietf-mpls-lsp-ping-06.
Postrequisite
Run the display lspv statistics command to check the LSPV test statistics.
Run the undo lspv mpls-lsp-ping echo enable 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.
Run the display lspv configuration command to check the current LSPV configuration.