Re: simulate delays and packet drops in tcp /udp

From: Andrew Morton (akpm@zip.com.au)
Date: Tue Sep 03 2002 - 15:30:14 EST


Joe Knowling wrote:
>
> I'd like to be able to simulate network congestion and
> delays on a tcp / udp connection on a single host -
> essentially connecting via the loopback interface.
> Before
> going on to hack some kind of delay /drop layer I
> thought
> I'd check to see if there already is something
> available.
>

I did a thing which does that.

http://www.zip.com.au/~akpm/packet-delay.tar.gz

It uses the tun/tap device and some rather funky policy-routing
rules to route packets up through a userspace application. The
userspace app performs the delay and bandwidth limitation then feeds
the packets back into the kernel. It doesn't perform packet loss, but
that'll be easy.

The challenge will be working out how to make it go :( It was a
couple of years ago.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:01 EST