Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to simulate low bandwidth (network delay) in localhost ( running on WAMP, Windows XP)?

Tags:

wamp

How to simulate low bandwidth (network delay) in localhost ( running on wamp, windows XP) ? I was looking to set it on the server-side not on the client-side.

like image 223
maan81 Avatar asked Mar 26 '12 05:03

maan81


People also ask

What is latency of a network?

Network latency is the amount of time it takes for a data packet to go from one place to another. Lowering latency is an important part of building a good user experience. More on Performance.


1 Answers

You can do this by using a module for Apache called Bandwidth Mod. Even though this version is for Apache 2.2.14, I am using it on 2.2.21 without any problems.

Grab the bw_mod.dll file from the link above, and put it into the Apache modules folder (usually bin\Apache\Apache2.2.xx\modules in your Wampserver installation folder) and then add this to your httpd.conf file:

LoadModule bw_module modules/mod_bw.dll
BandWidthModule On
ForceBandWidthModule On
BandWidth    all 50000
MinBandWidth all -1

Be sure to check out the readme file for this module as it comes with a lot of options.

Hope this helps !

like image 143
Valentin Flachsel Avatar answered Oct 16 '22 03:10

Valentin Flachsel