Traceroute command usage instance traceroute is the routing tool used to track data packets arriving at the network host. traceroute is the gateway tool used to send data packets between the host and the target host. The principle of traceroute is to try to send a test packet with the smallest TTL to track the gateway
data ).
The formats of the remaining ICMP packets vary according to different types. On the other hand, an ICMP packet is usually triggered by an IP packet. The header and part of the trigger IP packet will be contained in the Data Part Of The ICMP packet.
ICMP protocol is the basis for implementing ping and
address double.The last reason is also the main reason, the IP header left the option space is limited, cannot hold the most current path.Traceroute Program principleThe Traceroute program uses the ICMP message and the TTL field in the IP header (the life cycle).Each router that processes datagrams subtracts 1 of the TTL value or subtracts the number of seconds the datagram stays in the router. Since most
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 Teln
ICMP is an Internet Control Messaging Protocol (PROTOCOL). It is a child protocol of the TCP/IP protocol family that is used to pass control messages between IP hosts and routers. Control message refers to network communication, whether the host is up to, whether the route is available or not. Although these control messages do not transmit user data, they play an important role in the transfer of user data.
The function and characteristics of
First, ICMP introduction
The full name of ICMP is the Internet Control message Protocol (inter-Network Messaging protocol), an integral part of IP, used to provide error reporting. Once the various types of errors are found to return them to the original host, our most common ping command is based on ICMP.
|-----------------------------------------| || ------
1. traceroute can be used to query routes from one host to another.
2. Principles
PingProgramA record routing option is provided, but not all hosts support this option, and the IP header option field can only store up to nine IP addresses. Therefore, it is necessary to develop traceroute.Traceroute uses the TTL fields of the ICMP message and IP header. TTL is an 8-bit field, which is the router's hop co
1. Command format:traceroute[parameters [Host]2. Command function:The traceroute command allows you to track the routing path of a network packet, with a preset packet size of 40Bytes, which can be set separately by the user.Specific parameter format: traceroute [-dflnrvx][-f3. Command parameters:-D uses the socket-level troubleshooting feature.-F Sets the size of the live value TTL for the first instrument
the IP packetTime-out (exceeded). Time exceeded is the ICMP packet sent from the router to the departure host when the TTL is reduced to 0, notifying it of a timeout error.
TracerouteThis type of ICMP packet is used. The traceroute command is used to find the routers in the IP address route. It sends an IP packet to the destination, and sets TTL to 1 for the f
The previous two articles "Linux Common Network Tools: Fping host Scan" and "Linux common Network Tools: hping Advanced Host Scan" are all about the host scan, this article introduces the common route scanning tools traceroute and MTR.A route scan is primarily a query for the number of hops and data delays that are routed to another host.Traceroute Basic Use
The principle of the route scanning tool is the time to live (TTL) to achieve. Each time
Linux original socket (2)-icmp request and receipt, linux-icmp
I. Overview
The previous arp request used the original socket of the link layer. Icmp is encapsulated in ip datagram, so icmp requests can directly use the original socket at the network layer, that is, the first parameter of socket () is PF_INET. As follow
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
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 trace
.tracerouteTraceroute also uses the ICMP protocol, which uses ICMP for more time than error-Error reporting and ICMP endpoint unreachable messages. For the ICMP protocol, the principle is:Important options for traceroute are:[Plain]View PlainCopy
-u--uses the UDP pr
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
Use ICMP tunneling technology for ICMP encapsulation and penetration Firewall
0x00 icmp Tunneling Technology
ICMP tunneling technology, also known as Ping tunneling technology, we know that the ping protocol is icmp. When the firewall receives a protocol package, it is relea
ping uses an ICMP echo request and a loopback reply message; Ping is an example of the use of the network layer ICMP directly by the application layer;(2) Another very useful application is traceroute: used to track a packet from the source to the end of the path; Traceroute sends a series of IP datagrams from the sou
Ping programThe ping program was written by Mike Muuss to test whether another host is available.The program sends an ICMP echo request message to the main clause and waits for an ICMP echo reply to be returned.The ping program can also detect the return time of this hostTraceroute ProgramThe Traceroute program is a handy tool to explore the TCP/IP protocol in mo
At the network layer, ICMP plays an important role. It can be regarded as a reviewer and helps us check some transmission problems in messages. Then we will standardize the definition of this Protocol. Internet Control Message Protocol (ICMP) is used to send Control messages in a TCP/IP network and provide feedback on problems that may occur in the communication environment, with this information, managers
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.