Home » 2014 » September » 27 » TRACERT command in Windows Command Line

9:47 AM
TRACERT command in Windows Command Line

traceroute tracks the route packets take across a TCP/IP network on their way to a given host.

See traceroute command in Linux also.

How it works??

  • Tracert utility uses the ttl field of ip packet header to accomplish its goal. TTL field(usually set to 32 or 64) tells us the number of hops a packet will have travel to reach to its destination host.
  • Each time a packet passes a hop, the ttl value is decreased by one and when the TTL value at an intermediate hop (router) becomes 1, the packet is discarded.
  • Traceroute requires the same and it incrementally gives the ip addresses of the hops through which the packet passes.
  • It utilizes the IP protocol's time to live (TTL) field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to the host.
  • We have to supply only name or IP address of the destination host. This paremeter can be followed by the size of the probing packet [packetlen] sent to that host (40 by default).
  • By default this command will use first ttl as 1, maximum 30 hops. port no. as 33434 and packates of length 40 byte using UDP protocol


Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout]
               [-R] [-S srcaddr] [-4] [-6] target_name

    -d                 Do not resolve addresses to hostnames.
    -h maximum_hops    Maximum number of hops to search for target.
    -j host-list       Loose source route along host-list (IPv4-only).
    -w timeout         Wait timeout milliseconds for each reply.
    -R                 Trace round-trip path (IPv6-only).
    -S srcaddr         Source address to use (IPv6-only).
    -4                 Force using IPv4.
    -6                 Force using IPv6.



Tracing route to HYDPCM316109D.ad.infosys.com []
over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  HYDPCM316109D.ad.infosys.com []

Trace complete.


  • If you dont want to resolve ip addresses to ip name, use option "-d". 

C:\Users\shankar_bhagat>tracert -d

Tracing route to over a maximum of 30 hops

  1    <1 ms    <1 ms    <1 ms

Trace complete.


Category: Technical Solution | Views: 1175 | Added by: shanky | Tags: trace ip packets in windows, traceroute, tracert command in windows, tracert | Rating: 0.0/0

Related blogs

You may also like to see:

[2014-02-02][Technical Solution]
Free Web space on internet to upload any kind of file!!!
[2014-01-29][Technical Solution]
How to create my own website for free?
[2015-02-04][Technical Solution]
Introduction to 3*3 Rubik's Cube basics
[2014-12-28][Technical Solution]
How to schedule a mail in outlook to be sent later?
[2014-05-02][Technical Solution]
A very basic program in perl scripting

Total comments: 0