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
1 answer

Voluntarily throttling requests

When writing a web crawler/scraper, what algorithms and techniques are available to throttle requests and avoid DoS'ing the server/getting banned? This comes up often when reading about web scraping (for example, here), but always as something like…
Bruno Kim
  • 2,300
  • 4
  • 17
  • 27
0
votes
1 answer

Limiting the network bandwidth in java

I need to do following things: 1. Find the current network bandwidth. 2. Limit the bandwidth to download the file by 50%. I did some research over this but i am not able to find any good way of doing this. Like calculating the bandwidth by sending…
0
votes
1 answer

AS3 limit bandwidth or prioritize downloads

I'm having multiple downloads in a swf, downloading external data. Can I limit the download speed of one download thread or prioritize one?
0
votes
1 answer

s3 throttling stream uploading using AWS-iOS-SDK ?

The S3UploadInputStream was deprecated after the release of iOS6. Currently I am using iOS7,so I want to upload throttling stream using S3 AWS-iOS-SDK. What is feasible solution to upload throttling stream.
0
votes
1 answer

Measure network traffic from website for a user

I have a need to determine how much bandwidth my web site generates, preferably per user. I was thinking perhaps get a managed switch that can throttle port speed and looking at some it seems to only allow 10/100/1000mbit settings. Is there anything…
Peter
  • 1
  • 1
0
votes
1 answer

How routers/modems/ISPs handle connections, throttle bandwidth

I did some research on this a while back, but I'm not sure how current routers/modems/ISPs handle this these days and I've been digging around google for a few hours without much luck. It's my understanding that my home wireless router, as well as…
hcexile
  • 446
  • 7
  • 22
0
votes
1 answer

Bandwidth throttling while copying files between computers

I've been trying to make a program to transfer a file with bandwidth throttling (after zipping it) to another computer on the same network. I need to get its bandwidth throttled in order to avoid saturation (Kind of the way Robocopy…
0
votes
1 answer

Uploading Large Amounts of Data from C# Windows Service to Azure Blobs

Can someone please point me in the right direction. I need to create a windows timer service that will upload files in the local file system to Azure blobs. Each file (video) may be anywhere between 2GB and 16GB. Is there a limit on the size? Do…
0
votes
1 answer

bandwidth/QOS test - paid or free

I have to support a video rich web site. Many of the users are on a city/municipal computer and network. When a user reports a performance issue (video slow to load or hanging) we verify server and backbone and multiple endpoints. We are working…
phoenixAZ
  • 429
  • 3
  • 17
0
votes
1 answer

How can you throttle bandwidth usage on the receiving side of a video stream in ActionScript 3.0?

Right now I'm on a project that's moving video streams across RTMP using mostly ActionScript 3.0 (a little bit of 2.0 is used on the server side), and we already have functionality in place to throttle bandwidth usage for these video streams on the…
Panzercrisis
  • 4,590
  • 6
  • 46
  • 85
0
votes
1 answer

Free tool to throttle traffic between local IIS (loopback) and browser on local machine?

I want to do some performance tests on my dev box and want to throttle/slow down the traffic between the local IIS and the browser. I used the free NetBalanacer tool but it doesn't seem to support local traffic (using loopback adapter). Any…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
0
votes
2 answers

Limit upload speed per user with PHP or swfupload

I have a web application written in PHP and Yii that lets users upload images and videos using swfupload. There are two types of users: premium and regular. I want to limit the upload speed for regular users but I cannot find any way that is not…
Virgiliu
  • 3,068
  • 6
  • 32
  • 55
-1
votes
1 answer

Can't throttle IO on cgroup. Says "No such device" when device exists. What could be wrong?

Instructions I followed: https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/blkio-controller.html Script I ran: BYTES_PER_SEC=1048576; MAJOR=259 MINOR=1 echo "device name:" udevadm info -rq name /sys/dev/block/$MAJOR:$MINOR …
Brian Yeh
  • 3,119
  • 3
  • 26
  • 40
-2
votes
1 answer

Limit bandwidth for a cisco switch port

I am using Cisco Catalyst 2960-CG Series switch. I want to limit the bandwidth of my ports to 100 kbps. But not able to do so. Tried doing so by setting up a VLAN but still not able to achieve the desired limit. Can someone help?
-3
votes
1 answer

Is it possible to reverse engineer iproute tc commands?

I have QOS working well in VyOS but need to move to TinyCoreLinux as I'll be sharing this VM as a lab router. VyOS is 400MB vs TCL which is 10MB. Using the "set" commands in VyOS, it generates the tc output as follow: **# tc -p qdisc show dev…
1 2 3
8
9