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.5m 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.
    • Q
      qwerty123
      last edited by

      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

        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

          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

          Screenshot 2020-11-20 at 09.54.17.png

          1 Reply Last reply Reply Quote 0
          • S
            sikita @daemonix
            last edited by

            @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

              @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.
              08477597-b665-48ff-a147-fae31ab3ca96-image.png

              Sometimes it even gets down to zero.

              Any idea ?

              B N 2 Replies Last reply Reply Quote 0
              • B
                bobbenheim @NinthWave
                last edited by

                @ninthwave What are your settings?

                N 1 Reply Last reply Reply Quote 0
                • N
                  NinthWave @bobbenheim
                  last edited by NinthWave

                  @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 Reply Quote 0
                  • B
                    bobbenheim @NinthWave
                    last edited by

                    @ninthwave try ticking off ecn under limiter

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      NinthWave @bobbenheim
                      last edited by

                      @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 Reply Quote 0
                      • B
                        bobbenheim @NinthWave
                        last edited by

                        @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

                          @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

                            @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.
                            08477597-b665-48ff-a147-fae31ab3ca96-image.png

                            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

                              @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.
                              52711a59-3926-449a-aa4e-b68a5ccf494a-image.png

                              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
                              f87b4e1b-d92c-4eda-8eca-3be45fe2f891-image.png


                              alt text

                              M P 2 Replies Last reply Reply Quote 0
                              • M
                                mind12 @andresmorago
                                last edited by

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

                                R 1 Reply Last reply Reply Quote 0
                                • R
                                  Ricardox @mind12
                                  last edited by

                                  @mind12 For me so it works perfectlyImagem-5.png Imagem-4.png Imagem-3.png Imagem-2.png Imagem-1.jpg

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    mind12 @Ricardox
                                    last edited by

                                    @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 Reply Quote 0
                                    • Z
                                      zwck @mind12
                                      last edited by

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

                                      M R 2 Replies Last reply Reply Quote 0
                                      • M
                                        mind12 @zwck
                                        last edited by

                                        @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
                                        • P
                                          Pentangle @andresmorago
                                          last edited by

                                          @andresmorago Check out your floating firewall rules in/out pipes - are they switched?

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            Ricardox @mind12
                                            last edited by

                                            @mind12 For my 200/100 MB network I have no loss of speed. X86 PC

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