How to test the network speed of a cloud server using the ping command?

08-02-2024 02:47:12

The ping command is frequently used when monitoring and maintaining servers. It works by sending ICMP (Internet Control Message Protocol) request packets to a specific target server to check its reachability. The ping command displays the time taken for each request, and shorter times indicate faster network speeds from the client to the server.

You can use third-party testing tools to measure the ping values from various locations to the cloud server. Common testing tool websites include:

http://ping.chinaz.com (domestic testing points)
http://ping.pe (global testing points)

You can also test the ping values from your local machine to the cloud server. In the Windows operating system, open the Run dialog and type "cmd" to enter the command prompt window. Then, enter "ping IP -t" followed by the server address to start the test. The "-t" flag represents continuous requests, which can be interrupted by pressing Ctrl+C.

Assuming the cloud server's IP address is 58.215.65.1, the test results are as follows:

C:\Users\Administrator>ping 103.90.84.159 -t

Pinging 103.90.84.159 with 32 bytes of data:
Reply from 103.90.84.159: bytes=32 time=156ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=158ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=159ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55
Reply from 103.90.84.159: bytes=32 time=155ms TTL=55

Ping statistics for 103.90.84.159:
    Packets: Sent = 18, Received = 18, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 155ms, Maximum = 159ms, Average = 155ms

Here, we simulate the scenario where the target host cannot be connected (ping is unsuccessful) for reference.

C:\Users\Administrator>ping 185.241.125.170 -t

Pinging 185.241.125.170 with 32 bytes of data:
Reply from 151.248.103.99: Destination host unreachable.
Reply from 151.248.103.99: Destination host unreachable.
Reply from 151.248.103.99: Destination host unreachable.

Ping statistics for 185.241.125.170:
    Packets: Sent = 3, Received = 3, Lost = 0 (0% loss)

Note: If the target server has disabled ping, even if the network is functioning properly, it will not respond to ping requests.