• 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

Traffic Shaping
123
1.1k
1.4m
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
    superweasel @qwerty123
    last edited by Sep 4, 2020, 4:24 PM

    @qwerty123 Where did you place the floating rule, above or below the WAN-Out FQ-ColDel rule?

    pfSense rig: pfSense SG-4860/120GB SSD
    WAN: CenturyLink Gigabit Fiber

    Q 1 Reply Last reply Sep 4, 2020, 5:34 PM Reply Quote 0
    • Q
      qwerty123 @superweasel
      last edited by Sep 4, 2020, 5:34 PM

      @superweasel said in Playing with fq_codel in 2.4:

      @qwerty123 Where did you place the floating rule, above or below the WAN-Out FQ-ColDel rule?

      I ended up making the rule just for tcp/udp. All the guides say to use "ALL" for the protocols. In most situations, the ISP's mostly going to route tcp/udp and icmp. Since ICMP was the issue, I just changed the protocol "TCP/UDP" instead of "ALL".

      1 Reply Last reply Reply Quote 0
      • Q
        qwerty123
        last edited by Sep 13, 2020, 11:55 AM

        Another question, since everybody was so helpful and helped me out with my last problem. I ended up rebuilding my pfsense box this week and had put the same settings in the traffic limiter as my old config had.

        When I rebuilt my box and ran a speedtest, I see that my download speed is about half of what I have. When running a speedtest without the limiter set, I have about 350/25. My WAN Down Queue is set to 340 Mbit/s and WAN Up Queue is 20 Mbit/s. When running a speedtest on a wired computer, I get about 175/20.

        I know the limiter will drop throughput but I'm surprised that it was this much. And I'm almost positive that before, I was seeing about 320/20.

        Does anybody happen to have a similar experience, and any hints on what to look for? Thanks!

        1 Reply Last reply Reply Quote 0
        • G
          Gigabit1
          last edited by Nov 19, 2020, 7:44 PM

          Hi all,

          Just wondering if somebody can help me with this.

          I want to use CoDel to combat bufferbloat and I also want to ensure that even if my network is being hammered (i.e. by torrents), web browsing remains fast and doesn't slow down. Is it possible to do this, to prioritise, or to give a certain amount of bandwidth to browsing?

          Thanks.

          1 Reply Last reply Reply Quote 0
          • D
            daemonix
            last edited by Nov 20, 2020, 9:55 AM

            Hello,

            Anyone using the setup with additional openVPN client (PIA in my case) as a gateway for a portion of the IPs?
            How do you setup the floating rules? Do you send the PIA gateway via the queues? (In or Out or both?)

            At the moment I just use the 2 floating rules for In/Oun on WAN.
            Thanks

            login-to-view

            1 Reply Last reply Reply Quote 0
            • S
              sikita @daemonix
              last edited by Dec 4, 2020, 12:48 PM

              @daemonix Hi, did you solve low number of matching data in floating rule of Codel?

              1 Reply Last reply Reply Quote 0
              • N
                NinthWave @uptownVagrant
                last edited by Jan 9, 2021, 4:28 AM

                @uptownvagrant
                When you made the post with the 100/100 connection, how did you come with the bandwidth values for IN and OUT ?

                I have tried your settings but the upload is now very bad.
                login-to-view

                Sometimes it even gets down to zero.

                Any idea ?

                B N 2 Replies Last reply Jan 9, 2021, 10:06 AM Reply Quote 0
                • B
                  bobbenheim @NinthWave
                  last edited by Jan 9, 2021, 10:06 AM

                  @ninthwave What are your settings?

                  N 1 Reply Last reply Jan 9, 2021, 7:57 PM Reply Quote 0
                  • N
                    NinthWave @bobbenheim
                    last edited by NinthWave Jan 9, 2021, 7:58 PM Jan 9, 2021, 7:57 PM

                    @bobbenheim
                    Exactly those but with a 100/30 connection
                    https://forum.netgate.com/topic/112527/playing-with-fq_codel-in-2-4/815

                    B 1 Reply Last reply Jan 10, 2021, 11:08 AM Reply Quote 0
                    • B
                      bobbenheim @NinthWave
                      last edited by Jan 10, 2021, 11:08 AM

                      @ninthwave try ticking off ecn under limiter

                      N 1 Reply Last reply Jan 11, 2021, 3:42 PM Reply Quote 0
                      • N
                        NinthWave @bobbenheim
                        last edited by Jan 11, 2021, 3:42 PM

                        @bobbenheim
                        No result. Up speed keeps dying after a few seconds.
                        Which screen capture can I add to help figure out ?

                        B 1 Reply Last reply Jan 12, 2021, 1:12 PM Reply Quote 0
                        • B
                          bobbenheim @NinthWave
                          last edited by Jan 12, 2021, 1:12 PM

                          @ninthwave Have you changed any other settings than applying fq-codel? You could try running TCP Optimizer if you are using windows.

                          1 Reply Last reply Reply Quote 0
                          • Z
                            Zeny001 @Larrikin
                            last edited by Jan 23, 2021, 1:03 PM

                            @larrikin said in Playing with fq_codel in 2.4:

                            For those who want to know how exactly I got it working, you can find the instructions here:

                            https://whirlpool.net.au/wiki/pfsense_traffic_shaping

                            A big thanks to @TheNarc for pointing me in this direction.

                            Also a big thanks to all the others who contributed to helping me troubleshoot. I am most grateful you took your own personal time to help me.

                            Thanks for this. I was running the dummynet version and after a few months I started to get my bandwidth fucked all the time... I figured something must have bugged out and did a fresh install and kept having the same issue.... Without dummynet and a ton of bufferbloat I was getting 990mbps download and 40 mbps upload.... My package from isp is 1gb/30mbps upload. Dummynet was giving me anywhere from 150mbps to 300mbps download and 0.1mbps upload.

                            I decided to go the wizard ALTQ version which is listed in your link and now I have A for bufferbloat and 980mbps download and 35 mbps upload. I'm satisfied with this thanks!

                            1 Reply Last reply Reply Quote 0
                            • N
                              NinthWave @NinthWave
                              last edited by Jan 23, 2021, 7:03 PM

                              @ninthwave said in Playing with fq_codel in 2.4:

                              @uptownvagrant
                              When you made the post with the 100/100 connection, how did you come with the bandwidth values for IN and OUT ?

                              I have tried your settings but the upload is now very bad.
                              login-to-view

                              Sometimes it even gets down to zero.

                              Any idea ?

                              Maybe I should point out that I have a VOIP service which the vast majority of those having great result don't use.

                              Plus, I have enabled OpenVPN that I rarely use to check my IP cameras from my cell when I out. But from I have read, the OpenVPN service might be having an effect.

                              1 Reply Last reply Reply Quote 0
                              • A
                                andresmorago @uptownVagrant
                                last edited by andresmorago Jan 30, 2021, 12:37 AM Jan 30, 2021, 12:19 AM

                                @uptownvagrant said in Playing with fq_codel in 2.4:

                                WAN-Out FQ-CoDel queue

                                Hello to all
                                I have been trying to configure my limiters based on @uptownVagrant tutorial. Im having some issues with the upload speeds as the Bandwidth parameter under the FQ_CODEL_OUT doesnt seem to correctly work for me.
                                login-to-view

                                i have a 150/10 cable connection which, without traffic shaper provides the following speed results. they are according to what i pay for.

                                Server: Movistar - Barranquilla (id = 17577)
                                             ISP: Telmex Colombia S.A.
                                         Latency:    41.25 ms   (2.60 ms jitter)
                                        Download:   156.14 Mbps (data used: 152.1 MB)
                                          Upload:    11.07 Mbps (data used: 11.5 MB)
                                     Packet Loss:     0.0%
                                

                                Setting the upload to 9 Mbits/s will completely block all uploads from my LAN clients. internet access is pretty much dead with this setup.

                                  Server: Movistar - Barranquilla (id = 17577)
                                     ISP: Telmex Colombia S.A.
                                 Latency:    36.99 ms   (3.52 ms jitter)
                                Download:   140.77 Mbps (data used: 171.6 MB)
                                Upload:     FAILED
                                [error] Protocol error: Did not receive HELLO
                                

                                so i decided to "illogically" increase the upload. test with 50 Mbits/s

                                  Server: Movistar - Barranquilla (id = 17577)
                                     ISP: Telmex Colombia S.A.
                                 Latency:    43.55 ms   (4.42 ms jitter)
                                Download:   142.25 Mbps (data used: 193.6 MB)
                                  Upload:     4.07 Mbps (data used: 7.0 MB)
                                Packet Loss:     0.0%
                                

                                i increased the upload parameter one more time. this time to 100 Mbit/s (which is 10x larger than my real upload speed)

                                  Server: Movistar - Barranquilla (id = 17577)
                                     ISP: Telmex Colombia S.A.
                                 Latency:    42.05 ms   (3.65 ms jitter)
                                Download:   139.95 Mbps (data used: 189.6 MB)
                                  Upload:    10.10 Mbps (data used: 16.5 MB)
                                Packet Loss:     0.0%
                                

                                is there anything im missing or omitting on my setup?
                                why does the upload parameter seem to divide the upload speed by 10?

                                Here are my parameters so far:

                                DOWNLOAD
                                login-to-view


                                alt text

                                M P 2 Replies Last reply Mar 30, 2021, 9:22 PM Reply Quote 0
                                • M
                                  mind12 @andresmorago
                                  last edited by Mar 30, 2021, 9:22 PM

                                  @andresmorago Seems like you have switched the limit and flows parameter values.
                                  Limit should be 10240 and flows 20480

                                  R 1 Reply Last reply Mar 31, 2021, 2:51 AM Reply Quote 0
                                  • R
                                    Ricardox @mind12
                                    last edited by Mar 31, 2021, 2:51 AM

                                    @mind12 For me so it works perfectlylogin-to-view login-to-view login-to-view login-to-view login-to-view

                                    M 1 Reply Last reply Mar 31, 2021, 6:30 AM Reply Quote 0
                                    • M
                                      mind12 @Ricardox
                                      last edited by Mar 31, 2021, 6:30 AM

                                      @ricardox You also have 10240 configured for the limiter not 20480.

                                      Can you achieve your max speed with such a low queue lengths?
                                      I lost about 15Mbit/s from my 150Mbit download even with a 10K queue length.

                                      Why is the gateway empty for the In queue fw rule? I thought it's a must.
                                      And what's that 100 Weight for in the child queue? Never saw that elsewhere.

                                      Thx

                                      Z R 2 Replies Last reply Mar 31, 2021, 6:51 AM Reply Quote 0
                                      • Z
                                        zwck @mind12
                                        last edited by Mar 31, 2021, 6:51 AM

                                        @mind12 is there a general rule of thumb how to choose target interval quantum limit and flow ?

                                        M R 2 Replies Last reply Mar 31, 2021, 6:56 AM Reply Quote 0
                                        • M
                                          mind12 @zwck
                                          last edited by Mar 31, 2021, 6:56 AM

                                          @zwck
                                          Idk, I have just used the same working config as others here from this post: https://forum.netgate.com/topic/112527/playing-with-fq_codel-in-2-4/815

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