{"id":818,"date":"2012-07-25T23:06:28","date_gmt":"2012-07-25T23:06:28","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=818"},"modified":"2018-09-06T23:00:52","modified_gmt":"2018-09-06T23:00:52","slug":"using-tracert","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=818","title":{"rendered":"Using Tracert"},"content":{"rendered":"<p>Tracert (also known as traceroute) is a Windows based tool that allows  you to help test your network infrastructure. In this article we will  look at how to use tracert while trying to troubleshoot real world  problems. This will help to reinforce the tool&#8217;s usefulness and show you  ways in which to use it when working on your own networks.<\/p>\n<p>This TCP\/IP utility allows you to determine the route packets take  through a network to reach a particular host that you specify. Tracert  works by increasing the &#8220;time to live&#8221; (TTL) value of each successive  packet sent. When a packet passes through a host, the host decrements  the TTL value by one and forwards the packet to the next host. When a  packet with a TTL of one reaches a host, the host discards the packet  and sends an ICMP time exceeded. Tracert, if used properly, can help you  find points in your network that are either routed incorrectly or are  not existent at all.<\/p>\n<h2>Introduction<\/h2>\n<p>Tracert is a Windows based command-line tool  that you can use to trace the path that an Internet Protocol (IP) packet  takes to its destination from a source. Tracert will determine the path  taken to a destination. It does this by sending Internet Control  Message Protocol (ICMP) Echo Request messages to the destination. When  sending traffic to the destination, it will incrementally increase the  Time to Live (TTL) field values to aid in finding the path taken to that  destination address. The path is outlined from this process.<\/p>\n<p>Using the following illustration, let\u2019s take a look at how tracert would function in a production network.<\/p>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/Image11127981939541.JPG\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<h2>How to Use Tracert<\/h2>\n<p>As you saw in the last illustration, we  will be sending traffic from a test workstation from Site B to a server  at another site (Site A). The packets will traverse the wide area  network (WAN) that separates the two sites over a T1 with a backup link  via Integrated Services Digital Network (ISDN). To use the tracert  utility, you simply need to know what your destination IP address is and  how to use the tracert utility correctly as well as what to look for  within the results.<\/p>\n<p>Tracert works by manipulating the Time to Live (TTL). By increasing  the TTL and then each router decrementing as it sends it along to the  next router, you will have a hop count from your source to your  destination. A router hop would be a packet sent from one router to  another router \u2013 that\u2019s a hop. When the TTL on the packet reaches zero  (0), the router sends an ICMP &#8220;Time Exceeded&#8221; message back to the source  computer. You can see an example of our sample network here in the next  illustration; with a source and destination IP address\u2026 we will be  using the workstation on Site B and a server at Site A for our test.<\/p>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/Image21127981939541.JPG\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<p>From this illustration you can see that the source IP will be  10.1.2.4 and the destination (for this example) will be 10.1.1.6. The  normal route the packets should take would be from Site B to Site A over  the higher capacity link, the T1 (1.544 Mbps). The ISDN link is 128  Kbps and is used as a backup if the primary link fails. Tracert once  fired up and used will be able to show you that the packets sent will  start from Site B, the PC at 10.1.2.4 and then traverse the T1 to  10.1.1.1. That router will know how to send the packets to its local LAN  (10.1.1.0) and ultimately to 10.1.1.6.<\/p>\n<p>As the packets are sent, tracert will use the first interface on the  router that it sees to report back your router hops, so let\u2019s take a  look at our complete path before we send the test packets.<\/p>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/Image31127981939541.JPG\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<p>The path displayed is the list of routers in the path between a  source host and a destination. One thing that is very important to  remember is that near-side interfaces are used when reporting. The  near-side interface is the interface of the router that is closest to  the sending host in the path. In this example, you can see that the path  is the T1 from Site B to Site A. Lets see now why it\u2019s important to  know this.<\/p>\n<p>The way tracert works is, once launched and utilized, tracert will  report (print out) a list in the order in which it heard back from each  host that it passed on its way to its intended destination. This is good  because you can learn much from this path. If you are getting \u2018near  side\u2019 interfaces, then you would see a new set of IP addresses in the  next illustration (192.168.10.1 and 192.168.11.1) 10.1 is used for the  ISDN link and 11.1 is used for the T1 link. Why is this important?<\/p>\n<p>When you get results back from tracert, this could be confusing to  some who are not adept with working with this tool, you will see WAN  addressing instead of Site A\u2019s default gateway router which is 10.1.1.1.  It\u2019s the same router, but it\u2019s a different interface. This is  imperative for you to know when testing with tracert, because if you  confuse this, you will not know what you are reading.<\/p>\n<p>For example, the path as you see in the last illustration is from  10.1.2.4 and then to 10.1.2.1 (the LAN\u2019s default gateway), and then it  will traverse the WAN to 10.1.1.1. The only problem here is that you  will not see that address come up. Since the T1 has an interface on Site  A\u2019s router (11.1), and so does the ISDN link (10.1), these are the two  IP address that are most important in the results of tracert \u2013 this is  because in this example, the T1 may be down and now the path is over the  ISDN link. This is working \u2018as advertised\u2019, but what happens when you  bring the T1 back online \u2013 aside from feeling your network crawl from  moving from a T1 at 1.544 Mbps to a 128 Kbps \u2013 is that you should not be  using the ISDN link anymore. This is what we are going to test\u2026<\/p>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/Image41127981939541.JPG\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<h2>The Tracert Test<\/h2>\n<p>Now, to use tracert, you simply need to open a command prompt. To do this, go to<\/p>\n<blockquote dir=\"ltr\"><p>Start =&gt; Run =&gt; CMD =&gt; tracert<\/p><\/blockquote>\n<p>(note \u2013 you must type tracert, as you can see traceroute only works on UNIX\/Linux and other systems such as Cisco, etc)<\/p>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0111127982391182.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<p>In the following example of the tracert command and its output, the  packet travels through two routers (as seen in the last illustration) to  get to host 10.1.1.6. In this example, the default gateway from Site B  is 10.1.2.1 and the IP address of the router on the WAN via the T1 and  ISDN links (respectively) are 192.168.11.1 and 192.168.10.1.<\/p>\n<p>Lets first see what it should look like using the T1.<\/p>\n<blockquote dir=\"ltr\"><p>C:\\&gt;tracert 10.1.1.6<br \/>\nTracing route to 10.1.1.6 over a maximum of 30 hops<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n1\u00a0\u00a0\u00a0\u00a0\u00a0 2 ms\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3 ms\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2 ms\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a010.1.2.1<br \/>\n2\u00a0\u00a0\u00a0\u00a0 25 ms\u00a0\u00a0\u00a0\u00a0\u00a0 83 ms\u00a0\u00a0\u00a0\u00a0\u00a0 88 ms\u00a0\u00a0\u00a0\u00a0\u00a0 192.168.11.1<br \/>\n3\u00a0\u00a0\u00a0\u00a0 25 ms\u00a0\u00a0\u00a0\u00a0\u00a0 79 ms\u00a0\u00a0\u00a0\u00a0\u00a0 93 ms\u00a0\u00a0\u00a0\u00a0\u00a0 10.1.1.6<\/p>\n<p>Trace complete.<\/p><\/blockquote>\n<p>Now, if the T1 was down and you were using the ISDN link, you can see  that there is a different \u2018path\u2019 and you can also see that it takes  \u2018longer\u2019 to get there.<\/p>\n<blockquote dir=\"ltr\"><p>C:\\&gt;tracert 10.1.1.6<br \/>\nTracing route to 10.1.1.6 over a maximum of 30 hops<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n1\u00a0\u00a0\u00a0\u00a0\u00a0 2 ms\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3 ms\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2 ms\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10.1.2.1<br \/>\n2\u00a0\u00a0\u00a0\u00a0 75 ms\u00a0\u00a0\u00a0\u00a0\u00a0 83 ms\u00a0\u00a0\u00a0\u00a0\u00a0 88 ms\u00a0\u00a0\u00a0\u00a0\u00a0 192.168.10.1<br \/>\n3\u00a0\u00a0\u00a0\u00a0 75 ms\u00a0\u00a0\u00a0\u00a0\u00a0 79 ms\u00a0\u00a0\u00a0\u00a0\u00a0 93 ms\u00a0\u00a0\u00a0\u00a0\u00a0 10.1.1.6<\/p>\n<p>Trace complete.<\/p><\/blockquote>\n<p>As you can see now, using tracert will help you to determine the  network path as it is laid out through the network \u2013 AND \u2013 most  importantly, how data traverses that path.<\/p>\n<h2>Using Tracert Options<\/h2>\n<p>To use tracert, be aware of a few  options you can use with it. The most helpful is the first one. Using  the \u2013d option is always helpful when you want to remove DNS resolution.  Name servers are helpful, but if not available or if incorrectly set or  if you simply just want the IP address of the host, use the \u2013d option.<\/p>\n<blockquote dir=\"ltr\">\n<p dir=\"ltr\">\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"67\" valign=\"top\">-d<\/td>\n<td width=\"523\" valign=\"top\">Prevents tracert from attempting to resolve the IP addresses of  intermediate routers to their names. This can speed up the display of  tracert results<\/td>\n<\/tr>\n<tr>\n<td width=\"67\" valign=\"top\">-h<\/td>\n<td width=\"523\" valign=\"top\">Specifies the maximum number of hops in the path to search for the target (destination). The default is 30 hops<\/td>\n<\/tr>\n<tr>\n<td width=\"67\" valign=\"top\">-j<\/td>\n<td width=\"523\" valign=\"top\">You can use this with a host list (HostList). Specifies that Echo  Request messages use the Loose Source Route option in the IP header with  the set of intermediate destinations specified in HostList. With loose  source routing, successive intermediate destinations can be separated by  one or multiple routers. The maximum number of addresses or names in  the host list is 9. The HostList is a series of IP addresses (in dotted  decimal notation) separated by spaces.<\/td>\n<\/tr>\n<tr>\n<td width=\"67\" valign=\"top\">-w<\/td>\n<td width=\"523\" valign=\"top\">Specifies the amount of time in milliseconds to wait for the ICMP  Time Exceeded or Echo Reply message corresponding to a given Echo  Request message to be received. If not received within the time-out, an  asterisk (*) is displayed. The default time-out is 4000 (4 seconds)<\/td>\n<\/tr>\n<tr>\n<td width=\"67\" valign=\"top\">-?<\/td>\n<td width=\"523\" valign=\"top\">Displays help at the command prompt.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>tracert [-d] [-h MaximumHops] [-j HostList] [-w Timeout] [TargetName]<\/p><\/blockquote>\n<h2>How to Use Tracert to Troubleshoot<\/h2>\n<p>There may be times where  the output you get isn\u2019t so clear to you. For example, what if you get  an asterisk? As just mentioned in the last section, an asterisk can be a  false positive, because the ICMP packet may be traveling through, but  something is stopping the report from coming back, most likely a  firewall rule or access control list.<\/p>\n<p>You can use tracert to find out where a packet stopped on the  network. In the following example, the default gateway has found that  there is no valid path for any host. This would mean that both links are  down \u2013 the T1 and the ISDN and there is no destination available.<\/p>\n<blockquote dir=\"ltr\"><p>C:\\&gt;tracert 10.1.1.6<br \/>\nTracing route to 22.110.0.1 over a maximum of 30 hops<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n1\u00a0 10.1.2.1\u00a0 reports: Destination net unreachable.<\/p>\n<p>Trace complete.<\/p><\/blockquote>\n<p>From this example, you can see that when you sent the tracert test to  10.1.1.6, the LAN default gateway reported that it could not find a  path \u2013 to see this in graphical format may help you to understand it  better.<\/p>\n<blockquote dir=\"ltr\"><p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/Image51127982391182.JPG\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><\/p><\/blockquote>\n<p>As just mentioned, since there is no path, the closest router to the source informs the source that there is no path.<\/p>\n<h2>Important Notes<\/h2>\n<p>Here are some important notes that I have compiled to help you learn more about tracert.<\/p>\n<ul type=\"disc\">\n<li>Tracert also doesn\u2019t help you to find \u2018latency\u2019. To trace a path and  provide network latency and packet loss for each router and link in the  path, use the pathping command. Visit my author section on this site to  learn about pathping.<\/li>\n<li>Tracert is available only if the Internet Protocol (TCP\/IP)  protocol is installed as a component in the properties of a network  adapter in Network Connections. This is a TCP\/IP utility that uses ICMP,  a protocol within the TCP\/IP protocol suite.<\/li>\n<li>On modern Linux distros the <strong>traceroute<\/strong> (not tracert  although some Linux systems allow you to use tracert too!) utility uses  UDP datagram\u2019s with a port number of 33434. Windows uses ICMP echo  request (type 8) better known as ping packets.<\/li>\n<li>Read <a href=\"http:\/\/www.faqs.org\/rfcs\/rfc792.html\" target=\"_blank\">RFC 792<\/a> for more information about ICMP and its internals.<\/li>\n<\/ul>\n<h2>Summary<\/h2>\n<p>In this article we covered the basics of tracert.  Tracert (also known as traceroute) is a Windows based tool that allows  you to help test your network infrastructure. In this article we looked  at and covered how to use tracert while trying to troubleshoot real  world problems such as multiple paths or downed links. This will help to  reinforce the tool&#8217;s usefulness and show you ways in which to use it  when working on your own networks. This TCP\/IP utility allows you to  determine the route packets take through a network to reach a particular  host that you specify. Tracert works by increasing the &#8220;time to live&#8221;  (TTL) value of each successive packet sent. When a packet passes through  a host, the host decrements the TTL value by one and forwards the  packet to the next host. When a packet with a TTL of one reaches a host,  the host discards the packet and sends an ICMP time exceeded. Tracert,  if used properly, can help you find points in your network that are  either routed incorrectly or are not existent at all. Tracert (and  traceroute) is a tool that you must master if you plan on working on  networks \u2013 this (with ping and pathping) can be used to help you map and  troubleshoot your network with ease.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tracert (also known as traceroute) is a Windows based tool that allows you to help test your network infrastructure. In this article we will look at how to use tracert while trying to troubleshoot real world problems. This will help to reinforce the tool&#8217;s usefulness and show you ways in which to use it when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[],"class_list":["post-818","post","type-post","status-publish","format-standard","hentry","category-computer-tech-stuff","category-networking-stuff"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=818"}],"version-history":[{"count":3,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/818\/revisions"}],"predecessor-version":[{"id":2622,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/818\/revisions\/2622"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}