Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been reading up on trickled which can be used to throttle both upload and download bandwidth:

# Throttle download and upload bandwidths to 100KB.
trickled -d 100 -u 100

But none of the articles/tutorials/examples I've read show the command to tell trickled to stop and release all bandwidth back to 100%. How can I do this? Thanks in advance!

share|improve this question

This is something I'd like to know, too. Depending on your case this might be a workaround.

Some time ago I needed to simulate low bandwidth and/or high latency to a remote server. I came up with this script:

tc qdisc del dev $iface root
tc qdisc add dev $iface root handle 1: prio
tc qdisc add dev $iface parent 1:3 handle 30: tbf rate $rate buffer 1600 latency 50ms
tc qdisc add dev $iface parent 30:1 handle 31: netem  delay $delay
tc filter add dev $iface protocol ip parent 1:0 prio 3 u32   match ip dport $destPort 0xffff   match ip dst $destHost   flowid 1:3

Here you can adjust the bandwidth and latency to a specific port on a specific host. You need to be root to type these commands. It seems to me that the destination host needs to be an ip address. You should also check the interface name: it's probably wlan0 if you use wireless but it could be eth0 if you have a wired connection. The delay parameter here is zero so no latency by default (it was for my testing purpose but you shouldn't need it, I think). Also note that the unit here is kilobits/s, not kilobytes/s like trickle uses. To convert kilobytes to kilobits, multiply by eight.

To remove the bandwidth limit, type:

tc qdisc del dev $iface root
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .