[wellylug] Latency
jumbophut
jumbophut at gmail.com
Sun Jun 19 13:07:06 NZST 2005
On 6/18/05, Rob Giltrap wrote:
> I want to do some testing on how network latency affects a Linux
> application I have.
>
> Anyone have any easy ways to be able to add in some addtional latency in
> a controlled manner?
>
This looks promising:
<http://www.cs.princeton.edu/~nakao/libipq.htm>
I've never used it, but how it _might_ work is:
1) Replace the ACCEPT target in the rules in your iptables
INPUT/OUTPUT chains with the QUEUE target
2) Use the sample code in the man page, adding in a useless loop which
runs enough times to inject the number of milliseconds you want (in
the block following 'case IPQM_PACKET:').
Somebody's probably done it -- or something very similar -- before.
Google is your friend.
--
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')
More information about the wellylug
mailing list