
103
The periodic LSP tracert function is for locating faults of an LSP periodically. It detects the consistency of
the forwarding plane and control plane, and it records detection results into logs. You can know whether
an LSP has failed by checking the logs.
This is what happens if you configure BFD as well as periodic tracert for an LSP. Once the periodic LSP
tracert function detects an LSP fault or inconsistency of the forwarding plane and control plane, the BFD
session for the LSP is deleted and a new BFD session is established according to the control plane.
Syntax
periodic-tracert
destination-address
mask-length
[
-a
source-ip
|
-exp
exp-value
|
-h
ttl-value
| -
m
wait-
time
|
-t
time-out
| -
u
retry-attempt
]
*
undo
periodic-tracert
destination-address
mask-length
View
MPLS LSPV view
Default level
2: System level
Parameters
destination-address
: Specifies the destination IP address of the FEC.
mask-length
: Specifies the length of the destination address mask of the FEC, ranging from 0 to 32.
-a
source-ip
: Specifies the source IP address for MPLS echo request messages. By default, the MPLS LSR ID
is used as the source address of MPLS echo request messages.
-exp
exp-value
: Specifies the EXP value of the label.
exp-value
ranges from 0 to 7 and defaults to 0.
-h
ttl-value
: Specifies the TTL value to be carried by MPLS echo request messages.
ttl-number
is ranging
from 1 to 255 and defaults to 30.
-
m
wait-time
: Specifies the interval for performing LSP tracert.
wait-time
is ranging from 15 to 120 and
defaults to 60, in minutes.
-t
time-out
: Specifies the timeout time for waiting for the response of an MPLS echo request message.
time-
out
is ranging from 0 to 65,535 and defaults to 2000, in milliseconds.
-
u
retry-attempt
: Specifies the maximum number of times that MPLS echo request messages can be sent if
no response is received.
retry-attempt
ranges from 1 to 9 and defaults to 3.
Examples
# Enable periodic tracert for LSPs to destination 1.1.1.9/32.
<Sysname> system-view
[Sysname] mpls lspv
[Sysname-mpls-lspv] periodic-tracert 1.1.1.9 32
ping lsp ipv4
Description
Use the
ping lsp ipv4
command to check the validity and reachability of the LSPs for a FEC.
Syntax
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
]