All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Nychis <gnychis@cmu.edu>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] how to do probabilistic packet loss in kernel?
Date: Mon, 17 Apr 2006 00:36:41 +0000	[thread overview]
Message-ID: <4442E319.50309@cmu.edu> (raw)
In-Reply-To: <4902.128.2.140.224.1145227461.squirrel@128.2.140.224>

Thanks Martin and Roman.

I will definately look into this.

I have a question for you though... in terms of adding loss like this, 
this will not interact with hardware layer rate control of wireless 
cards right?

For instance... dropping from 54Mbit to 11Mbit on an 802.11g card when 
loss certain loss begins occuring


Martin A. Brown wrote:
> Greetings George,
> 
>  : I am using iproute2 to setup fowarding, adding routes like "ip 
>  : route add 192.168.1.3 via 192.168.1.2"
>  : 
>  : I was wondering where in the kernel I can insert probabilistic 
>  : packet loss only for forwarded packets?  So that for instance I 
>  : can drop 5% of all forwarded packets?
>  : 
>  : I don't need help with the actual code, just need help finding 
>  : where to insert this code :)
> 
> I believe you are looking for the netem qdisc [0].  Here's just a 
> snippet from Stephen Hemminger's wiki page to help you imagine how 
> you could use netem to introduce probabilistic packet loss.
> 
>    # tc qdisc add dev eth0 parent 1:3 handle 30: netem \
>        delay 200ms 10ms distribution normal
> 
> Good luck,
> 
> -Martin
> 
>  [0] http://linux-net.osdl.org/index.php/Netem
> 
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  parent reply	other threads:[~2006-04-17  0:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-16 22:44 [LARTC] how to do probabilistic packet loss in kernel? George P Nychis
2006-04-16 22:44 ` George P Nychis
2006-04-17  0:13 ` [LARTC] " Martin A. Brown
2006-04-17  0:36 ` George Nychis [this message]
2006-04-17  1:21 ` Martin A. Brown
2006-04-17  2:10 ` Ian McDonald
2006-04-17  2:53 ` [LARTC] " George P Nychis
     [not found]   ` <Pine.LNX.4.61.0604190741260.6853@virgule.wonderfrog.net>
2006-04-19 13:55     ` [offlist] Re: [LARTC] how to do probabilistic packet loss in George Nychis
2006-04-19 13:55       ` [offlist] Re: [LARTC] how to do probabilistic packet loss in kernel? George Nychis
2006-04-19 19:19       ` Ian McDonald
2006-04-17  3:12 ` George P Nychis
2006-04-17  3:42 ` George P Nychis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4442E319.50309@cmu.edu \
    --to=gnychis@cmu.edu \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.