You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gleb Naumenko
95c8ffa8eb
|
4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago | |
download_dumps.py | 4 years ago | |
prepare.sh | 4 years ago | |
quagga_aggregate.py | 4 years ago | |
quagga_parse.sh | 4 years ago | |
setup.sh | 4 years ago |
README.md
This set of scripts allows to download, parse and aggregate BGP announcement dumps from open repositories to be used in asmap construction.
Pre-reqs
./setup.sh
Use
./prepare.sh
deletes old data../download_dumps.py
downloads RIPE dumps for a selected date (configured in the file) to thedumps
folder../quagga_parse.sh
reads dumps from thedumps
folder and writes the human readable interpretation to thepaths
folder../quagga_aggregate.py
goes through the interpreted dumps inpaths
folder, aggregates paths and assigns every IP prefix to the first element of the common suffix of the asn path.
Resulting prefix_asns.out
can be fed to ../buildmap.py
.
Rationale
Consider the following scenario: 1.2.3.4: A -> B -> C -> X 1.2.3.4: A -> F -> C -> X
In this case, {C, X} is the common suffix, and we will map 1.2.3.4 to C, because C represents the single infrastructure required to reach that IP address.
Note that diversifying by C would implicitly diversify by X too.