Test Network and Internet Latency (Lag) in Microsoft Windows

Have you just connected a Windows PC to a network or the Internet? Want to know the easiest way to check connectivity? The simple command "ping" will help you find out if it has a networking connection. Both the "ping" and "tracert" commands will help you measure latency, also known as "lag".

Steps

 * 1) Open a command prompt.
 * 2) Click on the "Start" button.
 * 3) Select "Run". A window will open with a text box.
 * 4) Type cmd in the text box.
 * 5) Click "Ok" or press [Enter]. The command prompt will then appear. This is the default command-line interface for Windows.
 * 6) Test the loop-back address. Type ping 127.0.0.1. It is the same for every computer, so you do not need to change this. This will test your computer's network chip, not your modem, router, or Internet connection.
 * 7) You can continuously test a connection using the command ping microsoft.com -t. To exit continuous testing, press Ctrl+C.
 * 8) Place -n 20 at the end of the command to send 20 pings. Replace the number 20 with any value (the value will be limited to a 32-bit or 64-bit integer).
 * 9) Look at the output.
 * 10) If everything is correct, you will see: Reply from 127.0.0.1: bytes... Reply from 127.0.0.1: bytes... Reply from 127.0.0.1: bytes... Reply from 127.0.0.1: bytes...
 * 11) Then it will tell you the ping statistics. This should say 0% loss.
 * 12) Keep an eye on the response time, as it represents the connection's latency between you and the server. Double digit values, such as 50ms, is very good. This varies drastically depending upon where the server is in relation to your computer. Generally, most connections should have latency less than a few hundred milliseconds. If there is no network connection, you will see the output "Request timed out" repeated four times.
 * 13) Test your local Gateway. Find your Default Gateway's IP address:
 * 14) Click on the "Start" button.
 * 15) Select "Run". A window will open with a text box.
 * 16) Type cmd in the text box.
 * 17) Click "Ok" or press [Enter]. The command prompt will then appear.
 * 18) Type ipconfig in the command prompt window.
 * 19) Press [Enter]. The command prompt will then display the output from the ipconfig command.
 * 20) Find the listing for "Default Gateway". This is the IP you can use in a ping to test the connection between your computer and your router or ISP.
 * 21) Test beyond your local network. Test the connectivity of your modem, router, network, or Internet connection by using an IP address on the Internet.
 * 22) Check Domain Name Resolution. Instead of an IP address, type in a site's domain name, such as www.google.com. Pinging a domain name tests your computer and network's ability to resolve network names (translating them to IP addresses).
 * 23) Measure network and Internet performance (Windows NT, 2000, XP, and Vista only). Use the tracert command to measure the response of each hop in a network path. Your connection to any one server will require multiple "hops" between other servers and networking components. The fewer number of hops, the better. Most connections to a server on the Internet will include at least a dozen hops. To test:
 * 24) With the command prompt open, type tracert xxx.xxx.xxx.xxx, replacing xxx.xxx.xxx.xxx with an IP address on the Internet.
 * 25) Press [Enter] and watch as each hop is 'pinged' and logged. The first ping should be your computer, modem, or router, and the last ping should be your target address.
 * 26) Notice that the response time for points farther away from you will be greater than those closer to you.

Tips

 * Another way to start Command Prompt is by navigating to Start > (All) Programs > Accessories > Command Prompt.
 * You can also use commands such as "ipconfig" to find out your IP address.
 * You can also run a remote PING or TRACEROUTE . This allows you to ping an IP address or computer from a computer other than yours to see if the problem may be associated with your local connection rather than the IP Address you are trying to connect to.
 * If you use a dial-up connection, then you may see higher latencies, or even lost packets (% loss).
 * Once you're finished using either the PING command or the TRACERT command, you can close the Command Prompt window by typing "exit", without the quotes.

Warnings

 * Some servers on the Internet block your ability to 'ping' them. These network points are blocking your request for a ping to promote their own security.

Related Tips and Steps

 * How to Set up a Private Network
 * How to Build a Computer
 * How to Defragment Your Computer
 * How to Change a Windows XP Password
 * How to Clean the Inside of a Computer
 * How to Disable Windows Login Screensaver

Sources and Citations
hacer ping a una computadora
 * MS Knowledge Base, Article #314868 shows a process of using the tracert command to troubleshoot TCP/IP problems.
 * Ping Plotter is a free program that send pings, run trace routes, graph response times, and save it all to a log file.