Common network management commands-Explanation of tracert commands

Source: Internet
Author: User

5. tracert command...

  • How tracert works...

  • No option...

  • -D option...

  • -H option...

  • -W option...

5. tracert command

Tracert is a route tracing program used to determine the path of the IP datagram access target. The tracert command uses the ip ttl field and the ICMP error message to determine the route from one host to other hosts on the network. When there are multiple link egress entries in the work environment, you can use this command to query which link egress data goes through.

Tracert is generally used to detect the fault location. We can use the tracert ip command to determine the stop position of the data packet on the network to determine the link where the problem occurred, although we are still not sure what the problem is, it has already told us where the problem is located to facilitate the detection of problems in the network.

Tracert or tracert/without parameters /? Command to display help information.

650) This. width = 650; "Title =" clip_image002 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image002 "src =" http://img1.51cto.com/attachment/201410/31/1024435_14147342406Zqd.jpg "Height =" 230 "/>

How tracert works

By sending "Internet Control Message Protocol (ICMP)" response packets with different TTL values to the target, the tracert diagnostic program determines the route adopted by the target. Each vro on the path must at least decrease the TTL of the data packet by 1 before forwarding the data packet. When the TTL value on the data packet is reduced to 0, the router should send the "ICMP timeout" message back to the source system.

Tracert sends a response packet whose TTL is 1, and increases TTL by 1 in each subsequent sending process until the target response or TTL reaches the maximum value to determine the route. Check the ICMP timeout message sent back by the Intermediate router to determine the route. Some routers directly discard TTL expired data packets without asking, which is not seen in the tracert utility.

The tracert command prints out the list of nearby router interfaces in the path that returns the "ICMP timeout" message in sequence. If the-D option is used, the tracert utility does not query DNS on each IP address.

No option

The tracert command without any options will display the path to the target IP address, and the IP address will be resolved to the host name together. As shown in, the first hop is the gateway address. Based on the host name, you can determine that I am using a polar route.

650) This. width = 650; "Title =" clip_image004 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image004 "src =" http://img1.51cto.com/attachment/201410/31/1024435_1414734241n1FF.jpg "Height =" 271 "/>

-D option

If you do not resolve the IP address to a host name, you can quickly display the router path. In comparison, the path is the same, but it does not resolve the IP address to the host name, which is faster. The host name shown in the red box in has disappeared.

650) This. width = 650; "Title =" clip_image006 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image006 "src =" http://img1.51cto.com/attachment/201410/31/1024435_1414734241IMcH.jpg "Height =" 271 "/>

-H Option

The number of hops of a trail. The following command only shows 5 hops. It can be seen that the command only follows 5 hops and ends. Generally, the link in the local province may be within 5 hops.

650) This. width = 650; "Title =" clip_image008 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image008 "src =" http://img1.51cto.com/attachment/201410/31/1024435_1414734242Fhle.jpg "Height =" 448 "/>

-W Option

Specify the wait time (in milliseconds) for each response ). The default value is 3000 milliseconds (3 seconds ).

650) This. width = 650; "Title =" clip_image010 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image010 "src =" http://img1.51cto.com/attachment/201410/31/1024435_1414734242MeFk.jpg "Height =" 271 "/>

In addition, tracert Commands include parameters such as "-J", "-R", "-s", "-4", and "-6", which are rarely used, you can enter the "tracert" command in the command line to check the method.

This article is from the "Haina baichuan" blog, please be sure to keep this source http://hichuann.blog.51cto.com/1024435/1570325

Common network management commands-detailed explanation of tracert commands (image and text)

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.