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

Playing with fq_codel in 2.4

Scheduled Pinned Locked Moved Traffic Shaping
1.1k Posts 123 Posters 1.6m 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.
  • W
    w0w
    last edited by Apr 30, 2017, 8:09 AM Apr 30, 2017, 8:05 AM

    Yes it's need to be rebooted or reloaded with```
    /etc/rc.reload_all

    After you did that run the following command```
    ipfw sched show
    ```and you should see something like```
    00001: unlimited         0 ms burst 0
    ```for the both pipes you have.
    1 Reply Last reply Reply Quote 0
    • H
      HeatmiserNYC
      last edited by May 1, 2017, 3:12 AM

      @w0w:

      Yes it's need to be rebooted or reloaded with```
      /etc/rc.reload_all

      After you did that run the following command```
      ipfw sched show
      ```and you should see something like```
      00001: unlimited         0 ms burst 0
      ```for the both pipes you have.
      

      Yes, all relatively simple and you've been great at walking through the steps you put in place.

      I'm getting this for both pipes.

      00003: unlimited        0 ms burst 0

      00004: unlimited        0 ms burst 0

      Yet I can't get better than a B rating for bufferbloat, which is the same if I literally do nothing at all….

      1 Reply Last reply Reply Quote 0
      • W
        w0w
        last edited by May 1, 2017, 4:37 AM

        But what about VPN bandwidth? Are you still getting 120Mbps?

        1 Reply Last reply Reply Quote 0
        • H
          HeatmiserNYC
          last edited by May 2, 2017, 2:25 AM

          That part HAS improved, looks like it does get about 145-ish or so which is about right. It just does nothing for bufferbloat.

          1 Reply Last reply Reply Quote 0
          • W
            w0w
            last edited by May 2, 2017, 3:45 AM

            Can you post the full output of```
            ipfw sched show

            1 Reply Last reply Reply Quote 0
            • M
              moscato359
              last edited by May 3, 2017, 3:45 PM

              I'd like to look at implementing this, but I was wondering

              Anyone know the status of pfsync + limiters?

              1 Reply Last reply Reply Quote 0
              • W
                w0w
                last edited by May 3, 2017, 4:34 PM

                @moscato359:

                I'd like to look at implementing this, but I was wondering

                Anyone know the status of pfsync + limiters?

                What was the last status you know?  :D

                1 Reply Last reply Reply Quote 0
                • M
                  moscato359
                  last edited by May 3, 2017, 11:05 PM

                  The last status I know is that the pfsense book says not to use pfsync and limiters together, but doesn't explain why

                  1 Reply Last reply Reply Quote 0
                  • W
                    w0w
                    last edited by May 4, 2017, 5:52 PM

                    @moscato359:

                    The last status I know is that the pfsense book says not to use pfsync and limiters together, but doesn't explain why

                    This is actual. https://redmine.pfsense.org/issues/4310 have 0% progress.

                    1 Reply Last reply Reply Quote 0
                    • M
                      moscato359
                      last edited by May 5, 2017, 3:19 AM

                      @w0w:

                      @moscato359:

                      The last status I know is that the pfsense book says not to use pfsync and limiters together, but doesn't explain why

                      This is actual. https://redmine.pfsense.org/issues/4310 have 0% progress.

                      D=

                      1 Reply Last reply Reply Quote 0
                      • M
                        moscato359
                        last edited by Jun 8, 2017, 1:56 PM

                        Is there any chance fq_codel will make it into the 2.4 GUI in limiters?

                        1 Reply Last reply Reply Quote 0
                        • W
                          w0w
                          last edited by Jun 11, 2017, 7:30 AM

                          Definitely not!
                          They are keeping eyes on it, but currently no plans, no moves, AFAIK.

                          1 Reply Last reply Reply Quote 0
                          • S
                            sofakng
                            last edited by Jun 26, 2017, 3:36 PM

                            Darn.  I'm thinking about switching back to pfSense but I really want fq_codel.

                            1 Reply Last reply Reply Quote 0
                            • H
                              Harvy66
                              last edited by Jun 27, 2017, 2:41 AM

                              fq_codel, the ZFS of AQMs, or nearly. Cake aims to be the "ZFS", but close enough.

                              1 Reply Last reply Reply Quote 0
                              • S
                                superbree
                                last edited by Jul 7, 2017, 5:44 PM

                                Is the command of "ipfw sched 1 config pipe 1 type fq_codel && ipfw sched 2 config pipe 2 type fq_codel" the same if I only have 2 root limiters?  Both of them are root limiters one has a mask of source and the other has a mask of destination.

                                I would like to try this out but wondering if the command is different for just root limiters without "child" queues.  Obviously I am highly dependent on the gui I am a bit confused with the ipfw command since it references both sched and pipe.

                                Thanks for any reply!

                                1 Reply Last reply Reply Quote 0
                                • W
                                  w0w
                                  last edited by Jul 8, 2017, 3:49 AM

                                  TS sample is for the root limiters also, if you have  some troubles understanding, post the content of your /tmp/rules.limiter

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    superbree
                                    last edited by Jul 10, 2017, 7:17 PM Jul 10, 2017, 4:55 PM

                                    here is the content of my /tmp/rules.limiter

                                    pipe 1 config  bw 100Mb mask dst-ip6 /128 dst-ip 0xffffffff

                                    pipe 2 config  bw 10Mb mask src-ip6 /128 src-ip 0xffffffff

                                    I need help with the ipfw command to enable fq_codel on pipes 1 and 2 because i don't have any child queues.

                                    thanks in advance

                                    1 Reply Last reply Reply Quote 0
                                    • W
                                      w0w
                                      last edited by Jul 11, 2017, 6:51 AM Jul 11, 2017, 5:41 AM

                                      According to documentation posted in this thread you need to configure sheduler at least to make things work.

                                      
                                      pipe 1 config bw 100Mb mask dst-ip6 /128 dst-ip 0xffffffff
                                      sched 1 config pipe 1 type fq_codel 
                                      
                                      pipe 2 config bw 10Mb mask src-ip6 /128 src-ip 0xffffffff
                                      sched 2 config pipe 2 type fq_codel
                                      
                                      

                                      EDIT:
                                      Tested, it will not work. You need to configure child queues and use them in ruleset, exactly as described by TS. Default automatically created pipe queue always uses FIFO sheduler and I am not sure it is possible to change this.

                                      So after changes made in GUI also, you must edit and create your own rules.limiter that should look like this.

                                      
                                      pipe 1 config bw 100Mb 
                                      sched 1 config pipe 1 type fq_codel
                                      queue 1 config pipe 1 mask dst-ip6 /128 dst-ip 0xffffffff
                                      
                                      pipe 2 config bw 10Mb mask 
                                      sched 2 config pipe 2 type fq_codel
                                      queue 2 config pipe 2 mask src-ip6 /128 src-ip 0xffffffff
                                      
                                      

                                      So the right answer is no you can not shape with fq_codel using only root limiters.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        superbree
                                        last edited by Jul 11, 2017, 11:15 PM Jul 11, 2017, 10:37 PM

                                        Thats really too bad.  We use PFsense primarily to "specify bandwidth limits per host." for a small ISP.

                                        I really wish I could find a way to limit a subnet to say 100Mbs and then limit each ip host address in the subnet to 5 Mbs.  And then have each IP address dynamically shaped if the overall link was approaching the 100Mbs total.

                                        Is it possible to combine and use ALTQ and Dummynet at the same time?  Has anyone tried that or have a config example?

                                        I guess I could use limiters on 2 PFsense boxes.  First one limiting each host to 5 Mbps using limiters with a destination/source mask.  And the second limiting the entire subnet to 100Mbs using limiters without a mask and changing the type from WF2Q+ to FQ_Codel by issuing the command "ipfw pipe 1 config bw 100Mb type fq_codel"

                                        I hope thats not too confusing.  Anyone have a more eloquent way of trying this?

                                        As always, thank you for any reply.

                                        1 Reply Last reply Reply Quote 0
                                        • W
                                          w0w
                                          last edited by Jul 12, 2017, 7:09 AM

                                          Yes it's possible, but  you will have some overheads and losses, you can try it at least, I think. Just set your per host limits on ALTQ shaper side and do your evenly shared FQ_CODEL enabled limiters exactly as TS described for you entire subnet.
                                          I am sure it is possible to build ipfw only shaper model that works like you want it to work, but it would be complicated not only with pfSense and can cause some errors on pfSense.

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received