Application of ICMP--tracerouteTraceroute is an important tool to detect the routing between host and destination hosts, and is also the most convenient tool. As mentioned earlier, although the Ping tool can also detect, however, because of the IP header limit, ping can not be fully recorded under the router. So the traceroute just fills this flaw.The principle of traceroute is very very interesting, it rec
Principles of Ping and Traceroute (5)
(Reference) TCP/IP explanation, Volume 1: Protocol
The name "ping" comes from the sonar positioning operation. The purpose is to test whether another host can arrive. The program sends an ICMP echo request packet to the host, and waits for the returned ICMP echo response.
Generally, if you cannot ping a host, you cannot Telnet or FTP to the host. In turn, if you cannot
returns an ICMP inaccessibility packet, and sets the combination of the type and code in the packet to port inaccessibility. The Traceroute program generates ICMP error packets by using port unavailability.
In addition, in most cases, an ICMP error message is generated when an error occurs when an IP datagram is transmitted, but the following situations do not c
-time interactive mode of MTR.
-C num--defines the number of traces, each of which is 1s, and-c must be used with-R, by default 10 times.
Examples of Use:(1) Real-time display mode of MTR[Plain]View PlainCopy
MTR 202.108.33.94
(2) MTR's reporting model[Plain]View PlainCopy
[Email protected] ~]# mtr-r 202.108.33.94
FOCUS9097 snt:10 loss% last AVG best Wrst StDev
220.181.61.252 0% 6.8 3.3 1.8 7.4 2.2
220.181.17.217 0% 0.4 0.5 0.4 0.7 0.1
220.181.16.17 0% 0.6 0.5
(IP(dst=,ttl=)/TCP(dport=(,),flags=*.*^ packets, got answers, remaining
Iii. TCP traceroute
Traceroute: used to track the path from the starting point to the destination. With Traceroute, we can know the path of information from your computer to the host on the other end of the Internet. Of course, the path for each packet
the application because it does not need to forward the datagram.) However, under normal circumstances, the system should not receive datagrams with a TTL field of 0. Typically, the router discards the datagram and sends an ICMP timeout message to the source host. The key to the Tracerouter program is that the ICMP timeout information contains the address of the router.Tracerouter then sends an IP datagram with a TTL field of 1 to the destination host. The first router handling this datagram su
The Traceroute tool is used to track the transmission path of datagrams: When a datagram travels from one computer to another, it passes through multiple gateways, and the traceroute command can find all the routers on the datagram transmission path. The transmission path traced through the Traceroute tool is just one of the many pathways between the two computer
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 logging routing is generally a one-way option.
traceroute the principle of:1.traceroute host to be Trace Host Send UDP The destination port is a port with a large number (for example, 33434 Port)2. First package ttl= 1 Span style= "Font-family:simsun;" lang= "ZH-CN" xml:lang= "ZH-CN", dport=33434 ; future packet ttl 1 3. How to determine that you have reached your destination,general destinations
tcp-m tcp--dport 22-j DROP-A output-m conntrack--ctstate new-j ACCEPTCOMMIT# completed on Fri Dec 19 17:01:18 2014It has been noted that:-A input-j DROP--------------------------------------->ping is output;traceroute when each routing node returns the packet;The rule-a output-m conntrack--ctstate new-j Accept is the TCP protocol by default, whereas the Ping/traceroute
Command name: PingFunction: Test network connectivityCommand path:/bin/pingUsage: ping [-c] IP addressParameters:-C specify number of times to sendCommand name: ifconfigFunction: View and set network card information (temporary settings)Command path:/sbin/ifconfigUsage: ifconfig [NIC name] [IP Address]Example:Ifconfig eth0 192.168.1.1Command name: tracerouteFunction: Displays the path between the packet and the target host and the time consumed by eac
the original IP header and data portion that caused the ICMP error message to be generated (such as UDP or TCP for the transport layer, which contains the port number). Here the original IP header of the Protocol field and the first 8 bytes of the port number, you can determine which protocol and which user process.In addition to the ICMP error message above, the ICMP error message is no longer generated, the general purpose address is the broadcast datagram will no longer produce ICMP error me
The Traceroute program allows us to see the routes that the IP datagram passes from one host to another, and can use the IP Source Station routing option.Traceroute the reason for replacing IP RR 1 not all routers support the IP RR option, while the Traceroute program does not require any special or optional functionality from the intermediate routers. 2 record routing is generally a one-way option. The sen
Port is)-P prot--protocol=prot use raw Packet of protocol prot for Tracerou Ting--mtu Discover MTU along the path being traced. Implies '-f-n 1 '--back Guess the number of hops in the backward path and print if it differs-v--version print version info and exit--help Read this Help and exitCommon Command DisplayMulti-Command useTraceroute-n-M 5-q 4-w 3 www.baidu.com
Description:-n Display IP address, do not check host nam
Role:A router, gateway that looks at which IP addresses the packet passed through during transmission.Working principle:First send a TTL of 1 UDP packets to the remote host, according to the protocol, the router receives the packet, the TTL value minus 1, when the TTL is 0, the router discards the packet, and sends the sender back an ICMP
Objective: To learn the usage of Linux command Ping,tracerouteUsage of 1:ping:Mans PingPing: Determine if a host is respondinglinux-8o9i:~ #Ping-C4 119.29.29.29PING119.29.29.29(119.29.29.29) About( -) bytes of data. -Bytes from119.29.29.29: icmp_seq=1Ttl=Wuyi Time=101Ms -Bytes from119.29.29.29: icmp_seq=2Ttl=Wuyi Time=75.0Ms -Bytes from119.29.29.29: icmp_seq=3Ttl=Wuyi Time=74.4Ms -Bytes from119.29.29.29: icmp_seq=4Ttl=Wuyi Time=74.2Ms---119.29.29.29 PingStatistics---4Packets Transmitted,4Rec
Python's traceroute feature makes it easy to implement with Scapy templates, and it's intuitive to output routed images.Here is a description of the code that modifies the Python automated operations: technology and best practices.#!/usr/bin/evnpython#-*-coding:utf-8-*-importtimeimportlogging,warningsimport Subprocessimportsocket#eclipse Pydev prompt Unresolve, but normal operation fromscapy.allimport traceroute
=name use specified module (either builtin or external)For traceroute operations. Most methods hasTheir shortcuts ('-I ' means '-m ICMP ' etc.)-O OPTS,...--options=opts,...Use module-specific option OPTS for theTraceroute module. Several OPTS Allowed,separated by comma. If OPTS is ' help ', print infoAbout available options--sport=num use source port num for outgoing packets. implies'-N 1 '-U--udp use UDP-particular port for tracerouting(instead of in
Android.view.view;import Android.widget.edittext;import android.widget.textview;/** can not understand the annotation I eat half a kilo of dog food:-) */public class Mainactivity extends actionbaractivity {private EditText et_cmd;private String app_path;private TextView tv_result; @Overrideprotected void OnCreate (Bundle savedinstancestate) {super.oncreate (savedinstancestate); Setcontentview (r.layout.home_activity); * Initialize Control */et_cmd = (EditText) Findviewbyid (r.id.et_cmd); tv_res
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.