I learned a little today about buffer bloat, which is latency introduced when uploading/downloading. After that, I headed straight over to WaveForm’s buffer bloat test and got a D.
Luckily, the WaveForm page pointed me to a solution, which I found at Paul Smith’s blog.
Following Paul’s instructions, I added a Queue section to my /etc/pf.conf:
#---------------------------------#
# Queues
#---------------------------------#
queue outq on $ext_if flows 1024 bandwidth 10M max 10M qlimit 1024 default
queue inq on $lan_if flows 1024 bandwidth 225M max 225M qlimit 1024 default
then reloaded the rules:
doas pfctl -n -f /etc/pf.conf && doas pfctl -f /etc/pf.conf
I didn’t get an A, but I did move up to a C, which means I’ve at least halved the latency problem. There’s a warning in a comment on Paul Smith’s page:
“This works well if you have OpenBSD acting as a firewall/NAT appliance only, but doesn’t work if you have multiple downstream interfaces, or run any services on the OpenBSD server at all (facing either the LAN or the internet).” The commenter suggests an explict parent queue with the whole LAN bandwidth and subqueues for internet and everything else.
Anyway, I went to CloudFlare’s speed test and I’m “great.”