Git Product home page Git Product logo

aspathinference's Introduction

AS Path Inference


Installation


Prerequisites:

  • Python 2.7
  • sqlite3

#####CAIDA AS Relationship Database:

Get the as-rel file from: http://data.caida.org/datasets/as-relationships/serial-1/ The as-rel files contain p2p and p2c relationships. The format is:

<provider-as>|<customer-as>|-1

<peer-as>|<peer-as>|0

To import this file into the database, update the filename in the caidarel.py file in the migrations folder, and then run caidarel.py.

#####RIBS: RIBS are taken from http://archive.routeviews.org/ Files:

  1. ./routeviews-urls.list : List of URL of collectors(currently 18) available at archive.routeviews.org

  2. ./getribs.py : Usage: python ./getribs.py Get rib files from http://archive.routeviews.org for the urls specifies in routeviews-urls.list Modify time,day,year,month parameters to get RIB of that time. RIBS are downloaded in 18 folders named by their respective numbers.

  3. ./decompress_ribs.py : Usage: python decompress_ribs.py from_folder to_folder Decompress RIBS downloaded in folder beginning from_folder to to_folder

  4. ./generate_txt.py Usage: python generate_txt.py from_folder to_folder Generated txt file of RIBS from decompressed RIBS beginning from_folder to to_folder NOTE: Needs ./zebra-dump-parser in directory.

  5. ./zebra-dump-parser

Steps:

  1. Run python ./getribs.py

  2. Run python decompress_ribs.py from_folder to_folder. Decompression may take time. Divide tasks in small range of from_folder to_folder

  3. Run python generate_txt.py from_folder to_folder

  4. After this txt RIB files are created in respective folders. use cat to combine all files in a single file eg. cat ./1/RIB21.txt ./2/RIB21.txt ... ./18/RIB21.txt > ribout.txt

After generating ribout.txt:

  • Run sortfile.py from migrations folder after changing to filename in sortfile.py

Usage


Clone the repo

Usage: python pathinference.py <prefix>

Using directly from the database:

  • Load the database using: sqlite3 test.db
  • '.tables' to view all tables

Link to the paper: http://rio.ecs.umass.edu/mnilpub/papers/aspath_tech.pdf

aspathinference's People

Contributors

batmanav avatar rawatm avatar

Stargazers

 avatar

Watchers

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