How does cake-wg-pbr work to not degrade VPN performance with SQM/QoS?

Package was written by me not by @richb-hanover-priv! But as on GitHub I wasn't able to follow the question.

Maybe someone else on this forum can though. @moeller0 are you able to interpret the question above?

Here is what I wrote on GitHub:

Hmm, I can't follow your nomenclature. Basically if you just use default SQM, cake cannot distinguish the encrypted flows as all encrypted flows are bundled into one stream.

cake-wg-pbr operates as follows: for download, cake-wg-pbr combines the non-VPN flows (from wan) with the VPN flows in their unencrypted state (from the VPN interface); and for upload it relies upon skb->hash preservation, thereby to ensure that cake can regulate everything properly notwithstanding the mixture of encrypted and unencrypted flows.

For download, see:

For upload, see:

See also:

https://lists.bufferbloat.net/pipermail/cake/2020-May/005257.html