Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Running with ubuntu.

I have clients that has limited transfer rate. I need to test my server to see in how much clinets with limited transfer rate it support?

Is there any utility that allow me to download file from server and limit the download rate?

The traffic is tcp.

Thnak you

share|improve this question
up vote 3 down vote accepted

Both wget, cURL and aria2 support a download speed limit:

$ wget --limit-rate=10k
$ curl --limit-rate 10K
$ aria2c --max-download-limit=10K

You could also limit the speed on the Linux client to test with other download tools that doesn't support speed-limiting by using tc, the traffic conditioner. From the lartc guide:

# clean existing down- and uplink qdiscs, hide errors
tc qdisc del dev eth0 root    2> /dev/null > /dev/null
tc qdisc del dev eth0 ingress 2> /dev/null > /dev/null
# install root CBQ
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit
# shape everything at 10kbps
tc class add dev $DEV parent 1: classid 1:1 cbq rate 10kbit allot 1500 prio 5 bounded isolated
share|improve this answer
Can i open x instance of one of the above ? something like wget 10 .... , when 10 means 10 wget in parallel? – Avihai Marchiano Aug 12 '12 at 15:26
@user1495181: yes. Use a loop in whatever script language. – petrus Aug 12 '12 at 15:39

for testing throughput, I recommend iperf - for TCP it will establish an appropriate transfer quantity - UDP does however require you to give it a target link bandwidth due to its stateless nature.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.