From: Steve Wright <paua@quicksilver.net.nz>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] split access 2 uplinks
Date: Fri, 29 Aug 2003 20:07:16 +0000 [thread overview]
Message-ID: <marc-lartc-106218801010353@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106215934607050@msgid-missing>
On Sat, 2003-08-30 at 00:13, Alex wrote:
> I have setup split access with load balancing on a router that runs squid
> but it appears that the second line it almost empty, the router send packets
> trough the second line only from time to time, very rarely adn the mrtg
> graphs only show something like 10-16kbit used on that line and instead the
> primary line is full all the time. I have setup this only for squid, I don't
> do any masqurading for the local net, just web acces via squid proxy server.
> What's the remedy for this situation? Why does this happen? If that all I
> can do then I have no use for such a setup , it doesn't help me at all.
The problem is the type of load-balancing you are using here. Simply
add the word "equalize", viz ;
> ip route add default scope global nexthop via 1.2.3.1 dev eth2 weight 1
> nexthop via 192.168.55.1 dev eth0 weight 1
ip route add equalize default scope global \
nexthop via 1.2.3.1 dev eth2 weight 1 \
nexthop via 192.168.55.1 dev eth0 weight 1
Without the 'equalize` parameter, the links will be equalized on the
basis of connection spreading, not alternate packets. Since you only
/have/ one outgoing connection(squid) there are no connections(plural)
to equalize!
'equalize' forces iproute2 to equalise at the /packet/ level, not the
connection level - more appropriate in your situation.
google for "policy routing book" for more on this. (see chapter 5)
DISCLAIMER: I'm new at this. Let the List Gurus comment before
converting your production system on my say.. 8-/
HTH,
Steve
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-08-29 20:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-29 12:13 [LARTC] split access 2 uplinks Alex
2003-08-29 20:07 ` Steve Wright [this message]
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-106218801010353@msgid-missing \
--to=paua@quicksilver.net.nz \
--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.