Thursday, July 17, 2008

How To-2: "How to Test Network and Internet Latency (Lag) in Microsoft Windows"


from wikiHow - The How to Manual That You Can Edit

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.
    1. Click on the "Start" button.
    2. Select "Run". A window will open with a text box.
    3. Type cmd in the text box.
    4. Click "Ok" or press [Enter]. The command prompt will then appear. This is the default command-line interface for Windows.

  2. 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.
    1. You can continuously test a connection using the command ping 64.233.161.99 -t
    2. 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).

  3. Look at the output.
    1. 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...
    2. Then it will tell you the ping statistics. This should say 0% loss.
    3. 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.

  4. Test your local Gateway. Find your Default Gateway's IP address:
    1. Click on the "Start" button.
    2. Select "Run". A window will open with a text box.
    3. Type ipconfig in the text box.
    4. Click "Ok" or press [Enter]. The command prompt will then appear with output from the ipconfig command.
    5. 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.

  5. Test beyond your local network. Test the connectivity of your modem, router, network, or Internet connection by using an IP address on the Internet.
  6. Check Domain Name Resolution. Instead of an IP address, type in a site's domain name, such as www.google.com. Pining a domain name tests your computer and network's ability to resolve network names (translating them to IP addresses).
  7. 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:
    1. With the command prompt open, type tracert xxx.xxx.xxx.xxx, replacing xxx.xxx.xxx.xxx with an IP address on the Internet.
    2. 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.
    3. Notice that the response time for points farther away from you will be greater than those closer to you.



Tips


  • You can also use commands such as "ipconfig" to find out your IP address.
  • If you use a dial-up connection, then you may see higher latencies, or even lost packets (% loss).
  • An alternative method to start a ping:
    1. Click on the "Start" button.
    2. Select "Programs" or "All Programs".
    3. Select "Accessories".
    4. Select "Command Prompt".
    5. Type in ping.
    6. Press [Space].
    7. Type in a website address.
    8. It will return a set of numbers, separated by periods.
    9. Type those numbers into the address bar of you Internet browser.



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 wikiHows




Sources and Citations


  • 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.



Article provided by wikiHow, a collaborative writing project to build the world's largest, highest quality how-to manual. Please edit this article and find author credits at the original wikiHow article on How to Test Network and Internet Latency (Lag) in Microsoft Windows. All content on wikiHow can be shared under a Creative Commons license.

No comments: