Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Question on a simple traffic shaping excercise

    Scheduled Pinned Locked Moved Traffic Shaping
    12 Posts 5 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nullity
      last edited by

      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

      Please correct any obvious misinformation in my posts.
      -Not a professional; an arrogant ignoramous.

      1 Reply Last reply Reply Quote 0
      • T
        TheUniquePaulSmith
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • N
          Nullity
          last edited by

          @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?

          Please correct any obvious misinformation in my posts.
          -Not a professional; an arrogant ignoramous.

          1 Reply Last reply Reply Quote 0
          • T
            TheUniquePaulSmith
            last edited by

            @Nullity:

            @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

            1 Reply Last reply Reply Quote 0
            • B
              belt9
              last edited by

              Limiters are exactly what you want.

              Try enabling fq_codel via CLI. Make it persistent with shellcmd.

              1 Reply Last reply Reply Quote 0
              • C
                Chrismallia
                last edited by

                @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,

                queue.PNG
                queue.PNG_thumb

                1 Reply Last reply Reply Quote 0
                • T
                  TheUniquePaulSmith
                  last edited by

                  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

                  1 Reply Last reply Reply Quote 0
                  • C
                    Chrismallia
                    last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • T
                      TheUniquePaulSmith
                      last edited by

                      @Chrismallia:

                      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

                      1 Reply Last reply Reply Quote 0
                      • C
                        Chrismallia
                        last edited by

                        Maybe try to keep  increasing the queue size slowly till it reaches your speed

                        1 Reply Last reply Reply Quote 0
                        • H
                          Harvy66
                          last edited by

                          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.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.