Load Balancing between two routers using linux box

General discussion about PLUC and Linux in Pakistan.

Load Balancing between two routers using linux box

Postby turab » Sat Dec 17, 2005 3:29 pm

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
WLM: iba_lookz@hotmail.com
Yahoo Messenger: turabali@yahoo.com

Postby turab » Sat Dec 17, 2005 5:05 pm

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
turab
Company Havaldaar Major
 
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
WLM: iba_lookz@hotmail.com
Yahoo Messenger: turabali@yahoo.com

Re: Load Balancing between two routers using linux box

Postby nayyares » Sat Dec 17, 2005 10:13 pm

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
nayyares
Battalion Quarter Master Havaldaar
 
Posts: 237
Joined: Tue Dec 13, 2005 10:47 pm
Website: http://fedoraproject.org/wiki/NayyarAhmad
WLM: nayyares@hotmail.com
Location: JNB, SA

Re: Load Balancing between two routers using linux box

Postby syedali999 » Sat Dec 17, 2005 11:07 pm

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)
syedali999
Battalion Havaldaar Major
 
Posts: 252
Joined: Sun May 29, 2005 1:45 am
Website: http://www.wol.net.pk
WLM: alirizvi@khi.wol.net.pk
Location: Karachi

Re: Load Balancing between two routers using linux box

Postby crazy_frog » Mon Dec 19, 2005 9:03 am

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 !!
crazy_frog
Naik
 
Posts: 72
Joined: Fri Dec 16, 2005 9:44 am
WLM: klean_soul@yahoo.com
Yahoo Messenger: klean_soul@yahoo.com
Location: Karachi, Pakistan


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest

cron