* how to do probabilistic packet loss in kernel?
@ 2006-04-16 22:44 George P Nychis
2006-04-17 2:10 ` Ian McDonald
[not found] ` <Pine.LNX.4.61.0604161909310.6147@virgule.wonderfrog.net>
0 siblings, 2 replies; 4+ messages in thread
From: George P Nychis @ 2006-04-16 22:44 UTC (permalink / raw)
To: lartc, netdev
Hi,
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 :)
Thanks!
George
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: how to do probabilistic packet loss in kernel? 2006-04-16 22:44 how to do probabilistic packet loss in kernel? George P Nychis @ 2006-04-17 2:10 ` Ian McDonald [not found] ` <Pine.LNX.4.61.0604161909310.6147@virgule.wonderfrog.net> 1 sibling, 0 replies; 4+ messages in thread From: Ian McDonald @ 2006-04-17 2:10 UTC (permalink / raw) To: George P Nychis; +Cc: lartc, netdev On 4/17/06, George P Nychis <gnychis@cmu.edu> wrote: > Hi, > > 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? > Have a look at: http://linux-net.osdl.org/index.php/Netem -- Ian McDonald Web: http://wand.net.nz/~iam4 Blog: http://imcdnzl.blogspot.com WAND Network Research Group Department of Computer Science University of Waikato New Zealand ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <Pine.LNX.4.61.0604161909310.6147@virgule.wonderfrog.net>]
[parent not found: <4442E319.50309@cmu.edu>]
[parent not found: <Pine.LNX.4.61.0604161933210.6147@virgule.wonderfrog.net>]
[parent not found: <2959.128.237.238.138.1145242426.squirrel@128.237.238.138>]
[parent not found: <Pine.LNX.4.61.0604190741260.6853@virgule.wonderfrog.net>]
* Re: [offlist] Re: [LARTC] how to do probabilistic packet loss in kernel? [not found] ` <Pine.LNX.4.61.0604190741260.6853@virgule.wonderfrog.net> @ 2006-04-19 13:55 ` George Nychis 2006-04-19 19:19 ` Ian McDonald 0 siblings, 1 reply; 4+ messages in thread From: George Nychis @ 2006-04-19 13:55 UTC (permalink / raw) To: Martin A. Brown, lartc, netdev Hey Martin, I was able to do it with netem and its working great now. I've actually moved on to another challenge, I would like to drop packets at the hardware level such as to see rate control. Because when netem drops a packet, TCP responds, however the lower level card will not interact because it never sees the loss. What I want to do is somehow cause the card to send a corrupted packet based on a probability, or not send the packet but make it think that it did. I'm using madwifi and I've found in the code where it does rate control and sends out the data, so i'm hoping to make this happen, but having troubles! So if anyone else has any ideas on how to get rate control interactive packet loss, i'd love it. - George Martin A. Brown wrote: > Hello George, > > Unfortunately, I cannot answer your most recent question. I'm > hoping that Stephen Hemminger can answer your question. He is > subscribed to the LARTC list, is also the author of netem and > seems to be a smart cookie. > > Good luck, > > -Martin > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [offlist] Re: [LARTC] how to do probabilistic packet loss in kernel? 2006-04-19 13:55 ` [offlist] Re: [LARTC] " George Nychis @ 2006-04-19 19:19 ` Ian McDonald 0 siblings, 0 replies; 4+ messages in thread From: Ian McDonald @ 2006-04-19 19:19 UTC (permalink / raw) To: George Nychis; +Cc: Martin A. Brown, lartc, netdev On 4/20/06, George Nychis <gnychis@cmu.edu> wrote: > Hey Martin, > > I was able to do it with netem and its working great now. > > I've actually moved on to another challenge, I would like to drop > packets at the hardware level such as to see rate control. > Have a look at: http://linux-net.osdl.org/index.php/Netem#Rate_control Works well for me... Ian -- Ian McDonald Web: http://wand.net.nz/~iam4 Blog: http://imcdnzl.blogspot.com WAND Network Research Group Department of Computer Science University of Waikato New Zealand ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-19 19:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-16 22:44 how to do probabilistic packet loss in kernel? George P Nychis
2006-04-17 2:10 ` Ian McDonald
[not found] ` <Pine.LNX.4.61.0604161909310.6147@virgule.wonderfrog.net>
[not found] ` <4442E319.50309@cmu.edu>
[not found] ` <Pine.LNX.4.61.0604161933210.6147@virgule.wonderfrog.net>
[not found] ` <2959.128.237.238.138.1145242426.squirrel@128.237.238.138>
[not found] ` <Pine.LNX.4.61.0604190741260.6853@virgule.wonderfrog.net>
2006-04-19 13:55 ` [offlist] Re: [LARTC] " George Nychis
2006-04-19 19:19 ` Ian McDonald
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).