Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Jan Rovner <jan.rovner@diadema.cz>
To: "cake@lists.bufferbloat.net" <cake@lists.bufferbloat.net>
Subject: [Cake] Cake - flow (or host) weight request - how to implement
Date: Wed, 27 Sep 2023 17:48:06 +0000	[thread overview]
Message-ID: <e6464f0d9e7e4c91b26f2d08d72b1a0c@diadema.cz> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1610 bytes --]

Hello,

I am trying to experiment with sch_cake.c, my goal is to ad-hoc prioritize / deprioritize traffic served to specified a host(s). The prioritization would be controlled by an external system and it should handle well the situation where a host has active flow(s).

I've experimented with traffic shifting from tin to tin via fwmarks, it worked somehow, but there are issues related to losing flow's (cobalt) state.

Could you please propose a way how this could be done?

Each flow refences cake_host_table, which could be in theory modified (for example) like

struct cake_host {
    u32 srchost_tag;
    u32 dsthost_tag;
    u16 srchost_bulk_flow_count;
    u16 dsthost_bulk_flow_count;

    ??? srchost_weight;  // default value = 1.0
    ??? dsthost_weight;  // default value = 1.0
};

The weight fields could be then used in cobalt rate scheduling... weight could be an integer, enum, or decimal - but anything that could distinguish the traffic.

Thank you for any ideas.


Jan Rovner
Ing. Jan Rovner, Ph.D., jednatel společnosti

[cid:image001.jpg@01D9F17A.0DAF59C0]
e-mail:   internet@diadema.cz<mailto:internet@diadema.cz>
www:     http://internet.diadema.cz<http://internet.diadema.cz/>
telefon:  +420 377 421 863, +420 603 484 742




Diadema Internet s.r.o.
zapsaná v obchodním rejstříku vedeném u Krajského soudu v Plzni, oddíl C, vložka 24294
se sídlem Morseova 1126/5, 301 00 Plzeň

IČO: 29093961,  DIČ CZ29093961



Korespondenční a dodací adresa
Diadema Internet s.r.o.
Provozovna Plzeň-Lochotín
Alej Svobody 56, 323 00 Plzeň







[-- Attachment #1.2: Type: text/html, Size: 12544 bytes --]

[-- Attachment #2: image001.jpg --]
[-- Type: image/jpeg, Size: 2206 bytes --]

             reply	other threads:[~2023-09-27 17:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-27 17:48 Jan Rovner [this message]
2023-09-27 20:27 ` Stephen Hemminger
2023-09-27 20:44   ` Sebastian Moeller

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=e6464f0d9e7e4c91b26f2d08d72b1a0c@diadema.cz \
    --to=jan.rovner@diadema.cz \
    --cc=cake@lists.bufferbloat.net \
    /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