Skip to content

Commit

Permalink
Add README, modify example config, and small format change
Browse files Browse the repository at this point in the history
  • Loading branch information
m-appel committed Feb 9, 2024
1 parent 308af9e commit 5047bd6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
1 change: 1 addition & 0 deletions config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"iyp.crawlers.ihr.rov",
"iyp.crawlers.bgptools.tags",
"iyp.crawlers.bgptools.anycast_prefixes",
"iyp.crawlers.rovista.validating_rov",
"iyp.crawlers.stanford.asdb",
"iyp.crawlers.peeringdb.org",
"iyp.crawlers.peeringdb.fac",
Expand Down
27 changes: 27 additions & 0 deletions iyp/crawlers/rovista/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# RoVista -- https://rovista.netsecurelab.org/

> RoVista aims to determine the Routing Origin Validation (ROV) status of network
> operators.
>
> RoV Scores are determined based on the number of RPKI-invalid prefixes reachable by an
> Autonomous System (AS). Consequently, a higher ROV score suggests that the AS can
> effectively filter more RPKI-invalid prefixes. However, it is important to note that
> the RoV score does not conclusively indicate whether an AS has actually implemented
> ROV or not, partly due to limitations in [the] framework and other contributing
> factors.
IYP converts these scores (or ratios) to two Tags:

- ASes with a ratio greater than 0.5 are categorized as `Validating RPKI ROV`
- ASes with a ratio of less or equal 0.5 are categorized as `Not Validating RPKI ROV`

## Graph representation

```cypher
(:AS {asn: 2497})-[:CATEGORIZED {ratio: 1.0}]->(:Tag {label: 'Validating RPKI ROV'})
(:AS {asn: 6762})-[:CATEGORIZED {ratio: 0}]->(:Tag {label: 'Not Validating RPKI ROV'})
```

## Dependence

This crawler is not depending on other crawlers.
4 changes: 2 additions & 2 deletions iyp/crawlers/rovista/validating_rov.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def run(self):
for entry in entries:
asn_qid = self.asn_id[entry['asn']]
if entry['ratio'] > 0.5:
links.append({'src_id': asn_qid, 'dst_id': tag_id_valid, 'props': [
self.reference, {'ratio': entry['ratio']}]})
links.append({'src_id': asn_qid, 'dst_id': tag_id_valid,
'props': [self.reference, {'ratio': entry['ratio']}]})
else:
links.append({'src_id': asn_qid, 'dst_id': tag_id_not_valid,
'props': [self.reference, {'ratio': entry['ratio']}]})
Expand Down

0 comments on commit 5047bd6

Please sign in to comment.