We need to modify our bandwidth usage (per user on our site). I would want to limit bandwidth per ip,,. Basically we want the users who connects to our webstie to only be able to (download @ 2.5Mbps or 250KB/per sec). While were able to cache and upload @ unlimited speed.. Right now we have no cap.
|
feedback
|
|
If you are talking about HTTP traffic, you can direct the users to a proxy such as squid. Squid can be configured to limit the bandwidth usage per IP. You can use I think it can be also configured to limit the bandwidth per user when enabling authentication. | |||
|
feedback
|
|
If you're concerned about fairness, I would not recommend limiting per user. It works as long as you have a low connection count, but eventually the sum of all limited connections exceeds your available bandwidth and the situation is as bad as without the limit. There is a thing called Stochastic Fairness Queuing. It will prevent that a single connection starves and improve fairness. It identifies connections using a hash algorithm and serves them one packet at a time in round robin order. In order for SFQ to work you have first to limit bandwidth, to move the queue to your machine where you can control it. Here is a very simple setup I often use:
If you find this useful please explain your motivation and I can provide more complex setups that'll suit your purpose. | |||
|
feedback
|