mtrace v1
Use mtrace v1 to trace a multicast path through mtrace1.
Syntax
mtrace v1 [ vpn-instance vpn-instance-name ] { source-address | group-address } * [ destination address ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
mdc-admin
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command traces a multicast path on the public network.
source-address: Specifies a multicast source by its IP address.
group-address: Specifies a multicast group by its IP address, in the range of 224.0.1.0 to 239.255.255.255.
destination address: Specifies the destination address of mtrace. The default destination address is 224.0.0.2.
verbose: Displays detailed information about mtrace. If you do not specify this keyword, the command displays brief information about mtrace.
Usage guidelines
To perform a non-group-specific mtrace, specify a multicast source and a destination. The mtrace starts from the destination and ends at the device directly connected to the multicast source.
To perform a non-source-specific mtrace, specify a multicast group and a destination. The mtrace starts from the destination and ends at the RP associated with the multicast group.
To perform a source-and-group-specific mtrace, specify both a multicast source and a multicast group. If you also specify a destination, the mtrace starts from the destination and ends at the device directly connected to the multicast source. If you do not specify a destination, the mtrace starts from the upstream device of the client and ends at the device directly connected to the multicast source.
An mtrace process stops if the number of traced hops reaches 255.
If the client does not receive a Reply message within 10 seconds, the client initiates a hop-by-hop mtrace to determine which device on the path encountered an error. It sends a Query message with the hops field set to 1 and waits for a Reply message. If it does not receive a Reply message within 10 seconds, the client determines that this hop encountered an error. If the client receives a Reply message within 10 seconds, it sends a Query message with the hops field value increased by 1 and waits for a Reply message. This process continues until the client does not receive a Reply message within the waiting time any more.
Examples
# Use mtrace1 to trace the path along which multicast data of group 225.2.1.1 travels from source 10.11.5.24 to destination 192.168.2.2 and display brief mtrace information.
<Sysname> mtrace v1 10.11.5.24 225.2.1.1 destination 192.168.2.2 Mtrace from 10.11.5.24 to 192.168.2.2 via group 225.2.1.1, 255 hops at most, press CTRL_C to break. Querying full reverse path... Hop Incoming address Outgoing address Protocol Time Fwd code 0 5.1.1.2 192.168.2.1 PIM 50 s NO_ERROR -1 4.1.1.2 5.1.1.1 PIM 40 s NO_ERROR -2 3.1.1.2 4.1.1.1 PIM 60 s NO_ERROR -3 2.1.1.2 3.1.1.1 PIM 55 s NO_ERROR -4 10.11.5.1 2.1.1.1 PIM 30 s NO_ERROR
Table 32: Command output
Field | Description |
---|---|
Hop | Number of the hop. 0 represents the last hop, -1 represents the hop before the last hop, and so on. |
Incoming address | Incoming interface of the multicast data. |
Outgoing address | Outgoing interface of the multicast data. |
Protocol | Multicast routing protocol used between this device and the previous-hop device:
|
Time | Length of time used to transmit an mtrace message between this device and the previous-hop device, in seconds. |
Fwd code | Forwarding code or error code:
|
# Use mtrace1 to trace the path along which multicast data of group 225.2.1.1 travels from source 10.11.5.24 to destination 192.168.2.2 and display detailed mtrace information.
<Sysname> mtrace v1 10.11.5.24 225.2.1.1 destination 192.168.2.2 verbose Mtrace from 10.11.5.24 to 192.168.2.2 via group 225.2.1.1, 255 hops at most, use query ID 12345, client port 50001, press CTRL_C to break. Querying full reverse path.......... Switching to hop-by-hop mode, Current hops: 2 0: Incoming interface address: 4.1.1.2 Outgoing interface address: 5.1.1.1 Upstream router address: 4.1.1.1 Input multicast packets: 111 Output multicast packets: 111 Forwarded packets for the (S, G) pair: 22 Multicast protocol in use: PIM Multicast TTL threshold: 1 Forwarding code: NO_ERROR Time used (s): 50 -1: Incoming interface address: 3.1.1.2 Outgoing interface address: 4.1.1.1 Upstream router address: 3.1.1.1 Input multicast packets: 111 Output multicast packets: 111 Forwarded Packets for the (S, G) pair: 22 Multicast protocol in use: PIM Multicast TTL threshold: 1 Forwarding code: NO_ERROR Time used (s): 50
Table 33: Command output
Field | Description |
---|---|
n | Number of the hop. 0 represents the last hop, -1 represents the hop before the last hop, and so on. |
Incoming interface address | Incoming interface of the multicast data. |
Outgoing interface address | Outgoing interface of the multicast data. |
Upstream router address | IP address of the upstream device. |
Input multicast packets | Statistics for packets received on the incoming interface of the multicast data. |
Output multicast packets | Statistics for packets forwarded through the outgoing interface of the multicast data. |
Forwarded packets for the (S, G) pair | Statistics for forwarded (S, G) packets. |
Multicast protocol in use | Multicast routing protocol used on the traced path:
|
Multicast TTL threshold | Maximum number of hops to be traced on the interface. |
Forwarding code | Forwarding code or error code:
|
Time used (s) | Length of time for transmitting the mtrace message from the previous-hop device to this device. |