On 04/12/2011 11:57 AM, Dave Smith wrote: > I am looking for a tool to help me simulate a badly behaved TCP/IP > network connection. I want to simulate a network with high latency, low > bandwidth, frequent bit errors, and occasional drop-outs. This will help > me test some software I'm writing.
In the past I have literally spent man-months building user-space programs that would simulate network behavior. Today, there is a simple approach that would have saved me most of that effort: full virtualization. With KVM or VirtualBox or whatever, you can build a virtual network and use all the kernel-space networking features to route, queue, drop, and mangle packets with ease. Look at it this way: where can you find the best open source Internet packet processing software? I say it's in the kernel (Linux or BSD). It would be nice if someone were to copy the packet processing from the kernel into some user-space daemon, but until that happens, full virtualization is a good way to treat a kernel as a user-space program. Shane /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
