Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Jonathan Morton <chromatix99@gmail.com>
To: Georgios Amanakis <gamanakis@gmail.com>
Cc: "Toke Høiland-Jørgensen" <toke@toke.dk>, Cake@lists.bufferbloat.net
Subject: Re: [Cake] host hashes and NAT neglected in src/dst-host mode
Date: Mon, 7 Jan 2019 10:20:43 +0200	[thread overview]
Message-ID: <2EEF29A5-9038-478E-B23F-9C5B64A09B81@gmail.com> (raw)
In-Reply-To: <008901d4a63d$7d054420$770fcc60$@gmail.com>

> On 7 Jan, 2019, at 6:00 am, <gamanakis@gmail.com> <gamanakis@gmail.com> wrote:
> 
> 633         if ((flow_override || !(flow_mode & CAKE_FLOW_FLOWS)) &&
> 634             (host_override || !(flow_mode & CAKE_FLOW_HOSTS)))
> 635                 goto skip_hash;

These lines require careful reading.

First, the "override" flags indicate whether an external filter has changed the flow or host hashes, meaning we should not then update them ourselves.

Secondly, the logic is "if we *don't* need the flow hash *and* we *don't* need the host hash, then skip the complicated hash code".

In the dual and triple modes, both the flow and host hashes are required, and bit-level examination of the codes used to identify them should reflect that.  In "flows" and "host" modes, only one or the other are needed, but they will still disable the above check (unless an external filter was used).

In short, only "flowblind" mode or the use of external filters are capable of skipping that block.

 - Jonathan Morton


  reply	other threads:[~2019-01-07  8:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-07  4:00 gamanakis
2019-01-07  8:20 ` Jonathan Morton [this message]
2019-01-07 15:11   ` Georgios Amanakis

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/cake.lists.bufferbloat.net/

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

  git send-email \
    --in-reply-to=2EEF29A5-9038-478E-B23F-9C5B64A09B81@gmail.com \
    --to=chromatix99@gmail.com \
    --cc=Cake@lists.bufferbloat.net \
    --cc=gamanakis@gmail.com \
    --cc=toke@toke.dk \
    /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