1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-07 17:57:03 +02:00
Files
jc/tests/fixtures/generic/traceroute8-streaming.json
Shintaro Kojima 07ef285b06 Add traceroute streaming parser - traceroute-s (#669)
* 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
2025-10-12 10:21:16 -07:00

253 lines
5.3 KiB
JSON

[
{
"type": "header",
"destination_ip": "2606:4700:3030::6812:3e4e",
"destination_name": "baeldung.com",
"max_hops": 30,
"data_bytes": 80
},
{
"type": "hop",
"hop": 1,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:2e8:665:0:2:2:0:1",
"name": "2001:2e8:665:0:2:2:0:1",
"rtt": 0.083
},
{
"annotation": null,
"asn": null,
"ip": "2001:2e8:665:0:2:2:0:1",
"name": "2001:2e8:665:0:2:2:0:1",
"rtt": 0.048
},
{
"annotation": null,
"asn": null,
"ip": "2001:2e8:665:0:2:2:0:1",
"name": "2001:2e8:665:0:2:2:0:1",
"rtt": 0.044
}
]
},
{
"type": "hop",
"hop": 2,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:2e8:22:204::2",
"name": "2001:2e8:22:204::2",
"rtt": 25.128
},
{
"annotation": null,
"asn": null,
"ip": "2001:2e8:22:204::2",
"name": "2001:2e8:22:204::2",
"rtt": 25.047
},
{
"annotation": null,
"asn": null,
"ip": "2001:2e8:22:204::2",
"name": "2001:2e8:22:204::2",
"rtt": 25.025
}
]
},
{
"type": "hop",
"hop": 3,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:2e8:20::22:11",
"name": "2001:2e8:20::22:11",
"rtt": 1.106
},
{
"annotation": null,
"asn": null,
"ip": "2001:2e8:20::22:11",
"name": "2001:2e8:20::22:11",
"rtt": 25.83
},
{
"annotation": null,
"asn": null,
"ip": "2001:2e8:20::22:11",
"name": "2001:2e8:20::22:11",
"rtt": 1.007
}
]
},
{
"type": "hop",
"hop": 4,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:218:2000:5000::305",
"name": "xe-0-0-14-1.a02.tokyjp05.jp.bb.gin.ntt.net",
"rtt": 0.908
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:2000:5000::305",
"name": "xe-0-0-14-1.a02.tokyjp05.jp.bb.gin.ntt.net",
"rtt": 1.197
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:2000:5000::305",
"name": "xe-0-0-14-1.a02.tokyjp05.jp.bb.gin.ntt.net",
"rtt": 1.097
}
]
},
{
"type": "hop",
"hop": 5,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:218:0:2000::59",
"name": "ae-25.r02.tokyjp05.jp.bb.gin.ntt.net",
"rtt": 1.515
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:0:2000::59",
"name": "ae-25.r02.tokyjp05.jp.bb.gin.ntt.net",
"rtt": 1.744
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:0:2000::59",
"name": "ae-25.r02.tokyjp05.jp.bb.gin.ntt.net",
"rtt": 1.785
}
]
},
{
"type": "hop",
"hop": 6,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:218:0:2000::11a",
"name": "ae-4.r30.tokyjp05.jp.bb.gin.ntt.net",
"rtt": 1.466
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:0:2000::11a",
"name": "ae-4.r30.tokyjp05.jp.bb.gin.ntt.net",
"rtt": 1.538
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:0:2000::11a",
"name": "ae-4.r30.tokyjp05.jp.bb.gin.ntt.net",
"rtt": 1.337
}
]
},
{
"type": "hop",
"hop": 7,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:218:0:2000::2d7",
"name": "ae-3.r00.tokyjp08.jp.bb.gin.ntt.net",
"rtt": 1.857
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:0:2000::2d7",
"name": "ae-3.r00.tokyjp08.jp.bb.gin.ntt.net",
"rtt": 1.839
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:0:2000::2d7",
"name": "ae-3.r00.tokyjp08.jp.bb.gin.ntt.net",
"rtt": 1.901
}
]
},
{
"type": "hop",
"hop": 8,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2001:218:2000:5000::26",
"name": "as7515.ntt.net",
"rtt": 2.717
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:2000:5000::26",
"name": "as7515.ntt.net",
"rtt": 2.419
},
{
"annotation": null,
"asn": null,
"ip": "2001:218:2000:5000::26",
"name": "as7515.ntt.net",
"rtt": 2.325
}
]
},
{
"type": "hop",
"hop": 9,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "2400:cb00:22:1024::a29e:759c",
"name": "2400:cb00:22:1024::a29e:759c",
"rtt": 2.115
},
{
"annotation": null,
"asn": null,
"ip": "2400:cb00:22:1024::a29e:759c",
"name": "2400:cb00:22:1024::a29e:759c",
"rtt": 1.985
},
{
"annotation": null,
"asn": null,
"ip": "2400:cb00:22:1024::a29e:759f",
"name": "2400:cb00:22:1024::a29e:759f",
"rtt": 2.272
}
]
}
]