SlideShare ist ein Scribd-Unternehmen logo
1 von 7
Downloaden Sie, um offline zu lesen
NETWORKING TOOL
TRACERT/TRACEROUTE
Introduction
Traceroute is a utility that send an ICMP packets from our computer to user input
destination and displays information about what is happening to the packet on each
point along the path. The path displayed is the list of near-side interface of the
routers between a source host and a destination. It also calculates and displays the
amount of time each hop took.
Hops are nothing but the computers, routers, or any devices that comes in between the source
and the destination.
Purpose of Traceroute
The purpose of traceroute is to identify the problematic server that is causing the
error, and that is why we send traceroute info only if there is an error before reaching
our servers. Traceroute is a very resource consuming operation and it will slow down
our servers a lot if we do it all the time. Network administrators and system
administrators use this tool most commonly in their day to day activities.
Types of Traceroute Program
There are different types of traceroute programs. Each of them works slightly
differently. But the overall concept behind each of them is the same. All of them use
the TTL value. The different types are mentioned below.
1) UDP Traceroute- It’s the default protocol used by Linux traceroute program.
However we can also use ICMP instead of UDP by giving the below
command in Linux.
root@workstation:~# traceroute -I -n 8.8.8.8
2) ICMP Traceroute- ICMP for traceroute works the same way as UDP
traceroute. Traceroute program will send ICMP Echo Request messages and
the hops in between will reply with a ICMP Time exceeded messages. But the
final destination will reply with ICMP Echo reply. Tracert command available in
windows operating system by default uses ICMP traceroute method.
3) TCP Traceroute- Its used because almost all firewall and routers in between
allows you to send TCP traffic. And if the packet is toward port 80, which is
the web traffic then most of the routers allow that packet. TCPTRACEROUTE
by default sends TCP SYN requests to port 80.
Objectives of Traceroute
● Traceroute determines how packets are being routed to a particular host.
● It also helps in determining the entire path that a packet travels through
● Determines names and identity of routers and devices in your path
● Helps in determining the Network Latency or more specifically the time taken to
send and receive data to each devices on the path
● It is useful in determining where a network outage is occurring, test connectivity
and determining congestion in traffic.
● Traceroute is a handy tool both for understanding where problems are in the
Internet network and for getting a detailed sense of the Internet itself.
● TRACERT is useful for troubleshooting large networks where several paths can
lead to the same point or where many intermediate components (routers or bridges)
are involved.
How Traceroute Works
When we connect to a website – say, google.com – the traffic has to go through
several intermediaries before reaching the website. The traffic goes through our local
router, our Internet service provider’s routers, onto larger networks, and so on.
Traceroute shows us the path traffic takes to reach the website. It also displays the
delays that occur at each stop. If we’re having issues reaching a website and that
website is working properly, it’s possible there’s a problem somewhere on the path
between our computer and the website’s servers. Traceroute would show us where
that problem is.
In more technical terms, Traceroute sends a sequence of packets using the ICMP
protocol. The first packet has a time-to-live (also known as TTL, or hop limit) of 1, the
second packet has a TTL of 2, and so on. Each time a packet is passed to a new
router, the TTL is decreased by 1. When it reaches 0, the packet is discarded and
the router returns an error message. By sending packets in this manner, traceroute
ensures that each router in the path will discard a packet and send a response.
Traceroute Command
The tracert command is CMD command that's used to show several details about
the path that a packet takes from the computer or device you're on to whatever
destination you specify.
It also sometimes referred as the traceroute command.
Tracert Command Syntax
The command for Unix systems is traceroute, whereas on Linux systems the
command is tracepath and current windows base systems used the command
tracert.
Syntax
tracert [-d] [-h MaxHops] [-w TimeOut] [-4] [-6] target [/?]
● -d = This option prevents tracert from resolving IP addresses to hostnames, often
resulting in much faster results.
● -h MaxHops = This tracert option specifies the maximum number of hops in the
search for the target.
● -w TimeOut = You can specify the time, in milliseconds, to allow each reply before
timeout using this tracert option.
● -4 = This option forces tracert to use IPv4 only.
● -6 = This option forces tracert to use IPv6 only.
● target = This is the destination, either an IP address or hostname.
● /? = Use the help switch with the tracert command to show detailed help about the
command's several options.
How to Use Traceroute
Suppose we want to do a traceroute to Google’s publicly available DNS server
(8.8.8.8). My traceroute command and its result will look something like the below.
tracert 8.8.8.8
When we fire that command of tracert 8.8.8.8, my computer makes a UDP packet.
This UDP packet will contain the following things.
1) My Source Address (Which is my IP address)
2) Destination address (Which is 8.8.8.8)
3) And a destination UDP port number which is invalid. Means the traceroute
utility will send packet to a UDP port in the range of 33434 to 33534, which is
normally unused.
Save the tracert output in a text file as follows:
1) Right-click the title bar of the Command Prompt window and choose Edit >
Select All.
2) Right-click the title bar of the Command Prompt window again and choose
Edit > Copy.
3) Open the Windows Notepad program: Windows Start icon > All Programs >
Accessories > Notepad.
4) To paste the output into Notepad, choose Edit > Paste.
5) Choose File > Save As and save the Notepad file to your desktop as
tracert1.txt.
Traceroute session may be stopped by pressing [Ctrl]+[C].
Note: - The tracert command is often used with other networking related Command
Prompt commands like ping, ipconfig, netstat, nslookup, and others.
Thank You
Traceroute- A Networking Tool

