Mtr (english): Difference between revisions

From ICO wiki
Jump to navigationJump to search
(Created page with "== Introduction == '''My traceroute''', originally named '''Matt's traceroute''' ('''MTR''') is a computer program which combines the functions of the traceroute and [...")
 
No edit summary
Line 11: Line 11:


== Installation ==
== Installation ==
   sudo apt-get install mtr in linux systems or go to website [http://www.winmtr.net WinMTR] and download the package for your Microsoft Windows operating system.
   sudo apt-get install mtr in linux systems  
 
or go to website [http://www.winmtr.net WinMTR] and download the package for your Microsoft Windows operating system.




Line 17: Line 19:
You can use either the ip address or the domain name to use the program.
You can use either the ip address or the domain name to use the program.


Example of how the program looks like:
Example of how the program looks like with the parameter


mtr google.ee


 
                            My traceroute  [v0.85]  
                            My traceroute  [v0.82]
  enos (::)                                             Thu May  5 13:49:14 2016
  localhost (0.0.0.0)                                       Thu May  5 13:15:05 2016
  Keys:  Help  Display mode  Restart statistics  Order of fields  quit
  Keys:  Help  Display mode  Restart statistics  Order of fields  quit
                                    Packets              Pings
                                      Packets              Pings
  Host                             Loss%  Snt  Last  Avg  Best  Wrst StDev
  Host                               Loss%  Snt  Last  Avg  Best  Wrst StDev
  1. 85.76.255.253                  0.0%    7   0.5   0.4  0.4  0.5   0.1
  1. 2001:bb8:4006:ff::1              0.0%    8   0.4   0.4  0.4  0.7   0.0
  2. AT5-0-241.jkyla261-gw.fi.elisa  0.0%    7   0.9   1.4   0.8   4.3   1.3
  2. 2001:bb8:4006:ff::2              0.0%    8   1.0  1.6   0.9   5.8   1.5
  3. 139.97.94.55                    0.0%    7    0.9   0.9   0.9  1.0   0.1
  3. 2001:7f8:3c::3d                  0.0%    7    1.1   2.3   0.8  10.8   3.7
  4. 213.192.186.77                  0.0%    7   1.0  1.3   0.9  2.0.7
  4. ae2.mx1.ham.de.geant.net          0.0%    7   29.9  29.5  29.3 29.9  0.0
  5. 213.192.186.49                  0.0%    6    2.6  2.7  2.6  2.8   0.1
  5. google.mx1.fra.de.geant2.net      0.0%    7  29.2  29.1  29.0  29.2   0.0
6. ???
6. google-gw.mx1.fra.de.geant2.net   0.0%    29.3  29.2 29.1  29.3   0.0
  7. mus-sr1-xe-0-0-1-0.ee.estpak.e 0.0%    6    2.9  3.4  2.5.4   1.0
  7. 2001:4860:0:1::177f              0.0%    7  29.4  29.4 29.3  29.6  0.0
  8. www.telia.ee                    0.0%    6    2.8  2.9   2.3.0   0.1
8. 2001:4860:0:1::1b39              0.0%    7  29.2 29.2  29.1  29.5  0.0
  9. fra16s08-in-x03.1e100.net        0.0%    7  29.1  29.1  28.9 29.3  0.0


The meanings of abbreviations:  
The meanings of abbreviations:  
Line 53: Line 56:
''StDev'' - standard deviation
''StDev'' - standard deviation


 
== The syntax and parameters ==
Keys:
 
?|h  -  abi
 
p    -  paus
 
d  -    muuda kuvamisrežiimi
 
e    -  lülita sisse/välja MPLS
 
n  -    lülita sisse/välja DNS
 
r  -    lähtesta loendurid
 
o str -  määra näidatavad tulbad, vaikimisi 'LRS N BAWV'
 
j  -    lülita sisse/välja latentsus(LS NABWV) / jitter(DR AGJMXI)
 
c <n> -  raporti tsüklite arv n, vaikimis n=lõpmatu
 
i <n> -  määra pingi paketi interval n sekundit, vaikimisi n=1
 
f <n>  - määra paketi esialgne eluiga (TTL), vaikimisi n=1
 
m <n> -  määra paketi maksimaalne eluiga, vaikimisi n= # võrgusõlme
 
s <n> -  määra paketi suurus n või juhuslik (n<0)
 
b <c> -  määra ping paketi biti muster c(0..255) or juhuslik(c<0)
 
Q <t> -  määra ping paketi teenuse tüübi (TOS) välja väärtus
 
u  -    vaheta ICMP ECHO ja UDP pakettide vahel
 
y  -    vaheta IP info
 
z    -  lülita sisse/välja ASN info
 
 
== Süntaks ja parameetrid==


Süntaks:[http://linux.about.com/library/cmd/blcmdl8_mtr.htm/]
Süntaks:[http://linux.about.com/library/cmd/blcmdl8_mtr.htm/]
   mtr [võtmed] hostinimi [paketi  suurus]
   mtr [keys] hostname or ip address [packet size]




Täiendavate võtmete näiteid:[http://linux.about.com/library/cmd/blcmdl8_mtr.htm/]
For more info about the different parameters:[http://linux.about.com/library/cmd/blcmdl8_mtr.htm/]


Abi:
You can also use the parameter -h for help:


   -h
   -h


which outputs this to the commandline:


== Näited==
usage: mtr [-hvrwctglspniu46] [--help] [--version] [--report]
 
                [--report-wide] [--report-cycles=COUNT] [--curses] [--gtk]
 
                [--raw] [--split] [--mpls] [--no-dns] [--address interface]
Mõne kohapeal võib-olla on kasulik programmi jooksutada ühe tunni jooksul ühe minutiliste intervallidega ning raport suunata tekstifaili. Näiteks:
                [--psize=bytes/-s bytes]
 
                [--report-wide|-w] [-u]
  mtr -i 60 -r -c 60 neti.ee > stats.txt
                [--interval=SECONDS] HOSTNAME [PACKETSIZE]
 
Failis sisu:
 
    Start: Sun Dec  8 16:15:08 2013
    HOST: mint                        Loss%  Snt  Last  Avg  Best  Wrst StDev
      1.|-- OpenWrt.lan                0.0%    60    2.7  4.2  0.9  29.2  3.7
      2.|-- ???                      100.0    60    0.0  0.0  0.0  0.0  0.0
      3.|-- 83-169-179-134-isp.superk  0.0%    60  16.6  34.7  10.5 231.2  39.3
      4.|-- 88-134-194-46-dynip.super  0.0%    60  15.4  39.8  11.2 210.7  40.9
      5.|-- 88-134-194-44-dynip.super  0.0%    60  16.4  24.8  11.8  73.1  14.7
      6.|-- 88-134-203-2-dynip.superk  0.0%    60  22.5  27.7  16.0  79.0  11.2
      7.|-- 88-134-237-125-dynip.supe  0.0%    60  32.9  39.2  23.7 157.9  18.5
      8.|-- 88-134-234-157-dynip.supe  0.0%    60  38.5  34.4  23.5  72.0  9.3
      9.|-- ffm-bb1-ge-0-1-3-0.de.eli  0.0%    60  26.2  34.6  20.0 103.0  16.0
    10.|-- kjj-bb2-xe-2-1-3-0.ee.est  0.0%    60  100.3  80.1  64.7 136.2  14.9
    11.|-- ???                      100.0    60    0.0  0.0  0.0  0.0  0.0
    12.|-- kjj-lgw7.ee.estpak.ee      0.0%    60  72.0  80.0  64.8 208.8  19.4
    13.|-- neti.ee                    0.0%    60  71.3  74.8  62.3 116.4  9.4
    (END)
 
 
 
Katsetamiseks proovi ka:
 
  mtr 216.81.59.173


== Summary==


== Kokkuvõtte==
Mtr is a tool that combines ping and traceroute. It was developed by Matt Kimball in 1997. Roger Wolff took over maintaining MTR (renamed My traceroute) in October 1998. The tool is often used for network troubleshooting. By showing a list of routers traversed, and the average round-trip time as well as packet loss to each router, it allows users to identify links between two given routers responsible for certain fractions of the overall latency or packet loss through the network.[3] This can help identify network overuse problems.[4]
''mtr''-is on ühendatud ''ping''-i ja ''traceroute''-i võrgudiagnostika tööriistad, seetõttu ei ole vajadust kasutada kahte erinevat käsku ning ''mtr'' annab parema ülevaate võrgu olukorrast. ''mtr'' võib osutuda kasulikuks tööriistaks tõrkeotsingul sisevõrgus või kui on vaja saata informatsiooni tugiisikule või Internetiteenusepakkujale.


== Autor==
== Author==


Tuomas Nieminen CS15, 05.2016
Tuomas Nieminen CS15, 05.2016


 
== Used materials==
== Kasutatud materjalid==
*http://winmtr.net/
*http://winmtr.net/
*http://kb.site5.com/networking/mtr-for-linux/
*http://kb.site5.com/networking/mtr-for-linux/
*https://www.digitalocean.com/community/articles/how-to-use-traceroute-and-mtr-to-diagnose-network-issues
*http://linux.about.com/library/cmd/blcmdl8_mtr.htm
*http://linux.about.com/library/cmd/blcmdl8_mtr.htm
*https://wiki.itcollege.ee/index.php/Traceroute
*https://wiki.itcollege.ee/index.php/Ping
*https://github.com/traviscross/mtr
*https://github.com/traviscross/mtr
*https://github.com/traviscross/mtr/blob/master/mtr.c
*https://github.com/traviscross/mtr/blob/master/mtr.c
*''mtr'''i manuaal
*https://en.wikipedia.org/wiki/MTR_(software)


[[Category:]]
[[Category:]]

Revision as of 13:56, 5 May 2016

Introduction

My traceroute, originally named Matt's traceroute (MTR) is a computer program which combines the functions of the traceroute and ping programs in one network diagnostic tool. There's also a version for Microsoft Windows operating systems called WinMTR


Fundamentals

MTR is licensed under the terms of the GNU General Public License (GPL) and works under modern Unix-like operating systems. It normally works under the text console, but it also has an optional GTK+-based graphical user interface (GUI).

MTR also supports IPv6 and works in a similar manner but instead relies on ICMPv6 messages.

The tool is used for network troubleshooting with ping and traceroute.

Installation

 sudo apt-get install mtr in linux systems 

or go to website WinMTR and download the package for your Microsoft Windows operating system.


How to use

You can use either the ip address or the domain name to use the program.

Example of how the program looks like with the parameter

mtr google.ee
                            My traceroute  [v0.85] 
enos (::)                                              Thu May  5 13:49:14 2016
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                      Packets               Pings
Host                                Loss%   Snt   Last   Avg  Best  Wrst StDev
1. 2001:bb8:4006:ff::1               0.0%     8    0.4   0.4   0.4   0.7   0.0
2. 2001:bb8:4006:ff::2               0.0%     8    1.0   1.6   0.9   5.8   1.5
3. 2001:7f8:3c::3d                   0.0%     7    1.1   2.3   0.8  10.8   3.7
4. ae2.mx1.ham.de.geant.net          0.0%     7   29.9  29.5  29.3  29.9   0.0
5. google.mx1.fra.de.geant2.net      0.0%     7   29.2  29.1  29.0  29.2   0.0
6. google-gw.mx1.fra.de.geant2.net   0.0%     7   29.3  29.2  29.1  29.3   0.0
7. 2001:4860:0:1::177f               0.0%     7   29.4  29.4  29.3  29.6   0.0
8. 2001:4860:0:1::1b39               0.0%     7   29.2  29.2  29.1  29.5   0.0
9. fra16s08-in-x03.1e100.net         0.0%     7   29.1  29.1  28.9  29.3   0.0

The meanings of abbreviations:

Host - hostname

Loss - how many percent of the packets are lost

Snt - how many packets are sent

Last - the last ping time of the packet

Avg - average ping time

Best- the fastest ping time

Worst - the slowest ping time

StDev - standard deviation

The syntax and parameters

Süntaks:[1]

 mtr [keys] hostname or ip address [packet size]


For more info about the different parameters:[2]

You can also use the parameter -h for help:

 -h

which outputs this to the commandline:

usage: mtr [-hvrwctglspniu46] [--help] [--version] [--report]
               [--report-wide] [--report-cycles=COUNT] [--curses] [--gtk]
               [--raw] [--split] [--mpls] [--no-dns] [--address interface]
               [--psize=bytes/-s bytes]
               [--report-wide|-w] [-u]
               [--interval=SECONDS] HOSTNAME [PACKETSIZE]

Summary

Mtr is a tool that combines ping and traceroute. It was developed by Matt Kimball in 1997. Roger Wolff took over maintaining MTR (renamed My traceroute) in October 1998. The tool is often used for network troubleshooting. By showing a list of routers traversed, and the average round-trip time as well as packet loss to each router, it allows users to identify links between two given routers responsible for certain fractions of the overall latency or packet loss through the network.[3] This can help identify network overuse problems.[4]

Author

Tuomas Nieminen CS15, 05.2016

Used materials

[[Category:]]