Re: Iptables for load balancing internet traffic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/14/06, Danny <dineshg@xxxxxxxxxxx> wrote:> Jorge Nerín wrote:> >> > Yes there is a way, if you search you will find this:> >> > Routing for multiple uplinks/providers> > http://lartc.org/howto/lartc.rpdb.multiple-links.html> >> > It works.> >>  >> Note that balancing will not be perfect, as it is route based, and> routes are cached.>> Yup ! I tested this. But it doesnt do a perfect Round Robin [ in this> case nth patch worked better ].>>> - Danny>>
You will not get a perfect round robin with few conections because allthe packets related to a connection must use always the same interfaceor else it would break as the ip address would be changing as seen bythe other side.
If you have a lot of connections this will work almost perfectly asthe deviation from the perfect round robin will get smaller when thenumber of samples (connections) gets bigger and all of them balanceeach other.
-- Jorge Nerín<jnerin@xxxxxxxxx>

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux