R2511-HP MSR Router Series MPLS Configuration Guide(V5)

26
Configuring MPLS LSP ping
MPLS LSP ping is for testing the connectivity of an LSP. At the ingress, it adds the label for the FEC to be
inspected into an MPLS echo request, which then is forwarded along the LSP to the egress. The egress
processes the request packet and returns an MPLS echo reply to the ingress. An MPLS echo reply carrying
a success notification indicates that the LSP is normal, and an MPLS echo reply carrying an error code
indicates that the LSP has failed.
To test the connectivity of an LSP, perform the following task in any view:
Task Command
Use MPLS LSP ping to test MPLS LSP
connectivity.
ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m
wait-time | -r reply-mode | -s packet-size | -t time-out | -v ] * ipv4
dest-addr mask-length [ destination-ip-addr-header ]
Configuring MPLS LSP tracert
MPLS LSP tracert is for locating LSP errors. It consecutively sends the MPLS echo requests along the LSP to
be inspected, with the TTL increasing from 1 to a specific value. Then, each hop along the LSP returns an
MPLS echo reply to the ingress due to TTL timeout. So, the ingress can collect the information of each hop
along the LSP, so as to locate the failed node. You can also use MPLS LSP tracert to collect the important
information of each hop along the LSP, such as the label allocated.
To locate errors of an LSP, perform the following task in any view:
Task Command
Perform MPLS LSP tracert to locate
errors along an MPLS LSP.
tracert lsp [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode |-t
time-out ] * ipv4 dest-addr mask-length [ destination-ip-addr-header ]
Enabling MPLS trap
With the MPLS trap function enabled, trap packets of the notifications level are generated to report
critical MPLS events. Such trap packets are sent to the information center of the device. Whether and
where the packets are output depend on the configurations of the information center. For information on
how to configure the information center, see Network Management and Monitoring Configuration
Guide.
To enable the MPLS trap function:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable the MPLS trap.
snmp-agent trap enable mpls
By default, the MPLS trap is
disabled.
For more information about the
command, see the snmp-agent
trap enable command in Network
Management and Monitoring
Command Reference.