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

    CoDel - How to use

    Scheduled Pinned Locked Moved Traffic Shaping
    206 Posts 30 Posters 113.1k 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.
    • S
      Spritzup
      last edited by

      @Harvy66:

      What rate did you set on your LAN and WAN?

      105/9.5mbps… After multiple speedtests, as well as monitoring usenet downloads I get 117/11mbps.

      Again, thank you.

      ~Spritz

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

        @Spritzup:

        @Harvy66:

        What rate did you set on your LAN and WAN?

        105/9.5mbps… After multiple speedtests, as well as monitoring usenet downloads I get 117/11mbps.

        Again, thank you.

        ~Spritz

        Are you using CODELQ or HFSC/CBQ/FAIRQ with the "Codel Active Queue" toggle enabled?

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

        1 Reply Last reply Reply Quote 0
        • S
          Spritzup
          last edited by

          I've tried a few different ways to be honest.  I was hoping to figure it out before posting here with my tail between my legs.

          But here is what I've tried (note that the rates I used were consistent) –>

          1.
          CODELQ - Only

          2.
          HFSC - Parent
          CODELQ - Child

          FAIRQ - Parent
          CODELQ - Child

          CBQ - Parent
          CODELQ - Child

          Now 1-4 gave me very similar results, with only slight fluctuations in the throughput (1-2mbps).  When I tried putting in an artificially lowered rate, it honored it.

          I also changed the advanced settings to enabling net.inet.tcp.inflight.enable=1 which seemed to help smooth out ping spikes, and I disabled Hardware TSO offload as per a link posted by Harvy (see I really did read and try and figure this out on my own!).

          Lastly I ran the wizard using HFSC queue, and it seemed to work as expected (buffer bloat under control, correct rate).  However, two things I discovered that makes this a less than ideal situation -->

          1.  I don't like having to use a full blow QoS implementation without knowing why the simpler one didn't work.  Nor do I love the potential support overhead this introduces.
          2.  When I went into the individual queue's after running the wizard to enable Codel, I was unable to due to the fact that the bandwidth numbers were decimals.  It wouldn't let me save unless I put whole #'s (wherever a % was).  This is despite the fact that the wizard uses decimals... is this a bug?

          Thanks!

          ~Spritz

          PS - If something is unclear, or terminology is incorrect, I apologize.  I'm at work and don't have access to my pfsense box currently, so I'm pulling all this from memory.

          I also tried running the QoS wizard, and this seemed to work quite well.  It honored my set rate, as well as keeping my buffer bloat under control... but I'm not keen on just using the wizard unless I know why the other options didn't work.

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

            Very interesting subjet indeed.

            Just a quick question: why, when I try to use sysctl net.inet.tcp.inflight in the console, I get

            sysctl: unknown oid 'net.inet.tcp.inflight': No such file or directory

            shouldn't I see it there?

            1 Reply Last reply Reply Quote 0
            • J
              JasonJoel
              last edited by

              So I get a lot of bufferbloat when DOWNLOADS saturate my link. Uploads don't seem to cause the bloat.

              I have codelq, and only codelq, turned on my WAN and LAN connections. I have a 300/20 connection. for WAN speed I set 17 Mb, for the LAN connections I put 1Gb.

              Is there anything that can really be done about the download bloat? My pfSense is also my central router with 3 VLANs, so I'm not sure I can do much on the LAN side as I don't want to ruin my inter-VLAN routing speeds.

              Jason

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

                Set your LAN to 280Mb and see how it goes.

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

                  I'm also trying to battle buffer bloat by implementing CoDel. While it works well to eliminate the bloat, it also drops my download speed by 100Mbps. Here are the details.

                  My link speed is 250/10

                  dslreports speed tests without any shaping applied show speeds of 250/11, but I usually get a D or F for buffer bloat.

                  When I activate CoDel on the LAN/WAN interfaces with bandwidth set to 9Mbps on the WAN and 230Mbps on the LAN, my buffer bloat grade goes to an A, but my download speed drops to 148Mbps. I've tried raising the LAN interface bandwidth up to 240 and 250Mbps but this doesn't increase the download speeds past 150Mbps.

                  Why is CoDel taking such a big bite out of my download bandwidth? Is there better way to eliminate buffer bloat without such a big impact to download speed?

                  Hardware:          Netgate SG-8860
                  pfSense Version: 2.3.2-RELEASE-p1

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

                    Where are you setting "Codel"? Got a screenshot? Sorry to sound not trusting, but you'd be amazed what people claim they're doing when they're not.

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

                      I'd love it if this was just a case of user error. Here are the screen shots.

                      LAN.PNG
                      LAN.PNG_thumb
                      WAN.PNG
                      WAN.PNG_thumb

                      1 Reply Last reply Reply Quote 0
                      • U
                        usulsuspct
                        last edited by

                        @Mael:

                        I'm also trying to battle buffer bloat by implementing CoDel. While it works well to eliminate the bloat, it also drops my download speed by 100Mbps. Here are the details.

                        My link speed is 250/10

                        dslreports speed tests without any shaping applied show speeds of 250/11, but I usually get a D or F for buffer bloat.

                        When I activate CoDel on the LAN/WAN interfaces with bandwidth set to 9Mbps on the WAN and 230Mbps on the LAN, my buffer bloat grade goes to an A, but my download speed drops to 148Mbps. I've tried raising the LAN interface bandwidth up to 240 and 250Mbps but this doesn't increase the download speeds past 150Mbps.

                        Why is CoDel taking such a big bite out of my download bandwidth? Is there better way to eliminate buffer bloat without such a big impact to download speed?

                        Hardware:          Netgate SG-8860
                        pfSense Version: 2.3.2-RELEASE-p1

                        I have noticed the same with my connection 60/5 (provisioned at 73 / 6.5) - without shaper enabled I bounce off the provisioned speeds but get horrible marks for buffer bloat.  If I enable the shaper (w/codel) shaper set for 63/5.5 my speeds drop to ~45 / 5 with "A" for buffer bloat.  I am just wondering if my ISP is flexing its buffers on me and pfsense has to scale back the speeds to deal?

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

                          Could be specific to the Codel shaper but not the Codel queue discipline. Try using FairQ shaper, create a single default queue and enable Codel on that queue.

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

                            I had the same problem with sch_codelq, but sch_fairq with codel fixed it

                            1 Reply Last reply Reply Quote 0
                            • D
                              d4ab9f
                              last edited by

                              @moscato359:

                              I had the same problem with sch_codelq, but sch_fairq with codel fixed it

                              I have the same problem (500/30 without shaping goes to 250/20 with codel shapers set to 20 for wan and 480 for lan)
                              Tried fairq shaper with the same result.

                              What is sch_codelq and sch_fairq? Is this the same as codelq shaper and fairq shaper in the gui?

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