Hi Diego,

Thanks for replying.Let me explain more on my design.

Let’s say you have 8 servers to which you load balance with ip’s 2.2.2.1 to 
2.2.2.8 and they all are web servers. Now client 1 which is IP 45.45.45.45 
comes i.e tcp syn we has the source-ip and come up with a number 1-(through 
hash to bucket function) and then changes dest ip to one of the servers and 
send packet out to that port, we also add the flow table entry  where it is 
matching hash of source-ip and change dest-ip based on the hash.

The reason I want to do hash to bucket function is that I don’t know which 
source-ip’s can come and I want same source-ip to go to same server always.With 
hash to bucket approach there are 2 advantages I only need 8 entries for all 
the source-ip’s in this world and secondly I don’t have to send all the packets 
to controller to make a decision.

With your approach I need to add flow table entries for each source-ip and that 
will be too much.

Thx
Ritesh


From: Diego Rivero [mailto:[email protected]]
Sent: Monday, August 05, 2013 5:44 AM
To: Ritesh Rekhi
Cc: [email protected]
Subject: Re: [ovs-discuss] Simple IP load Balancing

Hi,

I don't fully understand your design but it might be better to keep the list of 
the IP address and the MAC address of the bucket somewhere in an OpenFlow 
controller. When packet_in for the first time, go through the list and decide 
which bucket to send the packet to.

Diego,

Sent from my iPhone

On 4-ago-2013, at 10:32, Ritesh Rekhi 
<[email protected]<mailto:[email protected]>> wrote:
Hi all,

I want to make a simple Load balancer where I want to change the destination IP 
for the request and for response change the source-ip.

I can do that easily if I know the source-ip’s but I want to do it by hasing 
source-ip to a bucket and then based on bucket change dest-ip for the request 
.That way all packets with same source-ip can go to 1 given dest-ip.

Do we have any function where we can hash a field and assign it to a bucket?

Are there any plans to implement any hash to bucket algo?

Thx in advance
Ritesh


_______________________________________________
discuss mailing list
[email protected]<mailto:[email protected]>
http://openvswitch.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to