WordPress Hosting
Free Photos
WordPress Themes

Linux: Simulating slow internet connection

#Setup the rate control and delay sudo tc qdisc add dev lo root handle 1: htb default 12 sudo tc class add dev lo parent 1:1 classid 1:12 htb rate 33kbps ceil 56kbps sudo tc qdisc add dev lo parent 1:12 netem delay 400ms #Remove the rate control/delay sudo tc qdisc del dev lo root #To see what is configured on an interface, do this sudo tc -s qdisc ls dev lo #Replace lo with eth0/wlan0 to limit speed at lan
I got this script for simulating slow network connection in order to test my work as it was running through internet using linux tc utility (traffic control center).

It was tested using "lo" (local test) but it can be set up for other interfaces (ethX/wlanX/etc).

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.