Git Product home page Git Product logo

ark-1's Introduction

ark

Tools for processing traceroute data from CAIDA's Ark project.

Tools in the ark-tools folder were provided by CAIDA's Young Hyun.

Setup

mkvirtualenv ark
pip install -r requirements.txt

cd ark-tools
gem install rb-asfinder-0.10.1.gem rb-wartslib-1.4.2.gem
cd ..   

This project also requires a running, local instance of Postgres with a no-password user named ark who owns a geo-enabled database named ark:

createdb -O ark ark
psql -q ark -c "CREATE EXTENSION postgis;"

Sourcing the data

This script uses data from CAIDA's Ark IPv4 Routed /24 Topology Dataset. The following script will will download all data, for all three monitoring teams, for every day in March of 2014. Caution: This is 87GB of data. The script can be stopped and started without starting over.

./fetch.sh

You will also need to download the following files to the root project directory:

Building the database

Warning: This script will run for around a half hour per day of data. If you're loading a month of data it could easily take a full day. (Assuming you even have the disk space to hold it all.)

./process.py

Running queries

cat by_country.sql | psql -q ark
cat by_monitor.sql | psql -q ark

Analyzing a trace path

You can pass a trace from the database into parse_trace.py to generate detailed path data in CSV format:

./parse_trace.py "216.66.30.102:6939,216.66.30.101:6939,213.248.67.125:1299,213.155.130.34:1299,157.130.60.13:701,:q,:r,108.51.141.48:701" > nyc_to_dc.csv

ark-1's People

Contributors

onyxfish 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.