* [LARTC] Queueing and BGP
2000-11-01 12:57 [LARTC] Queueing and BGP Gregory
@ 2000-11-01 16:24 ` Aldrin
2000-11-01 17:28 ` bert
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Aldrin @ 2000-11-01 16:24 UTC (permalink / raw)
To: lartc
<PRE>On Wed, 1 Nov 2000, Gregory Maxwell wrote:
><i> After seeing that post about directing traffic to various upstream links
</I>><i> based, basically, on the next-hop from an ISP's router I was wondering:
</I>><i> Is it possible to queue packets via realm?
</I>[..gated..]
According to the LAR HOWTO (chapter 11.3); yes, it is possible to queue
via realm numbers.
Now, I'm a newbie (1.5 weeks ago just downloaded the LAR HOWTO and don't
understand it 100% right now) and found I have to learn BGP, gated, etc
;-)
Well, my question is: How can I control the BandWidth if you can only
control what you send on the wire? Remember that 99.99% of the traffic is
*download* of web pages, and there is a transparent proxy (with around
20%-50% hit rate on peak hours).
____________
www.yahoo.com (A) [ ] (B)
--->--->--->--->--[>--\ /-->]--->--->--->
LOCAL NET [ SQUID ] OUTSIDE (yahoo)
---<---<---<---<--[<--/ \--<]---<---<---<
(D) [____________] (C)
Whenever a packet from the local networks try to goes outside (A), it
really never goes outside because it is redirected to SQUID. Then SQUID
send the request packet (B) (which is a diferent packet) and it receives
the packet (C). The packet (C) vanish in SQUID, but it creates a new
packet (D) in response, which is not the same packet as (C).
So, It doesn't make sense to mark packet (C) because it will never go to
the local network and I cannot control that bandwidth, because I just
receive it. And also It doesn't make sense to mark packet (D) because
SQUID will eat all the bandwidth with packets (B) and (C) anyway.
Tell me I'm wrong.
Aldrin.
"So many links, so little time!"
</PRE>
^ permalink raw reply [flat|nested] 5+ messages in thread* [LARTC] Queueing and BGP
2000-11-01 12:57 [LARTC] Queueing and BGP Gregory
2000-11-01 16:24 ` Aldrin
@ 2000-11-01 17:28 ` bert
2000-11-02 8:20 ` Arthur
2000-11-02 9:34 ` dancer
3 siblings, 0 replies; 5+ messages in thread
From: bert @ 2000-11-01 17:28 UTC (permalink / raw)
To: lartc
<PRE>On Wed, Nov 01, 2000 at 01:24:09PM -0300, Aldrin Martoq A. wrote:
><i> Now, I'm a newbie (1.5 weeks ago just downloaded the LAR HOWTO and don't
</I>><i> understand it 100% right now) and found I have to learn BGP, gated, etc
</I>><i> ;-)
</I>
Well no, you probably won't be talking bgp to your 'magic routers', so you
really don't need to know gated.
><i> So, It doesn't make sense to mark packet (C) because it will never go to
</I>><i> the local network and I cannot control that bandwidth, because I just
</I>><i> receive it. And also It doesn't make sense to mark packet (D) because
</I>><i> SQUID will eat all the bandwidth with packets (B) and (C) anyway.
</I>
Because squids repackets your data, any shaping information is lost. Once
your data has left squid, there is no way to know anymore where it came
from.
You can try to get the ingress policer working, which tries to do shaping on
the receiving interface (before squid). This should work, except that people
have been having trouble with the ingress policer.
Regards,
bert hubert
--
PowerDNS Versatile DNS Services
Trilab The Technology People
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
</PRE>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LARTC] Queueing and BGP
2000-11-01 12:57 [LARTC] Queueing and BGP Gregory
2000-11-01 16:24 ` Aldrin
2000-11-01 17:28 ` bert
@ 2000-11-02 8:20 ` Arthur
2000-11-02 9:34 ` dancer
3 siblings, 0 replies; 5+ messages in thread
From: Arthur @ 2000-11-02 8:20 UTC (permalink / raw)
To: lartc
<PRE>On Wed, 1 Nov 2000, bert hubert wrote:
><i> On Wed, Nov 01, 2000 at 01:24:09PM -0300, Aldrin Martoq A. wrote:
</I>><i>
</I>><i> > So, It doesn't make sense to mark packet (C) because it will never go to
</I>><i> > the local network and I cannot control that bandwidth, because I just
</I>><i> > receive it. And also It doesn't make sense to mark packet (D) because
</I>><i> > SQUID will eat all the bandwidth with packets (B) and (C) anyway.
</I>><i>
</I>><i> Because squids repackets your data, any shaping information is lost. Once
</I>><i> your data has left squid, there is no way to know anymore where it came
</I>><i> from.
</I>
><i> You can try to get the ingress policer working, which tries to do shaping on
</I>><i> the receiving interface (before squid). This should work, except that people
</I>><i> have been having trouble with the ingress policer.
</I>
Or, alternately, you might try to configure one squid per bandwith-partition,
thereby getting back your shaping information. This does come at a cost, but
it is actually relatively easy to set up. You might need NAT to do it
though... ;)
Doei, Arthur. (Yaay, coding shaping information into IP addresses... ;))
--
/\ / | Fight Scientology, See URL: <A HREF="http://xenu.xtdnet.nl/">http://xenu.xtdnet.nl/</A> |
/__\ / | Buttons. Lotsa buttons. I like buttons. [Big Dog] |
/ \/__ | A friend is someone with whom you can dare to Be yourself. |
Just Be +-Arthur van Leeuwen, <A HREF="mailto:arthurvl@sci.kun.nl------------------------+">arthurvl@sci.kun.nl------------------------+</A>
</PRE>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LARTC] Queueing and BGP
2000-11-01 12:57 [LARTC] Queueing and BGP Gregory
` (2 preceding siblings ...)
2000-11-02 8:20 ` Arthur
@ 2000-11-02 9:34 ` dancer
3 siblings, 0 replies; 5+ messages in thread
From: dancer @ 2000-11-02 9:34 UTC (permalink / raw)
To: lartc
<PRE>Arthur van Leeuwen wrote:
><i> On Wed, 1 Nov 2000, bert hubert wrote:
</I>><i>
</I>><i> > On Wed, Nov 01, 2000 at 01:24:09PM -0300, Aldrin Martoq A. wrote:
</I>><i> >
</I>><i> > > So, It doesn't make sense to mark packet (C) because it will never go to
</I>><i> > > the local network and I cannot control that bandwidth, because I just
</I>><i> > > receive it. And also It doesn't make sense to mark packet (D) because
</I>><i> > > SQUID will eat all the bandwidth with packets (B) and (C) anyway.
</I>><i> >
</I>><i> > Because squids repackets your data, any shaping information is lost. Once
</I>><i> > your data has left squid, there is no way to know anymore where it came
</I>><i> > from.
</I>><i>
</I>><i> > You can try to get the ingress policer working, which tries to do shaping on
</I>><i> > the receiving interface (before squid). This should work, except that people
</I>><i> > have been having trouble with the ingress policer.
</I>><i>
</I>><i> Or, alternately, you might try to configure one squid per bandwith-partition,
</I>><i> thereby getting back your shaping information. This does come at a cost, but
</I>><i> it is actually relatively easy to set up. You might need NAT to do it
</I>><i> though... ;)
</I>><i>
</I>
Hrm. Throttling it on transmission on the internal network interface works for
me....squid doesn't get too far out of control because it won't read too far ahead
of the client. Unfortunately throttling at that point means that cache-hits get
throttled, since I can't think of a good way to deal with this (I'm marking and
queuing on egress into two bandwidth partitions [fast and slow]). Proxy/web
traffic falls into the 'slow' category...and like I said...squid only reads ahead
so far, thus winding up in synch with the client-read speed for any large
objects...it's the cache hits that bite....From the end-user perspective, a hit
looks like a miss...Ie: Same delivery rate.
D
</PRE>
^ permalink raw reply [flat|nested] 5+ messages in thread