netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: George Nychis <gnychis@cmu.edu>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: want to randomly drop packets based on percent
Date: Mon, 17 Apr 2006 19:04:33 -0400	[thread overview]
Message-ID: <44441F01.5010002@cmu.edu> (raw)
In-Reply-To: <20060417103211.24115952@localhost.localdomain>



Stephen Hemminger wrote:

>O
>  
>
>>>>>>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.
>>>
>>> 
>>>
>>>      
>>>
>>bahhh I see... the wiki has "change" instead of add.  Now i'm running 
>>into another problem, I have an XCP qdisc that I have already added via:
>>tc qdisc add dev ath0 root xcp capacity 54Mbit size 500
>>
>>    
>>
>
>Wiki reads as a set of examples.  First uses, "add" after that "change".
>
>
>  
>
>>therefore when I also try to incorperate loss:
>>tcq disc add dev ath0 root netem loss .1%
>>
>>I get:
>>RTNETLINK answers: File exists
>>
>>Is it possible to use two qdiscs on the same interface?
>>
>>    
>>
>
>No, but netem is "classful" so you can put xcp inside netem.
>Look at the token bucket example on the wiki.
>
>  
>
Okay I'm slightly confused... I would like to have the traffic  traverse 
both the XCP qdisc and the netem qdisc... looking through the wiki it 
shows me how to classify two sets of traffic, but how do i push all 
traffic through both?

  reply	other threads:[~2006-04-17 23:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-17  7:38 want to randomly drop packets based on percent George Nychis
2006-04-17 14:21 ` Jan Engelhardt
2006-04-17 16:19 ` Stephen Hemminger
2006-04-17 22:30   ` George Nychis
2006-04-17 16:46     ` Stephen Hemminger
2006-04-17 17:05       ` George Nychis
2006-04-17 17:32         ` Stephen Hemminger
2006-04-17 23:04           ` George Nychis [this message]
2006-04-17 23:08           ` George Nychis
     [not found] <62wv1-U5-1@gated-at.bofh.it>
2006-04-17 10:45 ` Bodo Eggert

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=44441F01.5010002@cmu.edu \
    --to=gnychis@cmu.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@osdl.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 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).