Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

up vote 3 down vote accepted

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

$ wget --limit-rate=10k http://www.far-away-site.com/file.dat
$ curl --limit-rate 10K http://www.far-away-site.com/file.dat
$ aria2c --max-download-limit=10K http://www.far-away-site.com/file.dat

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

 
discard

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.