19
16
I'd like to simulate a high-latency, low-bandwidth network connection on my Linux machine.
Limiting bandwidth has been discussed before, e.g. here, but I can't find any posts which address limiting both bandwidth and latency.
I can get either high latency or low bandwidth using tc
. But I haven't been able to combine these into a single connection. In particular, the example rate control script here doesn't work for me:
# tc qdisc add dev lo root handle 1:0 netem delay 100ms
# tc qdisc add dev lo parent 1:1 handle 10: tbf rate 256kbit buffer 1600 limit 3000
RTNETLINK answers: Operation not supported
How can I create a low-bandwidth, high-latency connection, using tc
or any other readily-available tool?
1have you tried combining approaches from your links, eg. use tc for latency and trickle for bandwidth? (It's uglier than just using tc, but might still work;) – Andy – 2010-05-31T05:35:33.013
That's a good idea (and, indeed, trickle will even add latency), but unfortunately Firefox doesn't load under trickle, and that's what I need to test. – Justin L. – 2010-05-31T19:01:44.240