Testing Shaper

Started by LorneMalvo, December 30, 2020, 04:47:39 PM

Previous topic - Next topic
Hello,
I've installed OPNSense for the first time a few days ago and I'm doing some testing on QoS.

I've followed tutorials and created a Pipe because I want to limit bandwith. I have 600/600 optic fiber and I configured a bandwith limit of 550Mbit/s. When i do some download and upload tests, i get a maximum speed of 300Mbit/s +/-. It seems like the Pipe speed isn't working well, if I want to reach the 550Mbit/s target, I have to put a bandwith limit of 700 instead of 550.

I am doing something wrong or is this a bug?

Thanks.

I have a pretty simple implementation for the PS4: max down 10 Mb/s and max up 5Mb/s and it works, see schreenshots

What I am trying to do is setup a "bucket" of bandwidth allowed for uploads/downloads on my wifi guest network, as well as setting up a "bucket" of download bandwidth for my streaming devices. Am I doing this correctly?

@LornMalvo I can't find the thread but it was confirmed that there is a bug with the traffic shaper.

The higher the bandwidth limit the more it drifts off.

I'm also affected by it but it doesn't bother me.


A FreeBSD thread or what exactly? I only know one in reddit

Quote from: Voodoo on January 03, 2021, 10:42:28 PM
@LornMalvo I can't find the thread but it was confirmed that there is a bug with the traffic shaper.

The higher the bandwidth limit the more it drifts off.

I'm also affected by it but it doesn't bother me.

Hi. Thanks for the info. I was sure this is a bug. I posted this with the hope devs can see this.

January 07, 2021, 11:06:44 PM #6 Last Edit: January 07, 2021, 11:08:53 PM by nuwe70
@Voodoo
Do you mean this thread? https://forum.opnsense.org/index.php?topic=19660
Unfortunately I still have this problem. I'm also pretty sure this must be a bug.

Quote from: nuwe70 on January 07, 2021, 11:06:44 PM
@Voodoo
Do you mean this thread? https://forum.opnsense.org/index.php?topic=19660
Unfortunately I still have this problem. I'm also pretty sure this must be a bug.

I think it's from upstream or some timing issue since it only happens above 70 or 100 mbit

Quote from: mimugmail on January 08, 2021, 07:16:57 AM
I think it's from upstream or some timing issue since it only happens above 70 or 100 mbit
But what does that mean for my test setup? It contains 4 VMs and does not rely on the connection to my ISP. 1 OPNsense router, 1 VM that simulates the www using two iperf servers and 2 clients that conneting to this iperf servers. These two clients have different weights (1 and 100).

Can you upload screenshots of pipes, queues and rules?
From home office I don't have equipment to reproduce

January 08, 2021, 05:47:20 PM #10 Last Edit: January 08, 2021, 10:34:17 PM by nuwe70
Without the traffic shaper I have a constant bandwith of 2,2 GBit/s.

An overview screenshot of the Pipes, queues and rules can be found in the attachment. The advanced settings have not been changed.
Edit view of each pipe, queue and rule here: https://imgur.com/a/uQU5lZB
Client 1 IP: 172.16.1.101
Client 2 IP: 172.16.1.102

Edit: In this setup the rules matching the upload traffic not the download traffic. So the queue and rule descriptions are not correct. However, with the source and destination swapped in the rules, you can see exactly the same behavior in download traffic.

Are you using PIE or codel? I've switched all my pipes and queues to PIE on my 1.2gb/45mb cable connection.

I've attached what mine look like.
All my downstream queues have destination on the mask with PIE enabled, and upsteam has source on the mask with pie.

Quote from: donatom3 on January 10, 2021, 06:23:29 PM
Are you using PIE or codel? I've switched all my pipes and queues to PIE on my 1.2gb/45mb cable connection.

I've attached what mine look like.
All my downstream queues have destination on the mask with PIE enabled, and upsteam has source on the mask with pie.

And this gives you full speed?