In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you all the paths of using the traceroute command in linux to track the transmission of packets on the network. I hope you will gain a lot after reading this article. Let's discuss it together.
The traceroute command, which tracks the entire path of a packet as it travels over the network, sends a packet size of 40 bytes by default. Through traceroute, we can know the path of information from your computer to the host on the other side of the Internet. Of course, each packet from the same starting point (source) to a certain same destination (destination) may take a different path, but basically, most of the time the route is the same.
Traceroute measures how long it takes to send a small packet to the destination device until it returns. The traceroute of each device on a path is tested 3 times. The output includes the time of each test (ms) and the name of the device, if any, and its ip address.
Syntax format: traceroute [parameters] [domain name or IP]
Common parameters:
-d use Socket-level debugging function-f to set the survival value of the first detected packet TTL size-F setting do not break bit-g set source routing gateway Up to 8-I can be set to send packets using the specified network interface-I use ICMP echo instead of UDP profile information-m to set the maximum survival value for detection packets-size of TTL-n directly use the IP address instead of the host name-p sets the communication port of the UDP transport protocol-r ignores normal Routing Table Send the packet directly to the remote host-s set the IP address of the local host outgoing packet-t set the TOS value of the detection packet-v show the execution of the instruction in detail-w set the time to wait for a return from the remote host-x turn on or off the correctness of the packet
Reference example
Trace the transmission path of local packets to www.linuxprobe.com:
[root@linuxcool ~] # traceroute www.linuxprobe.com
Hop count setting:
[root@linuxcool] # traceroute-m 7 www.linuxprobe.com
Displays the IP address without looking up the hostname:
[root@linuxcool] # traceroute-n www.linuxprobe.com
Set the number of probe packets to a value of 4:
[root@linuxcool] # traceroute-Q 4 www.linuxprobe.com
Set the waiting response time of the outbound probe packet to 3 seconds:
[root@linuxcool] # traceroute-w 3 www.linuxprobe.com
After reading this article, I believe you have a certain understanding of the whole path of using the traceroute command in linux to track the transmission of packets on the network. If you want to know more about it, welcome to follow the industry information channel. Thank you for your reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.