Skip to content

Instantly share code, notes, and snippets.

@barryo
Last active May 22, 2016 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barryo/7f21535585455793400edd37e8c6be4b to your computer and use it in GitHub Desktop.
Save barryo/7f21535585455793400edd37e8c6be4b to your computer and use it in GitHub Desktop.
as-ixp-samples
curl -H "Content-Type: application/json" \
-H "Accept: application/json" \
-X POST \
-d '{ "definitions": [
{
"target": "92.61.192.131",
"description": "AS5466-AS44384-IPv4",
"type": "traceroute",
"af": 4,
"is_oneoff": true,
"is_public": true,
"protocol": "ICMP"
}
],
"probes": [
{
"requested": 1,
"type": "asn",
"value": "5466"
}
]
}' https://atlas.ripe.net/api/v1/measurement/?key=e766bc14-195b-42de-a2b6-e2187c0e9246
{"measurements":[3806501]}
wget -q -O - https://atlas.ripe.net/api/v1/measurement/3806501
{
"af": 4,
"creation_time": 1463837716,
"description": "AS5466-AS44384-IPv4",
"interval": 900,
"is_oneoff": true,
"is_public": true,
"packets": 3,
"paris": 16,
"participant_count": 1,
"protocol": "ICMP",
"resolve_on_probe": false,
"resolved_ips": [
"92.61.192.131"
],
"response_timeout": 4000,
"size": 48,
"spread": null,
"start_time": 1463837716,
"status": {
"id": 4,
"name": "Stopped"
},
"stop_time": 1463838305,
"type": {
"af": 4,
"name": "traceroute",
"id": 2
},
"all_scheduling_requests_fulfilled": true,
"result": "\/api\/v1\/measurement\/3806501\/result\/",
"dst_addr": "92.61.192.131",
"dst_name": "92.61.192.131",
"dst_asn": null,
"msm_id": 3806501,
"maxhops": 32,
"firsthop": 1
}
wget -q -O - https://atlas.ripe.net/api/v1/measurement/3806501/result
[
{
"af": 4,
"dst_addr": "92.61.192.131",
"dst_name": "92.61.192.131",
"endtime": 1463837725,
"from": "83.70.159.225",
"fw": 4730,
"group_id": 3806501,
"lts": 10,
"msm_id": 3806501,
"msm_name": "Traceroute",
"paris_id": 1,
"prb_id": 20658,
"proto": "ICMP",
"result": [
{
"hop": 1,
"result": [
{
"from": "192.168.1.1",
"rtt": 2.264,
"size": 76,
"ttl": 255
},
{
"from": "192.168.1.1",
"rtt": 2.013,
"size": 76,
"ttl": 255
},
{
"from": "192.168.1.1",
"rtt": 1.996,
"size": 76,
"ttl": 255
}
]
},
{
"hop": 2,
"result": [
{
"from": "159.134.155.8",
"rtt": 67.799,
"size": 28,
"ttl": 126
},
{
"from": "159.134.155.8",
"rtt": 58.485,
"size": 28,
"ttl": 126
},
{
"from": "159.134.155.8",
"rtt": 59.221,
"size": 28,
"ttl": 126
}
]
},
{
"hop": 3,
"result": [
{
"from": "86.43.247.129",
"rtt": 59.697,
"size": 76,
"ttl": 62
},
{
"from": "86.43.247.129",
"rtt": 58.613,
"size": 76,
"ttl": 62
},
{
"from": "86.43.247.129",
"rtt": 59.986,
"size": 76,
"ttl": 62
}
]
},
{
"hop": 4,
"result": [
{
"from": "86.43.253.98",
"ittl": 0,
"rtt": 60.273,
"size": 28,
"ttl": 61
},
{
"from": "86.43.253.98",
"ittl": 0,
"rtt": 62.099,
"size": 28,
"ttl": 61
},
{
"from": "86.43.253.98",
"ittl": 0,
"rtt": 61.213,
"size": 28,
"ttl": 61
}
]
},
{
"hop": 5,
"result": [
{
"from": "86.43.252.2",
"rtt": 61.439,
"size": 28,
"ttl": 60
},
{
"from": "86.43.252.2",
"rtt": 61.716,
"size": 28,
"ttl": 60
},
{
"from": "86.43.252.2",
"rtt": 61.44,
"size": 28,
"ttl": 60
}
]
},
{
"hop": 6,
"result": [
{
"x": "*"
},
{
"from": "86.47.63.112",
"ittl": 2,
"rtt": 61.876,
"size": 28,
"ttl": 59
},
{
"from": "86.47.63.112",
"ittl": 2,
"rtt": 62.069,
"size": 28,
"ttl": 59
}
]
},
{
"hop": 7,
"result": [
{
"from": "193.242.111.87",
"rtt": 63.715,
"size": 28,
"ttl": 58
},
{
"from": "193.242.111.87",
"rtt": 63.571,
"size": 28,
"ttl": 58
},
{
"from": "193.242.111.87",
"rtt": 64.144,
"size": 28,
"ttl": 58
}
]
},
{
"hop": 8,
"result": [
{
"from": "92.61.192.131",
"rtt": 64.995,
"size": 48,
"ttl": 57
},
{
"from": "92.61.192.131",
"rtt": 65.276,
"size": 48,
"ttl": 57
},
{
"from": "92.61.192.131",
"rtt": 64.168,
"size": 48,
"ttl": 57
}
]
}
],
"size": 48,
"src_addr": "192.168.1.65",
"timestamp": 1463837719,
"type": "traceroute"
}
]
wget -q -O - https://atlas.ripe.net/api/v1/measurement/3806499
{
"af": 4,
"creation_time": 1463836957,
"description": "AS44384-AS5466-IPv4",
"interval": 900,
"is_oneoff": true,
"is_public": true,
"packets": 3,
"paris": 16,
"participant_count": 1,
"protocol": "ICMP",
"resolve_on_probe": false,
"resolved_ips": [
"83.71.193.92"
],
"response_timeout": 4000,
"size": 48,
"spread": null,
"start_time": 1463836957,
"status": {
"id": 4,
"name": "Stopped"
},
"stop_time": 1463837404,
"type": {
"af": 4,
"name": "traceroute",
"id": 2
},
"all_scheduling_requests_fulfilled": true,
"result": "\/api\/v1\/measurement\/3806499\/result\/",
"dst_addr": "83.71.193.92",
"dst_name": "83.71.193.92",
"dst_asn": null,
"msm_id": 3806499,
"maxhops": 32,
"firsthop": 1
}
[
{
"af": 4,
"dst_addr": "83.71.193.92",
"dst_name": "83.71.193.92",
"endtime": 1463837034,
"from": "92.61.192.131",
"fw": 4730,
"group_id": 3806499,
"lts": 11,
"msm_id": 3806499,
"msm_name": "Traceroute",
"paris_id": 1,
"prb_id": 16716,
"proto": "ICMP",
"result": [
{
"hop": 1,
"result": [
{
"from": "10.210.80.2",
"rtt": 15.534,
"size": 28,
"ttl": 64
},
{
"from": "10.210.80.2",
"rtt": 0.603,
"size": 28,
"ttl": 64
},
{
"from": "10.210.80.2",
"rtt": 0.458,
"size": 28,
"ttl": 64
}
]
},
{
"hop": 2,
"result": [
{
"from": "92.61.196.8",
"rtt": 0.748,
"size": 28,
"ttl": 63
},
{
"from": "92.61.196.8",
"rtt": 6.264,
"size": 28,
"ttl": 63
},
{
"from": "92.61.196.8",
"rtt": 0.893,
"size": 28,
"ttl": 63
}
]
},
{
"hop": 3,
"result": [
{
"from": "193.242.111.82",
"rtt": 4.043,
"size": 76,
"ttl": 62
},
{
"from": "193.242.111.82",
"rtt": 3.765,
"size": 76,
"ttl": 62
},
{
"from": "193.242.111.82",
"rtt": 4.054,
"size": 76,
"ttl": 62
}
]
},
{
"hop": 4,
"result": [
{
"from": "86.47.63.109",
"ittl": 0,
"rtt": 4.807,
"size": 28,
"ttl": 61
},
{
"from": "86.47.63.109",
"ittl": 0,
"rtt": 4.302,
"size": 28,
"ttl": 61
},
{
"from": "86.47.63.109",
"ittl": 0,
"rtt": 4.424,
"size": 28,
"ttl": 61
}
]
},
{
"hop": 5,
"result": [
{
"from": "86.43.252.101",
"rtt": 4.851,
"size": 28,
"ttl": 60
},
{
"from": "86.43.252.101",
"rtt": 4.508,
"size": 28,
"ttl": 60
},
{
"from": "86.43.252.101",
"rtt": 4.572,
"size": 28,
"ttl": 60
}
]
},
{
"hop": 6,
"result": [
{
"from": "95.45.222.226",
"rtt": 5.456,
"size": 28,
"ttl": 250
},
{
"from": "95.45.222.226",
"rtt": 5.337,
"size": 28,
"ttl": 250
},
{
"from": "95.45.222.226",
"rtt": 5.195,
"size": 28,
"ttl": 250
}
]
},
{
"hop": 7,
"result": [
{
"x": "*"
},
{
"x": "*"
},
{
"x": "*"
}
]
},
{
"hop": 8,
"result": [
{
"x": "*"
},
{
"x": "*"
},
{
"x": "*"
}
]
},
{
"hop": 9,
"result": [
{
"x": "*"
},
{
"x": "*"
},
{
"x": "*"
}
]
},
{
"hop": 10,
"result": [
{
"x": "*"
},
{
"x": "*"
},
{
"x": "*"
}
]
},
{
"hop": 11,
"result": [
{
"x": "*"
},
{
"x": "*"
},
{
"x": "*"
}
]
},
{
"hop": 255,
"result": [
{
"x": "*"
},
{
"x": "*"
},
{
"x": "*"
}
]
}
],
"size": 48,
"src_addr": "10.210.80.16",
"timestamp": 1463836962,
"type": "traceroute"
}
]
wget -O - -q https://atlas.ripe.net/api/v2/probes/?asn_v4=44384
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"address_v4": "92.61.192.131",
"address_v6": null,
"asn_v4": 44384,
"asn_v6": null,
"country_code": "IE",
"description": "CableComm Longford Data Centre",
"first_connected": 1422544684,
"geometry": {
"type": "Point",
"coordinates": [
-7.8025,
53.7305
]
},
"id": 16716,
"is_anchor": false,
"is_public": true,
"last_connected": 1463837264,
"prefix_v4": "92.61.192.0\/20",
"prefix_v6": null,
"status": {
"since": "2016-05-11T01:01:10Z",
"id": 1,
"name": "Connected"
},
"status_since": 1462928470,
"tags": [
{
"name": "Fibre",
"slug": "fibre"
},
{
"name": "Datacentre",
"slug": "datacentre"
},
{
"name": "No NAT",
"slug": "no-nat"
},
{
"name": "system: V3",
"slug": "system-v3"
},
{
"name": "system: Resolves A Correctly",
"slug": "system-resolves-a-correctly"
},
{
"name": "system: Resolves AAAA Correctly",
"slug": "system-resolves-aaaa-correctly"
},
{
"name": "system: IPv4 Works",
"slug": "system-ipv4-works"
},
{
"name": "system: IPv4 Capable",
"slug": "system-ipv4-capable"
},
{
"name": "system: IPv4 RFC1918",
"slug": "system-ipv4-rfc1918"
}
],
"type": "Probe"
}
]
}
curl -H "Content-Type: application/json" \
-H "Accept: application/json" \
-X POST \
-d '{ "definitions": [
{
"target": "83.71.193.92",
"description": "AS44384-AS5466-IPv4",
"type": "traceroute",
"af": 4,
"is_oneoff": true,
"is_public": true,
"protocol": "ICMP"
}
],
"probes": [
{
"requested": 1,
"type": "asn",
"value": "44384"
}
]
}' https://atlas.ripe.net/api/v1/measurement/?key=e766bc14-195b-42de-a2b6-e2187c0e9246
wget -q -O - https://atlas.ripe.net/api/v1/measurement-latest/3806499
wget -O - -q https://atlas.ripe.net/api/v2/probes/?asn_v6=5466
=> address_v4":"86.45.200.153","address_v6":"2001:bb6:c00:1500:c24a:ff:fef4:7f0e","asn_v4":5466,"asn_v6":5466,"id":20602
wget -O - -q https://atlas.ripe.net/api/v2/probes/?asn_v6=31122
=> "address_v4":"92.51.196.246","address_v6":"2a01:258:fffe:2:280:a3ff:fe91:3bda","asn_v4":31122,"asn_v6":31122,"id":3174
curl -H "Content-Type: application/json" \
-H "Accept: application/json" \
-X POST \
-d '{ "definitions": [
{
"target": "2001:bb6:c00:1500:c24a:ff:fef4:7f0e",
"description": "AS31122-AS5466-IPv6",
"type": "traceroute",
"af": 6,
"is_oneoff": true,
"is_public": true,
"protocol": "ICMP"
}
],
"probes": [
{
"requested": 1,
"type": "asn",
"value": "31122"
}
]
}' https://atlas.ripe.net/api/v1/measurement/?key=e766bc14-195b-42de-a2b6-e2187c0e9246
{"measurements":[3809200]}
curl -H "Content-Type: application/json" \
-H "Accept: application/json" \
-X POST \
-d '{ "definitions": [
{
"target": "2a01:258:fffe:2:280:a3ff:fe91:3bda",
"description": "AS5466-AS31122-IPv6",
"type": "traceroute",
"af": 6,
"is_oneoff": true,
"is_public": true,
"protocol": "ICMP"
}
],
"probes": [
{
"requested": 1,
"type": "asn",
"value": "5466"
}
]
}' https://atlas.ripe.net/api/v1/measurement/?key=e766bc14-195b-42de-a2b6-e2187c0e9246
{"measurements":[3809219]}
[
{
"af": 6,
"dst_addr": "2001:bb6:c00:1500:c24a:ff:fef4:7f0e",
"dst_name": "2001:bb6:c00:1500:c24a:ff:fef4:7f0e",
"endtime": 1463849905,
"from": "2a01:258:fffe:2:280:a3ff:fe91:3bda",
"fw": 4730,
"group_id": 3809200,
"lts": 62,
"msm_id": 3809200,
"msm_name": "Traceroute",
"paris_id": 1,
"prb_id": 3174,
"proto": "ICMP",
"result": [
{
"hop": 1,
"result": [
{
"from": "2a01:258:fffe:2::1",
"rtt": 4.634,
"size": 96,
"ttl": 64
},
{
"from": "2a01:258:fffe:2::1",
"rtt": 2.769,
"size": 96,
"ttl": 64
},
{
"from": "2a01:258:fffe:2::1",
"rtt": 2.954,
"size": 96,
"ttl": 64
}
]
},
{
"hop": 2,
"result": [
{
"from": "2a01:258:c:8::1",
"rtt": 7.678,
"size": 96,
"ttl": 63
},
{
"from": "2a01:258:c:8::1",
"rtt": 7.808,
"size": 96,
"ttl": 63
},
{
"from": "2a01:258:c:8::1",
"rtt": 5.927,
"size": 96,
"ttl": 63
}
]
},
{
"hop": 3,
"result": [
{
"from": "2001:7f8:18::20",
"icmpext": {
"obj": [
{
"class": 0,
"type": 0
}
],
"rfc4884": 1,
"version": 0
},
"rtt": 15.033,
"size": 140,
"ttl": 60
},
{
"from": "2001:7f8:18::20",
"icmpext": {
"obj": [
{
"class": 0,
"type": 0
}
],
"rfc4884": 1,
"version": 0
},
"rtt": 8.647,
"size": 140,
"ttl": 60
},
{
"from": "2001:7f8:18::20",
"icmpext": {
"obj": [
{
"class": 0,
"type": 0
}
],
"rfc4884": 1,
"version": 0
},
"rtt": 13.167,
"size": 140,
"ttl": 60
}
]
},
{
"hop": 4,
"result": [
{
"from": "2001:7f8:18::4:0:2",
"rtt": 7.616,
"size": 96,
"ttl": 61
},
{
"from": "2001:7f8:18::4:0:2",
"rtt": 8.398,
"size": 96,
"ttl": 61
},
{
"from": "2001:7f8:18::4:0:2",
"rtt": 10.733,
"size": 96,
"ttl": 61
}
]
},
{
"hop": 5,
"result": [
{
"from": "2001:bb0:6:a02c::1",
"rtt": 14.406,
"size": 96,
"ttl": 60
},
{
"from": "2001:bb0:6:a02c::1",
"rtt": 13.207,
"size": 96,
"ttl": 60
},
{
"from": "2001:bb0:6:a02c::1",
"rtt": 13.646,
"size": 96,
"ttl": 60
}
]
},
{
"hop": 6,
"result": [
{
"from": "2001:bb6:c00:1500::1",
"rtt": 12.842,
"size": 96,
"ttl": 59
},
{
"from": "2001:bb6:c00:1500::1",
"rtt": 10.1,
"size": 96,
"ttl": 59
},
{
"from": "2001:bb6:c00:1500::1",
"rtt": 10.496,
"size": 96,
"ttl": 59
}
]
},
{
"hop": 7,
"result": [
{
"from": "2001:bb6:c00:1500:c24a:ff:fef4:7f0e",
"rtt": 9.188,
"size": 48,
"ttl": 58
},
{
"from": "2001:bb6:c00:1500:c24a:ff:fef4:7f0e",
"rtt": 14.494,
"size": 48,
"ttl": 58
},
{
"from": "2001:bb6:c00:1500:c24a:ff:fef4:7f0e",
"rtt": 10.723,
"size": 48,
"ttl": 58
}
]
}
],
"size": 48,
"src_addr": "2a01:258:fffe:2:280:a3ff:fe91:3bda",
"timestamp": 1463849904,
"type": "traceroute"
}
]
[
{
"af": 6,
"dst_addr": "2a01:258:fffe:2:280:a3ff:fe91:3bda",
"dst_name": "2a01:258:fffe:2:280:a3ff:fe91:3bda",
"endtime": 1463849944,
"from": "2001:bb6:c00:1500:c24a:ff:fef4:7f0e",
"fw": 4730,
"group_id": 3809219,
"lts": 128,
"msm_id": 3809219,
"msm_name": "Traceroute",
"paris_id": 1,
"prb_id": 20602,
"proto": "ICMP",
"result": [
{
"hop": 1,
"result": [
{
"from": "2001:bb6:c00:1500::1",
"rtt": 0.757,
"size": 96,
"ttl": 64
},
{
"from": "2001:bb6:c00:1500::1",
"rtt": 0.551,
"size": 96,
"ttl": 64
},
{
"from": "2001:bb6:c00:1500::1",
"rtt": 0.532,
"size": 96,
"ttl": 64
}
]
},
{
"hop": 2,
"result": [
{
"from": "2001:bb0:6:a02c::1",
"rtt": 30.038,
"size": 96,
"ttl": 63
},
{
"from": "2001:bb0:6:a02c::1",
"rtt": 11.805,
"size": 96,
"ttl": 63
},
{
"from": "2001:bb0:6:a02c::1",
"rtt": 9.699,
"size": 96,
"ttl": 63
}
]
},
{
"hop": 3,
"result": [
{
"from": "2001:bb0:6:a128::1",
"rtt": 2.847,
"size": 96,
"ttl": 62
},
{
"from": "2001:bb0:6:a128::1",
"rtt": 2.877,
"size": 96,
"ttl": 62
},
{
"from": "2001:bb0:6:a128::1",
"rtt": 2.826,
"size": 96,
"ttl": 62
}
]
},
{
"hop": 4,
"result": [
{
"from": "2001:7f8:18::20",
"rtt": 3.482,
"size": 96,
"ttl": 61
},
{
"from": "2001:7f8:18::20",
"rtt": 3.309,
"size": 96,
"ttl": 61
},
{
"from": "2001:7f8:18::20",
"rtt": 3.397,
"size": 96,
"ttl": 61
}
]
},
{
"hop": 5,
"result": [
{
"from": "2a01:258:c:8::1",
"icmpext": {
"obj": [
{
"class": 1,
"mpls": [
{
"exp": 0,
"label": 0,
"s": 0,
"ttl": 250
},
{
"exp": 0,
"label": 1418,
"s": 1,
"ttl": 250
}
],
"type": 1
}
],
"rfc4884": 0,
"version": 2
},
"rtt": 4.226,
"size": 144,
"ttl": 59
},
{
"from": "2a01:258:c:8::1",
"icmpext": {
"obj": [
{
"class": 1,
"mpls": [
{
"exp": 0,
"label": 0,
"s": 0,
"ttl": 250
},
{
"exp": 0,
"label": 1418,
"s": 1,
"ttl": 250
}
],
"type": 1
}
],
"rfc4884": 0,
"version": 2
},
"rtt": 4.661,
"size": 144,
"ttl": 59
},
{
"from": "2a01:258:c:8::1",
"icmpext": {
"obj": [
{
"class": 1,
"mpls": [
{
"exp": 0,
"label": 0,
"s": 0,
"ttl": 250
},
{
"exp": 0,
"label": 1418,
"s": 1,
"ttl": 250
}
],
"type": 1
}
],
"rfc4884": 0,
"version": 2
},
"rtt": 4.083,
"size": 144,
"ttl": 59
}
]
},
{
"hop": 6,
"result": [
{
"from": "2a01:258:c:8::2",
"rtt": 9.452,
"size": 96,
"ttl": 59
},
{
"from": "2a01:258:c:8::2",
"rtt": 10.032,
"size": 96,
"ttl": 59
},
{
"from": "2a01:258:c:8::2",
"rtt": 10.754,
"size": 96,
"ttl": 59
}
]
},
{
"hop": 7,
"result": [
{
"from": "2a01:258:fffe:2:280:a3ff:fe91:3bda",
"rtt": 6.869,
"size": 48,
"ttl": 58
},
{
"from": "2a01:258:fffe:2:280:a3ff:fe91:3bda",
"rtt": 8.884,
"size": 48,
"ttl": 58
},
{
"from": "2a01:258:fffe:2:280:a3ff:fe91:3bda",
"rtt": 13.681,
"size": 48,
"ttl": 58
}
]
}
],
"size": 48,
"src_addr": "2001:bb6:c00:1500:c24a:ff:fef4:7f0e",
"timestamp": 1463849944,
"type": "traceroute"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment