Search squid archive

Re: Bandwith limit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> I need to limit the INBOUND bandwith to squid

Why?

> 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 http://www.lartc.org


Regards,


Antony.

-- 
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.




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux