Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


December 1999

Trace Your Routes to Discover Bottlenecks

RSS
Subscribe to Windows Web Solutions | See More Monitoring and Analysis Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

[Editor's Note: Email your IIS and Site Server solutions (400 words or less) to R2R at iisadmin@winntmag.com. We'll edit submissions for style, grammar, and length. If we print your contribution, you'll get $100.]

The Tracert utility (short for trace route), installed as part of Windows NT and Windows 9x, is one of the most interesting and fun commands in my utility arsenal. A systems administrator uses Tracert to watch the routing in an enterprise. I use Tracert to see the routes my packets take when going from one computer to another over either the Internet or my intranet. In my daily work, I find that the command helps me find bottlenecks in my network or misconfigured routings. Using Tracert is like playing spy: It's fun to follow packets' hops as they travel around the world.

Tracert sends out a series of packets, and each arrives successively one hop closer to the final destination. Tracert sends a packet on the network toward its destination. When the packet gets to a routing point, the router returns the location's address. Then Tracert sends the next packet, which goes past the first routing point to the second one; and so on. Tracert gives you a table showing the route your packets took to get to a specified location.

You send Internet Control Message Protocol (ICMP) echo packets with a Time to Live (TTL) value to a specific destination. Each router along the packet's route decrements TTL by at least 1 before forwarding it. The net effect is that TTL provides a hop count. When TTL reaches 0, the router sends an ICMP Time Exceeded message to the sending system. Tracert sends the first echo packet with a TTL of 1 and increments TTL by 1 for each subsequent transmission until the destination responds or TTL reaches its maximum. To determine how long the message took, look at the ICMP Time Exceeded message that each router sent back.

Tracert takes the following form:

tracert [-d] [-h maximum_hops] [-j
   host-list] [-w timeout] target_name 
  • -d suppresses the resolution of host names
  • -h maximum_hops sets the maximum number of hops allowed before terminating trace
  • -j host-list lets you specify a loose source route (no predetermined route, only a starting point—your machine—and an end point) along a host list (containing the names of the host servers that the router returned)
  • -w timeout is the maximum time allowed for each reply before the trace times out
  • target_name is the destination computer that you want to trace the route to

What most people don't realize is that you can use Tracert as effectively on an internal network as you can to trace routing on the Internet. By watching a Tracert table build on an internal network you can resolve bottlenecks and establish a better set of routing tables. Try it out; the places those packets have been will surely amaze you.

End of Article



Reader Comments
this artical sux eggs!! get a life

maddy May 28, 2004


then just dont read it maddy

Anonymous User January 27, 2005


This is a great little article. I love tracert. Here in Serbia to go to Bosnia it goes through Croatia, to go through the states it's routed through BT or another provider. It's really neat. If your not ineterested in computers, well then, windowsitPRO.com isn't for you.

Anonymous User May 08, 2005 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...


Related Events Concrete Ways to Make Sure Your SharePoint Deployment Doesn't Blow Up

Virtualization Management

Delivering Reliable and Effective Web-Based Applications

Check out our list of Free Email Newsletters!

IIS and Web Administration eBooks Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Related IIS and Web Administration Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing