Re: [squid-users] Bandwith limit

From: Antony Stone <Antony.Stone_at_squid.open.source.it>
Date: Sun, 20 Oct 2013 19:24:58 +0100

On Sunday 20 October 2013 at 19:09, Alfredo Rezinovsky wrote:

> El 20/10/13 13:03, Antony Stone escribió:
> >
> > There's nothing you can do to stop a packet arriving at your router - you
> > can only decide what to do with it afterwards.
>
> The package arrives to my router but it can be delayed before reaches
> app layer.

Ah, sorry - I had thought that you were asking if it was possible to limit the
bandwidth of traffic coming in over your ISP link.

Obviously, you can restrict the bandwidth of the connection between your
router and Squid, as you are already doing:

> I know how to do it with qsdisc in linux. I can queue them and let them
> pass with delay.

If that provides the effect you are seeking, I'd say that is the best
approach.

> All I want to know is if I can do this with squid.

No, since the receiver can never really control incoming bandwidth. Only the
transmitter can limit the rate data goes over a link (whether that's your ISP
Internet connection, or the hope between your router and Squid).

Squid's delay pools can obvious limit the bandwidth from Squid to the clients,
but that's only an indirect way of limiting the bandwidth from the source into
Squid.

It looks to me like you're doing it the best way possible already.

Regards,

Antony.

-- 
Tinned food was developed for the British Navy in 1813.
The tin opener was not invented until 1858.
                                                     Please reply to the list;
                                                           please don't CC me.
Received on Sun Oct 20 2013 - 18:25:13 MDT

This archive was generated by hypermail 2.2.0 : Mon Oct 21 2013 - 12:00:06 MDT