astools

Tools to Work With Autonomous System ('AS') Network and Organization Data

Description

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

What's Inside The Tin

The following functions are implemented:

Installation

devtools::install_github("hrbrmstr/astools")
options(width=120)

Usage

library(astools)
library(tidyverse)

# current verison
packageVersion("astools")

RouteViews Prefix-to-AS

(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")

AS Org-to-Info

parse_asorg2info("~/Data/20180703.as-org2info.txt.gz")

AS Names

asnames_current()

Combining RouteViews & AS Names

These are now cached so there is no re-downloading.

routeviews_latest() %>% 
  left_join(asnames_current())


hrbrmstr/astools documentation built on May 7, 2019, 10:46 p.m.