GithubHelp home page GithubHelp logo

ppartarr / pyroute Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 7.0 817 KB

๐Ÿ›ฃ Distance-vector routing protocol implementation in Python

Home Page: https://en.wikipedia.org/wiki/Distance-vector_routing_protocol

License: The Unlicense

Python 100.00%

pyroute's Introduction

pyRoute - Distance Vector Routing in Python

Requirements

  • Python 2.7
  • pip is pre-installed with Python 2.7.9 and higher
  • pip install argparse, networkx

Installation & Running the project

  • git clone [email protected]:ppartarr/DistanceVectorRouting.git
  • python network.py -f nodes.csv
    • nodes.csv is a file specifying a set of nodes and a set of links with costs. Feel free to make your own and import that instead.

Usage

Once in the command line interface type help to see the available commands Using help in the command line interface

Requirements

Considering a simplified point-to-point network description consisting of a set of nodes and a set of links with costs. Every node has a routing tabke with 3 columns: destination, source and outgoing link.

The idea is the read in a human-readable network description and simulate the distance-vector routing algorithm with periodic exchanges (i.e. regular intervals at which all nodes exchange vectors simultaneously) updating all node routing tables over any selected number of iterations.

A user should be able to:

  • compute routing tables for any preset number of exchanges
  • preset any link to change cost or fail after any chosen exchange (assume for simplicity that neighbours notice cost change immediatly)
  • view the best route between any source & destination after any iteration
  • trace the routing table of any set of nodes for any specified number of iterations
  • engage split-horizon on request to help combat slow-convergence

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.