How to ping and traceroute to server¶
What is ping?¶
Ping is basic internet program that allows the user to verify if a particular IP address exists and can accept requests. It works by sending an ICMP (Internet Control Message Protocol) Echo Request to a network interface and waits for a reply. Ping is generally used to diagnose connectivity and collect response time.
What is traceroute?¶
Traceroute is a computer network diagnostic tool for displaying the route (path) and measuring transit delays of packets across an Internet Protocol (IP) network.
To ping and traceroute
This brief article will explain the steps to ping and traceroute a server using the linux command terminal.
To ping , enter the following in the terminal
ping IP-ADDRESS -c 100
To take traceroute , run the following in the terminal
Make sure that you replace the IP-ADDRESS with the actual IP address of the host that you would like to ping and traceroute to.
Ping and traceroute to Google DNS¶
You can do comparative analysis by taking results of ping and traceroute results to Google DNS (188.8.131.52 or 184.108.40.206). This can be done by following the same steps as mentioned before.
To ping, run the following in the terminal
ping 220.127.116.11 -c 100
To traceroute, run the following in the terminal