Traceroute
Traceroute is used as a network diagnostic tool to trace a packet’s path from the source to the destination over an IP network. Traceroute tells you how many intermediate devices the packet passes through and how long each hop takes. It also counts round trip time for each host. Traceroute works on Windows, Mac OS, and Linux.
RTT(Round trip time): Round trip time (RTT) is the time (in milliseconds) it takes for a network request to travel from its starting point to its destination and back again.
Traceroute uses ICMP and UDP protocol to perform its operations. The most commonly used port for traceroute is UDP 33434,but the range of ports can very depending on the implementation and operating system.
Traceroute sends packets with incremented Time-To-Live (TTL) values and monitors for ICMP TimeExceeded or ICMP Destination-Unreachable messages returned by intermediate routers. When using UDP, traceroute typically sends packets to high-numbered ports to avoid conflicts with known ports used by other services.
A traceroute works by sending Internet Control Message Protocol (ICMP) packets, and every router involved in transferring the data gets these packets. The ICMP packets provide information about whether the routers used in the transmission are able to effectively transfer the data.
Implementation:
Tracert domainname
Traceroute domainname
Why we use traceroute?
Traceroute finds the exact route taken to reach the server and time taken by each step. It is useful for determining the response delays. It also determines any point failure encountered while routing the path.