Weitere ähnliche Inhalte

Was ist angesagt?

Network intrusion detection system and analysis
Network intrusion detection system and analysisNetwork intrusion detection system and analysis
Network intrusion detection system and analysis
Bikrant Gautam
 
Introduction of tcp, ip & udp
Introduction of tcp, ip & udpIntroduction of tcp, ip & udp
Introduction of tcp, ip & udp
rahul kundu
 
Networking Project(FINAL)
Networking Project(FINAL)Networking Project(FINAL)
Networking Project(FINAL)
Priyojit Das
 

Was ist angesagt? (20)

Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Routing ppt
Routing pptRouting ppt
Routing ppt
 
Tcpdump
TcpdumpTcpdump
Tcpdump
 
Network intrusion detection system and analysis
Network intrusion detection system and analysisNetwork intrusion detection system and analysis
Network intrusion detection system and analysis
 
Understanding NMAP
Understanding NMAPUnderstanding NMAP
Understanding NMAP
 
Firewall
FirewallFirewall
Firewall
 
Tcp Congestion Avoidance
Tcp Congestion AvoidanceTcp Congestion Avoidance
Tcp Congestion Avoidance
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 
Addressing
AddressingAddressing
Addressing
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Tcp
TcpTcp
Tcp
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
 
Tcp and udp
Tcp and udpTcp and udp
Tcp and udp
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
Introduction of tcp, ip & udp
Introduction of tcp, ip & udpIntroduction of tcp, ip & udp
Introduction of tcp, ip & udp
 
Networking Project(FINAL)
Networking Project(FINAL)Networking Project(FINAL)
Networking Project(FINAL)
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Introduction to foot printing
Introduction to foot printingIntroduction to foot printing
Introduction to foot printing
 
Unicast multicast & broadcast
Unicast multicast & broadcastUnicast multicast & broadcast
Unicast multicast & broadcast
 

Andere mochten auch

Windows command prompt a to z
Windows command prompt a to zWindows command prompt a to z
Windows command prompt a to z
Subuh Kurniawan
 
Ericsson BTS commisioning
Ericsson BTS commisioningEricsson BTS commisioning
Ericsson BTS commisioning
Shahid Rasool
 

Andere mochten auch (9)

Putty
PuttyPutty
Putty
 
Ip Networking Over Satelite Course Sampler
Ip Networking Over Satelite Course SamplerIp Networking Over Satelite Course Sampler
Ip Networking Over Satelite Course Sampler
 
Windows command prompt a to z
Windows command prompt a to zWindows command prompt a to z
Windows command prompt a to z
 
Secure SHell
Secure SHellSecure SHell
Secure SHell
 
Secure Shell(ssh)
Secure Shell(ssh)Secure Shell(ssh)
Secure Shell(ssh)
 
3 g basics
3 g basics3 g basics
3 g basics
 
SSH - Secure Shell
SSH - Secure ShellSSH - Secure Shell
SSH - Secure Shell
 
Ericsson commond list, BSS+NSS=OSS
Ericsson commond list, BSS+NSS=OSSEricsson commond list, BSS+NSS=OSS
Ericsson commond list, BSS+NSS=OSS
 
