How to set up drr?

Started by Siarap, November 06, 2025, 07:07:15 PM

Previous topic - Next topic
How to properly setup shaper with deflicit round robin sheduler type. This the same setup as fq codel? I want to test it. I dont know do i need to use mask or not. There is no info in official opnsense documentation.

November 06, 2025, 07:16:55 PM #1 Last Edit: November 06, 2025, 07:18:54 PM by Seimus
DRR is not as FQ_Codel. They are totally different.

DRR is more closer to WFQ and its configured in similar way.
If you need a MASK, either on Pipe or Queue depends what you want to achieve.

Quotewf2q+   implements  the   WF2Q+  algorithm,  which is a Weighted
             Fair Queueing algorithm which permits  flows  to    share
             bandwidth   according  to  their    weights.   Note  that
             weights are not priorities; even   a flow with  a   minus-
             cule weight will   never starve.  WF2Q+ has O(log N) per-
             packet processing cost, where N is the number of   flows,
             and  is the default algorithm used by previous versions
             dummynet's queues.
 rr        implements the Deficit Round Robin algorithm, which has
             O(1) processing costs (roughly, 100-150ns  per  packet)
             and  permits bandwidth allocation according to weights,
             but with   poor service guarantees.
qfq      implements the QFQ algorithm,  which  is    a  very  fast
             variant   of  WF2Q+, with   similar   service   guarantees and
             O(1) processing costs (roughly, 200-250ns per packet).

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD

I dontknow whats the difference between mask on pipe and mask on queue when using round robin. I dont see any difference. Probably ive set something wrong.

There is no difference in behavior for MASK when using different schedulers.

The MASK behavior difference is depending on if its used on PIPE (scheduler) or QUEUE. Its explained in the OPNsense docs as well in FreeBSD docs.

Regards,
S.
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | L 790 512G - VM HA(SOON)
N100   - i226-V | Crucial 16G  4800 DDR5 | S 980 500G - PROD