- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
06-MPLS OAM commands | 89.88 KB |
MPLS OAM commands
ping mpls ipv4
Use ping mpls ipv4 to verify MPLS LSP connectivity for an IPv4 prefix.
Syntax
ping mpls [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m wait-time | -r reply-mode | -rtos tos-value | -s packet-size | -t time-out | -v ] * ipv4 ipv4-address mask-length [ destination start-address [ end-address [ address-increment ] ] ] [ fec-type { generic | ldp } ]
Views
Any view
Predefined user roles
network-admin
Parameters
-a source-ip: Specifies the source address for MPLS echo request packets. If you do not specify this option, the device uses the primary IP address of the outgoing interface as the source address for MPLS echo requests.
-c count: Specifies the number of MPLS echo request packets to be sent with the same destination address in the IP header. The value range is 1 to 4294967295. The default is 5.
-exp exp-value: Specifies the EXP value for MPLS echo request packets, in the range of 0 to 7. The default is 0.
-h ttl-value: Specifies the TTL value for MPLS echo request packets, in the range of 1 to 255. The default is 255.
-m wait-time: Specifies the interval for sending MPLS echo request packets, in the range of 1 to 10000 milliseconds. The default is 200 milliseconds.
-r reply-mode: Specifies the reply mode of the receiver in response to MPLS echo request packets. The reply-mode argument can be 1, 2, 3, or 4. 1 means "Do not reply." 2 means "Reply by using a UDP packet." 3 means "Reply by using a UDP packet that carries the Router Alert option." 4 means "Reply by using a VCCV packet." The default is 2. The reply mode 4 is not available for MPLS LSP connectivity verification. If the reply mode 4 is specified, the remote end does not reply.
-rtos tos-value: Specifies the ToS value in the IP header of an MPLS echo reply packet. The value range is 0 to 7, and the default value is 6.
-s packet-size: Specifies the length (excluding the IP header and UDP header) of an MPLS echo request packet. The value for the packet-size argument is 65 to 8100 bytes, and the default is 100 bytes.
-t time-out: Specifies the timeout interval for the reply to an MPLS echo request. The value range is 0 to 65535 milliseconds, and the default is 2000 milliseconds.
-v: Displays detailed reply information. If you do not specify this keyword, the command displays brief reply information.
ipv4-address mask-length: Specifies an FEC by a destination IP address and mask length. The mask length is in the range of 0 to 32.
destination: Specifies the destination address in the IP header of MPLS echo requests. The default is 127.0.0.1.
start-address: Specifies the destination address or the start destination address. This address must be an address on subnet 127.0.0.0/8—a local loopback address. If you specify the start-address argument without the end-address argument, the start-address is the destination address in the IP header. The number of MPLS echo requests to be sent is determined by the -c count keyword. If you specify both start-address and end-address, you specify a range of destination addresses. The destination address increments by the value specified for the address-increment argument, starting from the start-address to the end-address. The number of MPLS echo requests to be sent with each of the destination addresses is determined by the -c count keyword.
end-address: Specifies the end destination address. This address must be an address on subnet 127.0.0.0/8—a local loopback address.
address-increment: Specifies the increment value by which the destination address in the IP header increases in turn. The value range is 1 to 16777215 and the default value is 1.
fec-type: Specifies the FEC type of the MPLS LSPs to be verified. If you do not specify this keyword, the FEC type is the protocol type of the specified FEC in the routing table.
generic: Represents LSPs of any FEC type.
ldp: Represents LDP signaled LSPs.
Examples
# Verify the connectivity of LSPs to destination 3.3.3.9/32.
<Sysname> ping mpls ipv4 3.3.3.9 32
MPLS ping FEC 3.3.3.9/32 with 100 bytes of data:
100 bytes from 100.1.2.1: Sequence=1 time=49 ms
100 bytes from 100.1.2.1: Sequence=2 time=44 ms
100 bytes from 100.1.2.1: Sequence=3 time=60 ms
100 bytes from 100.1.2.1: Sequence=4 time=60 ms
100 bytes from 100.1.2.1: Sequence=5 time=76 ms
--- Ping statistics for FEC 3.3.3.9/32 ---
5 packets transmitted, 5 packets received, 0.0% packet loss
Round-trip min/avg/max = 44/57/76 ms
# Verify the connectivity of LSPs to destination 3.3.3.9/32, and specify the following parameters:
· Set the number of MPLS echo requests to be sent with the same destination address to 3.
· Display detailed reply information.
· Specify the range of destination addresses in IP headers as 127.0.0.1 to 127.0.0.3, and set the destination address increment value to 2. With these settings, the destination addresses are 127.0.0.1 and 127.0.0.3.
<Sysname> ping mpls –c 3 –v ipv4 3.3.3.9 32 destination 127.0.0.1 127.0.0.3 2
MPLS ping FEC 3.3.3.9/32 with 100 bytes of data:
Destination address 127.0.0.1
100 bytes from 100.1.2.1: Sequence=1 time=49 ms Return Code=3(1)
Destination address 127.0.0.3
100 bytes from 100.1.2.1: Sequence=2 time=44 ms Return Code=3(1)
Destination address 127.0.0.1
100 bytes from 100.1.2.1: Sequence=3 time=60 ms Return Code=3(1)
Destination address 127.0.0.3
100 bytes from 100.1.2.1: Sequence=4 time=60 ms Return Code=3(1)
Destination address 127.0.0.1
100 bytes from 100.1.2.1: Sequence=5 time=76 ms Return Code=3(1)
Destination address 127.0.0.3
100 bytes from 100.1.2.1: Sequence=6 time=57 ms Return Code=3(1)
--- Ping statistics for FEC 3.3.3.9/32 ---
6 packets transmitted, 6 packets received, 0.0% packet loss
Round-trip min/avg/max = 44/57/76 ms
Field |
Description |
MPLS ping FEC 3.3.3.9/32 with 100 bytes of data |
Verify LSP connectivity for FEC 3.3.3.9/32 by sending 100-byte MPLS echo requests. |
Destination address |
Destination IP address in the IP header. |
100 bytes from 100.1.2.1 |
Received a 100-byte reply from 100.1.2.1. |
Sequence |
Sequence number of the reply, for determination of packet loss, disorder, or duplicate. |
time |
Packet round-trip delay. |
Return Code |
Return code. The number in parentheses represents a return subcode. · 1—The received MPLS echo request packet has content errors. · 2—The packet contains an unsupported TLV. · 3—Reply from the egress node. · 5—Unmatching downstream mapping. · 6—The upstream did not provide the outgoing interface. · 8—Reply from the label switching node. · 10—The outgoing label for the FEC is inconsistent with that in the packet label stack. · 11—The label in the packet label stack does not have a matching forwarding entry. · 12—The protocol type of the FEC is inconsistent with that in the label forwarding table for the packet. |
Ping statistics for FEC 3.3.3.9/32 |
LSP verification statistics. |
packets transmitted |
Number of MPLS echo requests sent. |
packets received |
Number of MPLS echo replies received. |
packet loss |
Percentage of unreplied packets to total request packets. |
Round-trip min/avg/max |
Minimum, average, and maximum round-trip delay. |
ping mpls out-labels
Use ping mpls out-labels to verify the MPLS LSP of the specified outgoing labels.
Syntax
ping mpls [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m wait-time | -r reply-mode | -rtos tos-value | -s packet-size | -t time-out | -v ] * out-labels out-label-value&<1-3> interface interface-type interface-number [ nexthop nexthop-address ]
Views
Any view
Predefined user roles
network-admin
Parameters
-a source-ip: Specifies the source address of MPLS echo request packets. If you do not specify this option, the device uses the primary IP address of the outgoing interface as the source address of MPLS echo requests.
-c count: Specifies the number of MPLS echo request packets to be sent with the same destination address in the IP header. The value range is 1 to 4294967295. The default is 5.
-exp exp-value: Specifies the EXP value of MPLS echo request packets, in the range of 0 to 7. The default is 0.
-h ttl-value: Specifies the TTL value of MPLS echo request packets, in the range of 1 to 255. The default is 255.
-m wait-time: Specifies the interval for sending MPLS echo request packets, in the range of 1 to 10000 milliseconds. The default is 200 milliseconds.
-r reply-mode: Specifies the reply mode of the receiver in response to MPLS echo request packets. The reply-mode argument can be 1, 2, 3, or 4. The default is 2.
· 1—Do not reply.
· 2—Reply by using a UDP packet.
· 3—Reply by using a UDP packet that carries the Router Alert option.
· 4—Reply by using a VCCV packet. The reply mode 4 is not available for MPLS LSP connectivity verification. If the reply mode 4 is specified, the remote end does not reply.
-rtos tos-value: Specifies the ToS value in the IP header of an MPLS echo reply packet. The value range is 0 to 7, and the default value is 6.
-s packet-size: Specifies the length (excluding the IP header and UDP header) of an MPLS echo request packet. The value for the packet-size argument is 65 to 8100 bytes, and the default is 100 bytes.
-t time-out: Specifies the timeout interval for the reply to an MPLS echo request. The value range is 0 to 65535 milliseconds, and the default is 2000 milliseconds.
-v: Displays detailed reply information. If you do not specify this keyword, the command displays brief reply information.
out-labels out-label-value&<1-3>: Specifies a space-separated list of up to 3 outgoing labels, corresponding to the labels from top to bottom in the label stack. The value range for the out-label-value argument is 0, 3, and 16 to 1048575.
interface interface-type interface-number: Specifies the outgoing interface by the interface type and number.
nexthop nexthop-address: Specifies the next hop IP address.
Usage guidelines
To verify connectivity of a specific LSP, first execute the display mpls lsp command to identify the outgoing interface and next hop for the outgoing labels to be specified.
Examples
# In an LDP network, verify the connectivity of the LSP with outgoing label 2173, outgoing interface Ten-GigabitEthernet 1/0/1, and next hop IP address 10.1.1.2/32.
<Sysname> ping mpls out-labels 2173 interface ten-gigabitethernet 1/0/1 nexthop 10.1.1.2
MPLS ping out-labels 2173 with 100 bytes of data:
100 bytes from 20.1.1.2: Sequence=1 time=1 ms
100 bytes from 20.1.1.2: Sequence=2 time=1 ms
100 bytes from 20.1.1.2: Sequence=3 time=1 ms
100 bytes from 20.1.1.2: Sequence=4 time=1 ms
100 bytes from 20.1.1.2: Sequence=5 time=1 ms
--- Ping statistics for out-labels 2173 ---
5 packets transmitted, 5 packets received, 0.0% packet loss
Round-trip min/avg/max = 1/1/1 ms
<Sysname>%Oct 11 09:26:52:882 2018 Sysname LSPV/6/LSPV_PING_STATIS_INFO: Ping statistics for out-labels 2173: 5 packets transmitted, 5 packets received, 0.0% packets loss, round-trip min/avg/max = 1/1/1 ms.
Table 2 Command output
Field |
Description |
MPLS ping out-labels out-label-value with 100 bytes of data |
Verify LSP connectivity for the specified outgoing labels (out-label-value) by sending 100-byte MPLS echo requests. |
100 bytes from 20.1.1.2 |
Received a 100-byte reply from 20.1.1.2. |
Sequence |
Sequence number of the reply, for determination of packet loss, disorder, or duplicate. |
time |
Packet round-trip delay. |
Return Code |
Return code. The number in parentheses represents a return subcode. · 1—The received MPLS echo request packet has content errors. · 2—The packet contains an unsupported TLV. · 3—Reply from the egress node. · 5—Unmatching downstream mapping. · 6—The upstream did not provide the outgoing interface. · 8—Reply from the label switching node. · 10—The outgoing label for the FEC is inconsistent with that in the packet label stack. · 11—The label in the packet label stack does not have a matching forwarding entry. · 12—The protocol type of the FEC is inconsistent with that in the label forwarding table for the packet. |
Ping statistics for out-labels |
LSP verification statistics. |
packets transmitted |
Number of MPLS echo requests sent. |
packets received |
Number of MPLS echo replies received. |
packet loss |
Percentage of unreplied packets to total request packets. |
Round-trip min/avg/max |
Minimum, average, and maximum round-trip delay. |
tracert mpls ipv4
Use tracert mpls ipv4 to trace MPLS LSPs from the ingress node to the egress node for an IPv4 prefix. You can locate the error node according to the reply information.
Syntax
tracert mpls [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode | -rtos tos-value | -t time-out | -v | fec-check ] * ipv4 ipv4-address mask-length [ destination start-address [ end-address [ address-increment ] ] ] [ fec-type { generic | ldp } ]
Views
Any view
Predefined user roles
network-admin
Parameters
-a source-ip: Specifies the source address for MPLS echo request packets. If you do not specify this option, the command uses the primary IP address of the outgoing interface as the source address for MPLS echo requests.
-exp exp-value: Specifies the EXP value for MPLS echo request packets, in the range of 0 to 7. The default is 0.
-h ttl-value: Specifies the maximum TTL value for MPLS echo request packets (the maximum number of hops to be inspected). The value range for the ttl-value argument is 1 to 255, and the default is 30.
-r reply-mode: Specifies the reply mode of the receiver in response to MPLS echo request packets. The reply-mode argument can be 1, 2, or 3. 1 means "Do not reply," 2 means "Reply by using a UDP packet," and 3 means "reply by using a UDP packet that carries the Router Alert option." The default is 2.
-rtos tos-value: Specifies the ToS value in the IP header of an MPLS echo reply packet. The value range is 0 to 7, and the default value is 6.
-t time-out: Specifies the timeout interval for the reply to an MPLS echo request. The value range is 0 to 65535 milliseconds, and the default is 2000 milliseconds.
-v: Displays detailed reply information. If you do not specify this keyword, the command displays brief reply information.
fec-check: Checks the FEC stack at transit nodes.
ipv4-address mask-length: Specifies an FEC by an IPv4 destination address and a mask length. The value range for the mask-length argument is 0 to 32.
destination: Specifies the destination address in the IP header of MPLS echo requests. The default is 127.0.0.1.
start-address: Specifies the destination address or the start destination address. This address must be an address on subnet 127.0.0.0/8—a local loopback address. If you specify the start-address argument without the end-address argument, the start-address is the destination address in the IP header. If you specify both start-address and end-address, you specify a range of destination addresses. The destination address increments by the value specified for the address-increment argument, starting from the start-address to the end-address. The command performs a tracert for each of the destination addresses.
end-address: Specifies the end destination address. This address must be an address on subnet 127.0.0.0/8—a local loopback address.
address-increment: Specifies the increment value by which the destination address in the IP header increases in turn. The value range is 1 to 16777215 and the default value is 1.
fec-type: Specifies the FEC type to be carried in an MPLS echo request packet. If you do not specify this keyword, the FEC type is the protocol type of the specified FEC in the routing table.
generic: Represents LSPs of any FEC type.
ldp: Represents LDP signaled LSPs.
Examples
# Trace the path that the LSP (for FEC 5.5.5.9/32) traverses from the ingress node to the egress node. Specify the IP header destination address range as 127.1.1.1 to 127.1.1.2 and set the address increment value to 1. With these settings, the device performs a tracert for 127.1.1.1 and 127.1.1.2.
<Sysname> tracert mpls ipv4 5.5.5.9 32 destination 127.1.1.1 127.1.1.2 1
MPLS trace route FEC 5.5.5.9/32
Destination address 127.1.1.1
TTL Replier Time Type Downstream
0 Ingress 100.1.2.1/[1025]
1 100.1.2.1 1 ms Transit 100.2.4.1/[1024]
2 100.2.4.1 63 ms Transit 100.4.5.1/[3]
3 100.4.5.1 129 ms Egress
Destination address 127.1.1.2
TTL Replier Time Type Downstream
0 Ingress 100.1.3.1/[1030]
1 100.1.3.1 1 ms Transit 100.3.4.1/[1024]
2 100.3.4.1 51 ms Transit 100.4.5.1/[3]
3 100.4.5.1 80 ms Egress
# Trace the path that the LSP (for FEC 5.5.5.9/32) traverses from the ingress node to the egress node. Display detailed reply information, specify the IP header destination address range as 127.1.1.1 to 127.1.1.2, and set the address increment value to 1. With these settings, the device performs a tracert for 127.1.1.1 and 127.1.1.2.
<Sysname> tracert mpls –v ipv4 5.5.5.9 32 destination 127.1.1.1 127.1.1.2 1
MPLS trace route FEC 5.5.5.9/32
Destination address 127.1.1.1
TTL Replier Time Type Downstream
0 Ingress 100.1.2.1/[1025]
1 100.1.2.1 1 ms Transit 100.2.4.1/[1024] ReturnCode 8(1)
2 100.2.4.1 63 ms Transit 100.4.5.1/[3] ReturnCode 8(1)
3 100.4.5.1 129 ms Egress ReturnCode 3(1)
Destination address 127.1.1.2
TTL Replier Time Type Downstream
0 Ingress 100.1.3.1/[1030]
1 100.1.3.1 1 ms Transit 100.3.4.1/[1024] ReturnCode 8(1)
2 100.3.4.1 51 ms Transit 100.4.5.1/[3] ReturnCode 8(1)
3 100.4.5.1 80 ms Egress ReturnCode 3(1)
Field |
Description |
MPLS trace route FEC |
Trace the LSPs for the specified FEC. |
Destination address |
Destination IP address in the IP header. |
TTL |
Number of hops. |
Replier |
Address of the LSR that replied the request. |
Time |
Time used to receive the reply, in milliseconds. |
Type |
LSR type: Ingress, Transit, or Egress. |
Downstream |
Address of the downstream LSR and the label assigned by the downstream LSR. |
ReturnCode |
Return code. The number in parentheses represents a return subcode. · 1—The received MPLS echo request packet has content errors. · 2—The packet contains an unsupported TLV. · 3—Reply from the egress node. · 5—Unmatching downstream mapping. · 6—The upstream did not provide the outgoing interface. · 8—Reply from the label switching node. · 10—The outgoing label for the FEC is inconsistent with that in the packet label stack. · 11—The label in the packet label stack does not have a matching forwarding entry. · 12—The protocol type of the FEC is inconsistent with that in the label forwarding table for the packet. |
tracert mpls out-labels
Use tracert mpls out-labels to trace MPLS LSPs of the specified outgoing labels from the ingress node to the egress node of the LSPs. You can locate the error node according to the reply information.
Syntax
tracert mpls [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode | -rtos tos-value | -t time-out | -v | fec-check ]* out-labels out-label-value&<1-3> interface interface-type interface-number [ nexthop nexthop-address ]
Views
Any view
Predefined user roles
network-admin
Parameters
-a source-ip: Specifies the source address of MPLS echo request packets. If you do not specify this option, the device uses the primary IP address of the outgoing interface as the source address of MPLS echo requests.
-exp exp-value: Specifies the EXP value of MPLS echo request packets, in the range of 0 to 7. The default is 0.
-h ttl-value: Specifies the maximum TTL value of MPLS echo request packets (the maximum number of hops to be inspected). The value range for the ttl-value argument is 1 to 255, and the default is 30.
-r reply-mode: Specifies the reply mode of the receiver in response to MPLS echo request packets. The reply-mode argument can be 2 or 3. The default is 2.
· 2—Reply by using a UDP packet.
· 3—Reply by using a UDP packet that carries the Router Alert option.
-rtos tos-value: Specifies the ToS value in the IP header of an MPLS echo reply packet. The value range is 0 to 7, and the default value is 6.
-t time-out: Specifies the timeout interval for the reply to an MPLS echo request. The value range is 0 to 65535 milliseconds, and the default is 2000 milliseconds.
-v: Displays detailed reply information. If you do not specify this keyword, the command displays brief reply information.
out-labels out-label-value&<1-3>: Specifies a space-separated list of up to 3 outgoing labels, corresponding to the labels from top to bottom in the label stack. The value range for the out-label-value argument is 0, 3, and 16 to 1048575.
interface interface-type interface-number: Specifies the outgoing interface by the interface type and number.
nexthop nexthop-address: Specifies the next hop IP address.
Usage guidelines
To trace a specific LSP, first execute the display mpls lsp command to identify the outgoing interface and next hop for the outgoing labels to be specified.
Examples
# In an LDP network, trace the path of the LSP with outgoing label 2173, outgoing interface Ten-GigabitEthernet 1/0/1, and next hop IP address 10.1.1.2/32.
<Sysname> tracert mpls out-labels 2173 interface ten-gigabitethernet 1/0/1 nexthop 10.1.1.2
MPLS trace route out-labels 2173
TTL Replier Time Type Downstream
0 Ingress 10.1.1.2/[2173]
1 10.1.1.2 1 ms Transit 20.1.1.2/[1040127]
2 20.1.1.2 1 ms Egress
Table 4 Command output
Field |
Description |
MPLS trace route out-labels out-label-value |
Trace the LSPs for the specified outgoing labels. |
TTL |
Number of hops. |
Replier |
IP address of the LSR that replied the request. |
Time |
Packet round-trip delay, in milliseconds. |
Type |
LSR type: Ingress, Transit, or Egress. |
Downstream |
Address of the downstream LSR and the outgoing label (label assigned by the downstream LSR). |
Return Code |
Return code. The number in parentheses represents a return subcode. · 1—The received MPLS echo request packet has content errors. · 2—The packet contains an unsupported TLV. · 3—Reply from the egress node. · 5—Unmatching downstream mapping. · 6—The upstream did not provide the outgoing interface. · 8—Reply from the label switching node. · 10—The outgoing label for the FEC is inconsistent with that in the packet label stack. · 11—The label in the packet label stack does not have a matching forwarding entry. · 12—The protocol type of the FEC is inconsistent with that in the label forwarding table for the packet. |