Questions tagged [bandwidth-throttling]

Bandwidth throttling is the intentional slowing of the speed at which data is sent from the server to a client. In web programming, it is used to lower the chances of a DDOS attack, by the website/app releasing data in a limited speed.

In web programming, Bandwidth throttling is used to intentionally lower the rate at which data is served to the client. It is considered one of the important methods to lower chances of failure of a site from a DDOS attack.

It can also be used to ensure that all users are accessing enough resources by limiting greedy users who may be using lots of connections and downloading lots of data whereby other users are suffering from slower connections.

Php Example

set_time_limit(0);
$file = array();
$file['name'] = "file.mp4";
$file['size'] = filesize($file['name']);
header("Content-Type: application/octet-stream");
header("Content-Description: file transfer");
header('Content-Disposition: attachment; filename="' . $file['name'] . '"');
header('Content-Length: '. $file['size']);
$open = fopen($file['name'], "rb");
while(!feof($open))
    {
    echo fread($open, 256);
    usleep(500);
    }

fclose($open);

In the above example, a download manager(which opens lots of connections) think that server is unresponsive and hence close all connections

Links

Bandwidth throttling

Work arounds for Bandwidth throttling

135 questions
0
votes
0 answers

Generic bandwidth limit in Python

Hello Python friends I am developing a commercial application in python that backs up databases, directory synchronization, finally ... I need to implement a bandwidth limit feature. For example the user defines that the software cannot exceed…
0
votes
0 answers

How to throttle download speed with SFTP in node js

I am working on creating a tool that allows to sftp from location to another using https://www.npmjs.com/package/ssh2-sftp-client library. The issue that I am running into and trying to figure out how I can throttle the download speed either by a…
Joe
  • 1
  • 1
0
votes
1 answer

Netty : back propogate pressure in channel handler pipeline to slow down sender

I am using netty to devlope application which will listen on specific port over TCP. Once bytes received, I have a pipeline with business logic to run on received bytes. This pipeline consist of multiple channel handlers like header decoder,…
0
votes
2 answers

Simulate high speed network connection

I have created a bandwidth meter application to measure total Internet traffic. I need to test the application with relatively high data transfer rates, such as 4 Mbps. I have a slow Internet connection, so I need a simulator to test my application…
Suriyan Suresh
  • 2,964
  • 14
  • 51
  • 80
0
votes
1 answer

3rd Party: Bandwidth Fluctuation for Asterisk Server

Hi! I'm currently doing a simple 3rd party system on Asterisk Server, In my system I've already done with measuring bandwidth usage for each call and determined what type of Codec being used.My problem is on how to fluctuate the bandwidth on…
hearty
  • 3
  • 1
0
votes
1 answer

Bandwidth throttling in c++ application

I have a number of processes which are communicating between cloud and my application. Now I want to assign bandwidth to those processes through my code only. after going through some links to find out how to do that. And came up with this solution…
0
votes
1 answer

Why can I send UDP packets after finishing internet package's bandwidth?

I am not sure if this is the right forum to ask this question. So please forgive my ignorance. I build an Android app which sent UDP packets to my server and the server sent a reply. But I noticed something strange. I bought a 20 MB internet…
Al-Alamin
  • 1,438
  • 2
  • 15
  • 34
0
votes
1 answer

Low download speed

Hey guys I am having a big problem and i need some advice . I have a Dedicated server with those informations : Atom C2750 8/8t 2,4 / 2,6 GHz 16 GB RAM DDR3 1600MHz 12TB 500Mbps Bandwidth List item 1Gbps Network Burst I am running a website…
Diptox
  • 1,809
  • 10
  • 19
0
votes
1 answer

Rate limiting pattern for implementing API throttling for a cloud service

I wanted to implement throttling for a set of services provided. Under peak load,I want to limit or deny services to long running users or users sending huge data or other rules that can be configured even at a later stage. I plan to use java and…
arvin_v_s
  • 1,036
  • 1
  • 12
  • 18
0
votes
1 answer

C#.Net Bandwidth Computation VS Speedtest.net Speed

We are working on Windows Desktop application in which we need to capture current internet Bandwidth. We are downloading a ZIP file multiple times sequentially but our results are not matching with Speed Test. We are capturing bytes received on…
D Deshmane
  • 1,125
  • 4
  • 15
  • 27
0
votes
1 answer

JMeter - Bandwidth control not working

I'm attempting to run a testplan using different qualities of network. To accomplish this I set a "HTTP Request Default" so they all use HTTP 3.1 or 4. Then I passed the properties as follows: -Jhttpclient.socket.http.cps=21888…
Dirk R.
  • 171
  • 1
  • 13
0
votes
0 answers

Is it possible to install Facebook Augmented traffic control on MAC machine?

I have referred this link https://github.com/facebook/augmented-traffic-control to configure the ATC. Please let me know if someone has configured the same on MAC machine.
suneet
  • 1
0
votes
0 answers

Set the blocking queue size in RateLimiter

Is there a way to limit or set the blocking queue size in Google Guava RateLimiter?
Ann Mathews
  • 56
  • 1
  • 8
0
votes
1 answer

Limit Upload Bandwidth for each user in IIS

i want to limit upload bandwidth in IIS. my scenario is each user only can upload 300kbps. i check MaxBandwidth in IIS but it limit for sum of users not for each user. also i check Throttling Bandwidth but it limit download bandwidth. so how can i…
amin mirzaee
  • 109
  • 2
  • 9
0
votes
0 answers

What APIs can I use for my specific bandwidth throttling requirements?

I need to know what APIs I can use to make the following happen: I have an existing process running on a Windows machine (call it application A), which can be any existing process on this Windows machine. I want to code another application to…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
1 2 3
8
9