Use the tcpdump command to analyze traceroute in DepthTraceroute: indicates the routing commands used to analyze IP packets in Network diagnosis. Preschool knowledge: There is a TTL field in the IP package. This is the maximum number of jumps. Each time a router passes through, the value is-1 and the value is 0, the packet will be discarded by the router and the ICMP-Timeout packet will be returned to the R
211.151.56.57 (211.151.56.57) 0.596 MS 0.598 MS 0.591 MS3 211.151.227.206 (211.151.227.206) 0.546 MS 0.544 MS 0.538 MS4 210.77.139.145 (210.77.139.145) 0.710 MS 0.748 MS 0.801 MS5 202.106.42.101 (202.106.42.101) 6.759 MS 6.945 MS 7.107 MS6 61.148.154.97 (61.148.154.97) 718.908 MS * bt-228-025.bta.net.cn (202.106.228.25) 5.177 MS7 124.65.58.213 (124.65.58.213) 4.343 MS 4.336 MS 4.367 MS8 202.106.35.190 (202.106.35.190) 1.795 MS 61.148.156.138 (61.148.156.138) 1.899 MS 1.951 MS9 ***30 ***[Root @
Mtr (My traceroute) is a Network Diagnostics tool that incorporates ping and traceroute into a program. The MTR provides two interfaces: a ncurses interface that is useful for using MTR from a Telnet session, and a GTK + interface for X (provided in the MTR-GTK software package).MTR use1, MTR command line toolsMTR use is relatively simple, please refer to MTR's m
separate.Specific parameter format: traceroute [-dflnrvx][-f
3. Command parameters:
-D uses the socket-level debugging feature.-F Sets the size of the live value TTL for the first detection packet.-F setting does not leave the fault position.-G Sets the source routing gateway, up to 8.-I sends out packets using the specified network interface.-I replaces UDP data information with an ICMP response.-M sets the size of the maximum surviving value TTL
) ip addresses is 9.
-K computer-list
Route data packets using the computer list specified by computer-list. The maximum number of ip addresses allowed by consecutive computers to be separated by intermediate gateways (strictly source routes) is 9.
-W timeout
Specify the timeout interval, in milliseconds.
Destination-list
Specify the remote computer to be pinged.
C: //> ping ds.internic.net
Pinging ds.internic.net [192.20.239.132] with 32 bytes of data: (192.20.239.132 his IP address)
Reply from
or the maximum TTL value is reached. Check the ICMP timeout (IME exceeded) Information sent back by the Intermediate router to determine the router. Note that some routers "quietly" discard the expired packets of the time-to-live (TLS) and are invalid for tracert.Parameters-DSpecifies an invalid computer name resolution address.-H maximum_hopsSpecify the maximum number of jumps to the target.-Jcomputer-listLoose Source Route in computer-list.-W timeoutWait for the number of milliseconds specifi
Exceeded) Information sent back by the Intermediate router to determine the router. Note that some routers "quietly" discard the expired packets of the time-to-live (TLS) and are invalid for tracert. The-d parameter specifies that the computer name is not resolved. -H maximum_hops specifies the maximum number of jumps to the target. -Jcomputer-list indicates Loose Source Route in computer-list. -W timeout: the number of milliseconds specified by timeout for each response. The name of the target
, + byte packets1 192.168.74.2 (192.168.74.2) 2.606 ms 2.771 ms 2.950 ms2 211.151.56.57 (211.151.56.57) 0.596 ms 0.598 ms 0.591 ms3 211.151.227.206 (211.151.227.206) 0.546 ms 0.544 ms 0.538 ms4 210.77.139.145 (210.77.139.145) 0.710 ms 0.748 ms 0.801 ms5 202.106.42.101 (202.106.42.101) 6.759 ms 6.945 ms 7.107 ms6 61.148.154.97 (61.148.154.97) 718.908 ms * BT-228-025.BTA.NET.CN (202.106.228.25) 5.177 ms7 124.65.58.213 (124.65.58.213) 4.343 ms 4.336 ms 4.367 ms8 202.106.35.190 (202.106.35.190) 1.79
, + byte packets1 192.168.74.2 (192.168.74.2) 2.606 ms 2.771 ms 2.950 ms2 211.151.56.57 (211.151.56.57) 0.596 ms 0.598 ms 0.591 ms3 211.151.227.206 (211.151.227.206) 0.546 ms 0.544 ms 0.538 ms4 210.77.139.145 (210.77.139.145) 0.710 ms 0.748 ms 0.801 ms5 202.106.42.101 (202.106.42.101) 6.759 ms 6.945 ms 7.107 ms6 61.148.154.97 (61.148.154.97) 718.908 ms * BT-228-025.BTA.NET.CN (202.106.228.25) 5.177 ms7 124.65.58.213 (124.65.58.213) 4.343 ms 4.336 ms 4.367 ms8 202.106.35.190 (202.106.35.190) 1.79
] ~]# traceroute www.baidu.comTraceroute to Www.baidu.com (61.135.169.125), hops max, + byte packets1 192.168.74.2 (192.168.74.2) 2.606 ms 2.771 ms 2.950 ms2 211.151.56.57 (211.151.56.57) 0.596 ms 0.598 ms 0.591 ms3 211.151.227.206 (211.151.227.206) 0.546 ms 0.544 ms 0.538 ms4 210.77.139.145 (210.77.139.145) 0.710 ms 0.748 ms 0.801 ms5 202.106.42.101 (202.106.42.101) 6.759 ms 6.945 ms 7.107 ms6 61.148.154.97 (61.148.154.97) 718.908 ms * BT-228-025.BTA
the socket-level troubleshooting function-F Sets the size of the surviving value TTL for the first instrumented packet-F settings do not leave the Duan----I do not know what is not to leave the Duan, checked the next did not find what information ^ ^-G Set source routing gateway with up to 8-I send out packets using the specified network interface-I replaces UDP data information with ICMP response-M sets the size of the maximum surviving value TTL for the detection packet-N Direct
"ICMP timeout" message in sequence. If the-d option is used, the Tracert utility does not query DNS on each IP address.
In the following example, data packets must pass through two routers (10.0.0.1 and 192.168.0.1) to reach host 172.16.0.99. The default gateway of the host is 10.0.0.1, and the IP address of the router on the 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 30 hops
1 2 s 3 s 2 s 10, 0.0, 1
2 75 MS 83 MS 88 MS 192.168
time the TTL of the datagram to be sent is added to discover another router, This repetitive action continues until a certain datagram arrives at the destination. When datagram arrives at the destination, the host does not send back the ICMP Time exceeded message because it is already a destination, so how does traceroute know where the destination has arrived?
When Traceroute sends out a UDP datagrams to
The Traceroute program allows us to see the route that an IP datagram passes from one host to another, and can use the IP source routing option. Traceroute replaces IP RR 1 not all routers support the IP RR option, and traceroute programs do not require intermediate routers to have any special or optional features. 2 l
by the vro] [ICMP-destination inaccessible packet returned by the target host]1. Use commands to listen to packets related to the target host
tcpdump -i eno33554984 -vvnn host 119.146.184.982. Use the traceroute command to initiate a request to the target host
[Root @ www ~] # Traceroute failed to 119.146.184.98 (119.
number of traceroute is 33433. Generally, this port is not used by applications, so the target host will return ICMP.
Traceroute also supports sending TCP and ICMP:
-I -- icmp Use ICMP ECHO for tracerouting-T -- tcp Use tcp syn for tracerouting-P port -- port = port
Generally, the
by applications, so the target host will return ICMP.
Traceroute also supports sending TCP and ICMP:
-I --icmp Use ICMP ECHO for tracerouting -T --tcp Use TCP SYN for tracerouting -p port --port=port
Generally, the traceroute tool is installed in Linux by default. If not, instal
route table and directly sends it to the host connected to the network; -w n: Set the waiting time for sending a test package to n seconds. The default value is 3 seconds. instance 1: traceroute is a simple and most commonly used method. It is followed by an IP address, hostname, or domain name. For example, in the following example, [root @ localhost ~] # Traceroute linuxsir. orgtraceroute to linuxsir.org
Yesterday was asked the principle of traceroute, a moment unexpectedly also said, some orders usually although often in use, but the actual principle does not understand, take advantage of this opportunity to comb.
Traceroute: is a network diagnostic that is used to analyze the commands that IP packets pass through those routes.Preschool Knowledge:There is
IP address of the router on the 192.168.0.0 network is 192.168.0.1.C: \> tracert 172.16.0.99-dTracing route to 172.16.0.99 over a maximum of 30 hops1 2 s 3 s 2 s 10, 0.0, 12 75 MS 83 MS 88 MS 192.168.0.13 73 MS 79 MS 93 MS 172.16.0.99Trace complete.The Traceroute program is designed To use the TTL (Time To Live) field of ICMP and IP header ). First, traceroute s
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.