1 26 Mar, 2012
In Business Tags:

Ping is a utility that you use to determine whether or not a specific IP address is accessible. Ping works by sending a packet to a specified address and waiting for a reply. Ping command will tell you whether your server is accessible or not.Below you will learn how to do ping and traceroute for Windows and Mac.

How to do ping for Window PC

Step 1: Go to the Windows Start button

Step 2: Type cmd and hit Enter

Step 3: A black window with C: prompt will open

Step 4: Type ping followed by the domain name websitename.com or an IP address, for example, ping google.com or ping

NOTE: use the domain name without the www. so only use google.com and not www.google.com If everything is OK, you should get the following response (or something similar):

how to ping

You can see this return same IP address from where it started. This means that TCP/IP is working on the machine that you are typing address that “loops back” to the machine you are pinging from. It provides you all information about how many packets sent, received and lost. More over it tells RTT(round trip time in ms)

Some websites you might not be able to ping for security reasons, and get a “Request time out” message. This is due to a Firewall being present which blocks ICMP packets. A firewall is a security device that prevents attacks or viruses entering your computer network and often can be standard practice that firewalls blocks ICMP packets.

For Mac OS, check out screenshots below:

Step 1: GO to application folder, Then utilities, then network utility

mac ping

Step 2: Click on the ping tab and specify the host

Step 3: Type “ping hostname” or “ping IPaddress”. For example, to ping the google’s main web server, type “ping www.google.com”. To have your PC ping itself type “ping”. If the site is up and actively responding, you receive replies.

mac ping

Now you know how to ping for Windows and Mac, now it’s time to learn about traceroute.

Traceroute is a computer network utility for displaying the route (path) and measuring transit delays of packets across an Internet Protocol (IP) network.The traceroute utility checks how many “hops” (transfers through other computers on a network) it takes for your computer to contact another computer. If you’re visiting a Web site and pages are appearing slowly, you can use traceroute to figure out where the longest delays are occurring.

The original traceroute is a UNIX utility, but nearly all platforms have something similar.

Traceroute for windows:

For windows command use for traceroute is tracert.

Follow (fig 1.1, 1.2, 1.3 above) to reach CMD prompt.

When you get the CMD prompt, type tracert followed by the domain name for example: tracert google.com You will see below screen:

Highlighted points give you information about: Count: First column, the Hop count gives the number of stops along the route to attempt to contact the other computer.

Round trip time: Next three columns, Round trip time in milliseconds for three different attempts to reach destination.

Respond: Last column, name of the host that responded to the request.

Point here to be note is that IP address while tracerouting particular address gives back you same IP address; as shown in above e.g. it started from [] and at last (at 9th count) it returns same IP. This means there is no problem in accessing the server.

If any of the hops come back with * Request timed out, this denotes network congestion and a reason for slow loading Web pages and dropped connections. then you need to contact your server host.

To run traceroute on a Mac, perform the following steps:

Step 1: From your hard-drive, open the Applications folder, and click to open the Utilities folder (Fig a)

Step 2: Double-click Terminal. (Fig b)

Step 3:Type traceroute followed by your domain name, and hit Enter. (Fig c)

* In this example, yourdomain.com is used. Be sure to replace yourdomain.com with your actual domain name.

Traceroute will tell you how many routers your packets travel through, and how long it takes for them to travel between routers. If the routers have DNS entries, traceroute will list the names of the routers, their network affiliation and geographic location.

Step 4:Check for times between hops that are greater than 200 ms or that return asterisks *** which indicate that your request has timed out, and if it happen so you need to contact server host. (as shown below in fig d)

trace route

Synopsis: The main difference between the common Ping and Traceroute commands is that Ping is a quick and easy way to tell you if the destination server is online or accessibe and estimates how long it takes to send and receive data to the destination. Traceroute tells you the exact route (Path) you take to reach the server from your computer (ISP) and let you know which address giving problem or taking more time to reach destination.

Hope you enjoyed reading this.

Related News