Load Balancing between two routers using linux box

General discussion about PLUC and Linux in Pakistan.
Post Reply
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

Load Balancing between two routers using linux box

Post by turab »

Salam My Frends,
Is it possible to load balance between two branch routers ?

Scenario :-
I have 2 branch routers connected to different Air Links.
I want to balance the load in peak office hours between both the routers.
like some traffic passes through router A and some passes through router B.

Is it possible to place a linux server infront of both the routers, And linux Box decide to route the traffic b/w both the routers. My frend told me that it is possible by using BGP protocol of Zebra router.

Secondly in case of one link failure Switch-over and Switch-back b/w the routers

if yes then please guide me.


Thanks in Advance

Regards,
Turab
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

Post by turab »

Salam,
After many hours of googling i found a solution .....
http://66.102.9.104/search?q=cache:iiQ8 ... .pdf&hl=en

Now,
The problem is the balancing will not be perfect. as it is route based. and routes are cached.

Any help ??? :(

Regards
Turab
nayyares
Battalion Quarter Master Havaldaar
Posts: 237
Joined: Tue Dec 13, 2005 10:47 pm
Location: JNB, SA
Contact:

Re: Load Balancing between two routers using linux box

Post by nayyares »

turab wrote:Salam My Frends,
Is it possible to load balance between two branch routers ?

Scenario :-
I have 2 branch routers connected to different Air Links.
I want to balance the load in peak office hours between both the routers.
like some traffic passes through router A and some passes through router B.

Is it possible to place a linux server infront of both the routers, And linux Box decide to route the traffic b/w both the routers. My frend told me that it is possible by using BGP protocol of Zebra router.

Secondly in case of one link failure Switch-over and Switch-back b/w the routers

if yes then please guide me.


Thanks in Advance

Regards,
Turab
Hello Turab:

the information given in your post is not enough to understand your network, but i will prefer if i could use two different networks in my LAN, and will prefer to have single gateway(LINUX BOX) with two different NIC with two diferent network address and by using iptables or ipchains, it is quite possible that i route my trafic of one network to router A and other to Router B. I will recommend you to simplify your network instead of going after Zebra, while you are already using Router in your network then utilize it and let your router gets the exact traffic which it should get from your local area.

as long as your question about, in case of failure shifting from one router to another, needs some programming i.e. write a small SNMP module that can check your router port 80 or any other port used for internet traffic and if it get no reply from that port, your SNMP module should set, that local area default route to other option e.g. from Router A to Router B.

It will be handy if you run SQUID on that linux machine which will separate your network traffic.

Thanks
Nayyar Ahmad
RHCE, CCNA, OCP DBA
nayyares aT fedoraproject DoT org
blogs: nayyares.blogspot.com
syedali999
Battalion Havaldaar Major
Posts: 252
Joined: Sun May 29, 2005 1:45 am
Location: Karachi
Contact:

Re: Load Balancing between two routers using linux box

Post by syedali999 »

turab wrote:Salam My Frends,
Is it possible to load balance between two branch routers ?

Scenario :-
I have 2 branch routers connected to different Air Links.
I want to balance the load in peak office hours between both the routers.
like some traffic passes through router A and some passes through router B.

Is it possible to place a linux server infront of both the routers, And linux Box decide to route the traffic b/w both the routers. My frend told me that it is possible by using BGP protocol of Zebra router.

Secondly in case of one link failure Switch-over and Switch-back b/w the routers

if yes then please guide me.


Thanks in Advance

Regards,
Turab
You are looking for it :

http://www.inlab.de/balance.pdf (Documentation)
http://www.inlab.de/balance.html (Official Web)
http://www.inlab.de/balance-3.32.tar.gz (Tar Ball)
crazy_frog
Naik
Posts: 72
Joined: Fri Dec 16, 2005 9:44 am
Location: Karachi, Pakistan
Contact:

Re: Load Balancing between two routers using linux box

Post by crazy_frog »

syedali999 wrote:
You are looking for it :

http://www.inlab.de/balance.pdf (Documentation)
http://www.inlab.de/balance.html (Official Web)
http://www.inlab.de/balance-3.32.tar.gz (Tar Ball)
Dear syedali999,

I am thankful for your load balancing tutorial which somewhat helped a lot. 8)
Hâve á nice day !!
Post Reply