Ericsson BTS commisioning
Ericsson BTS commisioningEricsson BTS commisioning
Ericsson BTS commisioning
 

Ähnlich wie Traceroute- A Networking Tool

Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 FinalExploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
masoodnt10
 
Aceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfAceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdf
WifiCren
 
07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt
ssuserf7cd2b
 
Wireshark Lab IP v6.0Supplement to Computer Networking A Top-D.docx
Wireshark Lab IP v6.0Supplement to Computer Networking A Top-D.docxWireshark Lab IP v6.0Supplement to Computer Networking A Top-D.docx
Wireshark Lab IP v6.0Supplement to Computer Networking A Top-D.docx
alanfhall8953
 
Pears
PearsPears
Pears
thips
 

Ähnlich wie Traceroute- A Networking Tool (20)

Troubleshooting basic networks
Troubleshooting basic networksTroubleshooting basic networks
Troubleshooting basic networks
 
ICMPV4
ICMPV4ICMPV4
ICMPV4
 
Network Layer & Transport Layer
Network Layer & Transport LayerNetwork Layer & Transport Layer
Network Layer & Transport Layer
 
Commands used in Assessing Network layout & Security
Commands used in Assessing Network layout & SecurityCommands used in Assessing Network layout & Security
Commands used in Assessing Network layout & Security
 
Command.pptx presentation
Command.pptx presentationCommand.pptx presentation
Command.pptx presentation
 
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 FinalExploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
 
Aceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfAceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdf
 
How Does The Internet Work? : Notes
How Does The Internet Work? : NotesHow Does The Internet Work? : Notes
How Does The Internet Work? : Notes
 
How does the internet work converted General (Your) Affiliate Link: https://w...
How does the internet work converted General (Your) Affiliate Link: https://w...How does the internet work converted General (Your) Affiliate Link: https://w...
How does the internet work converted General (Your) Affiliate Link: https://w...
 
Ch 19 Network-layer protocols - section 2
Ch 19   Network-layer protocols - section 2Ch 19   Network-layer protocols - section 2
Ch 19 Network-layer protocols - section 2
 
07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt
 
CCNA Interview.pdf
CCNA Interview.pdfCCNA Interview.pdf
CCNA Interview.pdf
 
Network protocols
Network protocolsNetwork protocols
Network protocols
 
SOFTWARE TOOLS(Bhavik).pptx
SOFTWARE TOOLS(Bhavik).pptxSOFTWARE TOOLS(Bhavik).pptx
SOFTWARE TOOLS(Bhavik).pptx
 
Wireshark Lab IP v6.0Supplement to Computer Networking A Top-D.docx
Wireshark Lab IP v6.0Supplement to Computer Networking A Top-D.docxWireshark Lab IP v6.0Supplement to Computer Networking A Top-D.docx
Wireshark Lab IP v6.0Supplement to Computer Networking A Top-D.docx
 
CREST CCT Exam Prep Notes
CREST CCT Exam Prep NotesCREST CCT Exam Prep Notes
CREST CCT Exam Prep Notes
 
Pears
PearsPears
Pears
 
Packet sniffers
Packet sniffersPacket sniffers
Packet sniffers
 
Tcp presentation
Tcp presentationTcp presentation
Tcp presentation
 
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
IRJET- Assessment of Network Protocol Packet Analysis in IPV4 and IPV6 on Loc...
 

Kürzlich hochgeladen

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 

