From: kevin-lartc@horizon.com Date: Tue, 11 Oct 2005 14:14:29 +0000 Subject: Re: [LARTC] How to do network emulation on incoming traffic? Message-Id: <20051011141429.15369.qmail@science.horizon.com> List-Id: References: <20051011110703.25409.qmail@science.horizon.com> In-Reply-To: <20051011110703.25409.qmail@science.horizon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > Somebody will probaby correct me quickly here but I dont think there is > a way of creating jitter and latency and packet loss easily in linux. Er... excuse me? The network emulator module ("netem") does it very nicely. The problem is, it's a traffic control queue discipline, and thus only works on egress traffic. Actually, after having found some more docs, the whole business of nested qdiscs is starting to make more sense. A classful qdisc just chooses among a number of sub-queues when a "dequeue" request from the device for more data to send arrives. The result is a tree of qdiscs, with classless qdiscs at the leaves. But this means that it makes no sense to have a child of a classless qdisc. And yet the netem examples are full of such things, e.g.: ttp://linux-net.osdl.org/index.php/Netem#Rate_control When does netem ever pull from the "child" queue? _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc