LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2006, 04:13 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Rep: Reputation: 30
Red face Load balancing


Dear Friends,

Why load balancing is used in Linux server ? Is it possible to controll bandwidth in linux server using "load balancing ".I am using Linux Enterprise 4 server .
I am a newby using this .


thx .. ..

Last edited by shipon_97; 11-27-2006 at 04:30 AM.
 
Old 11-27-2006, 05:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
load balancing takes many many forms, you need to provde more information about what you are specificalyl asking about.
 
Old 11-27-2006, 09:19 AM   #3
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Original Poster
Rep: Reputation: 30
Question Routing problem

Dear Chris ,

Plz look at the following Scenario :

I have two different Network suppose NETWORK1(192.168.10.0) and NETWORK2(192.168.20.0). My NETWORK1 need 64 KBps and my NETWORK2 need 32KBps Bandwidth .

For this reason I got two different internet connection from different two ISP's . I want to use a One Linux Router for this purpose . And the Two ISP's line are connected two different Lan card(LAN1 and LAN2) into my Linux server .

And I also attached another two lan card (LAN3 and LAN4) for my Interneal Network (NETWORK1 and NETRWORK2). I use my linux pc as a router . I use two ISP's Line so that if one ISP line is disturbed then another will be help as backup.

Here the total Scenario , that I want :

ISP1 = LAN1 ==> NETWORK1 (LAN3)=64 KBps
ISP2 = LAN2 ==> NETWORK2 (LAN4)= 32KBps

i.e., LAN 1 is directly connected with LAN 3 = 64 KBps
LAN 2 is directly connected with LAN 4 = 32 KBps

In this moment if LAN1 is disconnected then 64 KBps bandwidth is also loosed and my NETWORK1 can't get internet.

Now I want a situation where my NETWORK1 gets internet from ISP2(LAN2). i.e. :
LAN2 ===>LAN3 + LAN4

Is it possible to do with a Linux Router .

If it is possible then plz tell me how can I do it and If it is not Possible then plz give me a better Solutions .


Plz plz help me .......ASAP
 
Old 11-27-2006, 11:25 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
Yes its possible
Its called bonding, you will need a kernel option configured and ifenslave.
Google is your friend
 
Old 11-27-2006, 12:32 PM   #5
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 490

Original Poster
Rep: Reputation: 30
Question Load Balancing

dear nx5000,

Actually from Google I cannot find the appropriate Document . Do u help me plz if u time . Plz give some link or document

sorry for disturb
 
Old 11-27-2006, 01:30 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
hmm, ok your description is pretyt vague, but am i right in thinking you just want to use two internet connections as if they were one? you sound like you're confusing the issue a huge amount by suggest one internal network needs one conneciton, the other uses the other one.. can't be right...

anyway, you do not actually want to look into bonding at all, that's not the right thing here. instead, go to http://lartc.org and read chapter 4, which will go over load balancing of isp connections.
 
Old 11-27-2006, 01:30 PM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
http://www.google.co.uk/search?q=lin...ient=firefox-a
 
Old 11-27-2006, 01:40 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
well exactly. hit 1 is absolutely not what's being asked for. bonding is for creating high capcity reliable links between a server and a local switch, using 802.3ad or other such technologies. you're spreading ip traffic across two physical links and recombining on the peer device to obtain the original data stream. this is below ip level, and only works within single layer 2 Ethernet networks. if you send one ip packet to isp 1 and the 2nd packet of the same conversation to isp2, you'll never see either packet again.
 
Old 11-27-2006, 06:15 PM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
Quote:
well exactly. hit 1 is absolutely not what's being asked for
Erm
I have a friend who is now using bonding after having done the same with lartc (he first didn't want to recompile kernel). For two isp lines, he is not using 802.3ad mode if I remember, he just has two ethernet lines that goes to 2 routers and a third ethernet line for the LAN. the 2 on the isp side are seen as a single one.
I think he switched basically because you need a lot of work with lartc for doing the same stuff (like failover for example)
And until today, it's still working

http://linux-net.osdl.org/index.php/Bonding

Last edited by nx5000; 11-27-2006 at 06:35 PM.
 
Old 11-28-2006, 07:36 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
nope, sorry i don't believe you. what's the default gateway on that machine then? a bonded pair of nics acts a a ginel nic, with a single ip address. as such the default gateway needs to be reached via a local connection to a gateway. Yhat gateway ip address will only exist on one if that goes down, the bond is left with the other nic only.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Balancing without S/W hellmet Linux - Networking 2 09-28-2006 03:37 AM
Load Balancing turbo_acura Linux - Networking 4 01-27-2006 09:44 PM
Load Balancing? gsibble Linux - Networking 3 12-09-2003 11:39 PM
new to load balancing suliu Linux - General 3 05-12-2003 09:08 AM
Load balancing ?? Lucsi Linux - Newbie 1 07-16-2002 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration