{"id":10121,"date":"2018-05-19T23:55:43","date_gmt":"2018-05-19T21:55:43","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=10121"},"modified":"2022-03-16T18:48:05","modified_gmt":"2022-03-16T17:48:05","slug":"traceroute-mit-mtr-0-92-56-network-diagnostic-tool-auf-dem-pi-oder-traceroute-ping-mtr","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=10121","title":{"rendered":"Traceroute mit mtr 0.92.56 (network diagnostic tool) auf dem Pi oder Traceroute + Ping = mtr"},"content":{"rendered":"<p>Manchmal will man das Netzwerk analysieren und sehen wie der Weg zum Zielrechner l\u00e4uft. Das geht mit <a href=\"https:\/\/de.wikipedia.org\/wiki\/Traceroute\" rel=\"noopener\" target=\"_blank\">Traceroute<\/a>. Also z.B. <strong>traceroute wenzlaff.de<\/strong><\/p>\n<pre class=\"lang:default decode:true \" >\r\ntraceroute wenzlaff.de\r\ntraceroute to wenzlaff.de (81.169.145.80), 30 hops max, 60 byte packets\r\n 1  home (x.x.x.x)  1.647 ms  1.675 ms  2.276 ms\r\n 2  x.x.x.x (x.x.x.x)  10.776 ms  10.113 ms  9.227 ms\r\n 3  f-ed3-i.F.DE.NET.DTAG.DE (62.154.14.138)  16.637 ms  16.677 ms  16.472 ms\r\n 4  xe-3-0-1.atuin.as6724.net (62.157.249.198)  16.257 ms  16.188 ms  16.091 ms\r\n 5  vl481.fiddlersriddle.as6724.net (81.169.144.121)  16.120 ms  16.333 ms  17.368 ms\r\n 6  w80.rzone.de (81.169.145.80)  17.462 ms  18.176 ms  18.442 ms\r\n<\/pre>\n<p>Interesannter wird es in Verbindung mit dem ping. Dazu installieren wir das <a href=\"https:\/\/www.bitwizard.nl\/mtr\/\" rel=\"noopener\" target=\"_blank\">mtr<\/a> programm mit <strong>sudo apt-get install mtr<\/strong> und schauen uns die Hilfe des Programms mit <strong>mtr -h<\/strong> an:<\/p>\n<pre class=\"lang:default decode:true \" >\r\nwenzlaff.info@pi-zero:\/home\/pi $ mtr -h\r\nusage: mtr [--help] [--version] [-4|-6] [-F FILENAME]\r\n\t\t[--report] [--report-wide] [--displaymode MODE]\r\n\t\t[--xml] [--gtk] [--curses] [--raw] [--csv] [--json] [--split]\r\n\t\t[--no-dns] [--show-ips] [-o FIELDS] [-y IPINFO] [--aslookup]\r\n\t\t[-i INTERVAL] [-c COUNT] [-s PACKETSIZE] [-B BITPATTERN]\r\n\t\t[-Q TOS] [--mpls]\r\n\t\t[-a ADDRESS] [-f FIRST-TTL] [-m MAX-TTL] [-U MAX_UNKNOWN]\r\n\t\t[--udp] [--tcp] [--sctp] [-P PORT] [-L LOCALPORT] [-Z TIMEOUT]\r\n\t\t[-G GRACEPERIOD] [-M MARK] HOSTNAME\r\nSee the man page for details.\r\n<\/pre>\n<p>Ok, wir starten nun mtr mit dem Zielhost z.B. mit <strong>mtr wenzlaff.de<\/strong> und erhalten einen interaktiven Dialog. Wir klicken nun die <strong>d<\/strong> Taste und erhalten den Status in Echtzeit der letzten 70 Pings in einem sch\u00f6nen Diagramm:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.39.37.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.39.37.png\" alt=\"\" width=\"1121\" height=\"654\" class=\"aligncenter size-full wp-image-10125\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.39.37.png 1121w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.39.37-300x175.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.39.37-768x448.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.39.37-1024x597.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Mit der h Taste, gibt es Hilfe:<!--more--><\/p>\n<pre class=\"lang:default decode:true \" >Command:\r\n  ?|h     help\r\n  p       pause (SPACE to resume)\r\n  d       switching display mode\r\n  e       toggle MPLS information on\/off\r\n  n       toggle DNS on\/off\r\n  r       reset all counters\r\n  o str   set the columns to display, default str='LRS N BAWV'\r\n  j       toggle latency(LS NABWV)\/jitter(DR AGJMXI) stats\r\n  c &lt;n&gt;   report cycle n, default n=infinite\r\n  i &lt;n&gt;   set the ping interval to n seconds, default n=1\r\n  f &lt;n&gt;   set the initial time-to-live(ttl), default n=1\r\n  m &lt;n&gt;   set the max time-to-live, default n= # of hops\r\n  s &lt;n&gt;   set the packet size to n or random(n&lt;0)\r\n  b &lt;c&gt;   set ping bit pattern to c(0..255) or random(c&lt;0)\r\n  Q &lt;t&gt;   set ping packet's TOS to t\r\n  u       switch between ICMP ECHO and UDP datagrams\r\n  y       switching IP info\r\n  z       toggle ASN info on\/off\r\n<\/pre>\n<p>Das Programm kann auch einen Report im JSon Format ausgeben mit: <strong>mtr &#8211;json wenzlaff.info<\/strong> und in XML mit <strong>mtr &#8211;xml wenzlaff.info<\/strong> oder CSV analog.<\/p>\n<p>Man kann sich auch selbst eine Version compilieren, den C-Code gibt es auf GitHub (https:\/\/github.com\/traviscross\/mtr). Folgende Schritte sind n\u00f6tig und in ein paar Minuten auf dem Raspberry Pi erstellt:<\/p>\n<pre class=\"lang:default decode:true \" >\r\n# git repo clonen\r\ngit clone https:\/\/github.com\/traviscross\/mtr.git\r\n\r\n# in das Verzeichnis gehen\r\ncd mtr\r\n\r\n# compilieren und bauen\r\n.\/bootstrap.sh &amp;&amp; .\/configure &amp;&amp; make\r\n\r\n# nach ein paar minuten ist das Programm gebaut wurden und kann gestartet werden mit\r\nsudo .\/mtr wenzlaff.de \r\n\r\n# wenn wir die Version installieren wollen noch ein\r\nsudo make install\r\n<\/pre>\n<p>Und schon hat man die aktuelle Version 0.92.56:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.58.41.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.58.41.png\" alt=\"\" width=\"1125\" height=\"517\" class=\"aligncenter size-full wp-image-10126\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.58.41.png 1125w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.58.41-300x138.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.58.41-768x353.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/05\/Bildschirmfoto-2018-05-17-um-16.58.41-1024x471.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Aber nur auf die eigenen Server loslassen \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Manchmal will man das Netzwerk analysieren und sehen wie der Weg zum Zielrechner l\u00e4uft. Das geht mit Traceroute. Also z.B. traceroute wenzlaff.de traceroute wenzlaff.de traceroute to wenzlaff.de (81.169.145.80), 30 hops max, 60 byte packets 1 home (x.x.x.x) 1.647 ms 1.675 ms 2.276 ms 2 x.x.x.x (x.x.x.x) 10.776 ms 10.113 ms 9.227 ms 3 f-ed3-i.F.DE.NET.DTAG.DE (62.154.14.138) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=10121\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eTraceroute mit mtr 0.92.56 (network diagnostic tool) auf dem Pi oder Traceroute + Ping = mtr\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220,2173,808,1023,2752,1319,2713],"tags":[3259,1379,3256,2823,3257,3258],"class_list":["post-10121","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-debian","category-linux-2","category-raspberry-pi","category-raspberry-pi-zero-w","category-sicherheit-2","category-statistik","tag-0-92","tag-compilieren","tag-mtr","tag-ping","tag-trace","tag-traceroute"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/10121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10121"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/10121\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10121"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}