Linux mtr (my traceroute ping + traceroute) __linux

Source: Internet
Author: User
Tags gtk resolve ip address ping and traceroute

Mtr (My traceroute) is a Network Diagnostics tool that incorporates ping and traceroute into a program. The MTR provides two interfaces: a ncurses interface that is useful for using MTR from a Telnet session, and a GTK + interface for X (provided in the MTR-GTK software package).
MTR use
1, MTR command line tools
MTR use is relatively simple, please refer to MTR's man page for detailed usage.
[root@ts3-142 ~]# Mtr–help
usage:mtr [-hvrctglspni46] [–help] [–version] [–report]
[–report-cycles=count] [–curses] [–GTK]
[–raw] [–split] [–no-dns] [–address Interface]
[–psize=bytes/-s bytes]
[–interval=seconds] HOSTNAME [PacketSize]
The main parameters are explained as follows:
–report tracking results to report mode output
–report-cycles=count defines the number of traces, defaults to 16
–raw the results in the original format
–split the results of each trace separately, unlike –report, to count the entire result.
–no-dns only displays IP address, does not resolve IP address corresponding host name
–psize=bytes/-s bytes defines the packet size, in bytes
Let's look at a simple example:
[root@ts3-142 ~]# mtr–report-c 10-n
The output results are as follows:
My traceroute [v0.71]
Ts3-142.ts.cn.tlan (0.0.0.0) Fri Aug 3 22:39:50 2007
Keys:help Display Mode Restart Statistics Order of fields quit
Packets pings
Host loss% last AVG best Wrst StDev
1.172.16.76.1 0% 0.5 0.4 0.4 0.5 0.1
2.202.108.132.17 0% 179.0 20.2 2.3 179.0 55.8
3.172.19.140.69 0% 13.7 10.3 6.2 17.1 3.8
4.172.17.0.17 0% 9.3 16.5 8.6 62.3 16.3
5.172.16.0.57 0% 9.9 11.2 6.1 21.0 5.4
6.192.168.0.25 0% 7.3 11.4 5.1 17.2 4.2
7.210.74.176.241 10% 110.1 109.6 92.7 123.3 11.3
8.202.96.13.101 20% 104.9 111.8 101.4 126.5 9.3
9.202.106.192.233 30% 120.7 113.8 85.5 138.8 17.2
10.61.148.143.26 10% 99.7 112.0 99.7 120.9 6.9
11.202.96.8.246 20% 97.0 108.2 92.3 137.4 14.3
12.210.77.38.126 11.1% 133.0 113.8 97.0 133.0 11.8
This result illustrates the shortest/maximum time and standard deviation from my host to the routed node and the packet loss rate to each node and the ping command.

mtr-h provides help commands
mtr-v display version information for MTR
Mtr-r reported mode display
[root@10.10.90.97 ~]# 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 0.5 0.6 0.0
202.97.53.14 10% 0.7 0.7 0.7 0.8 0.0
219.158.35.1 0% 0.8 0.8 0.8 0.9 0.0
219.158.5.81 0% 1.2 1.3 1.2 1.6 0.1
123.126.0.138 0% 1.2 1.1 1.1 1.3 0.1
61.148.153.126 0% 1.9 10.5 1.5 89.9 27.9
61.148.143.22 0% 1.5 1.6 1.5 1.7 0.0
210.74.178.198 0% 1.6 1.6 1.5 1.9 0.1
202.108.33.94 0% 1.5 1.5 1.4 1.5 0.0

Report Description:
The first column : Displays the IP address and the native domain name, this is similar with tracert
second column : Snt:10 sets the number of packets sent per second, the default value of 10 can be specified by parameter-C.
[root@10.10.90.97 ~]# Mtr-r-C 15 202.108.33.94

FOCUS9097 snt:15 loss% last AVG best Wrst StDev
220.181.61.252 0% 1.9 3.4 1.8 12.9 3.1
220.181.17.217 0% 0.5 0.5 0.4 0.8 0.1
220.181.16.17 0% 0.5 0.6 0.5 2.3 0.5
202.97.53.14 0% 0.7 0.7 0.7 0.7 0.0
219.158.35.1 0% 0.9 0.8 0.8 0.9 0.0
219.158.5.81 0% 1.3 2.8 1.2 22.8 5.5
123.126.0.138 0% 1.1 1.1 1.1 1.2 0.0
61.148.153.126 0% 13.8 7.4 1.6 60.4 15.5
61.148.143.22 0% 1.7 1.6 1.5 1.8 0.1
210.74.178.198 0% 1.6 1.6 1.4 1.7 0.1
202.108.33.94 0% 1.5 1.5 1.4 1.7 0.1

Where-C is described as:--report-cycles COUNT
The third column : is the display of each corresponding IP packet loss rate
Fourth Column : The most recent return delay shown
Fifth Column : Average time delay for sending ping packets
The Sixth column : is the best or said the shortest time delay
Seventh Column : is the worst or most often the time delay
Eighth column : the standard deviation
Next, the relevant parameters:

mtr-s To specify the size of the ping packet
mtr-nNo-dns does not do domain name resolution on IP address
mtr-a To set the IP address of the sending packet this is useful for a host by multiple IP addresses
mtr-i Use this parameter to set the request between ICMP returns the default is 1 seconds
mtr-4 IPv4
mtr-6 IPv6

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.