Common Linux Network Tools: mtr for Route Scanning
In addition to traceroute introduced in the previous article "common network tools for Linux: traceroute for Route scanning", Linux also has another commonly used route scanning tool mtr.
Mtr is more useful than traceroute in some aspects. It can display the information of each hop route in real time and continuously detect the route.
Traceroute uses UDP packet detection by default, while mtr uses ICMP packet detection by default. ICMP has a lower priority in some route nodes than other data packets. Therefore, the test data may be lower than the actual situation.
Mtr
--------------------------------------------------------------------------------
Mtr is easy to use and usually does not require additional options. For more parameters, refer to the man page of mtr:
Usage: mtr [-hvrwctglspniu46] [-- help] [-- version] [-- report]
[-- Report-wide] [-- report-cycles = COUNT] [-- curses] [-- gtk]
[-- Raw] [-- split] [-- no-dns] [-- address interface]
[-- Psize = bytes/-s bytes]
[-- Interval = SECONDS] HOSTNAME [PACKETSIZE]
Mtr example:
Output parameter explanation:
Loss % -- packet Loss rate, measured in "% ";
Snt -- number of sent packages
Last -- latency of the Last packet
Avg -- average latency of all packets
Best-packet with minimum latency
Wrst -- the packet with the maximum latency
StDev-Standard Deviation
This article permanently updates the link address: