In this assignment we had to implement a simple load balancer using the OpenFlow protocol. The load balancer had to be implemented using the POX controller. The topology of the network was the following:
Files Structure (from assignmen1 foler)
- assignment1.pdf: Complete assignment description.
- SimpleLoadBalancer.py: The python file of the load balancer. It contains the code of the load balancer.
- SimpleLoadBalancer_conf.json: A JSON file containing the topology description (client/server colors and IP addresses).
- mega-test.png: A screenshot of the final test run.
- Requirements:
- Mininet
- POX
- SimpleLoadBalancer.py needs to be in the
/pox/ext
folder.
- Run the following commands:
sudo mn --topo single,8 --controller remote --mac --switch ovsk
(to create the topology)./pox.py SimpleLoadBalancer --configuration_json_file=ext/SimpleLoadBalancer_conf.json
(to run the load balancer) (This command needs to be run from thepox
folder)