All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Hasenack <andreas@conectiva.com.br>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] many ways to do load balancing (or not?)
Date: Fri, 22 Nov 2002 12:28:04 +0000	[thread overview]
Message-ID: <marc-lartc-103796818931758@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103788125614081@msgid-missing>

Em Thu, Nov 21, 2002 at 02:20:57PM -0800, William L. Thomson Jr. escreveu:
> Also I do not believe the load balancing is packet based. Usually it's
> more "connection" based. Meaning that if you request a file, more than
> likely all parts of that file will be transfered using the same route.
> If you request it again, it may take the same route or another.

If I make many connections from one IP (inside) to a web server (outside),
for example (like many simultaneous downloads, or a complex page), I think
they will all go via the same route, because the originating IP and the
destination are the same. It will hit the cache.
Hmm, not good if your users use a proxy, but then again, the proxy would
cache the page probably.

> Now if the request was generated from the inside it would still work
> some what the same. If I send two emails out at once, the first will use
> gw1 and the other will use gw2.

Unless they are sent to the same MTA in the outside, then it will get a
cache hit (supposing the 60s haven't gone by then). Or not?

> All packets for each will travel via the same route and use the same
> gateway from start to finish.

Agreed.

> If it was more on a packet level, the other end would be confused.

Sure. When I said "packet count" before I was thinking about something
along the lines of real traffic balancing, that is, the router somehow
remembering how many packets it sent to each route and choosing the
less used one.

> It would be getting responses from an IP it was not expecting response
> from. I would imagine each side to send redirects, and all sorts of
> problems. Like it receiving every other packet and dropping the packets
> in between.

And breaking stateful firewalls.

> If during a file transfer the route cache is flushed, there is the
> possibility of the rest of the packets going out a different interface.

Uh oh... It shouldn't be that simple, what about that 60s timeout for
the cache? It's very likely to occur during a file transfer.

> Neither does it perfectly or with intelligent algorithms. Neither allow
> you to use all paths for a single transfer.

Only things like MPPP I guess, for example, or channel bonding, or TQL.

> So if you have two 1.5 mbs connection, you do not end up with a 3.0 mbs
> line. You do have one internal gateway for both, and if one goes down
> the other can be used. So you do have redundancy, and both lines can be
> used to serve difference requests to different places.

So it's more like redundancy/HA with a best effort towards balancing.

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

  parent reply	other threads:[~2002-11-22 12:28 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
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 [this message]
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-103796818931758@msgid-missing \
    --to=andreas@conectiva.com.br \
    --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.