Routing Trace tracert command

Source: Internet
Author: User
Routing Trace tracert command

The Tracert (trace route) is the routing trace utility that determines the path taken by IP datagram access targets. The Tracert command uses the IP lifetime (TTL) field and ICMP error messages to determine routes from one host to another host on the network. (This is very similar to ping)

Tracert works by sending an Internet Control Message Protocol (ICMP) response packet to a target that sends different IP time to live (TTL) values, the Tracert diagnostics determine the route to the destination. Requires that each router on the path decrements at least 1 of the TTL on the packet before forwarding the packet. The TTL on the packet is reduced to 0 o'clock, and the router should send the "ICMP timed out" message back to the source system.

Tracert sends a response packet with a TTL of 1 and increments the TTL by 1 in each subsequent send process until the target response or TTL reaches its maximum value to determine the route. Route is determined by examining the "ICMP timed out" message sent back by the intermediary router. Some routers discard the TTL-expired packets without asking, which is not visible in the Tracert utility.

The Tracert command prints a list of the near-end router interfaces in the path that returns the ICMP timeout message in order. If you use the-D option, the Tracert utility does not query DNS on each IP address.
In the following example, the packet must pass through two routers (10.0.0.1 and 192.168.0.1) to reach the host 172.16.0.99. The default gateway for the host is the IP address of the router on the 10.0.0.1,192.168.0.0 network is 192.168.0.1.
C:/>tracert 172.16.0.99–d
Tracing route to 172.16.0.99 over a maximum of hops
1 2s 3s 2s 10,0.0,1
2 ms Ms 192.168.0.1
3 ms-Mobile MS 172.16.0.99
Trace complete.
Resolving problems with Tracert you can use the TRACERT command to determine where packets are stopped on the network.

Now use the command to track down the Black Forum information ~
Tracert bbs.hackbase.com
Tracing route to cdn.hackbase.com [218.28.195.106]
Over a maximum of hops:
1 <1 ms <1 ms <1 ms 192.168.10.1
2 2 ms 1 ms 1 ms 58.221.201.65
3 2 ms 1 ms 1 ms 58.221.27.13
4 2 ms 1 ms 1 ms 58.221.27.61
5 6 ms 5 ms 5 ms 58.221.25.137
6 8 ms 7 ms 7 ms 202.97.39.109
7 Ms Mobile Ms 202.97.46.50
8 258 MS 258 ms 257 MS 219.158.35.93
9 MB Ms 267 ms 265 MS 219.158.13.61
273 MS 273 MS * 219.158.6.222
One 265 ms * 261 MS HN.KD.SMX.ADSL [221.13.223.222]
263 ms 262 ms 262 ms Pc30.zz.ha.cn [61.168.254.30]
265 ms 268 ms 266 MS Pc30.zz.ha.cn [61.168.251.30]
277 MS 278 ms 277 MS Pc0.zz.ha.cn [218.28.7.186]
275 ms 277 MS 278 MS Pc0.zz.ha.cn [218.28.195.106]
Trace complete.

Analysis: The first line is the gateway to my local network segment. The second line is the gateway at the WAN port of the router.
So go on, one level, until you find bbs.hackbase.com. Trace complete. Tracking End ~
The Tracert utility is useful for solving large network problems. If your local network is more complex and is converted through several gateways, use this command to find out which node is having a problem. To determine the location of network communication in different through.

Now with help parsing the relevant parameters
Tracert/?
Usage:tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] Target_name
Options:
-D don't resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for target.
-j host-list Loose Source route along Host-list.
-w timeout wait timeout milliseconds to each reply.


The description is as follows:
-D does not resolve the host name;
-h maximum_hops Specifies the maximum number of rotations to be searched to the destination address;
-j Host-list releases the source route along the host list;
-W timeout Specifies the time-out interval (in milliseconds).
Under Unix There is a tool called traceroute, which functions the same.
Thus, the role of route tracking has been explained.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.