OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: via on October 11, 2024, 02:44:55 PM

Title: Traffic Shaper - Rule correct?
Post by: via on October 11, 2024, 02:44:55 PM
I've used the guide at https://maltechx.de/en/2021/03/opnsense-setup-traffic-shaping-and-reduce-bufferbloat/ as starting point with modification of weight for queues set at 50.

I've then duplicated these queues for "high priority" with a weight of 100 and created two additional rules for VOIP base (pic attached).

However status shows everything still using normal download queue. (pic attached)

I am guessing I've done something incorrect in rules but only addition I've added was VOIP IPs in Source/Destination which in my head are right way round for Upload/Download.

Can anyone offer any pointers?
Title: Re: Traffic Shaper - Rule correct?
Post by: via on October 11, 2024, 03:17:17 PM
My stupidity... missed sequence option - changed those so high priority first and appears to be working as expected now.
Title: Re: Traffic Shaper - Rule correct?
Post by: xPliZit_xs on October 13, 2024, 02:44:52 AM
Your link to the shaper rules was pretty helpful to get mine sorted out !  ;) ;)
Thanks!
Title: Re: Traffic Shaper - Rule correct?
Post by: fabianodelg on October 13, 2024, 02:58:41 PM
Quote from: via on October 11, 2024, 02:44:55 PM

I've then duplicated these queues for "high priority" with a weight of 100 and created two additional rules for VOIP base (pic attached).

Can anyone offer any pointers?

I'm sorry to disappoint but there's no such a thing of 'high priority queues' if you select fq_codel as scheduler, in your pipes. Fq_codel is all about sharing bandwidth. The priority field is simply ignored.

If you want to prioritize traffic using weights, you should use WFQ+ or QFQ (this latter is the best IMHO) as scheduler (remember to disable completely ECN from both queues and pipes). If you do that, you can start using the 'weight' field in your queues

Attached, an example of my queues where I have a number of different classes for Download and Upload (Platinum being the highest priority and Copper the lowest); the Platinum is for DNS, Ping and ACK, the rest of the classes is for my Work devices, PC and laptops, Media devices, iphone, tablets, IOT, CCTV and Lab test. Doing so, I'm making sure that the most important devices (ie Work) are never affected by whatever the other devices are doing (up to a certain point, as WFQ+ and QFQ will never 'starve' a queue for bandwidth in favour of another queue).


Title: Re: Traffic Shaper - Rule correct?
Post by: via on October 17, 2024, 04:56:39 PM
Cheers for that, was totally unaware. Never touched shaping before so went with fq_codel as that was what tutorial used lol

Will have a dig in further and try a different queue type. Can you mix and match? E.g. leaving fq_codel for normal traffic and setup different pipe and queues for VOIP? As there is a difference since using this for bufferbloat.

VOIP is very low bandwidth anyway and on 900 up/down but just want to make sure it is prioritised over everything else as that is my business phone line so want to make sure it runs as good as it can, nothing more off-putting than a bad quality line when trying to speak to a customer.

Otherwise happy for the rest to fight for the remaining bandwidth (well for now at least, may tweak it some more in future).
Title: Re: Traffic Shaper - Rule correct?
Post by: fabianodelg on October 18, 2024, 11:04:32 AM
Quote from: via on October 17, 2024, 04:56:39 PM
Cheers for that, was totally unaware. Never touched shaping before so went with fq_codel as that was what tutorial used lol

Will have a dig in further and try a different queue type. Can you mix and match? E.g. leaving fq_codel for normal traffic and setup different pipe and queues for VOIP? As there is a difference since using this for bufferbloat.

VOIP is very low bandwidth anyway and on 900 up/down but just want to make sure it is prioritised over everything else as that is my business phone line so want to make sure it runs as good as it can, nothing more off-putting than a bad quality line when trying to speak to a customer.


Absolutely yes, you can mix and match in a number of ways... here's a couple if ideas:

Idea 1:

Idea 2:

Traffic Shaping is a very interesting matter, you can be very creative :)

Hope this helps, happy shaping :)