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

    How I fixed apinger and packet loss (Hint: It wasn't broken)

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 10 Posters 14.5k 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.
    • J
      jimmy_1969
      last edited by

      Hi,

      I found this thread very interesting. Had a go at applying CODELQ for my interfaces and managed to improve my buffer-bloat score.

      As pointed out by Harvy66 the CODELQ algorithm doesn't actually use peak bandwidth as input parameter. Obviously, you want to do before- and after measurements, but there is no need to enter bandwidth value in the web form (for the sake of simplicity, the web GUI uses the same form for all scheduler types).

      Best Regards

      //Jimmy

      1 Reply Last reply Reply Quote 0
      • A
        Alex Atkin UK
        last edited by

        I get a good buffer bloat score using just the standard CBQ traffic shaper setup on pfSense.

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

          The default queue depth created for traffic shaping is 50 packets. You may have a good bloat result because of this, but your burst bandwidth and many-flow average bandwidth may take a sizable hit and you may notice some bursty packetloss.

          The issue codel attempts to solve is a buffer large enough to handle bursts is typically too large to handle sustained. Codel is elastic and will allow a burst, but if the burst continues too long, packets start getting dropped at an increasing rate until the queue size comes back down.

          1 Reply Last reply Reply Quote 0
          • P
            pfcode
            last edited by

            Thanks all for the tips, my internet is 250/20. By setting up the traffic shaper using CODELQ without specifying the bandwidth on LANs, and disabled the gateway monitoring. My BufferBloat scores A (was C before), Quality scores A+, and Speed scores A~A+.

            Release: pfSense 2.4.3(amd64)
            M/B: Supermicro A1SRi-2558F
            HDD: Intel X25-M 160G
            RAM: 2x8Gb Kingston ECC ValueRAM
            AP: Netgear R7000 (XWRT), Unifi AC Pro

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              My BufferBloat scores A (was C before), Quality scores A+, and Speed scores A~A+.

              Where & how is this "scoring" done?

              1 Reply Last reply Reply Quote 0
              • F
                fragged
                last edited by

                @KOM:

                My BufferBloat scores A (was C before), Quality scores A+, and Speed scores A~A+.

                Where & how is this "scoring" done?

                I think they are using this test: http://www.dslreports.com/speedtest

                1 Reply Last reply Reply Quote 0
                • P
                  pfcode
                  last edited by

                  @KOM:

                  My BufferBloat scores A (was C before), Quality scores A+, and Speed scores A~A+.

                  Where & how is this "scoring" done?

                  I was using:  http://www.dslreports.com/speedtest

                  Release: pfSense 2.4.3(amd64)
                  M/B: Supermicro A1SRi-2558F
                  HDD: Intel X25-M 160G
                  RAM: 2x8Gb Kingston ECC ValueRAM
                  AP: Netgear R7000 (XWRT), Unifi AC Pro

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User
                    last edited by

                    I have a 250/25 cable connection and am running the latest pfSense version without any traffic shaper currently.

                    http://www.dslreports.com/speedtest tells me I have a high download buffer bloat but a very low upload buffer bloat. This is a grade C in the end.

                    I would like to improve this now. I applied the CODELQ shaper to my WAN interface and set it to 250 MBit/s (I had to set a value btw, otherwise I get an error message).

                    Afterwards I deleted the state tables and ran the test again. No change. Same speeds, same ratings.

                    I miss something or is there just nothing I can do?

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      You can probably do nothing about download bloat upstream. Shaping controls traffic leaving an interface. You cannot control what happens upstream or when traffic arrives on WAN.

                      You almost certainly have higher bandwidth outbound LAN than inbound WAN. If you are 100M anywhere on LAN, you'll want to make that all gig.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • O
                        openletter
                        last edited by

                        I realize this is total necro, but this post shows up on the first page of DuckDuckGo results.

                        I was getting Ds and mostly Fs on DSL Reports bandwidth test.

                        In 2.4.2, setting CODELQ without bandwidth was not permitted by the interface.

                        Setting bandwidth to a number higher than my ISP advertised rate resulted in no change in bufferbloat.

                        Setting bandwidth to my ISP's advertised rate resulted in all As.

                        What I found interesting is that even though I can get ~10% higher than advertised actual speed, setting bandwidth to even 50 kbps higher than advertised resulted in increased bufferbloat.

                        pfSense 2.4.3-RELEASE (amd64) installed to PC on Samsung 860 EVO mSATA 256 GB SSD with Supermicro X11SBA-LN4F, Intel Pentium N3700, 4 GB RAM, 4 mobo 10/100/1000, 1 PCIe 10/100/1000 x4 NIC (HP NC364T), and APC Smart-UPS SMT1500.

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