[SOLVED] Traffic Shaper: Weights over 50 MBit/s faulty

Started by nuwe70, October 17, 2020, 06:34:15 PM

Previous topic - Next topic
Hello,
I have discovered a strange problem using the Weighted Fair Queueing scheduler. The greater the bandwidth of the pipe, the less the weight matters. This behaviour starts about at a pipe bandwidth of 50 Mbit/s.

The following measurements show the problem.












Pipe Bandwidth    Host1 Bandwidth (Weight 100)    Host2 Bandwidth (Weight 1)
10 Mbit/s9,56 Mbit/s100 Kbit/s
20 Mbit/s19,1 Mbit/s185 Kbit/s
30 Mbit/s28,7 Mbit/s290 Kbit/s
40 Mbit/s38,3 Mbit/s380 Kbit/s
50 Mbit/s47,7 Mbit/s740 Kbit/s
60 Mbit/s55,3 Mbit/s2,46 Mbit/s
70 Mbit/s55,8 Mbit/s12,1 Mbit/s
80 Mbit/s55,9 Mbit/s22,2 Mbit/s
90 Mbit/s55,8 Mbit/s31,5 Mbit/s
100 Mbit/s55,8 Mbit/s41,1 Mbit/s

The Bandwidth tests were performed with iperf3. The test setup consists of one pipe, two queues and two roles.


Bandwidth: 100  (adjusted for each test as seen above)
Metric: Mbit/s
Mask: none
Description: PipeDown



Pipe: PipeDown
Weight: 100
Mask: none
Description: QueueDownHigh



Pipe: PipeDown
Weight: 1
Mask: none
Description: QueueDownLow


Rule "ShapeDownHigh" assigns traffic from Host1 to the queue "QueueDownHigh".
Rule "ShapeDownLow" assigns traffic from Host2 to the queue "QueueDownLow".

Does anyone have an idea what the problem might be? Does a similar setup work for anyone?

Inzeresting, I try to reproduce.

What happens when you switch to QFQ instead WFQ

Thank you for your response! But unfortunately no difference.


Are you sure host1 is able to saturate the pipe? What happens when you remove the second queue? Does host1 deliver 100MBits?

@hkp Sure. Then I get around 870 Mbit/s.

@mimugmail Yes. I have just downloaded OPNsense 20.1 and I will set up the test environment shortly.

October 18, 2020, 05:28:02 PM #6 Last Edit: October 18, 2020, 06:08:22 PM by nuwe70
Unfortunately exactly the same problem exists in OPNsense 20.1.
Edit: And also in OPNsense 19.1.4  :-\

This is good, not another problem due to 20.7 .. I'll test next week

Are there any news here? Can anyone try to reproduce this problem?


I think it's a bug in ipfw/dummynet. The same behaviour appears in the Limiter of pfSense.

Quote from: nuwe70 on April 26, 2021, 09:31:14 PM
I think it's a bug in ipfw/dummynet. The same behaviour appears in the Limiter of pfSense.

Do you have a link for this?

April 28, 2021, 12:35:04 PM #12 Last Edit: April 28, 2021, 12:44:19 PM by nuwe70
Quote from: mimugmail on April 27, 2021, 10:19:49 PM
Do you have a link for this?

I read that the framework behind the pfSense Limiter is what OPNsense uses as traffic shaper technology. So I have set up a new pfSense VM and tested it myself. The result is the same as described in the first post. Bandwidth without Limiter enabled 2.30 Gbits/sec.
The config screenshots are attached. Additionally, two rules that redirect traffic from two different hosts to queueLow and queueHigh.

Do you know if this is tracked somewhere at pfsense (forum or redmine).

No, unfortunately I have not found anything there.  :-\