ping multicast
Function
The ping multicast command enables a device to detect the reserved members in the network segment, simulates the common group traffic, triggers the establishment of a distribution tree, and checks whether the network can normally bear multicast services.
Format
ping multicast [ -c count | -h ttl-value | -i interface-type interface-number | -m time | -p pattern | -q | -s packetsize | -t timeout | -tos tos-value | -v ] * host
Parameters
Parameter | Description | Value |
---|---|---|
-c count | Specifies the number of times for sending ICMP Echo Request messages. | The value is an integer that ranges from 1 to 65535. The default value is 5. |
-h ttl-value | Sets the TTL value of an ICMP Echo Request message. | The value is an integer that ranges from 1 to 255. The default value is 255. |
-i interface-type interface-number | Sets the outgoing interface that sends ICMP Echo Request
messages.
|
- |
-m time | Specifies the time to wait before sending the next ICMP
Echo Request message. Each time the source sends an ICMP Echo Request message using the ping multicast command, the source waits a period of time (2000 ms by default) before sending the next ICMP Echo Request message. You can set the time to wait before sending the next ICMP Echo Request message using the parameter time. In the case of poor network condition, the value should be equal to or larger than 2000, in milliseconds. |
The value is an integer that ranges from 1 to 10000, in milliseconds. The default value is 2000. |
-p pattern | Specifies the padding byte of ICMP Echo Request messages. After the padding byte of the ICMP Echo Request message is set, the destination host can identify a certain ICMP Echo Reply message. |
The value ranges from 0 to FFFFFFFF, in the hexadecimal format. By default, the padding starts from 0x01, and continues in ascending order. |
-q | Indicates that only statistics are displayed. When -q is specified in the ping multicast command, only the number of sent and received packets, packet loss rate, and the minimum, average, and maximum RTTs are displayed. |
By default, all information is displayed. |
-s packetsize | Sets the length of an ICMP Echo Request message, excluding the IP or ICMP header. | The value is an integer that ranges from 20 to 8100, in bytes. The default value is 56. |
-t timeout | Specifies the timeout period to wait for an ICMP Echo
Reply message after an ICMP Echo Request message is sent. After the ping multicast command is run, the source sends an ICMP Echo Request message to a destination and waits for an ICMP Echo Reply message. If the destination, after receiving the ICMP Echo Request message, returns an ICMP Echo Reply message to the source within the period specified by the parameter timeout, the destination is reachable. If the destination does not return an ICMP Echo Reply message within the specified period, the source displays that the message times out. Normally, the source receives an ICMP Echo Reply message within 1 to 10 seconds after sending an ICMP Echo Request message. If the transmission speed is low, properly prolong the timeout period. |
The value is an integer that ranges from 0 to 65535, in milliseconds. The default value is 2000. |
-tos tos-value | Specifies the ToS value of the sent ICMP Echo Request messages. | The value is an integer that ranges from 0 to 255. The default value is 196. |
-v | Displays all received ICMP Echo Reply messages.
|
By default, only ICMP Echo Reply messages of the user are displayed. |
host | Specifies the destination address of an ICMP Echo Request message, also called the Mping destination group address. | It includes reserved group addresses and common group addresses. |
Usage Guidelines
Usage Scenario
The ping multicast command is used to check a multicast network in the following scenarios:
Scenario 1: When configuring the destination group address host as a reserved group address, you can run the ping multicast command to check which reserved multicast members reside on the network segment of the outbound interface. In this scenario, the TTL of an ICMP Echo Request message cannot be set.
- 224.0.0.1: indicates all systems in the subnet.
- 224.0.0.2: indicates all routers in the subnet.
- 224.0.0.5: indicates OSPF IGP routers.
- 224.0.0.13: indicates PIM routers.
- Simulates the multicast traffic and triggers a series of protocol processes. By viewing the multicast routing information on the wireless access controller, check whether the protocol running status is normal and whether the multicast distribution tree is correctly established.
- Check multicast members in the network and calculate the TTL value and the RTT from the Mping initiator to multicast members. This function requires that the host support Mping and is implemented by calculating the number of ICMP Echo Reply messages sent by the destination host. Mping is performed continuously at a certain interval to calculate the network delay and route jitter.
- On an unstable network, you can run the ping multicast -c count -t timeout host command to check the quality of the multicast network. By analyzing the packet loss rate and average delay in the command output, you can evaluate the network quality. If the network is unreliable, set the packet transmission count (-c) and timeout (-t) to the upper limits. This makes the test result accurate.
- You can run the ping multicast -s packetsize host to set the size of a multicast probe packet. In this way, you can check the quality of the multicast network by simulating real service datagrams. The path MTU is then obtained through multiple probes.
Prerequisites
Before running the ping multicast command, ensure that the ICMP module is working properly.
Configuration Impact
If an intermediate device is disabled from responding to ICMP messages, detection on this node fails.
Precautions
If a fault occurs in the Mping process, you can press Ctrl+C to terminate the Mping operation.
Example
<AC6605> ping multicast -i vlanif 100 224.0.0.5
MULTICAST PING 224.0.0.5 : 56 data bytes, press CTRL+C to break Reply from 10.1.1.5 : bytes=56 Sequence=1 TTL =255 time=30ms Reply from 10.1.1.5 : bytes=56 Sequence=2 TTL =255 time=10ms Reply from 10.1.1.5 : bytes=56 Sequence=3 TTL =255 time=10ms Reply from 10.1.1.5 : bytes=56 Sequence=4 TTL =255 time=20ms Reply from 10.1.1.5 : bytes=56 Sequence=5 TTL =255 time=10ms Destination multicast address 224.0.0.5 --- Multicast ping statistics --- 5 Request packet(s) transmitted 5 Reply packet(s) received 0.00% packet loss Round-trip min/avg/max = 10/16/40 ms
# Specify the padding field of -p.
<AC6605> ping multicast -i vlanif 100 -p 12345678 224.0.0.5
MULTICAST PING 224.0.0.5 : 56 data bytes, press CTRL+C to break
The padding string: 12345678
Reply from 10.1.1.5 : bytes=56 Sequence=1 TTL =255 time=30ms
Reply from 10.1.1.5 : bytes=56 Sequence=2 TTL =255 time=10ms
Reply from 10.1.1.5 : bytes=56 Sequence=3 TTL =255 time=10ms
Reply from 10.1.1.5 : bytes=56 Sequence=4 TTL =255 time=20ms
Reply from 10.1.1.5 : bytes=56 Sequence=5 TTL =255 time=10ms
Destination multicast address 224.0.0.5
--- Multicast ping statistics ---
5 Request packet(s) transmitted
5 Reply packet(s) received
0.00% packet loss
Round-trip min/avg/max = 10/16/40 ms
Item |
Description |
---|---|
MULTICAST PING 224.0.0.5 |
The destination group address of Mping is 224.0.0.5. |
56 data bytes |
The length of the sent ICMP Echo Request message is 56 bytes. |
press CTRL+C to break |
The ongoing Mtrace test is terminated after you press Ctrl+C. |
The padding string: 12345678 |
The padding string is 12345678. If -p is not specified, the padding character string is not displayed. |
Reply from 10.1.1.5: bytes=56 Sequence=1 TTL=255 time=30ms |
The ICMP Echo Reply message sent from 10.1.1.5 is received.
The message carries the following information:
|
Destination multicast address 224.0.0.5 |
The destination group address is 224.0.0.5. |
--- Multicast ping statistics --- 5 Request packet(s) transmitted 5 Reply packet(s) received 0.00% packet loss Round-trip min/avg/max = 10/16/40 ms |
Statistics collected after the Ping test on the destination
host. The statistics are as follows:
|