OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: LorneMalvo on December 30, 2020, 04:47:39 PM

Title: Testing Shaper
Post by: LorneMalvo on December 30, 2020, 04:47:39 PM
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.
Title: Re: Testing Shaper
Post by: hushcoden on December 30, 2020, 08:25:22 PM
I have a pretty simple implementation for the PS4: max down 10 Mb/s and max up 5Mb/s and it works, see schreenshots
Title: Re: Testing Shaper
Post by: spetrillo on January 03, 2021, 05:54:52 PM
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?
Title: Re: Testing Shaper
Post by: 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.

Title: Re: Testing Shaper
Post by: mimugmail on January 04, 2021, 05:59:16 AM
A FreeBSD thread or what exactly? I only know one in reddit
Title: Re: Testing Shaper
Post by: LorneMalvo on January 07, 2021, 08:53:49 PM
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.
Title: Re: Testing Shaper
Post by: 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.
Title: Re: Testing Shaper
Post by: mimugmail on January 08, 2021, 07:16:57 AM
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
Title: Re: Testing Shaper
Post by: nuwe70 on January 08, 2021, 02:37:31 PM
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).
Title: Re: Testing Shaper
Post by: mimugmail on January 08, 2021, 02:47:53 PM
Can you upload screenshots of pipes, queues and rules?
From home office I don't have equipment to reproduce
Title: Re: Testing Shaper
Post by: nuwe70 on January 08, 2021, 05:47:20 PM
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.
Title: Re: Testing Shaper
Post by: 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.
Title: Re: Testing Shaper
Post by: mimugmail on January 10, 2021, 07:06:42 PM
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?