traceroute command Explanation

Source: Internet
Author: User
Tags traceroute command

By traceroute we can know what path the information from your computer to the other end of the Internet host is walking. Of course, each time a packet arrives at a similar destination (destination) by a similar starting point (source), the path may be different, but basically the route is the same.


Traceroute measures how long it takes to send a small packet to the destination device until it returns. Each device on a path is measured 3 times traceroute. The output includes the time of each test (MS) and the name of the device (if any) and its IP address.


Grammar

Traceroute (option) (parameter)


Options

-D: Using the socket-level troubleshooting function;

-f< survival value;: Sets the size of the live value TTL for the first detection packet;

-F: Set not to break the bit;-g< Gateway;: Set source routing gateway, up to 8 can be set;

-i< network interface;: Send the packet using the specified network interface;

-I: Use ICMP response instead of UDP information;

-m< survival value;: Sets the maximum surviving value TTL size of the detection packet;

-N: Use IP address directly instead of host name;

- p< communication port;: Set the communication port of the UDP transport protocol;

-R: Ignores the normal routing Table and sends the packet directly to the remote host.

-s< Source Address: Set the IP address of the local host to send the packet;

-t< service type;: Set the value of the TOS for the inspection packet;

-V: Show the execution of the instruction in detail;-w< timeout seconds;: Set the time to wait for the remote host to return;

-X: Turns the correctness of the packet on or off. Parameter host: Specifies the destination host IP address or host name.


Instance

Traceroute www.58.com

Traceroute to Www.58.com (211.151.111.30), hops max, + byte packets

1 Unknown (192.168.2.1) 3.453 ms 3.801 ms 3.937 ms

2 221.6.45.33 (221.6.45.33) 7.768 ms 7.816 ms 7.840 ms

3 221.6.0.233 (221.6.0.233) 13.784 Ms 13.827 Ms 221.6.9.81 (221.6.9.81) 9.758 ms

4 221.6.2.169 (221.6.2.169) 11.777 Ms 122.96.66.13 (122.96.66.13) 34.952 Ms 221.6.2.53 (221.6.2.53) 41.372 MS 5 219.158.96 .149 (219.158.96.149) 39.167 ms 39.210 ms 39.238 ms

6 123.126.0.194 (123.126.0.194) 37.270 Ms 123.126.0.66 (123.126.0.66) 37.163 Ms 37.441 ms

7 124.65.57.26 (124.65.57.26) 42.787 ms 42.799 ms 42.809 ms

8 61.148.146.210 (61.148.146.210) 30.176 Ms 61.148.154.98 (61.148.154.98) 32.613 Ms 32.675 ms

9 202.106.42.102 (202.106.42.102) 44.563 ms 44.600 ms 44.627 ms

210.77.139.150 (210.77.139.150) 53.302 ms 53.233 ms 53.032 ms

One 211.151.104.6 (211.151.104.6) 39.585 ms 39.502 ms 39.598 ms

211.151.111.30 (211.151.111.30) 35.161 ms 35.938 ms 36.005 ms


Record by serial number starting from 1, each record is a hop, each hop represents a gateway, we see each line has three times, the unit is MS, is actually the default parameter-Q. The time that the gateway responds after a probe packet sends three packets to each gateway, and if Traceroute-q 4 www.58.com is used, 4 packets are sent to each gateway.


Sometimes when we traceroute a host, we see that some of the rows are represented by asterisks. In this case, it is possible that the firewall has blocked the return information of ICMP, so we have not got any related packet return data.  


Sometimes we have a long delay at a certain gateway, it is possible that a gateway is more blocked, or the physical device itself. Of course, if a DNS problem, can not resolve host name, domain name, there will be a long delay phenomenon; You can add the-n parameter to avoid DNS resolution and output data in IP format.


If there are different network segments in the LAN, we can use Traceroute to troubleshoot the problem, whether it is the host problem or the gateway problem. If we encounter a problem through remote access to a server, we use the gateway that the Traceroute tracking packet, submitted to the IDC service provider, but also help to solve the problem, but at present, it seems difficult to solve such problems at home, that is, we found the problem, IDC service providers will not be able to help us solve.


This article is from the "Wsyht blog" blog, make sure to keep this source http://wsyht2015.blog.51cto.com/9014030/1790764

traceroute command Explanation

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.