This repo generates a customized topology for given number of node and network degree.
- pandas
- networkx
In case of installation by pip, the following is recommended (for ubuntu).
$ sudo apt-get install python-pip
$ sudo pip install pandas networkx$ python nwGen.py -f <inputfile> -n <nodes> -d <degree>Or you can edit your configuration in trafficPattern.py and simply run
$ python nwGen.py- This is the main program.
- This includes various required algorithms in the main program.
- This helps to produce classical traffic patterns.
The topology information is stored in the output/ folder. Each line follows the format as follows.
src_sw src_port dst_sw dst_port
Switches are numbered from 0, and ports are numbered from 1. Note that, port 0 is retained for the local host.