On 04/12/2011 12:37 PM, Andrew McNabb wrote:
> I think the magic words you're looking for are netem and tc:
> http://www.linuxfoundation.org/collaborate/workgroups/networking/netem
>
> If you're doing it all on one machine, you have to be careful about
> routing.  If you have two ports, 192.168.1.1 and 192.168.2.1 linked by a
> tunnel, and you send a packet from 192.168.2.1 to 192.168.1.1, the
> kernel gets clever and realizes that it doesn't need to go through the
> tunnel.  If I remember correctly, Google contributed a kernel patch that
> lets you disable this optimization.

I've been using tc/netem to do things *like* this, but it has a few 
drawbacks:

1. tc requires root access
2. tc is sophisticated (does a *lot* more than I want)
3. tc has a tricky command line interface

I'm thinking this might be a good stand-alone executable that would be 
well suited to Google Go.

Will report more later if I can.

--Dave

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to