Skip to content

the-d-j/Virtual_Network_Graph

Repository files navigation

Virtual Network Graph and mininet script

Built with: Python 2.7.11 on Linux version 4.3.0-xxxxx-amd64

To run:

python VirtualNetworkGraph.py <configfile>

where configfile contains the following format:

nodes: 4
topology: LINEAR
alpha: 0.32
node-min: 20
node-max: 40
link-min: 10
link-max: 30

Notes:

topology is case insensitive and supports Linear, Full, Star, & Random;
alpha range: 0.0 <= alpha <= 1.0;

See included *.txt files for examples;

Program outputs a topology.out file containing this layout:
Source-Node-ID    Destination-ID    Link0-weight
Source-Node-ID    Destination-Node-ID    Link1-weight
...
Node0-weight    Node1-weight    ...    NodeN-weight

See *.out files for examples

vng.py = mininet script using .out files from VirtualNetworkGraph.py

This script will build a network in mininet with the same connectivity found in the .out file

To use:

  • Launch mininet
  • From CLI, run:
sudo python vng.py <filename.out>

where filename.out is an output file from VirtualNetworkGraph.py

vng_w_STP.py = same functionality as vng.py above, but:

  • This incorporates a LinuxBridge with Spanning Tree Protocol (STP)
  • Will wait for STP convergence if topology is: FULL or RANDOM
  • Performed to deal with loops due to multiple links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages