I want to build a "network simulator", to create scenarios such as delayed packets, lost packets, low bandwidth, or combinations of such. This document has been helpful for everything except the bandwidth: http://linux-net.osdl.org/index.php/Netem There is some documentation here regarding bandwidth: http://luxik.cdi.cz/~devik/qos/htb/ What''s the best documentation to read so as to understand exactly how tc works and to be able to come up with my own list of commands to create the scenarios described above? I have a fairly good understanding of the OS in general, networking, iptables, but I never used the LARTC features until now, so I guess I''m looking for the best starting point. Thank you, -- Florin Andrei http://florin.myip.org/
Florin Andrei wrote:> I want to build a "network simulator", to create scenarios such as > delayed packets, lost packets, low bandwidth, or combinations of such.I guess I should be more specific: The "simulator" is a dual-homed machine running Linux, sitting between a couple test servers and a bunch of workstations: Servers------Simulator--------Workstations Physically, the network is a mix of GigE and FastE. The delay, loss and bandwidth constraints must be applied to all traffic going through the simulator. For now, there''s no need to differentiate between the various protocols, addresses, etc. - everyone is equal. The simulator is a plain router, nothing fancy. At most, it might NAT the addresses of the servers to IP aliases on the interface facing the workstations. -- Florin Andrei http://florin.myip.org/
Hey,> > I want to build a "network simulator", to create scenarios such as > > delayed packets, lost packets, low bandwidth, or combinations of > > such.little offtopic here, but FreeBSD provides DummyNet, which can do what you want. Regards -- Frank Remetter http://www.remetter.de/ GPG-FP: 2B07 B7D8 5C27 AB94 7A37 8B0B DEBE DD89 D68B 7BE6
http://linux-net.osdl.org/index.php/Netem as well ... charles On Wed, 2007-06-27 at 13:42 +0200, Frank Remetter wrote:> Hey, > > > > I want to build a "network simulator", to create scenarios such as > > > delayed packets, lost packets, low bandwidth, or combinations of > > > such. > > little offtopic here, but FreeBSD provides DummyNet, which can do what > you want. > > Regards-- "simplified chinese" is not nearly as easy as they would have you believe ... a superlative oxymoron" --anonymous