Re: [squid-users] Bandwith limit

From: Antony Stone <>
Date: Sun, 20 Oct 2013 17:03:21 +0100

On Sunday 20 October 2013 at 16:50, Alfredo Rezinovsky wrote:

> I need to limit the INBOUND bandwith to squid


> Using delay pools I can limit the traffic to the clients. I need to
> limit the traffic from the internet, leaving at wire speed the traffic
> to the clients.

What speed is your Internet link?

What is "wire speed" in your network?

> Is that possible?

Realistically, only your ISP can do this.

After all, once the packets have reached your router, you either use them or
you throw them away. If they're part of a TCP stream, throwing them away just
means the other end will re-send them.

There's nothing you can do to stop a packet arriving at your router - you can
only decide what to do with it afterwards.

You _can_ try to throttle the rate of your outbound acknowledgement packets,
in order to limit the rate at which new packets arrive, but this is:

a) very complicated - you have to throttle each connection from different
sources on the Internet independently

b) very approximate - you can only *try* to limit the rate at which packets
get sent to you (and this may not work how you expect), and there's nothing
you can do about the amount of data in each packet (you can only assume that
each packet is MTU-sized)

c) generally unlikely to give a worthwhile result.

Oh, and by the way, this is not a Squid question. If you want more guidance
on what is possible, you should investigate IPtables and



If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.
                                                     Please reply to the list;
                                                           please don't CC me.
Received on Sun Oct 20 2013 - 16:03:31 MDT

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