Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 27-07-2009
Member
 
Join Date: May 2008
Posts: 1,304
Tracert command-line utility in Windows

Tracert is a Windows based command-line tool that can be used to trace the path that an Internet Protocol (IP) packet takes to reach its destination from a source. It determines the path taken to a destination by sending Internet Control Message Protocol (ICMP) Echo Request messages to the destination with incrementally increasing Time to Live (TTL) field values. The TTL is often called as a hop count. The path displayed is the list of near-side router interfaces of the routers in the path between a source host and a destination. Tracert uses the IP TTL field in ICMP Echo Requests and ICMP Time Exceeded messages to determine the path from a source to a destination through an IP internetwork. When the TTL on a packet reaches 0, the router should send an ICMP Time Exceeded message back to the source computer.

How does Tracert Works

Tracert determines the route by sending the first echo packet with a TTL of 1 and then waiting for an ICMP Time Exceeded message. The TTL values of the Tracert packets start with an initial value of one; the TTL of each trace after the first is incremented by one. A packet sent out by Tracert travels one hop further on each successive trip. The route is determined by examining the ICMP Time Exceeded messages sent back by intermediate routers.

Syntax

Code:
tracert [-d] [-h MaximumHops] [-j HostList] [-w Timeout] [TargetName]
Parameters

-d : Prevents tracert from attempting to resolve the IP addresses of intermediate routers to their names. This can speed up the display of tracert results.

-h MaximumHops : Specifies the maximum number of hops in the path to search for the target (destination). The default is 30 hops.

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

-w Timeout : 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).

TargetName : Specifies the destination, identified either by IP address or host name.
__________________
Broadband Unlimited Plans
Reply With Quote
  #2  
Old 27-07-2009
Member
 
Join Date: May 2008
Posts: 2,944
Re: Tracert command-line utility in Windows

Internet Control Message Protocol (ICMP) is an error reporting and diagnostic utility protocol and is considered as an essential part of any IP implementation. Tracert allows you to help test your network infrastructure and it uses ICMP to report the result. ICMPs are used by routers, intermediary devices, or hosts to communicate updates or error information to other routers, intermediary devices, or hosts. To trace a path and provide network latency and packet loss for each router and link in the path, you can use the "pathping" command.
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Tracert command-line utility in Windows"
Thread Thread Starter Forum Replies Last Post
xcopy command line together with wmplayer command line Aislinn Operating Systems 5 31-03-2010 12:13 PM
What is use of MAC's command line utility Leonard Windows Software 6 09-02-2010 08:52 AM
Can Windows Update be run from the command line? Xena Networking & Security 4 24-07-2009 05:10 PM
Windows command line disappear Rebella Operating Systems 3 22-07-2009 03:39 PM
Template for Command-Line utility in VB Jaishree Software Development 3 07-07-2009 10:18 AM


All times are GMT +5.5. The time now is 11:52 PM.