Tools to Work With Autonomous System ('AS') Network and Organization Data
A collection of utilities for downloading, parsing, reading and analyzing autonomous system ('AS') network and organization data from various internet sources including 'CAIDA' (https://caida.org) and 'BGP Routing Table Analysis Reports' https://bgp.potaroo.net
The following functions are implemented:
asnames_current
: Retrive current 'asnames.txt' from 'bgp.poraroo.net'read_asnames
: Retrieve an historical asnames.txt
from local cacheparse_asnames
: Parse arbitrary 'asnames.txt' downloaded from 'bgp.poraroo.net'parse_asorg2info
: Parses CAIDA 'asorg2info' Filesparse_routeviews
: Parses Arbitrary RouteViews "Prefix-to-AS" Filesas_asntrie
: Convert a 'routeviews' data frame to a trierouteviews_latest
: Caches & Returns the latest CAIDA-processed RouteViews "Prefix-to-AS" Filedevtools::install_github("hrbrmstr/astools")
options(width=120)
library(astools) library(tidyverse) # current verison packageVersion("astools")
(rv_df <- routeviews_latest())
Which can work with iptools::ip_to_asn()
:
rv_trie <- as_asntrie(rv_df) iptools::ip_to_asn(rv_trie, "174.62.167.97")
parse_asorg2info("~/Data/20180703.as-org2info.txt.gz")
asnames_current()
These are now cached so there is no re-downloading.
routeviews_latest() %>% left_join(asnames_current())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.