traviscross / mtr

Official repository for mtr, a network diagnostic tool
http://www.bitwizard.nl/mtr/
GNU General Public License v2.0
2.66k stars 339 forks source link

Two host lines for each hop (regression between 0.92 and 0.95?) #499

Open Daniel15 opened 9 months ago

Daniel15 commented 9 months ago

I'm using mtr with a command like this:

mtr --no-dns --raw --report-cycles 100 example.com

mtr 0.92 (from the mtr-tiny Debian package) produces output like this:

IPv6:

x 0 33000
h 0 2605:4840:ffff::1
p 0 1409 33000
x 1 33001
h 1 2a12:3200:3000:173::1
p 1 365 33001
x 2 33002
h 2 2001:418:0:5000::6ec
p 2 1464 33002
x 3 33003
h 3 2001:728:0:2000::1c6
p 3 807 33003
x 4 33004
h 4 2001:728:0:2000::1ba
p 4 20050 33004
x 5 33005
h 5 2001:728:0:2000::171
p 5 29611 33005
x 6 33006
h 6 2001:418:0:2000::252
p 6 96138 33006
x 7 33007
h 7 2001:418:0:2000::22a
p 7 96671 33007
x 8 33008
h 8 2001:418:0:5000::471
p 8 97392 33008
x 9 33009
h 9 2606:2800:4262:f::6
p 9 97827 33009
x 10 33010
h 10 2606:2800:220:1:248:1893:25c8:1946
p 10 98336 33010
x 11 33011
h 11 2606:2800:220:1:248:1893:25c8:1946
p 11 98076 33011
x 0 33012
p 0 4130 33012
x 1 33013
p 1 3549 33013
x 2 33014
p 2 1557 33014
x 3 33015
p 3 835 33015
x 4 33016
p 4 20261 33016
x 5 33017
p 5 25145 33017
x 6 33018
x 7 33019
...

IPv4:

x 0 33000
h 0 45.91.94.1
p 0 42773 33000
x 1 33001
h 1 84.17.33.66
p 1 545 33001
x 2 33002
x 3 33003
h 3 154.54.58.5
p 3 6586 33003
x 4 33004
h 4 154.54.36.53
p 4 12134 33004
x 5 33005
h 5 130.117.0.121
p 5 18843 33005
x 6 33006
h 6 154.54.56.93
p 6 25551 33006
x 7 33007
h 7 154.54.82.34
p 7 87929 33007
x 8 33008
x 9 33009
h 8 38.88.15.34
p 8 101301 33008
x 10 33010
h 9 152.195.233.131
p 9 112172 33009
h 10 93.184.216.34
p 10 87370 33010
x 11 33011
h 11 93.184.216.34
p 11 87378 33011
x 0 33012
p 0 22427 33012
x 1 33013
p 1 292 33013
x 2 33014
x 3 33015
p 3 10683 33015
x 4 33016
x 5 33017
p 4 97284 33016
p 5 19058 33017
x 6 33018
p 6 58575 33018
x 7 33019
x 8 33020
p 7 87864 33019
x 9 33021
p 8 88045 33020
x 10 33022
p 9 120326 33021
p 10 87388 33022
x 0 33023
p 0 19984 33023
x 1 33024
p 1 366 33024
x 2 33025
...

However, mtr 0.95 produces output like this:

x 0 33000
h 0 2607:f7a0:a::1
h 0 2607:f7a0:a::1
p 0 11105 33000
x 1 33001
h 1 2a02:6ea0:8:1120:5033::1
h 1 2a02:6ea0:8:1120:5033::1
p 1 313 33001
x 2 33002
x 3 33003
h 3 2001:550:2:18::e9:2
h 3 2001:550:2:18::e9:2
p 3 1199 33003
x 4 33004
h 4 2606:2800:4063:f::2
h 4 2606:2800:4063:f::2
p 4 4621 33004
x 5 33005
h 5 2606:2800:220:1:248:1893:25c8:1946
h 5 2606:2800:220:1:248:1893:25c8:1946
p 5 507 33005
x 6 33006
h 6 2606:2800:220:1:248:1893:25c8:1946
h 6 2606:2800:220:1:248:1893:25c8:1946
p 6 404 33006
x 0 33007
p 0 41218 33007
x 1 33008
p 1 369 33008
x 2 33009
x 3 33010
p 3 1199 33010
x 4 33011
p 4 1130 33011
x 5 33012
p 5 395 33012
x 0 33013
p 0 4095 33013
x 1 33014
p 1 332 33014
x 2 33015
h 2 2001:550:2:18::152:1
h 2 2001:550:2:18::152:1
p 2 949 33015
x 3 33016
p 3 4187 33016
x 4 33017
p 4 1435 33017
x 5 33018
p 5 404 33018
x 0 33019
p 0 2362 33019
x 1 33020
p 1 296 33020
x 2 33021
p 2 1119 33021
x 3 33022
p 3 1347 33022
x 4 33023
p 4 1653 33023
...

IPv4:

x 0 33000
h 0 31.220.30.1
h 0 31.220.30.1
p 0 22831 33000
x 1 33001
h 1 156.146.32.144
h 1 156.146.32.144
p 1 374 33001
x 2 33002
h 2 38.142.33.185
h 2 38.142.33.185
p 2 982 33002
x 3 33003
h 3 38.104.83.194
h 3 38.104.83.194
p 3 1175 33003
x 4 33004
h 4 152.195.77.129
h 4 152.195.77.129
p 4 16489 33004
x 5 33005
h 5 93.184.216.34
h 5 93.184.216.34
p 5 383 33005
x 6 33006
h 6 93.184.216.34
h 6 93.184.216.34
p 6 377 33006
x 0 33007
p 0 31076 33007
x 1 33008
p 1 374 33008
x 2 33009
p 2 950 33009
x 3 33010
p 3 1292 33010
x 4 33011
p 4 20470 33011
...

The host (h) line for each hop appears twice.

Is this intentional? I don't see any recent changes to the FORMATS file.