General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Jonathan Morton <chromatix99@gmail.com>
To: xnor <xnoreq@gmail.com>
Cc: "bloat@lists.bufferbloat.net" <bloat@lists.bufferbloat.net>
Subject: Re: [Bloat] Inaccurate rates with HTB/HFSC+fq_codel on router due to VLAN?
Date: Sat, 18 Mar 2017 17:46:54 +0200	[thread overview]
Message-ID: <E1BA1CD3-FDC0-498E-B328-BA51642FF7EF@gmail.com> (raw)
In-Reply-To: <em2d8e766f-0541-4b1f-9442-924966877788@gaming>


> On 18 Mar, 2017, at 17:34, xnor <xnoreq@gmail.com> wrote:
> 
> If I understood it correctly, and very simplified speaking, right now a queue is filled with link speed and drained by a configured bandwidth. As the pressure in a queue rises, packets will be dropped/marked to reduce pressure to some tolerable level.
> 
> Why not measure ingress rate (averaged over a window related to the configured rtt) and increase pressure if the ingress rate surpasses the configured bandwidth?

If the ingress rate is higher than the shaped rate, the queue will fill, and this will automatically trigger higher AQM activity.  There is no need to actually measure ingress rate to achieve this, and that’s not what autorate_ingress is meant for.

What you should be looking for is the number of dropped and marked packets.

Marked packets (which appear due to AQM activity on ECN-capable traffic) continue through to the receiver and inform it directly of congestion, which is then communicated to the sender, which in turn is supposed to reduce its congestion window to suit.

Dropped packets represent the *difference* between the ingress rate and the rate actually reaching the receiver, which is informed about congestion by detecting these packets’ *absence*.  It must then tell the sender to re-send those packets, resulting in *more* ingress traffic for a given goodput.

A useful experiment would be to reduce your shaped rate until you see an effect on  goodput (measured at the receiver) and ingress rate.  For example, configure for 5Mbps down and 1Mbps up, and see what you actually get.

On some hardware we have seen a perplexing doubling of the configured shaped rate.  This is not a bug in the shaper, but may be due to bad timer hardware which runs faster than realtime.  In this case you might see *no* marking and dropping when configured for the full rate intended.

 - Jonathan Morton


  reply	other threads:[~2017-03-18 15:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-16 22:14 xnor
     [not found] ` <57A046A6-C0F2-4209-93E5-CA728F4C64EE@gmx.de>
2017-03-17 19:15   ` xnor
2017-03-17 19:22     ` Jonathan Morton
2017-03-17 20:11     ` Sebastian Moeller
2017-03-17 21:15 ` Eric Dumazet
2017-03-18 15:34   ` xnor
2017-03-18 15:46     ` Jonathan Morton [this message]
2017-03-24 18:18       ` xnor
2017-03-25  0:10         ` Jonathan Morton

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

  List information: https://lists.bufferbloat.net/postorius/lists/bloat.lists.bufferbloat.net/

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

  git send-email \
    --in-reply-to=E1BA1CD3-FDC0-498E-B328-BA51642FF7EF@gmail.com \
    --to=chromatix99@gmail.com \
    --cc=bloat@lists.bufferbloat.net \
    --cc=xnoreq@gmail.com \
    /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