Question on a simple traffic shaping excercise
-
You may want to consider this alternative approach that uses limiters to dynamically & fairly share bandwidth among active hosts: https://forum.pfsense.org/index.php?topic=63531.msg364520#msg364520
-
This might be the route to go. I followed the screenshots and setup the limiters then applied it to default LAN rule.
When I do several speedtests (SourceForge, Fast, Speedtest) I can only obtain 230Mbps..If I remove the limiter on the Firewall Rule i'm able to get up to 520Mbps.
Why is the limiter restricting the bandwidth when it should be available? -
@terminalhit:
This might be the route to go. I followed the screenshots and setup the limiters then applied it to default LAN rule.
When I do several speedtests (SourceForge, Fast, Speedtest) I can only obtain 230Mbps..If I remove the limiter on the Firewall Rule i'm able to get up to 520Mbps.
Why is the limiter restricting the bandwidth when it should be available?Dunno. What's the CPU load during a speed test?
-
@terminalhit:
This might be the route to go. I followed the screenshots and setup the limiters then applied it to default LAN rule.
When I do several speedtests (SourceForge, Fast, Speedtest) I can only obtain 230Mbps..If I remove the limiter on the Firewall Rule i'm able to get up to 520Mbps.
Why is the limiter restricting the bandwidth when it should be available?Dunno. What's the CPU load during a speed test?
From the Admin Web Page, it jumps to about 30%. Here are the processor specs
CPU Type Intel(R) Atom(TM) CPU D2500 @ 1.86GHz
2 CPUs: 1 package(s) x 2 core(s)With the limiter I ran it and got 240Mb down.. Took off the Limiter and re-ran and got 504Mb down
-
Limiters are exactly what you want.
Try enabling fq_codel via CLI. Make it persistent with shellcmd.
-
@terminalhit:
This might be the route to go. I followed the screenshots and setup the limiters then applied it to default LAN rule.
When I do several speedtests (SourceForge, Fast, Speedtest) I can only obtain 230Mbps..If I remove the limiter on the Firewall Rule i'm able to get up to 520Mbps.
Why is the limiter restricting the bandwidth when it should be available?Increase the queue size I had this problem and resolved it (thanks to JIM) by increasing the queue size to 200,
-
Putting the queue size seemed to help. It looks like the throughput slowly increases . I wonder if the speedtest ran long enough if it would hit the 500Mb mark.
In regards to Codel, does that work with Limiters or the other type of traffic shaping? If so, how do you enable it and use it? I tried searching around, but I see older posts and not too familiar with setting it
For reference, here are the results with taking off the Limiter
-
Oh by the way also do this (also instructed be JIM),
setup a tunable on System > Advanced, Tunables tab to increase net.inet.ip.dummynet.pipe_slot_limit, try setting that to 500.
-
Oh by the way also do this (also instructed be JIM),
setup a tunable on System > Advanced, Tunables tab to increase net.inet.ip.dummynet.pipe_slot_limit, try setting that to 500.That might have helped, i'm able to get about 320. I'm thinking maybe it's just a slow climb to 500Mb with Limiters?
For the tunable, do I need to reboot to take affect?I might try and run a speedtest off of Azure/Amazon using iperf
-
Maybe try to keep increasing the queue size slowly till it reaches your speed
-
I would set the queue size to 1,000. The average packet size is about 600 bytes, or 4800bits, which is a bit over 1,000 packets for 10ms of buffer @ 500Mbit/s.
Your upload is much slower, you'll want a linearly smaller queue.