To test a performance of multiple parallel file downloads, I had to make sure that a download takes significant amount of time. I could use huge files but that’s not very helpful if you work on a local, 1Gb LAN. So I’ve decided to limit download speeds from my Apache server to my PC. Here we go.
1. Mark packages to be throttled, in my case those originating from port 80
2. Use tc utility to limit traffic for the packages marked as above (handle 100):
3. That’s it, you can monitor/check your rules with:
and finally remove the throttling with: