Giter Site home page Giter Site logo

asmap-rs's Introduction

asmap-rs

A tool to assist the asmap project read and parse RIS raw data from the RIPE NCC. It may be extended to support other data sources.

The data is collected using Quagga routing software and stored in MRT format.

Run

Parse mrt formatted files and find asn bottleneck

USAGE:
    asmap-rs <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    find-bottleneck		Reads and decompresses the MRT gz files, parses the AS Paths, determines the AS bottleneck, saves result
    download      		Downloads and saves the MRT formatted gz files
    help          		Prints this message or the help of the given subcommand(s)

Download RIS Raw Data

asmap-rs-download 0.1.0
Downloads and saves the MRT formatted gz files

USAGE:
    asmap-rs download [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -o, --out <OUT>  Directory to write MRT formatted gz files [default: dump]
    -n, --ripe_collector_number <RIPE_COLLECTOR_NUMBER>...
										 Range of specific RIS files to download [default: [00, 24]]

Download RIS Raw Data Examples

Download all files from RIPE NCC (rrc00-latest-bview.gz through rrc24-latest-bview.gz) and saves the MRT formatted gz files to default dump directory.

cargo run --release download

Download rrc03-latest-bview.gz and rrc14-latest-bview.gz files from RIPE NCC and save the MRT formatted gz files to dump-dir directory. Will create dump-dir if dne.

cargo run --release download -n 3,14 -o dump-dir

Download rrc03-latest-bview.gz file from RIPE NCC and save the MRT formatted gz files to default dump directory.

cargo run --release download -n 3

Find ASN Bottleneck

asmap-rs find-bottleneck 0.1.0
Reads and decompresses the MRT gz files, parses the AS Paths, determines the AS bottleneck, saves result

USAGE:
    asmap-rs find-bottleneck [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --dir <DIRECTORY>    Directory path of the MRT formatted gz files to find bottleneck of
    -o, --out <OUT>          Directory to write result [default: print to stdout]

Find Bottleneck ASN Example

Finds bottleneck from the data located in the dump and prints bottleneck results to stdout.

$ cargo run --release find-bottleneck -d dump

Finds bottleneck from the data located in the dump directory and writes the bottleneck results to bottleneck/bottleneck.<epoch>.txt.

$ cargo run --release find-bottleneck -d dump -o bottleneck

asmap-rs's People

Contributors

naumenkogs avatar rrybarczyk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.