PING
Ping can test the speed of your connection, "distance" to target, and whether or not your connection is even up and running. It tells you how long a packet of data takes to travel from your computer to a specified host, and back again(in this case, the packet is 32 bytes in size).
To use Ping, type ping followed by a destination host (server name such as www.expedient.net) or a host IP address (e.g., 209.166.161.121).
Note for Macintosh OS X users: use the command ping -c 4 followed by the destination host to ping only 4 times. If you do not use the -c 4, he command will continue pinging until your break the connection (CTRL+C on the keyboard).
Ping Tests
Once you have your command prompt (or WhatRoute) open, enter ping 127.0.0.1 and press Enter. You should receive 4 responses similar to the lines below. This ping test verifies the operation of the base TCP/IP stack. If TCP/IP is working correctly, there will be no problems with the ping. If you receive a timeout or error message, there is a problem with TCP/IP in which case you may have to uninstall and reinstall TCP/IP.
C:\WINDOWS>ping 127.0.0.1 |
Ping your IP* and press Enter. The "XXX" indicates your IP address and can be found by using the ipconfig /all command. Pinging your IP verifies that the physical network device can be addressed. If you cannot ping your own IP address, make sure the IP is correctly entered in the Network Control Panel (NCP). If it is correct, replace TCP/IP. If this does not work, the network card may not be properly installed or 'bad' in which case you may need to reinstall the NIC.
C:\WINDOWS>ping 209.166.xxx.xxx |
Enter ping 209.166.161.121 and press Enter. This test checks that your connection to the Internet is active and that the network can be accessed. You should receive 4 responses similar to the lines below.
C:\WINDOWS>ping 209.166.161.121 |
Now enter ping www.expedient.net or another server name (e.g., www.yahoo.com) and press Enter. This test checks that your computer is able to translate name addresses (like www.expedient.net or www.yahoo.com) to numbers (like 209.166.165.174 or 64.58.76.224) - DNS resolution. You should receive 4 responses similar to the lines below. If you do not receive responses, check your DNS configuration settings. Click here for DNS Servers.
C:\WINDOWS>ping www.expedient.net |
UNDERSTANDING THE OUTPUT
The first line is the command we typed: "ping www.expedient.net". Note the space between the command "ping" and the host computer "www.expedient.net."
The next line shows the full name of the host, as found by the ping program. The number 208.40.175.241 is the IP address of the host. An IP address is similar to your zip code. You may live in Pittsburgh, PA; but to the Post office, you are 15222-xxxx. The same goes for the internet, "www.expedient.net" is "208.40.175.241".
The next four lines show whether or not the host replied, with how many bytes (size of packet), round trip time (in milliseconds), and the TTL is how many routers the packet will go through before giving up trying to find the host.
The last lines show the statistics from pinging the host. They include how many packets were sent, received, and lost. Also shown are round trip times and averages.
INTERPRETING THE RESULTS
If all 4 packets sent are received, then the connection is working fine. Any lost packets may indicate slow connection problems. If no packets are received, you'll see like that say something like "Destination Host unreachable" or "Request Timed Out". This can indicate that your connection is not routing properly.
Note: For security reasons, some servers do not allow you to ping them - you will get "Request Timed Out" errors. You should try multiple servers if you are testing your connection.
If you can not ping a domain name (i.e. www.expedient.net), try the IP address (i.e. 208.40.175.241). If pinging an IP address generates replies, but the domain name doesn't, then there is probably a DNS issue.
Read the story of how PING was created: http://ftp.arl.mil/~mike/ping.html
TRACEROUTE
Traceroute tracks the path that a packet takes from your computer to a destination address. A traceroute also shows how many times your packets are being rebroadcast by other servers until it gets to the final destination. For windows users, the command is tracert. For Macintosh OS X users, its traceroute.
In this example we will trace the hops from a computer to yahoo.com:
C:\WINDOWS>tracert yahoo.com |
UNDERSTANDING THE OUTPUT
The first line is the command we typed: tracert yahoo.com. Note the space between the command "ping" and the host computer "yahoo.com."
The next line shows the traceroute program acquiring the ip address from the domain. "Maximum of 30 hops" is how many routers the packet will go through before giving up trying to find the host.
The next lines show each server the packets traveled through to get to the destination yahoo.com. These show both the IP address and domain name of the actual servers that the packets passed through.
INTERPRETING THE RESULTS
Traceroutes allow you to see the path your packets take over the Internet. Sometimes, they will also allow you to "see" how your information traveled over the world: Many companies will name their servers based on where the server is located. From our example above, our information passed from our computer to servers in Washington DC then through servers in San Jose before reaching its destination (yahoo.com).
Traceroutes can show where there is a break in your connection. This allows you to determine exactly where your packets are being dropped or lost. Dropped or lost packets on a traceroute will usually show as asterisks (*).
Note: Just like ping, some servers do not allow you to traceroute all the way to them - you will get timeouts and sometimes errors. You should try multiple servers if you are testing your connection.Ping and Traceroute allow you to diagnose problems with your Internet connection. These utilities allow you to determine if a problem is on your computer, out on the network, or at the server you're trying to reach.
1 comment:
thanks for sharing..you check the ping details here ping..it can ping your both ipaddress and name...
Post a Comment