mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2026-04-07 17:57:03 +02:00
* test: split out test fixtures for long ipv6 traceroute for consistency * refactor(jc/parsers/traceroute): remove duplicate ParseError class * refactor(jc/parsers/traceroute): pre-process data in _loads() for easy-to-reuse * refactor(jc/parsers/traceroute): split hop serialization into separate function to reuse * refactor(jc/parsers/traceroute): simplify numeric conversion and make it reusable for traceroute_s * fix(jc/parsers/traceroute): stricter regex to match traceroute headers only * feat(jc/parsers/traceroute_s): v1.0 implementation * fix(jc/parsers/traceroute): revert "_" prefix in function and class names * fixup! fix(jc/parsers/traceroute): revert "_" prefix in function and class names * chore(jc/parsers/traceroute): update the author information
415 lines
8.4 KiB
JSON
415 lines
8.4 KiB
JSON
[
|
|
{
|
|
"type": "header",
|
|
"destination_ip": "173.207.22.152",
|
|
"destination_name": "http://google.es",
|
|
"max_hops": 30,
|
|
"data_bytes": 60
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 1,
|
|
"probes": [
|
|
{
|
|
"annotation": "!P",
|
|
"asn": 1739,
|
|
"ip": "131.240.100.12",
|
|
"name": "131.240.100.12",
|
|
"rtt": 0.676
|
|
},
|
|
{
|
|
"annotation": "!",
|
|
"asn": 1739,
|
|
"ip": "131.240.100.12",
|
|
"name": "131.240.100.12",
|
|
"rtt": 0.763
|
|
},
|
|
{
|
|
"annotation": "!<500>",
|
|
"asn": 1739,
|
|
"ip": "131.240.100.12",
|
|
"name": "131.240.100.12",
|
|
"rtt": 0.91
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 2,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 1739,
|
|
"ip": "131.232.1.26",
|
|
"name": "http://tut1-fw-vlan558.av.tut.fi",
|
|
"rtt": 0.266
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1739,
|
|
"ip": "131.232.1.26",
|
|
"name": "http://tut1-fw-vlan558.av.tut.fi",
|
|
"rtt": 0.404
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1739,
|
|
"ip": "131.232.1.26",
|
|
"name": "http://tut1-fw-vlan558.av.tut.fi",
|
|
"rtt": 0.493
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 3,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 1739,
|
|
"ip": "131.232.1.20",
|
|
"name": "http://surf-gw-vlan557.av.tut.fi",
|
|
"rtt": 0.967
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1739,
|
|
"ip": "131.232.1.20",
|
|
"name": "http://surf-gw-vlan557.av.tut.fi",
|
|
"rtt": 0.961
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1739,
|
|
"ip": "131.232.1.20",
|
|
"name": "http://surf-gw-vlan557.av.tut.fi",
|
|
"rtt": 1.085
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 4,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 1739,
|
|
"ip": "130.230.1.237",
|
|
"name": "http://funet-tut6-rtr-xe-0-0-0.cc.tut.fi",
|
|
"rtt": 1.096
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1739,
|
|
"ip": "130.230.1.237",
|
|
"name": "http://funet-tut6-rtr-xe-0-0-0.cc.tut.fi",
|
|
"rtt": 1.086
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1739,
|
|
"ip": "130.230.1.237",
|
|
"name": "http://funet-tut6-rtr-xe-0-0-0.cc.tut.fi",
|
|
"rtt": 1.049
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 5,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.220",
|
|
"name": "http://hameenlinna2-et-0-0-0-1.ip.funet.fi",
|
|
"rtt": 3.81
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.220",
|
|
"name": "http://hameenlinna2-et-0-0-0-1.ip.funet.fi",
|
|
"rtt": 3.845
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.220",
|
|
"name": "http://hameenlinna2-et-0-0-0-1.ip.funet.fi",
|
|
"rtt": 3.82
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 6,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.224",
|
|
"name": "http://hameenlinna1-et-0-0-1-1.ip.funet.fi",
|
|
"rtt": 29.055
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.224",
|
|
"name": "http://hameenlinna1-et-0-0-1-1.ip.funet.fi",
|
|
"rtt": 29.013
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.224",
|
|
"name": "http://hameenlinna1-et-0-0-1-1.ip.funet.fi",
|
|
"rtt": 28.977
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 7,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.223",
|
|
"name": "http://espoo2-et-0-1-2-1.ip.funet.fi",
|
|
"rtt": 3.468
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.223",
|
|
"name": "http://espoo2-et-0-1-2-1.ip.funet.fi",
|
|
"rtt": 8.007
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.223",
|
|
"name": "http://espoo2-et-0-1-2-1.ip.funet.fi",
|
|
"rtt": 7.89
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 8,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.232",
|
|
"name": "http://espoo1-et-0-1-7-1.ip.funet.fi",
|
|
"rtt": 13.498
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.232",
|
|
"name": "http://espoo1-et-0-1-7-1.ip.funet.fi",
|
|
"rtt": 13.307
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 1741,
|
|
"ip": "86.50.255.232",
|
|
"name": "http://espoo1-et-0-1-7-1.ip.funet.fi",
|
|
"rtt": 13.399
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 9,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 2603,
|
|
"ip": "109.105.102.168",
|
|
"name": "http://fi-csc2.nordu.net",
|
|
"rtt": 3.25
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 2603,
|
|
"ip": "109.105.102.168",
|
|
"name": "http://fi-csc2.nordu.net",
|
|
"rtt": 3.268
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 2603,
|
|
"ip": "109.105.102.168",
|
|
"name": "http://fi-csc2.nordu.net",
|
|
"rtt": 3.236
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 10,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 2603,
|
|
"ip": "109.105.97.93",
|
|
"name": "http://se-fre.nordu.net",
|
|
"rtt": 9.418
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 2603,
|
|
"ip": "109.105.97.93",
|
|
"name": "http://se-fre.nordu.net",
|
|
"rtt": 9.41
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 2603,
|
|
"ip": "109.105.97.93",
|
|
"name": "http://se-fre.nordu.net",
|
|
"rtt": 9.369
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 11,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 2603,
|
|
"ip": "109.105.97.27",
|
|
"name": "http://se-kst2.nordu.net",
|
|
"rtt": 9.617
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 2603,
|
|
"ip": "109.105.97.27",
|
|
"name": "http://se-kst2.nordu.net",
|
|
"rtt": 9.594
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 2603,
|
|
"ip": "109.105.97.27",
|
|
"name": "http://se-kst2.nordu.net",
|
|
"rtt": 9.603
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 12,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": null,
|
|
"ip": "192.121.80.47",
|
|
"name": "http://as15169-10g-sk1.sthix.net",
|
|
"rtt": 10.01
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "72.14.196.42",
|
|
"name": "72.14.196.42",
|
|
"rtt": 9.182
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "72.14.196.42",
|
|
"name": "72.14.196.42",
|
|
"rtt": 44.983
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 13,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "108.170.254.49",
|
|
"name": "108.170.254.49",
|
|
"rtt": 10.852
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "108.170.254.33",
|
|
"name": "108.170.254.33",
|
|
"rtt": 11.185
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "108.170.254.49",
|
|
"name": "108.170.254.49",
|
|
"rtt": 10.876
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 14,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "209.85.242.11",
|
|
"name": "209.85.242.11",
|
|
"rtt": 10.192
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "209.85.242.11",
|
|
"name": "209.85.242.11",
|
|
"rtt": 10.471
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "209.85.242.11",
|
|
"name": "209.85.242.11",
|
|
"rtt": 10.502
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hop",
|
|
"hop": 15,
|
|
"probes": [
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "172.217.21.163",
|
|
"name": "http://arn11s03-in-f3.1e100.net",
|
|
"rtt": 9.652
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "172.217.21.163",
|
|
"name": "http://arn11s03-in-f3.1e100.net",
|
|
"rtt": 9.664
|
|
},
|
|
{
|
|
"annotation": null,
|
|
"asn": 15169,
|
|
"ip": "172.217.21.163",
|
|
"name": "http://arn11s03-in-f3.1e100.net",
|
|
"rtt": 9.777
|
|
}
|
|
]
|
|
}
|
|
]
|