bandwidth

Limit Apache Proxy upload speed per connection/ip?

亡梦爱人 提交于 2020-03-02 11:58:51
问题 I looked at mod_bandwidth and mod_cban but they dont seem to satisfy my requirements. I am running a proxy server with apache 2.2 (mod_proxy, proxy_http, proxy_connect). I want to limit the "upload speed of the client". This is at the same time server download bandwidth, which should not limited. I want it per connection or even better per IP. To make it understandable: The use case is that I don't want bad people uplaoding bad data to bad places using my proxy server to "mask" themselves. Of

Detecting Connection Speed / Bandwidth in .net/WCF

不羁岁月 提交于 2020-01-14 13:44:10
问题 I'm writing both client and server code using WCF, where I need to know the "perceived" bandwidth of traffic between the client and server. I could use ping statistics to gather this information separately, but I wonder if there is a way to configure the channel stack in WCF so that the same statistics can be gathered simultaneously while performing my web service invocations. This would be particularly useful in cases where ICMP is disabled (e.g. ping won't work). In short, while making my

Detecting Connection Speed / Bandwidth in .net/WCF

点点圈 提交于 2020-01-14 13:43:17
问题 I'm writing both client and server code using WCF, where I need to know the "perceived" bandwidth of traffic between the client and server. I could use ping statistics to gather this information separately, but I wonder if there is a way to configure the channel stack in WCF so that the same statistics can be gathered simultaneously while performing my web service invocations. This would be particularly useful in cases where ICMP is disabled (e.g. ping won't work). In short, while making my

Detecting Connection Speed / Bandwidth in .net/WCF

情到浓时终转凉″ 提交于 2020-01-14 13:43:06
问题 I'm writing both client and server code using WCF, where I need to know the "perceived" bandwidth of traffic between the client and server. I could use ping statistics to gather this information separately, but I wonder if there is a way to configure the channel stack in WCF so that the same statistics can be gathered simultaneously while performing my web service invocations. This would be particularly useful in cases where ICMP is disabled (e.g. ping won't work). In short, while making my

Squid Delay Pool - restricting bandwidth per user / ip address

时光总嘲笑我的痴心妄想 提交于 2020-01-07 02:53:06
问题 I need to limit the bandwidth of all users on a transparent squid proxy so that nobody is using more than 1Mbps (i.e. at least 100 people can use our 100Mbps connection without one person dominating and reducing performance for everybody). I'm not fussed if the restriction is done per user or per IP, but would be open to suggestions / help on the impacts of both choices. So far I've added to my squid.conf: delay_pools 1 delay_class 1 2 delay_access 1 allow all delay_parameters 4 32000/32000

How do I create accumulated bandwidth usages in RRDtool (ie. GB's per month down)?

吃可爱长大的小学妹 提交于 2020-01-06 21:01:17
问题 The following data comes from a mobile phone provider, it's a list of kb's downloaded at a certain time, usually on a per minute basis. It's not the average, not the max, but the total of that time interval, which allows to track the data consumption precisely. These graphs were made with PIL, and instead of showing spikes to indicate a large data consumption, large steps can be seen, which is much more revealing, because it doesn't just tell "much happened here", but "exactly this much

Simple bandwidth / latency test to estimate a users experience

断了今生、忘了曾经 提交于 2020-01-01 12:03:08
问题 I write web based applications. Performance is obviously a key factor. Whilst database load and page rendering time are things I have control of, the users internet connection is not. What I'm looking for is a way to indicate what sort of a connection a user has. Something along the lines of a traffic light in the corner of a website that shows the user what sort of a connection they have to the site and therefore indicating what sort of perceived performance they should expect. e.g. Maybe

bandwidth management with rails?

 ̄綄美尐妖づ 提交于 2019-12-31 23:03:21
问题 I was wondering if anyone knew of a way that you could manage bandwidth within a rails application in some way that isn't dependent on the web server. For example each account has a bandwidth limit. In and out bound traffic subtracts from the monthly allowance? 回答1: One option would be to add an after_filter in application.rb (so that it applies to all actions) and do the following: def store_bandwidth_usage response_size = response.body.size # Assuming the User model has a bandwidth_usage

How to compute the absolute minimum amount of changes to convert one sortorder into another?

折月煮酒 提交于 2019-12-31 12:55:53
问题 Goal How to encode the data that describes how to re-order a static list from a one order to another order using the minimum amount of data possible? I have a feeling there is an algorithm or computer science term that will help me but right now I'm too stuck on the problem to figure out other ways of looking at it. Background Motivation I'm have a program that is deployed to a remote location where all communication is via an intermittent incredibly expensive satellite connection. It's a

How to compute the absolute minimum amount of changes to convert one sortorder into another?

ε祈祈猫儿з 提交于 2019-12-31 12:55:44
问题 Goal How to encode the data that describes how to re-order a static list from a one order to another order using the minimum amount of data possible? I have a feeling there is an algorithm or computer science term that will help me but right now I'm too stuck on the problem to figure out other ways of looking at it. Background Motivation I'm have a program that is deployed to a remote location where all communication is via an intermittent incredibly expensive satellite connection. It's a