Traceroute- A Networking Tool

  • 1. NETWORKING TOOL TRACERT/TRACEROUTE Introduction Traceroute is a utility that send an ICMP packets from our computer to user input destination and displays information about what is happening to the packet on each point along the path. The path displayed is the list of near-side interface of the routers between a source host and a destination. It also calculates and displays the amount of time each hop took. Hops are nothing but the computers, routers, or any devices that comes in between the source and the destination.
  • 2. Purpose of Traceroute The purpose of traceroute is to identify the problematic server that is causing the error, and that is why we send traceroute info only if there is an error before reaching our servers. Traceroute is a very resource consuming operation and it will slow down our servers a lot if we do it all the time. Network administrators and system administrators use this tool most commonly in their day to day activities. Types of Traceroute Program There are different types of traceroute programs. Each of them works slightly differently. But the overall concept behind each of them is the same. All of them use the TTL value. The different types are mentioned below. 1) UDP Traceroute- It’s the default protocol used by Linux traceroute program. However we can also use ICMP instead of UDP by giving the below command in Linux. root@workstation:~# traceroute -I -n 8.8.8.8 2) ICMP Traceroute- ICMP for traceroute works the same way as UDP traceroute. Traceroute program will send ICMP Echo Request messages and the hops in between will reply with a ICMP Time exceeded messages. But the final destination will reply with ICMP Echo reply. Tracert command available in windows operating system by default uses ICMP traceroute method. 3) TCP Traceroute- Its used because almost all firewall and routers in between allows you to send TCP traffic. And if the packet is toward port 80, which is the web traffic then most of the routers allow that packet. TCPTRACEROUTE by default sends TCP SYN requests to port 80. Objectives of Traceroute ● Traceroute determines how packets are being routed to a particular host. ● It also helps in determining the entire path that a packet travels through ● Determines names and identity of routers and devices in your path ● Helps in determining the Network Latency or more specifically the time taken to send and receive data to each devices on the path ● It is useful in determining where a network outage is occurring, test connectivity and determining congestion in traffic.
  • 3. ● Traceroute is a handy tool both for understanding where problems are in the Internet network and for getting a detailed sense of the Internet itself. ● TRACERT is useful for troubleshooting large networks where several paths can lead to the same point or where many intermediate components (routers or bridges) are involved. How Traceroute Works When we connect to a website – say, google.com – the traffic has to go through several intermediaries before reaching the website. The traffic goes through our local router, our Internet service provider’s routers, onto larger networks, and so on. Traceroute shows us the path traffic takes to reach the website. It also displays the delays that occur at each stop. If we’re having issues reaching a website and that website is working properly, it’s possible there’s a problem somewhere on the path between our computer and the website’s servers. Traceroute would show us where that problem is.
  • 4. In more technical terms, Traceroute sends a sequence of packets using the ICMP protocol. The first packet has a time-to-live (also known as TTL, or hop limit) of 1, the second packet has a TTL of 2, and so on. Each time a packet is passed to a new router, the TTL is decreased by 1. When it reaches 0, the packet is discarded and the router returns an error message. By sending packets in this manner, traceroute ensures that each router in the path will discard a packet and send a response. Traceroute Command The tracert command is CMD command that's used to show several details about the path that a packet takes from the computer or device you're on to whatever destination you specify. It also sometimes referred as the traceroute command. Tracert Command Syntax The command for Unix systems is traceroute, whereas on Linux systems the command is tracepath and current windows base systems used the command tracert. Syntax tracert [-d] [-h MaxHops] [-w TimeOut] [-4] [-6] target [/?] ● -d = This option prevents tracert from resolving IP addresses to hostnames, often resulting in much faster results. ● -h MaxHops = This tracert option specifies the maximum number of hops in the search for the target. ● -w TimeOut = You can specify the time, in milliseconds, to allow each reply before timeout using this tracert option. ● -4 = This option forces tracert to use IPv4 only.
  • 5. ● -6 = This option forces tracert to use IPv6 only. ● target = This is the destination, either an IP address or hostname. ● /? = Use the help switch with the tracert command to show detailed help about the command's several options. How to Use Traceroute Suppose we want to do a traceroute to Google’s publicly available DNS server (8.8.8.8). My traceroute command and its result will look something like the below. tracert 8.8.8.8 When we fire that command of tracert 8.8.8.8, my computer makes a UDP packet. This UDP packet will contain the following things. 1) My Source Address (Which is my IP address) 2) Destination address (Which is 8.8.8.8) 3) And a destination UDP port number which is invalid. Means the traceroute utility will send packet to a UDP port in the range of 33434 to 33534, which is normally unused.
  • 6. Save the tracert output in a text file as follows: 1) Right-click the title bar of the Command Prompt window and choose Edit > Select All. 2) Right-click the title bar of the Command Prompt window again and choose Edit > Copy. 3) Open the Windows Notepad program: Windows Start icon > All Programs > Accessories > Notepad. 4) To paste the output into Notepad, choose Edit > Paste. 5) Choose File > Save As and save the Notepad file to your desktop as tracert1.txt. Traceroute session may be stopped by pressing [Ctrl]+[C]. Note: - The tracert command is often used with other networking related Command Prompt commands like ping, ipconfig, netstat, nslookup, and others. Thank You