Skip to content

Generation of synthetic traffic matrices matching a given network topology

License

Notifications You must be signed in to change notification settings

179416326/synthetic-tm-generator

 
 

Repository files navigation

synthetic-tm-generator

Synthetic traffic matrix generator based on two publications from SIGCOMM CCR:

Installation

With Docker

Run the following two commands:

docker build -t tm-generator .
docker run -it tm-generator example_template.yml - 0 1 > output_file.yml

Without Docker

You will need to install a few Python dependencies:

sudo apt install -y python-tk
sudo pip install -r requirements.txt

If you want to use the GLPK solver, you'll also need to install it:

sudo apt install -y glpk-utils

Examples

To generate attacks from all nodes to a single target:

./generate.py --max-node-class 1 template.yml output_file.yml 0 1

To generate attacks from a single node to 3 targets:

./generate.py --max-node-class 1 template.yml output_file.yml 1 3

To limit the network to only the largest nodes (first class of nodes only):

./generate.py --max-node-class 1 template.yml output_file.yml 0 1

To define a different maximum link capacity (defaults to 100 Gbps):

./generate.py --max-link-capacity 20000 template.yml output_file.yml 0 1

To define a different mean attack load (defaults to 10 Gbps):

./generate.py --max-link-capacity 500000 template.yml output_file.yml 1 1

License

This project is licensed under the Apache License v2.0.

About

Generation of synthetic traffic matrices matching a given network topology

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.7%
  • AMPL 6.6%
  • Dockerfile 2.7%