OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: andreaslink on December 22, 2020, 11:54:30 AM

Title: Help with setting up pipes/queues to ensure min. bandwitdth but without limits
Post by: andreaslink on December 22, 2020, 11:54:30 AM
I'm planning on setting up traffic shaping with pipes and queues to limit bandwidth or prioritize traffic. I read through the documentation (https://docs.opnsense.org/manual/shaping.html) but I did not clearly unterstand if this always limits the bandwidth or only when the cable is under full load - if you understand what I mean?

For example, I have a 100 MBit internet connection and I want to prioritize bandwidth for a specific host (in a specific network) with always at least 40 MBit, which means, there are only 60 Mbit left for all other hosts, when all 100 Mbit are requested via WAN. Today I would assume there is an equal balance between all of them. But if no one is using the bandwidth I want everything - all 100 MBit - to be available for the specific host asking and do not want to limit it to 40 MBit only.

As I see it, I can setup a dedicated pipe according to (https://docs.opnsense.org/manual/how-tos/shaper.html) case 1 "Reserve dedicated bandwidth for a realtime traffic". Then it is reserved if all is requested, but will this host also get everything, if nothing else is used? This is not clear to me. There the setup seems to ensure, but also limit it, by creating upload and download pipes as it states "desired bandwidth" and not "minimum bandwidth" or likewise. I hope I can explain myself?

Or can/do I need to setup queues with pipes on top somehow? Such that I can kind of give a pipe a higher weight bevor it kicks in and if the weight is not requested, the pipe does not have any value?

What I would like to prevent is not to leave out available bandwidth just due to limiting down packets in relation to the corresponding pipe. If there is no traffic, I want to offer everything. How can I ensure this?
Title: Re: Help with setting up pipes/queues to ensure min. bandwitdth but without limits
Post by: Fright on December 22, 2020, 05:06:42 PM
Hi
I think that https://docs.opnsense.org/manual/how-tos/shaper_share_evenly.html# guide is is closer to what you need.
2 pipes (1 UP, 1 DOWN) for all clients. and queues within this pipes (weight 40 for specific host, weight 60 for subnet). specific hosts rules with lower sequence numbers than subnet rules
Title: Re: Help with setting up pipes/queues to ensure min. bandwitdth but without limits
Post by: Luc3k on February 06, 2021, 11:11:18 PM
I have similar problem to solve. I have a 200/20 Mbit bandwidth. I have configured the bandwidth manager according to this manual: https://docs.opnsense.org/manual/how-tos/shaper_share_evenly.html#

Everything works well.
However, I need to limit the bandwidth to 20/5 Mbit for several ip addresses.
For example:
The addresses 192.168.14.20 and 192.168.14.21 receive a bandwidth of 20/2 Mbit/s.
The rest of the addresses in the network get the full 200/20 bandwidth.
Is this configuration possible?

I currently have the latest version of OPNsense (21.1)