I have to work on Mininet, Python, SDN and my objective is to do a simple task: create a network with some switches connected randomly (so the topology is not important), every one with a host connected. In the network I have to do load balancing and I have to be able to monitor if the load balancing is working.
This is a project and so the load balancing has to be simple and it has to something like this: H1 wants to ping H2 and from H1 to H2 there exactly 2 paths with the same number of hops (for example H1 connected so S1 and H2 connected to S2. Then S1 is connected to S3 and S4, that are also connected to S2). The two paths are: H1-S1-S3-S2-H2 and H1-S1-S4-S2-H2. I want to do load balancing in a way that if H1 sends 2 ping, 1 goes throws the first path and the second one goes to the second path. In this way when H1 sends some traffic to H2, the traffic goes 50% on the first path and 50% on the second.
How can I implement something like this in a really simple network (4 switches like in the example)? I've searched a lot for some references but I've found nothing useful. In theory I have to use NOX, but if I have to use POX to understand the topic I'll do it ;)
Thanks in advice to everyone who will try to help me :)