[Cake] Cake - flow (or host) weight request - how to implement

Jan Rovner jan.rovner at diadema.cz
Wed Sep 27 13:48:06 EDT 2023


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 at 01D9F17A.0DAF59C0]
e-mail:   internet at diadema.cz<mailto:internet at 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ň

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.bufferbloat.net/pipermail/cake/attachments/20230927/9fe8f49d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2206 bytes
Desc: image001.jpg
URL: <https://lists.bufferbloat.net/pipermail/cake/attachments/20230927/9fe8f49d/attachment.jpg>

More information about the Cake mailing list