All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: HTB + netem - weird be haviour of a queue size
Date: Fri, 12 Feb 2016 23:00:52 +0000	[thread overview]
Message-ID: <56BE6424.6070307@gmail.com> (raw)
In-Reply-To: <CAPTuX4p1ejqiV+PFEDOKNFAx4RrE4M=0-R9oJ2j-O-ASuZ6VLA@mail.gmail.com>

Ewa Janczukowicz wrote:
> Ok, I have just realized by doing ifconfig that the queue length of
> my bridge (br0) was 0. So I suppose this was causing the problem.
>
> However I still do not know whant happens it I use htb and netem in
> the above configuration and e.g. I change the queue length of htb to
> 1000. Will it be applicable to both netem and htb queueus? Or will I
> have one two queues of 1000, on after another.
>
> Thank you in advance.

Not sure about that specifically.

Maybe you don't even need htb as netem now has a rate option which will
be useful to emulate bitrate latency and wasn't there when I tried this
around a decade ago.

I am not sure whether or not netem will work with stab (which lets you
accurately add ATM/PPP overheads).

With htb you can specify child qdiscs anyway to control length, I don't
know about netem - if you can't find a way you could try changing txqlen
on br0/eth0 with ip link set ...

If bridging doesn't work out for some reason you can double queue using ifb.



> On Thu, Feb 11, 2016 at 11:34 AM, Ewa Janczukowicz
> <janczukowicz.ewa@gmail.com> wrote:
>> Hello,
>>
>> I want to emulate ADSL link behaviour. For that I decided to use
>> netem and configure its rate and delay parameters.
>>
>> Additionally I test different queuing configurations e.g. htb.
>> Since if I use htb, I can only configure netem on leaves, I decided
>> to create a virtual bridge. As a results I have the following
>> configuration: - I have virtual bridge (br0) and I attached the
>> phycical inerface to it. - On virtual bridge I configure htb - On
>> physical interface I configure netem.
>>
>> However using htb and netem changes the queue size.
>>
>> If I only use htb, the queue size is 1000. The same happens if I
>> only use netem. However when I use both of them, the queue size
>> becomes much shorter.
>>
>> Is there any way I can check what queue size is configured? I know
>> I can overwrite this configuration, however finally I am not sure
>> how netem and htb interact and what queue I configure.
>>
>> Thank you in advance for any help.
> -- To unsubscribe from this list: send the line "unsubscribe lartc"
> in the body of a message to majordomo@vger.kernel.org More majordomo
> info at  http://vger.kernel.org/majordomo-info.html
>


  parent reply	other threads:[~2016-02-12 23:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11 10:34 HTB + netem - weird be haviour of a queue size Ewa Janczukowicz
2016-02-11 13:42 ` Ewa Janczukowicz
2016-02-12 23:00 ` Andy Furniss [this message]
2016-03-11  8:59 ` Ewa Janczukowicz

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=56BE6424.6070307@gmail.com \
    --to=adf.lists@gmail.com \
    --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.