Open twood02 opened 9 years ago
@atryus, @phil-lopreiato and I will do this.
no immediate due date for this, but you may find it useful practice for your geni competition entry.
That was the plan!
Oops, got sucked into openNetVM stuff... Will finish this tonight :D
I'm letting grad students who are doing related research projects count their research coding as their class work. We can work out a similar deal for you. If you have this mostly done, then finish it, but if you have lots to do then focusing on netvm will be more useful to the world.
Its mostly done, I just have to integrate the config file stuff which won't take long. We finished most of it for our GENI project.
Let's talk about that deal for the future though! :p
ok, sounds good
Write a pox program for a network where four hosts A, B, C, D are connected to a switch. Hosts A and B are clients and C and D are servers (you can use web/iperf/one of our sample program/whatever).
In this setup, the switch has a "virtual IP" that acts as a load balancer. When A or B send traffic to that IP, the switch should automatically rewrite the destination address to load balance the traffic across hosts C and D---one flow should be sent to C, the next flow sent to D, etc. When a packet returns from C or D the switch will need to rewrite the src address so that it matches the virtual IP the clients think they are talking to.
You can use round robin to distribute, or you can calculate a hash based on the src/dest ip/port to decide which server to send to.