Shaper - minimum bandwith on VLAN, but use all remaining bandwith on other VLANs

Started by HansJ, April 03, 2024, 10:17:24 PM

Previous topic - Next topic
Quote from: Seimus on June 03, 2024, 11:04:16 PM
So basically,

now you got into the point where 2 of the 3 VLANs work as expected. But when 3rd VLAN tries to eat its pie it will not get any?
No, I tought it dit , but its not, its still just not working :(
Quote from: Seimus on June 03, 2024, 11:04:16 PM
also give any VLAN the MAX bandwidth if the other VLAN's are NOT using there minimum bandwidth

This you don't set, you set weights you say how much each of them eats if all eat. If there is BW to spare it should be divided automatically.

Regards,
S.

ok,

but I still need to get the first part to work :(
I will be trying some more and see if I got any improvements :(

If still you cant get it, share your config, of pipes, queues and rules for shaper.

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

Thanks for beeing patient with me, If it should work, im sure im doing something stupid wrong :(

I have one pipe for my full bandwith (I tried both with 95Mbps what I realy have, I tried with less and I tried with 100Mbps what the theoretical max is)

Mask set to none and everything else left alone.
(in advanced the scheduler type is "weighted Fair Queueing" I think that is correct ?, it was the standard.)

Picture of the Pipe included

I than made 3 Queues , one for each VLAN, set to use the 100Mbps Pipe and a weight of 30 , no Mask selected.

Picture of one of the Que's included (they are the same just different VLAN)

Than I have 3 Rules, one for each VLAN, and Each VLAN's Rule has a target of its own Que.
So I have 3 of these

Picture of a Rule included, all 3 are the same, just for each VLAN and each one points to its own Que



Let me know if you see anything that stands out as wrong or something I should change to try.


Thank you,


Hans

You took a bit of liberty from what is in the documentation.

Lets try this:

Pipe
- let is for now as it is

Queue
- let is for now as it is

Rule
- Here I see several problems, you combine Directions with Interfaces.
- You have 1st Interface VLAN and 2nd Interface WAN, with direction OUT, which I think shapes Upload not download if you have such combination
- Either switch the Interfaces in rules, or use only 1 Interface WAN and direction IN for DOWNLOAD and specify Destination the IP of the host or the Subnet.

NOTE: If you use only 1 interface (WAN) in RULES, download Direction is always IN, upload OUT

NOTE: Always create separate pipes for download and upload limiting to avoid undefined behavior when mixing bidirectional traffic in a single pipe.

NOTE: secondary interface, matches packets traveling to/from interface (1) to/from interface (2). can be combined with direction.


Also read the docs again ;)
https://docs.opnsense.org/manual/how-tos/shaper_limit_per_user.html



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

Thanks again, I will try this soon,

Yes when I started the first time (after reading the docs :) ) I had a seperate upload and download pipe, but since it dident work I fingured ill try to get the download working first and than move on from there,

Possibly that I have my directions screwed up there, so ill be reading docs again and taking your tips and will try again and will let you know,

I aint the brightest cookie in the box, but I do try to be a nice cookie tho :) so thanks for sticking with me :)



Hmm,

for a moment I tought I had it working, but when I also added the upload pipes now again all VLAN's are only getting max about 1/3th of the bandwith even when the other vlan's are NOT downloading anything,

ill keep tinkering on this, but if anyone else has some obvious "AHA" tips for me to try, its all welcome,


thank you,