CoDel AQM discussions
 help / color / mirror / Atom feed
From: Evan Mesterhazy <evan.mesterhazy@gmail.com>
To: Dave Taht <dave.taht@gmail.com>
Cc: codel@lists.bufferbloat.net
Subject: Re: [Codel] Do codel or fq-codel need to know the link bandwidth?
Date: Sat, 7 Dec 2024 17:57:36 -0500	[thread overview]
Message-ID: <CAN2qZSPAZQiQYoh8pjeVdnK__4pioEufpL+zvUmGbWCbMmfEEw@mail.gmail.com> (raw)
In-Reply-To: <CAA93jw6PPmtxwdw8CpZxoGZhETSS1EeXbxJFYKLtopxBzRWv8A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3516 bytes --]

Thanks Dave, your reply is very informative. I definitely understand that
FreeBSD is somewhat less sophisticated than Linux when it comes to this
since I've read through a few of the bugs and other messages you've posted
regarding its implementation. However the Unifi routers run on Linux, and
they still require the user to specify the ISP's service bandwidth. I think
this paragraph from your reply may be the crux of it:

> Further most ISPs use a non-native rate for their customer interfaces,
> either using a policer or FIFO shaper and thus the rise of combatting
> that with shaping via fq_codel to slightly below the ISPs' rate to
> move the bottleneck to your own hardware.

If the router is able to keep pushing bytes over the ISP's link even in
excess of the allowed bandwidth, then the local router's packets probably
aren't sitting in their queues long enough to be dropped by fq-codel. It
sounds like proper traffic shaping needs to happen wherever the bottleneck
is (I suppose this should have been obvious to me), which in the case of a
300 Mbp/s connection over GPON is somewhere at the ISP. I guess if the ISP
does proper traffic shaping the end user shouldn't need to do anything.

Assuming I didn't say anything inaccurate in my reply, I think I understand
why setting a bandwidth limit is necessary to make fq-codel work properly
on a router with a less than line speed connection from the ISP.

Thank you!

On Sat, Dec 7, 2024 at 5:32 PM Dave Taht <dave.taht@gmail.com> wrote:

> "variable bandwidth" requires that the queuing below fq_codel be
> minimal. For example 5g has enormous device buffers all over the place
> which we haven't found an answer to aside from nagging the 5g folk to
> fix it, and "cake-autorate"
>
> Linux WiFi had similar problems, fixed now.
>
> https://www.cs.kau.se/tohojo/airtime-fairness/
>
>
>
> On Sat, Dec 7, 2024 at 2:25 PM Dave Taht <dave.taht@gmail.com> wrote:
> >
> > Concurrent with the rise of codel was the bql algorithm in linux, and
> > the combination of the two led to sufficient backpressure for it to
> > operate at the native rate of the interface. (AQL does a similar job
> > for wifi). This keeps queuing in the device ring down to what can be
> > serviced in a single interrupt.
> >
> > "Bufferbloat Systematic Analysis":
> > https://d1wqtxts1xzle7.cloudfront.net/109517412/its2014_bb-libre.pdf
> > Byte queue limits: https://lwn.net/Articles/469652/
> >
> > BSD has not evolved an equivalent mechanism. Theoretically you could
> > run it natively but it would have a lot of jitter from a per-packet
> > device ring.
> >
> > Further most ISPs use a non-native rate for their customer interfaces,
> > either using a policer or FIFO shaper and thus the rise of combatting
> > that with shaping via fq_codel to slightly below the ISPs' rate to
> > move the bottleneck to your own hardware.
> >
> > We designed CAKE to use a deficit based shaper to be (roughly) the
> > inverse of a token bucket shaper to get very close to the ISP rate yet
> > shape well
> >
> > LibreQos (Preseem, Paraqum, Bequant) give ISPs a fq_codel or cake based
> shaper.
> > The rightest answer was to have the isp correctly shape the download,
> > and the uplink device shape the upload.
> >
> > The bufferbloat project has never had the resources to tackle BSD.
> >
> > These days all of Linux (and OSX) run fq_codel natively. The FIFO is
> dead.
>
>
>
> --
> Dave Täht CSO, LibreQos
>

[-- Attachment #2: Type: text/html, Size: 5006 bytes --]

  reply	other threads:[~2024-12-07 22:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-07 21:27 Evan Mesterhazy
2024-12-07 22:25 ` Dave Taht
2024-12-07 22:31   ` Dave Taht
2024-12-07 22:57     ` Evan Mesterhazy [this message]
2024-12-08  2:53 ` 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/codel.lists.bufferbloat.net/

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

  git send-email \
    --in-reply-to=CAN2qZSPAZQiQYoh8pjeVdnK__4pioEufpL+zvUmGbWCbMmfEEw@mail.gmail.com \
    --to=evan.mesterhazy@gmail.com \
    --cc=codel@lists.bufferbloat.net \
    --cc=dave.taht@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