sudomesh / sudowrt-firmware

Scripts to build the sudo mesh OpenWRT firmware.
Other
73 stars 19 forks source link

Traffic prioritization #107

Open jtremback opened 6 years ago

jtremback commented 6 years ago

It came up at a meeting that someone would like to have prioritization so that their private traffic takes priority over mesh traffic. This would also allow the mesh traffic to take 100% of the capacity when they are not using the node.

Here's some of what I know about shaping.

The linux tool tc does shaping. It has a bunch of different shaping tools called "qdiscs". The qdiscs nest inside each other, which is useful but kind of hard to understand.

I've used the DRR qdisc, which lets you prioritize different types of traffic at different rates. However, I've found that DRR doesn't work without setting a parent qdisc with an absolute maximum rate. This makes configuration more involved.

PRIO might be another option. It looks more straightforward because it will set one type of traffic as being of a higher absolute priority than others. This is ideal for our use case and it looks like it is easier to set up than DRR as well.

jhpoelen commented 6 years ago

related to https://github.com/sudomesh/bugs/issues/2 .

muxlux commented 6 years ago

PRIO https://linux.die.net/man/8/tc-prio might be another option. It looks more straightforward because it will set one type of traffic as being of a higher absolute priority than others. This is ideal for our use case and it looks like it is easier to set up than DRR as well.

+1 ~r