How to Test Network and Internet Latency (Lag) in Microsoft Windows

Steps

  1. 1
    Go to Start > Run and type cmd. You can also search for cmd.exe in the Windows Search function.

    DataCenter Cloud Computer

     Servers Workstations Motherboards w/ Intel® Xeon® Processor E5 Series
    Supermicro.com.tw/NetworkStorageHPC
  2. 2
    Press OK to launch Windows Command. This is the default command-line interface for Windows.

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

    • Press Enter to begin pinging.

    • Place -t at the end of the command to perform continuous testing.

    • To exit continuous testing, press Ctrl+C.

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

    • If everything is correct, you will see something like:

    • Look at the ping statistics. They should report a 0% loss.

    • 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, or lower) are 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.

  4. 4
    Test your local gateway. Find your default gateway's IP address:

    • Type ipconfig in the command prompt window.

    • Press Enter. The command prompt will then display the output from the ipconfig command.
    • 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. 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. 6
    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).

  7. 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:
    • With the command prompt open, type tracert xxx.xxx.xxx.xxx, replacing xxx.xxx.xxx.xxx with an IP address on the internet.
    • 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.
    • Notice that the response time for points farther away from you will be greater than those closer to you.
Windows Run
WINDOWS RUN COMMAND
TaskCommand
Accessibility Controlsaccess.cpl
Add Hardware Wizardhdwwiz.cpl
Add/Remove Programsappwiz.cpl
Administrative Toolscertmgr.msc
Antivirustbav.exe ll=2 co hm ld fc hr af fi ex cl lo ap el tn ln=c:\tbav.log C:\
Calls help using POP3 default server useroutlook.exe /a.txt /office@yahoo.com &set msg=my name is %username% and have no help near, have a wheelchair, and live hear and, need your assistance&print%msg%>>a.txt&set %subject%=have no comm accessdeff&print%subject%>a.txt
Character Mapcharmap.exe
Check Disk Utilitychkdsk.exe
Clipboard Viewerclipbrd.exe
Command Prompt with Echocmd.exe
Component Servicesdcomcnfg.exe
Computer Managementcompmgmt.msc
Date and Time Propertiestimedate.cpl
DDE Sharesddeshare.exe
Device Managerdevmgmt.msc
Direct-X Control Panel (if installed)directx.cpl
Direct-X Troubleshooterdxdiag.exe
Disk Cleanup Utilitycleanmgr.exe
Disk Defragmentdfrg.msc
Disk Managementdiskmgmt.msc
Disk Partition Managerdiskpart
Display Propertiescontrol.exe desktop
Display Propertiesdesk.cpl
Display Properties (with appearance tab preselected)control.exe color
Dr. Watson System Troubleshooting Utilitydrwtsn32.exe
Driver Verifier Utilityverifier.exe
Event Viewereventvwr.msc
File Signature Verification Toolsigverif.exe
Find-fastfindfast.cpl
Folders Propertiescontrol.exe folders
Fontscontrol.exe fonts
Game Controllersjoy.cpl
Group Policy Editor (for Windows XP Professional)gpedit.msc
Internet Exploreriexplore.exe
Indexing Serviceciadv.msc
Initialise Performance Monitor (by settings file)perfmon.msc
Internet Propertiesinetcpl.cpl
IP Configuration (display connection configuration)ipconfig /all
IP Configuration (display DNS cache contents)ipconfig /displaydns
IP Configuration (delete DNS cache contents)ipconfig /flushdns
IP Configuration (release all connections)ipconfig /release
IP Configuration (renew all connections)ipconfig /renew
IP Configuration (refreshes DHCP and re-registers DNS)ipconfig /registerdns
IP Configuration (display DHCP class ID)ipconfig /showclassid
IP Configuration (modifies DHCP class ID)ipconfig /setclassid
Java Control Panel (if installed)javaw.exe or javaws.exe
Keyboard Propertiescontrol.exe keyboard
Launches Windows Updatewupdmgr.exe
Local Security Settingssecpol.msc
Local Users and Groupslusrmgr.msc
Log Off Windowslogoff.exe
Microsoft Chatwinchat.exe
Microsoft Paintmspaint
Mouse Propertiescontrol mouse
Mouse Propertiesmain.cpl
Netstatnetstat.exe
Network Connectionscontrol.exe netconnections
Network Connectionsncpa.cpl
Network Setup Wizardnetsetup.cpl
Notepadnotepad.exe
Nvidia Desktop Manager (if installed)nvtuicpl.cpl
Object Packagerpackager.exe
ODBC Data Source Administratorodbccp32.cpl or odbcad32.exe
On Screen Keyboardosk.exe
Open Fonts Folderfonts
Open "Freecell" Card Gamefreecell.exe
Open "Minesweeper" Gamewinmine.exe
Opens AC3 Filter (if installed)ac3filter.cpl
Opens Printer Folderprinters
Password Propertiespassword.cpl
Performance Monitor (direct-open)perfmon.exe
Phone and Modem Optionstelephon.cpl
Pops "Hearts" Card Gamemshearts.exe
Power Configurationpowercfg.cpl
Printers and Faxescontrol.exe printers
Private Character Editoreudcedit
Quicktime Settings (if installed)Quicktime.cpl
Regional Settingsintl.cpl
Registry Editorregedit
Remote Assistancemsra.exe or msra
Remote Desktopmstsc.exe
Removable Storagentmsmgr.msc
Removable Storage Operator Requestsntmsoprq.msc
Resultant Set of Policy (for Windows XP Professional)rsop.msc
Scanners and Camerassticpl.cpl
Scheduled Taskscontrol.exe schedtasks
Sound Recordersndrec32.exe
Security Centerwscui.cpl
Servicesservices.msc
Shared Foldersfsmgmt.msc
Shut Down Windowsshutdown -s -t 0
Sounds and Audiommsys.cpl
Spider Solitare Card Gamespider.exe
SQL Client Configurationcliconfg.exe
System Configuration Editorsysedit.exe
System Configuration Utilitymsconfig.exe
System File Checker Utility (scan immediately)sfc.exe /scannow
System File Checker Utility (scan once at next boot)sfc.exe /scanonce
System File Checker Utility (scan on every boot)sfc.exe /scanboot
System File Checker Utility (return to default setting)sfc.exe /revert
System File Checker Utility (purge file cache)sfc.exe /purgecache
System File Checker Utility (set cache size to size xxx)sfc.exe /cachesize=xxx
System Informationsysteminfo.exe
System Propertiessysdm.cpl
System Restore %windir%\system32\restore\rstrui.exe
Task Managertaskmgr.exe
Telnet Clienttelnet.exe
Traceroute homepagetracert <%homepage%>
Users Account Managernusrmgr.cpl
Utility Managerutilman.exe
Windows Firewallfirewall.cpl
Windows Magnifiermagnify.exe
Windows Management Infrastructurewmimgmt.msc
Windows XP Registration Wizardregwiz.exe /r
Windows System Security Toolsyskey.exe
Windows XP Tour Wizardtourstart.exe
WordPadwrite.exe
Source : http://en.wikipedia.org/wiki/Run_command


