Thor Lancelot Simon <tls%panix.com@localhost> writes: > On Wed, Aug 14, 2013 at 06:43:23PM +0200, Jean-Yves Migeon wrote: >> Hi list! >> >> I am looking for a library or set of tools I can integrate in a >> project to "simulate" a typical network behavior: latency(ies), >> packet lossage, out of order sequence, etc. > > How can you do this using the public system call interface? TCP will > obscure many or even all of the issues you describe above... So there are two separate issues: a socket-level tool to represent the kind of delivery timing that TCP would have given packet-level impairments. (This sounds hard, and I would not be inclined to do it.) a packet-level tool like dummynet from FreeBSD, but somehow hooked into tap/tun/etc. or via rump, so that it can appear to be a less-than-first-class wire I'd be inclined to make something that can be a virtual network between two rumps, with tunable impairment. Perhaps dummynet code can be ported, but it doesn't seem that complicated.
Description: PGP signature