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

    Simple QoS bandwidth limiting for buffer bloat

    Scheduled Pinned Locked Moved Traffic Shaping
    23 Posts 7 Posters 12.3k 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.
    • H
      Harvy66
      last edited by

      Two things that come to mind. Of course, in addition to setting the interface bandwidth.

      1. Set your interface scheduler to Codel or FairQ
      2. Set the interface scheduler to FairQ, then create a child-queue and set that to Codel
      1 Reply Last reply Reply Quote 0
      • N
        Nullity
        last edited by

        I use this type of minimal setup with my download traffic. Just select CODELQ and put in your slightly underestimated download bitrate.

        With this config I get 10-30ms latency; without, I get approximately 60-90ms latency when tested with pings to closest ISP hop.

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

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

          Thank you both.  So simple they should have a wizard for it.  :)  Surprisingly effective without all the bells and whistles that the other schedulers impose.  Tried running a bunch of bandwidth tests while pinging google.com and hardly noticed any added latency in the pings (from ~30ms to ~50ms on average).  Without Codel the pings would eventually start climbing into the hundreds of milliseconds.

          1 Reply Last reply Reply Quote 0
          • T
            tom-28
            last edited by

            What would be the quick and dirty steps for a newbie to implement the recommendations here?

            I thought I knew what I was doing, but after I set things up, I noticed my buffer bloat was still an issue.

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

              @tom-28:

              What would be the quick and dirty steps for a newbie to implement the recommendations here?

              I thought I knew what I was doing, but after I set things up, I noticed my buffer bloat was still an issue.

              For me, "quick and dirty" simply wasted my time. I had to learn some fundamentals before things worked as I expected.

              By far, my favorite introduction to QoS/traffic-shaping is http://www.linksysinfo.org/index.php?threads/qos-tutorial.68795/

              Perhaps Google some codel tutorials if you must be quick & dirty.

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

              1 Reply Last reply Reply Quote 0
              • T
                tom-28
                last edited by

                Well, Google is what landed me here.

                I was hoping someone would expand upon this:

                1. Set your interface scheduler to Codel or FairQ
                2. Set the interface scheduler to FairQ, then create a child-queue and set that to Codel
                1 Reply Last reply Reply Quote 0
                • M
                  mcwtim
                  last edited by

                  I'll dare say if you want simple QoS switch to OpenWRT. Although installing it on x86 is not as simple as it should be nor as easy as pfSense is to install.

                  But their SQM fq_codel works very well requiring nothing but setting proper upload and download values and ticking 'enable'.

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

                    @tom-28:

                    Well, Google is what landed me here.

                    I was hoping someone would expand upon this:

                    1. Set your interface scheduler to Codel or FairQ
                    2. Set the interface scheduler to FairQ, then create a child-queue and set that to Codel

                    There's not much to expand on that. Just go under traffic shaping and do it. Try one, then the other, see which works best.

                    Without codel I get an A and with I get an A+. Assume we're talking about DSLReports' speedtest.

                    1 Reply Last reply Reply Quote 0
                    • T
                      tom-28
                      last edited by

                      That's what I did.  And it didn't make a difference on DSLReport's testing system.

                      Do you only set this on the WAN interface?

                      I've been a m0n0wall user for over a decade.  I'm not interested in other FW/Routers….

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

                        WAN (egress) will probably see the most improvement but ingress limiting can also help.

                        FYI, Linux (OpenWRT) is where you will find many more scheduling algorithms (fq_codel, cake, PIE, QFQ, etc). BSD distributions seem to be busy preparing to drop ALTQ.

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

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

                          So your WAN looks something like this, except set to something like 90% of your actual upload bandwidth?

                          1 Reply Last reply Reply Quote 0
                          • T
                            tom-28
                            last edited by

                            Actually, I was thinking download bandwidth (I didn't have a clue which it was, thanks for clarifying).  So, I adjusted it to 5Mbps (I have 6) - now it looks exactly like your screen and I still score an F.

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

                              PFSense only shapes egress, so you need to do the same thing, except for your LAN interface. When you score and F, is the bloat mostly occurring on your download? For many users, it's almost entirely the upload that's bad, but download can also have issues.

                              1 Reply Last reply Reply Quote 0
                              • T
                                tom-28
                                last edited by

                                It's worse on download.  Upload seems to be okay, as best I can tell.

                                I set the WAN and LAN settings to fairq and 5 / 52 respectively.  Still got an F.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mcwtim
                                  last edited by

                                  Post the link to one of your speed tests. From the bandwidth values listed, if you are on Cox Preferred which is rated at 50 Down 5 Up without speedboost you aren't setting your bandwidth values low enough. The idea is to make pfSense the bottleneck, it's the only way it can enforce QoS with this scheme.

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

                                    What mcwtim said. Do the same thing on your LAN as you did on your WAN, but continue to set your bandwidth lower until the issue goes away.

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      tom-28
                                      last edited by

                                      I'm on TWC's 50/5 package which, normally speedtest.net and Sam Knows report me having 56Mbps down and 5.8Mbps up (we don't have speed boost here - TWC over provisions).

                                      However, the speed tests to DSLReports are terrible.  Only coming in at 10 and 15Mbps.

                                      I'll keep tinkering with the numbers.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        mcwtim
                                        last edited by

                                        I'd try an alternative method of testing. Start an extended ping google.com -t
                                        Find a site where you can make a large download for an extended period of time that actually will max your download at rated speeds.
                                        Monitor the ping results while the download is happening, if you have little variance you have controlled your bufferbloat, if not adjust the bandwidth values till you see the results.

                                        If you can't get rated speeds anywhere but on easily fudged flash based tests, time to complain.

                                        http://arstechnica.com/tech-policy/2015/06/the-fcc-will-now-take-your-net-neutrality-complaints/

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          tom-28
                                          last edited by

                                          Thanks.  I've already started yelling at TWC and sending them the SK reports.  Apparently, it's not just my neck of the city that is a problem.  Lots of folks have been having issues.  May have something to do with MAXX coming.  I don't know.

                                          Thanks for the quick start.  I'll tinker.

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

                                            Old Thread, but just wanted to say thanks.

                                            Bufferbloat was rated as F, made the traffic shaping on the LAN & WAN interfaces as suggested and now I'm getting A+

                                            Hopefully that may help with some gaming issues my son has.

                                            Thanks

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