Load balance and big downloads

Linux Advanced Routing and Traffic Control

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

 



Hi,

This is the first time I write to the list.

My english is not so good, but I hope I'll be understood.

I have 4 adsl routers, plugged on a linux box, and this box e used to
connect to a local network.

The linux box has 5 NICs. 

eth0: local network
    inet 10.0.0.56/24 brd 10.0.0.255 scope global eth0
eth1: adsl router 1
    inet 192.168.254.1/24 brd 192.168.254.255 scope global eth1
eth2: adsl router 2
    inet 192.168.253.1/24 brd 192.168.253.255 scope global eth2
eth3: adsl router 3
    inet 192.168.252.1/24 brd 192.168.252.255 scope global eth3
eth4: adsl router 4
    inet 192.168.251.1/24 brd 192.168.252.255 scope global eth4

The route table is:

netuno:~# ip rule show
0:      from all lookup local
32762:  from 192.168.251.0/24 lookup 5
32763:  from 192.168.252.0/24 lookup 4
32764:  from 192.168.253.0/24 lookup 3
32765:  from 192.168.254.0/24 lookup 2
32766:  from all lookup main
32767:  from all lookup default

netuno:~# ip route show table 2
default via 192.168.254.254 dev eth1
netuno:~# ip route show table 3
default via 192.168.253.254 dev eth2
netuno:~# ip route show table 4
default via 192.168.252.254 dev eth3
netuno:~# ip route show table 5
default via 192.168.251.254 dev eth4

netuno:~# ip route show
10.0.0.0/24 dev eth0  proto kernel  scope link  src 10.0.0.56
192.168.251.0/24 dev eth4  proto kernel  scope link  src 192.168.251.1
192.168.252.0/24 dev eth3  proto kernel  scope link  src 192.168.252.1
192.168.253.0/24 dev eth2  proto kernel  scope link  src 192.168.253.1
192.168.254.0/24 dev eth1  proto kernel  scope link  src 192.168.254.1
default equalize
        nexthop via 192.168.254.254  dev eth1 weight 1
        nexthop via 192.168.253.254  dev eth2 weight 1
        nexthop via 192.168.252.254  dev eth3 weight 1
        nexthop via 192.168.251.254  dev eth4 weight 1

My NAT table is

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  10.0.0.0/24          0.0.0.0/0           to:192.168.254.1
SNAT       all  --  10.0.0.0/24          0.0.0.0/0           to:192.168.253.1
SNAT       all  --  10.0.0.0/24          0.0.0.0/0           to:192.168.252.1
SNAT       all  --  10.0.0.0/24          0.0.0.0/0           to:192.168.251.1

The load balance is working with the 4 adsl links. But I'm having some
issues when machines inside the local network try download big files.

The download starts, but in an arbitrary amount of time it stops. I
think it is a problem with the return path of the TCP connection, but
i don't know how to solve this.

Hope somebody help me.

Thanks.  

-- 
Fábio Brito d'Araújo e Oliveira
Registered Linux User
www.psychopenguin.com.br
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux