Intentional creation of latency in IP Forwarding

(lurker@cc.gatech.edu)
Thu, 17 Jun 1999 16:14:47 -0400 (EDT)


Can someone offer some insight on how complicated it would be to
patch the kernel in such a way as to add a (user defineable) delay to IP
forwarding? I am trying to use linux to simulate the natural latency of
certain links (such as satelite links). Normally this is done by using
some sort of packet generator to increase the utilization of a network,
but this is not a true simulation of this type of latency.

I guess first of all, is there some way of doing this now with
existing software? If not, I figure a quick peak in
/proc/sys/net/ipv4/ip_forward_delay to determine the delay and then a
sleep() before the actual code that performs the forwarding ofthe packet
would suffice. Would this be harder than it sounds? Where in the source
would be an appropriate place for the sleep() statement?

Thanks!
Chris

-- 
"(America is) a country where a dual morality, hypocrisy and nonsense have
been allowed to dominate politics and the mass media for years, and this
doesn't make it look so reliable as a world policeman..."
	-The Swedish Newspaper Aftonbladet

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/