Link - Limiting bandwidth (throttling) with trickle
Untested by me, but seems like something that could be used for testing different connection speeds, i.e. to throttle connections a.k.a. bandwidth shaping (just putting in synonyms so I can find this blog post again if and when I need it).
Although this is an old question, I came across this when looking for an answer to the same question. The OS and interface limits are already addressed in an earlier answer, so here is a way to set up application specific limits. Use an application called trickle. So do sudo apt-get install trickle. You can limit upload/download for a specific app by running trickle -u (upload limit in KB/s) -d (download limit in KB/s) application
Read more: networking - How I can limit Download/Upload bandwidth? - Ask Ubuntu