Mininet image for creating random scale-free topologies
2.3K
Use docker-compose in the docker-compose.yml directory to start the scenario
sudo docker-compose up
Then, attach into the mininet terminal
sudo docker exec -ti mininet bash
Once in the mininet CLI, change the config and repo_subnet files according to your preferences (see examples below), and execute simulate.py:
python start.py
Once running, it will create a failure in the network every 5 seconds (it could be more, if the execution of the failure takes more than 5 secondss) To end its execution, press ctrl+c
Configuration is determined by config and repo_subnets files. Config must have a [main] section with the following attributes:
It also will have another section for each extra network.
[main]
Ip = 172.18.0.2
Distribution = equal
Seed = None
MainSwitches = 20
Datacenters = 2
MinutesRunning = 180
Batch = 3
FailuresType = 0,5
ErrorInterval = 20
CollectorInterval = 10
StreamingScenario = No
[extra1]
Number = 1
[extra2]
Number = 2
Those [extra1], [extra2] are networks attached to the main network, and are defined in repo_subnets, wich has the following structure:
[extran]
Switches = x
Hosts = y
Where x is the number of switches you want in that extra network, and y is the number of hosts.
The 'Number' field is the number of networks of that type that you want in your network.
Please remember to remove the containers (sudo docker-compose stop if you are running it in detached mode or ctrl+c if you are running it in attached mode, and sudo docker-compose down) after using it. Please let the simulation end, since the collector will run until a "stop" message is received
Content type
Image
Digest
Size
632.6 MB
Last updated
over 8 years ago
docker pull fernandobenayas/mininet