Basic Ping Process for a Website or Computer

Basic Ping Command Executing Procedure: Most operating systems in laptops and desktops are loaded with the ping utility, which is a standard network test application. The ping utility can be installed on smartphones and mobile phones. The ping utility is also available with websites that offer test services for Internet speeds.

Test messages are sent over a TCP/IP connection, from the local computer to the remote server through the use of the ping utility. The ping utility is available for a website, or any other computer or device on a network. The ping utility can be used to determine if the remote computer is online, and also provides additional information about the speed and reliability of the network connection.

Basic Ping Command

How to Execute a Basic Ping Command?

A command line utility for Ping is available on Microsoft Windows, OS X, or Linux operating systems. You can ping a computer by either its IP address or its computer name. The following command is the primary form of ping.

ping 192.168.1.1

Executing the command returns many values describing the target host which was pinged, together with other technical information.

  • Reply From contains a confirmation message from the target computer which received the ping command. Confirmation messages for each of the four messages initiated by the ping command are sent back to the source computer from the target computer.
  • Bytes field in the ping command indicates the size of the request, which is 32 bytes. This is the default size of the ping request.
  • Time in milliseconds between the time of sending the request and the receipt of the response is indicated in the results
  • TTL (Time-to-Live) takes a value between 1 and 128 and can be used to count the different networks a ping message traveled from the source to the target. When this parameter takes the value 128, it indicates that the device is situated on a local network, whereas a value of 0 shows that the device was on other networks in between.

The ping utility can run continuously on some computers, especially Linux machines, instead of just four times. The user has to terminate the command when it is no longer required explicitly. If a user wants to monitor the status of the network connection for an extended period of time, the ping –t parameter can be typed to launch the ping command in a continuous loop. To stop the command, use the Ctrl+C sequence.

Why do Ping Requests Fail at Times?

A Ping request can fail for several reasons as indicated below:

  • An invalid IP address is supplied to the ping program
  • The host system which sent the ping commands does not have a valid IP address
  • The target IP address specified in the ping command does not have any device connected to it
  • Network congestion and error at either the source or the target prevent messages between systems in both directions during a ping operation.

The scenario where a ping session does not receive a response from the target IP address is indicated in the command line example below.

ping an ip address

The Reply From message appears after a long time on the screen after the timeout occurs.

The ping command reports a response rate between 0% and 100%. While the 0% and 100% rates are the most commonly reported rates, ping can also report a rate which is somewhere in between the two. A rate in between 0% and 100% is indicated when the target system is shutting down or starting up.

What is the Typical Result of Ping for a Responsive Computer?

A computer name can also be specified instead of an IP address while running the ping command. It is more convenient for users to ping a computer by name rather than by its IP address.

As an example, when you ping the Google website from the Windows command prompt, the ping command reports the target IP address and the response time in milliseconds. Larger sites which feature several web servers report back many different valid IP addresses.

ping google

Certain websites are configured to block ping requests as a precautionary measure. When a ping command is executed for these websites, a Destination Host Unreachable error message is shown. When a website that blocks the ping command returns an error message, the response actually features a DNS server address, as opposed to the website address itself.

Leave a Reply