Skip to content

Commit a11760f

Browse files
committed
Merge branch 'main' into mcp
2 parents b2bee05 + 1fe3583 commit a11760f

48 files changed

Lines changed: 1231 additions & 560 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
files: \.py$
2+
23
repos:
34
- repo: https://github.com/PyCQA/autoflake
45
rev: v2.3.1

ACKNOWLEDGMENTS.md

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,27 @@ Please refer to the READMEs in the respective crawler directories for more infor
1111

1212
We retrieve route server looking glass snapshots from the following IXPs.
1313

14-
| Name | URL |
15-
|----------|----------------------------|
16-
| AMS-IX | https://lg.ams-ix.net/ |
17-
| BCIX | https://lg.bcix.de/ |
18-
| DE-CIX | https://lg.de-cix.net/ |
19-
| IX.br | https://lg.ix.br/ |
20-
| LINX | https://alice-rs.linx.net/ |
21-
| Megaport | https://lg.megaport.com/ |
22-
| Netnod | https://lg.netnod.se/ |
14+
| Name | URL |
15+
|--------------|----------------------------|
16+
| AMS-IX | https://lg.ams-ix.net/ |
17+
| BCIX | https://lg.bcix.de/ |
18+
| DD-IX | https://lg.dd-ix.net |
19+
| DE-CIX | https://lg.de-cix.net/ |
20+
| IX.br | https://lg.ix.br/ |
21+
| LINX | https://alice-rs.linx.net/ |
22+
| Megaport | https://lg.megaport.com/ |
23+
| Netnod | https://lg.netnod.se/ |
24+
| IX Australia | https://lg.ix.asn.au |
25+
| NZIX | https://lg.ix.nz |
26+
| PIX | https://glass.gigapix.pt |
27+
| SFMIX | https://alice.sfmix.org |
28+
| Stuttgart-IX | https://lg.s-ix.de |
29+
| TOP-IX | https://lg.top-ix.org |
30+
31+
## Amazon
32+
33+
We use the [IP address ranges](https://ip-ranges.amazonaws.com/ip-ranges.json) provided by
34+
[Amazon Web Services](https://aws.amazon.com/).
2335

2436
## APNIC
2537

@@ -117,6 +129,25 @@ Tech](https://inetintel.notion.site/Internet-Intelligence-Research-Lab-d18618456
117129
Use of this data is authorized under their [Acceptable Use
118130
Agreement](https://raw.githubusercontent.com/InetIntel/Dataset-AS-to-Organization-Mapping/master/LICENSE).
119131

132+
## Internet Assigned Numbers Authority (IANA)
133+
134+
We use multiple authoritative registries published by the
135+
[Internet Assigned Numbers Authority (IANA)](https://www.iana.org/) for modeling
136+
global Internet infrastructure.
137+
138+
These datasets include:
139+
140+
- The [DNS Root Zone File](https://www.iana.org/domains/root/files), used to retrieve
141+
authoritative name servers and their IPv4 and IPv6 addresses for all top-level
142+
domains.
143+
- The [IPv4 Address Space Registry](https://www.iana.org/assignments/ipv4-address-space/)
144+
and the [IPv6 Unicast Address Assignments](https://www.iana.org/assignments/ipv6-unicast-address-assignments/),
145+
used to model IANA-level address space allocations to Regional Internet Registries
146+
(RIRs).
147+
- The [IPv4](https://www.iana.org/assignments/iana-ipv4-special-registry/) and
148+
[IPv6](https://www.iana.org/assignments/iana-ipv6-special-registry/) Special-Purpose
149+
Address Registries, used to identify reserved and protocol-specific address blocks.
150+
120151
## IPinfo
121152

122153
We use the free [IP-to-country](https://ipinfo.io/products/free-ip-database) mapping

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ Internet resources (for example ASNs, IP prefixes, and domain names).
77

88
Visit <https://iyp.iijlab.net> to try our online prototype. You will find instructions
99
on how to connect to the prototype and some example queries there. For even more
10-
examples, check out the [IYP
11-
gallery](documentation/gallery.md).
10+
examples, check out the [IYP gallery](documentation/gallery.md). If you want to learn
11+
how to properly use IYP you should complete the [IYP
12+
tutorial](https://tutorial.iyp.ihr.live/).
1213

1314
## Deploy a local IYP instance
1415

@@ -80,8 +81,9 @@ docker stop iyp
8081

8182
### Query the database
8283

83-
Open <http://localhost:7474> in your favorite browser. To connect the interface to the database give
84-
the default login and password: `neo4j` and `password` respectively. Then enter your query in the top input field.
84+
Open <http://localhost:7474> in your favorite browser. No credentials are required to
85+
connect to the database, just click on “Connect”. Then enter your query in the top input
86+
field.
8587

8688
For example, this finds the IXPs and corresponding country codes where IIJ (AS2497) is:
8789

autodeploy/autodeploy.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,21 @@ def remove_deployment(client: docker.DockerClient, date: datetime):
3131
try:
3232
container = client.containers.get(container_name)
3333
logging.warning(f'Removing active deployment for {date.strftime("%m-%d")}')
34-
container.stop()
35-
# Wait a little bit after the container has been removed
36-
# before deleting the volume
37-
# TODO Is there a better way?
38-
while True:
39-
try:
40-
client.volumes.get(volume_name).remove()
41-
break
42-
except BaseException:
43-
time.sleep(1)
34+
container.stop(timeout=30)
35+
container.wait(timeout=60)
4436
except docker.errors.NotFound:
4537
logging.info(f'No existing deployment for {date.strftime("%Y-%m-%d")}. Starting deployment')
4638

39+
for _ in range(10):
40+
try:
41+
client.volumes.get(volume_name).remove()
42+
return
43+
except docker.errors.NotFound:
44+
return
45+
except docker.errors.APIError:
46+
time.sleep(1)
47+
raise RuntimeError(f'Failed to remove volume {volume_name}')
48+
4749

4850
def get_ports_from_caddy_config(config: dict):
4951
"""Makes a request to caddy config and returns the ports currently being used (both

basic/items.csv

Lines changed: 0 additions & 31 deletions
This file was deleted.

basic/properties.csv

Lines changed: 0 additions & 36 deletions
This file was deleted.

config.json.example

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,26 @@
9191
"iyp.crawlers.ripe.atlas_measurements",
9292
"iyp.crawlers.alice_lg.amsix",
9393
"iyp.crawlers.alice_lg.bcix",
94+
"iyp.crawlers.alice_lg.ddix",
9495
"iyp.crawlers.alice_lg.decix",
96+
"iyp.crawlers.alice_lg.ixaustralia",
9597
"iyp.crawlers.alice_lg.ixbr",
9698
"iyp.crawlers.alice_lg.linx",
9799
"iyp.crawlers.alice_lg.megaport",
98100
"iyp.crawlers.alice_lg.netnod",
101+
"iyp.crawlers.alice_lg.nzix",
102+
"iyp.crawlers.alice_lg.pix",
103+
"iyp.crawlers.alice_lg.sfmix",
104+
"iyp.crawlers.alice_lg.six",
105+
"iyp.crawlers.alice_lg.topix",
99106
"iyp.crawlers.ipinfo.ip_country",
107+
"iyp.crawlers.amazon.aws_ip_ranges",
100108
"iyp.crawlers.worldbank.country_pop",
101109
"iyp.crawlers.simulamet.rirdata_rdns",
102-
"iyp.crawlers.ut_dacs.laces_v4",
103-
"iyp.crawlers.ut_dacs.laces_v6",
110+
"iyp.crawlers.utwente.laces_v4",
111+
"iyp.crawlers.utwente.laces_v6",
104112
"iyp.crawlers.google.crux_top1m_country",
113+
"iyp.crawlers.iana.address_space",
105114
"iyp.crawlers.openintel.crux",
106115
"iyp.crawlers.openintel.dnsgraph_nl",
107116
"iyp.crawlers.openintel.dnsgraph_rdns",
@@ -129,5 +138,12 @@
129138
"iyp.post.country_information",
130139
"iyp.post.url2hostname"
131140
]
141+
},
142+
143+
"neo4j": {
144+
"server": "localhost",
145+
"port": 7687,
146+
"login": "neo4j",
147+
"password": "password"
132148
}
133149
}

0 commit comments

Comments
 (0)