All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ashok N N <nalkunda@cse.msu.edu>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] many ways to do load balancing (or not?)
Date: Thu, 21 Nov 2002 17:46:56 +0000	[thread overview]
Message-ID: <marc-lartc-103790116306458@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103788125614081@msgid-missing>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,
   since my masters thesis is also concerned with this, i thought of taking 
this opportunity to clarify/get clarified some of my own thougths. please see 
inline.

On Thursday 21 November 2002 07:19 am, Andreas Hasenack wrote:
> I'm a little confused about the many ways I've read that can be used
> for traffic load balancing, that is, two or more interfaces to the
> outside world being used transparently and efficiently by the internal
> machines.
> 
> I heard about:
> a) netfilter SNAT to more than one IP. If I'm correct, this is only
> a round robin, that is, one connection goes here, the other goes there,
> then the next goes here again, etc without much thought.
> 

i believe that SNAT is for connections initiated from outside world towards 
the internal network. and this would be reverse of what is intended here, 
that of using the links to the outside world efficiently. moreover if setup 
properly, the packets will go out back on the interface they came in.

> b) multipath default route. Seems to do something similar, but it "caches"
> routes. What exactly does this mean in the long run?
> 

i'm still looking at the code here. AFAIK, the when you have multipath option 
set, then when looking up for a route to an address, among the multiple equal 
cost paths, one is selected according to some criteria (i read random 
somewhere in the kernel but am not able to locate it now). but once the route 
is found, it is cached in the route cache and all packets will follow that 
route. so it is kind of a route-based load-balancing.

> c) multipath default route, but with the equalize option. Again, seems to
> work, but the best description I could find about it was something along
> the lines of "packet randomization", whatever that means. What does it do
> in the long run? Is it better/worse than b)?
> 

i read in one of the threads that 'equalize' causes per-packet load balancing, 
i.e looks up the route for each packet. but i am doubtful about the 
performance when each packet causes a route-lookup in the FIB.
(http://www.uwsg.iu.edu/hypermail/linux/net/0107.3/0028.html)

> d) OSPF. I read in the RFC that OSPF can do "load balancing", but I failed
> to understand how (no, I didn't read that RFC thoroughly, it's really high
> tech for me at this point). Does it use multipath routes to accomplish this?
> 
> Any help is appreciated, thanks.

ashok
- -----------------------------------------------------------------------------
My public key:
   gpg --recv-keys --keyserver blackhole.pca.dfn.de DCB44F2E
   
http://pgp.mit.edu:11371/pks/lookup?search=N+N+Ashok+%28CSE+MSU%29+%3Cnnashok%40yahoo.com%3E&op=index
- -----------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE93RwTRhXpVty0Ty4RArc/AKCM7VWIK1CygSawQxDtPvcia/nclACeMqMI
w5aTSJ7L1utzv0ePbUWsGxk=oALf
-----END PGP SIGNATURE-----

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2002-11-21 17:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-21 12:19 [LARTC] many ways to do load balancing (or not?) Andreas Hasenack
2002-11-21 17:46 ` Ashok N N [this message]
2002-11-21 19:11 ` Andreas Hasenack
2002-11-21 20:00 ` Ramin Alidousti
2002-11-21 22:20 ` William L. Thomson Jr.
2002-11-21 22:55 ` Christoph Simon
2002-11-21 23:41 ` Christoph Simon
2002-11-22  0:06 ` William L. Thomson Jr.
2002-11-22  0:24 ` William L. Thomson Jr.
2002-11-22  1:17 ` Ashok N N
2002-11-22 12:28 ` Andreas Hasenack
2002-11-22 12:30 ` Andreas Hasenack
2002-11-22 12:39 ` Andreas Hasenack
2002-11-22 12:41 ` Andreas Hasenack
2002-11-22 13:00 ` Christoph Simon
2002-11-22 13:26 ` Vincent Jaussaud
2002-11-22 18:05 ` William L. Thomson Jr.
2002-11-22 18:21 ` William L. Thomson Jr.
2002-11-22 18:37 ` William L. Thomson Jr.
2002-11-22 18:47 ` William L. Thomson Jr.
2002-11-22 20:34 ` Andreas Hasenack
2002-11-25 13:20 ` Vincent Jaussaud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-103790116306458@msgid-missing \
    --to=nalkunda@cse.msu.edu \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.