Common Linux Network Tools: mtr and linuxmtr 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 Avg of the Last package -- average latency of all packages Best -- Minimum latency package Wrst -- maximum latency package StDev -- Standard Deviation
Record, for better yourself!