Subject: Re: want to randomly drop packets based on percent

From: Stephen Hemminger <[email-masked]>
Date: Mon, 17 Apr 2006 09:46:34 -0700

On Mon, 17 Apr 2006 18:30:51 -0400
George Nychis <[email-masked]> wrote:

> 
> 
> Stephen Hemminger wrote:
> 
> >On Mon, 17 Apr 2006 03:38:33 -0400
> >George Nychis <[email-masked]> wrote:
> >
> >  
> >
> >>Hey,
> >>
> >>I'm using the 2.4.32 kernel with madwifi and iproute2 version 
> >>2-2.6.16-060323.tar.gz
> >>
> >>I wanted to insert artificial packet loss based on a percent so i found:
> >>network emulab qdisc could do it, so i compiled support into the kernel 
> >>and tried:
> >>tc qdisc change dev eth0 root netem loss .1%
             ^^^^^^

You need to do add not change. Add will set the queue discipline
to netem (default is pfifo_fast).  Change is for changing netem parameters
after it is loaded.