1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-07 17:57:03 +02:00
Files
jc/tests/fixtures/generic/traceroute3-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

406 lines
7.7 KiB
JSON

[
{
"type": "header",
"destination_ip": "31.13.82.36",
"destination_name": "facebook.com",
"max_hops": 30,
"data_bytes": 40
},
{
"type": "hop",
"hop": 1,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "175.41.192.133",
"name": "ec2-175-41-192-133.ap-northeast-1.compute.amazonaws.com",
"rtt": 1.002
},
{
"annotation": null,
"asn": null,
"ip": "175.41.192.133",
"name": "ec2-175-41-192-133.ap-northeast-1.compute.amazonaws.com",
"rtt": 1.006
}
]
},
{
"type": "hop",
"hop": 2,
"probes": []
},
{
"type": "hop",
"hop": 3,
"probes": []
},
{
"type": "hop",
"hop": 4,
"probes": []
},
{
"type": "hop",
"hop": 5,
"probes": []
},
{
"type": "hop",
"hop": 6,
"probes": []
},
{
"type": "hop",
"hop": 7,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "100.65.10.33",
"name": "100.65.10.33",
"rtt": 0.269
},
{
"annotation": null,
"asn": null,
"ip": "100.65.10.33",
"name": "100.65.10.33",
"rtt": 0.282
},
{
"annotation": null,
"asn": null,
"ip": "100.65.10.33",
"name": "100.65.10.33",
"rtt": 0.32
}
]
},
{
"type": "hop",
"hop": 8,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "54.239.52.186",
"name": "54.239.52.186",
"rtt": 1.411
},
{
"annotation": null,
"asn": null,
"ip": "54.239.52.186",
"name": "54.239.52.186",
"rtt": 1.431
},
{
"annotation": null,
"asn": null,
"ip": "54.239.52.186",
"name": "54.239.52.186",
"rtt": 1.433
}
]
},
{
"type": "hop",
"hop": 9,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "52.95.31.89",
"name": "52.95.31.89",
"rtt": 2.612
},
{
"annotation": null,
"asn": null,
"ip": "52.95.31.89",
"name": "52.95.31.89",
"rtt": 2.634
},
{
"annotation": null,
"asn": null,
"ip": "52.95.31.89",
"name": "52.95.31.89",
"rtt": 2.659
}
]
},
{
"type": "hop",
"hop": 10,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "52.95.31.56",
"name": "52.95.31.56",
"rtt": 1.017
},
{
"annotation": null,
"asn": null,
"ip": "52.95.31.56",
"name": "52.95.31.56",
"rtt": 1.028
},
{
"annotation": null,
"asn": null,
"ip": "52.95.31.56",
"name": "52.95.31.56",
"rtt": 1.048
}
]
},
{
"type": "hop",
"hop": 11,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "52.95.31.149",
"name": "52.95.31.149",
"rtt": 7.042
},
{
"annotation": null,
"asn": null,
"ip": "52.95.31.149",
"name": "52.95.31.149",
"rtt": 7.057
},
{
"annotation": null,
"asn": null,
"ip": "52.95.31.149",
"name": "52.95.31.149",
"rtt": 7.06
}
]
},
{
"type": "hop",
"hop": 12,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "54.239.53.66",
"name": "54.239.53.66",
"rtt": 7.828
},
{
"annotation": null,
"asn": null,
"ip": "54.239.53.66",
"name": "54.239.53.66",
"rtt": 7.81
},
{
"annotation": null,
"asn": null,
"ip": "54.239.53.66",
"name": "54.239.53.66",
"rtt": 7.997
}
]
},
{
"type": "hop",
"hop": 13,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "54.239.53.82",
"name": "54.239.53.82",
"rtt": 7.12
},
{
"annotation": null,
"asn": null,
"ip": "54.239.53.82",
"name": "54.239.53.82",
"rtt": 7.126
},
{
"annotation": null,
"asn": null,
"ip": "54.239.53.82",
"name": "54.239.53.82",
"rtt": 7.178
}
]
},
{
"type": "hop",
"hop": 14,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "63.222.51.9",
"name": "63-222-51-9.static.pccwglobal.net",
"rtt": 7.657
},
{
"annotation": null,
"asn": null,
"ip": "63.222.51.9",
"name": "63-222-51-9.static.pccwglobal.net",
"rtt": 7.611
},
{
"annotation": null,
"asn": null,
"ip": "63.222.51.9",
"name": "63-222-51-9.static.pccwglobal.net",
"rtt": 7.669
}
]
},
{
"type": "hop",
"hop": 15,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "63.218.250.169",
"name": "HundredGE0-4-0-3.br02.tok02.pccwbtn.net",
"rtt": 8.13
},
{
"annotation": null,
"asn": null,
"ip": "63.218.250.169",
"name": "HundredGE0-4-0-3.br02.tok02.pccwbtn.net",
"rtt": 8.368
},
{
"annotation": null,
"asn": null,
"ip": "63.218.250.169",
"name": "HundredGE0-4-0-3.br02.tok02.pccwbtn.net",
"rtt": 8.402
}
]
},
{
"type": "hop",
"hop": 16,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "63.218.251.118",
"name": "63-218-251-118.static.pccwglobal.net",
"rtt": 30.511
},
{
"annotation": null,
"asn": null,
"ip": "63.218.251.118",
"name": "63-218-251-118.static.pccwglobal.net",
"rtt": 20.379
},
{
"annotation": null,
"asn": null,
"ip": "63.218.251.118",
"name": "63-218-251-118.static.pccwglobal.net",
"rtt": 20.352
}
]
},
{
"type": "hop",
"hop": 17,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "157.240.40.9",
"name": "po104.psw04.nrt1.tfbnw.net",
"rtt": 8.341
},
{
"annotation": null,
"asn": null,
"ip": "157.240.40.9",
"name": "po104.psw04.nrt1.tfbnw.net",
"rtt": 8.303
},
{
"annotation": null,
"asn": null,
"ip": "157.240.40.9",
"name": "po104.psw04.nrt1.tfbnw.net",
"rtt": 8.312
}
]
},
{
"type": "hop",
"hop": 18,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "173.252.67.191",
"name": "173.252.67.191",
"rtt": 8.298
},
{
"annotation": null,
"asn": null,
"ip": "173.252.67.191",
"name": "173.252.67.191",
"rtt": 8.328
},
{
"annotation": null,
"asn": null,
"ip": "173.252.67.191",
"name": "173.252.67.191",
"rtt": 8.359
}
]
},
{
"type": "hop",
"hop": 19,
"probes": [
{
"annotation": null,
"asn": null,
"ip": "31.13.82.36",
"name": "edge-star-mini-shv-01-nrt1.facebook.com",
"rtt": 8.214
},
{
"annotation": null,
"asn": null,
"ip": "31.13.82.36",
"name": "edge-star-mini-shv-01-nrt1.facebook.com",
"rtt": 8.198
},
{
"annotation": null,
"asn": null,
"ip": "31.13.82.36",
"name": "edge-star-mini-shv-01-nrt1.facebook.com",
"rtt": 8.192
}
]
}
]