вторник, 14 июля 2009 г.

Эмуляция сети с высокой латентностью

Когда-то нужно было для тестов:

It simulate network latency in Linux using Netem. With the tc utility, we can add a delay for outbound traffic. Since I did it for lo interface, it happens that it works for in/out traffic. I set delay to 100ms (that is more or less a value I found doing it in the internet with my horrible Telefonica speedy connection), using this command:
$ sudo tc qdisc add dev lo root handle 1:0 netem delay 100ms

To later remove the delay, the command is:
$ sudo tc qdisc del dev lo root

Источник