
24
Step Command
Remarks
3.
Enable the NSR function.
non-stop-routing
Disabled by default.
Configuring MPLS statistics collection and
reading
Configuring MPLS statistics collection and reading (method
1)
To use display commands to view MPLS statistics, first enable MPLS statistics and then set the
statistics reading interval, as follows:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable MPLS statistics.
mpls statistics enable
{
interface
interface-type
interface-number
|
lsp
in-label
in-label
|
tunnel token
token
}
By default, MPLS statistics are
disabled.
3.
Enter MPLS view.
mpls
N/A
4.
Set LSP statistics reading
interval.
statistics interval
interval-time
The default interval is 0 seconds.
The system does not read LSP
statistics.
Configuring MPLS statistics collection and reading for
specific LSPs (method 2)
To use display commands to view statistics about LSPs, first enable MPLS statistics for the LSPs
and set the statistics reading interval, as follows:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter MPLS view.
mpls
N/A
3.
Enable MPLS statistics for
specific LSPs.
statistics
{
ipv4
destination mask
[
vpn-instance
vpn-instance-name
] |
ipv6
destination mask
|
static
}
By default, MPLS statistics are
disabled for all LSPs.
4.
Set the LSP statistics
reading interval.
statistics interval
interval-time
The default interval is 0 seconds.
The system does not read LSP
statistics.
Inspecting LSPs
In MPLS, the MPLS control plane is responsible for establishing LSPs. However, when an LSP fails
to forward data, the control plane cannot detect the LSP failure or cannot do so in time. This makes