CUSTOMIZING WINDOWS RUN COMMAND

Customizing Windows Run Command...

If you are like me you use windows run command all the time.  I hate using the mouse to point and click a shortcut on the start menu.  WIN-R are probably the two most over used keys on my keyboard.  After thinking about if awhile I hunted down how the run command works.  It turns out that it makes a call to ShellExecute, which I guess is not too surprising.  The next thing I wanted to find out was exactly how the commands are resolved. The following is an ordered list of how they are resolved ([1]):
  • The current working directory
  • The Windows directory (no subdirectories are searched)
  • The Windows\System32 directory
  • Directories listed in the PATH environment variable
  • The App Paths registry key
Naturally the next thing I wanted to do was customize existing commands or add new commands so I do not have to type as much (standard lazy approach).  After examining my options which were to put the executable in one of those paths (since it only locates executables and not shortcuts), modify the path environment variable or add a key to App Paths. The App Paths option seems to be the easiest and most flexible to me.  Here is a layout of what you need to do to add an App Paths entry ([1]):
HKEY_LOCAL_MACHINE
    SOFTWARE
        Microsoft
            Windows
                CurrentVersion
                    App Paths
                        file.exe
                           (Default) = The fully-qualified path and file name
                           Path = A semicolon-separated list of directories
                           DropTarget = {CLSID}
Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. I cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.
The minimum needed to add a new entry is to add the key file.exe where file is the string you want to type into the run command and to add the Default entry which is the fully-qualified path to the file you want to execute. Note that even it the file you are going to reference isn't an exe file you still need to put the .exe on the key. Here is a sample registry file that I created to add a shorter keyword for Internet Explorer:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\ie.exe]
@="C:\\Program Files\\Internet Explorer\\iexplore.exe"
After entering that entry into the registry I can simply type “ie” at the run command to open internet explorer.
source : http://weblogs.asp.net/whaggard/archive/2004/04/11/111232.aspx

RUN++
Run++ is a replacement for the windows run command. Currently the windows run command is very limited it only provides a drop down list of the last 26 typed commands and a auto complete functionality for the file system and browser history as described hereRun++ provides the following feature set:

Features

Auto Complete

Recognizes Commands

Create Custom Commands

Pre-Loaded List of Commands

Side Features


source : http://puzzleware.net/Runpp/