1
24.1 Legacy Series / Re: fq_codel console flood
« on: March 03, 2024, 05:02:00 am »Quote
Reading this document (posted elsewhere on the forum) https://datatracker.ietf.org/doc/html/rfc8290 showed me a number of the common recommendations are just, well, wrong.I ran into a lot of that as well when I was first figuring things out.
Quote
FQ-CoDel quantum should be set at your WAN MTU (in my case, 1514 bytes)100% true, don't know why people would want to split packets up.
Quote
FQ-CoDel limit doesn't really need messed with, this setting defines the maximum number of packets that CAN be queued. The default is 10240. Most recommendations are to drop this value significantly, thus, causing the console flood messages. For me, on my download pipe, I left this at the default of 10240. For my upload pipe (with a max speed of 40Mbps) I halved it to 5120. No real reason to, but my uploads will never saturate it.Scaling the limit with bandwidth can help with Bufferbloat. I have ATT 500mbps symetric fiber, and the first hop is the converter box that I have bypassed. With a 2ms target and 4ms interval, 1200 limit is best and I never get any of the warnings. With a higher limit, it has a tendency to burst much higher for a longer interval which increases packet latency.
But yeah, the OP's limit is set too low if he's getting those warnings. It needs to be increased.
Recipe for ATT 500mbps (they over provision to about 640mbps):
Pipe: ATT-IN
Bandwidth: 560
Scheduler Type: fq_codel
Target: 2ms (should be much higher for many, ping your upstream gateway to get good numbers).
Interval: 4ms
Quantum: 1514 (Packet Size, see https://man.freebsd.org/cgi/man.cgi?ipfw)
Limit: 1200 (about perfect for 500mbps, 1500 is worse for me)
*only enable ECN on outgoing pipes/queues.
Pipe: ATT-OUT
Bandwidth: 560
Scheduler Type: fq_codel
Target: 2ms (should be much higher for many, ping your upstream gateway to get good numbers).
Interval: 4ms
Quantum: 1514 (Packet Size, see https://man.freebsd.org/cgi/man.cgi?ipfw)
Limit: 1200 (about perfect for 500mbps, 1500 is worse for me)
ECN: Enabled
Results: https://www.waveform.com/tools/bufferbloat?test-id=1ece2bf6-b7a2-4a40-9817-c90db7eafcd1
Best: 13ms+0+0
Any Day: 14ms+1+1/15ms+0+0