- Mininet
- POX
- Save CustomTopology.py in mininet/custom directory
- In new terminal, run it using command: python CustomTopology.py
- It will add the hosts, switches and a default controller.
- To terminate, use exit command
- At last, clean using command: sudo mn -c
- In new terminal run Controller1.py
- Once it starts running, in another terminal run the topology file.
It is a controller which pushes flow rules on switches to satisfy following traffic constraints :
- No traffic should be allowed between H3 and H1.
- The HTTP traffic between H4 and H1 should be routed through Switch S2 and any other traffic between H4 and H1 should be routed through Switch S3.
- The traffic between H3 and H2 should be routed through Switch S3.
- The traffic between remaining nodes should follow shortest path.
Once the flow rules are pushed, create necessary traffic flows to calculate instantaneous bandwidth for the following:
- Measurement and printing the instantaneous bandwidth on the links connected to the Switch S2.
- Calculation of the packet loss count between the switches S4 and S1 for the HTTP traffic flow
- Calculation of the packet loss count between the switches S4 and S1 for the non-HTTP traffic flow