• 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.5m
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.
  • B
    bobbenheim @tman222
    last edited by Feb 23, 2020, 10:53 PM

    @tman222 using traceroute in windows gives the same problem, the only solution so far seems to be making a rule omitting ICMP traffic from FQ-CoDel.
    Weird thing is that it works fine with IPfire which i briefly tried some months ago, so it might be something with the FreeBSD implementation of it.

    1 Reply Last reply Reply Quote 0
    • T
      tomashk @tman222
      last edited by Feb 24, 2020, 9:54 AM

      @tman222 said in Playing with fq_codel in 2.4:

      Do you have any suggestions how to modify the floating rules so that traceroute using UDP might work properly?

      For me the following works:
      Create floating rule with limiters (with match action) not on "WAN out" but on "LAN/VLAN in" (in one floating rule you can select multiple interfaces/vlans) for traffic with source "any" and destination "not-your-local-networks-alias" - that works great for me, and for my easy setup I need only one floating rule for all my VLANS and with "in" traffic you don't need to set gateway.

      Unfortunately it won't work for traffic with source IP of your pfsense router

      1 Reply Last reply Reply Quote 0
      • K
        kasper93 @uptownVagrant
        last edited by kasper93 Mar 28, 2020, 5:18 PM Mar 28, 2020, 5:03 PM

        @uptownVagrant said in Playing with fq_codel in 2.4:

        1.) Add quick pass floating rule to handle ICMP traceroute. This rule matches ICMP traceroute packets so that they are not matched by the WAN-Out limiter rule that utilizes policy routing. Policy routing breaks traceroute.

        Are you guys actually sure it is this issue? The linked doc page and bug #932 is quite the opposite what we see here. It makes perfect sense that policy routing in certain cases does not decrease TTL making router (pfsense box) invisible in traceroute, but the rest of the hops looks ok.

        Our issue is that it shows only one hop which is destination and nothing else. Which arguably doesn't make sense. Have anyone actually look into it or just found not quite similar traceroute issue and call it a day?

        With Limiter:

          1    <1 ms    <1 ms    <1 ms  <...> [192.168.0.1]
          2     *        *        *     Request timed out.
          3    11 ms    14 ms     8 ms  one.one.one.one [1.1.1.1]
          4    12 ms    11 ms    12 ms  one.one.one.one [1.1.1.1]
          5    12 ms    14 ms    18 ms  one.one.one.one [1.1.1.1]
          6    13 ms    13 ms    11 ms  one.one.one.one [1.1.1.1]
          7    13 ms    10 ms    11 ms  one.one.one.one [1.1.1.1]
          8    55 ms    54 ms    54 ms  one.one.one.one [1.1.1.1]
          9    49 ms    49 ms    51 ms  one.one.one.one [1.1.1.1]
         10    37 ms    37 ms    56 ms  one.one.one.one [1.1.1.1]
         11    55 ms    52 ms    50 ms  one.one.one.one [1.1.1.1]
        

        Without Limiter:

          1    <1 ms    <1 ms    <1 ms  <...> [192.168.0.1]
          2     *        *        *     Request timed out.
          <removed some hops, but they are properly shown>
          8    55 ms    53 ms    50 ms  ae-12.r24.amstnl02.nl.bb.gin.ntt.net [129.250.3.81]
          9    59 ms    54 ms    53 ms  ae-7.r03.amstnl02.nl.bb.gin.ntt.net [129.250.2.103]
         10    58 ms    59 ms    60 ms  81.20.65.150
         11    56 ms    64 ms    56 ms  one.one.one.one [1.1.1.1]
        
        1 Reply Last reply Reply Quote 0
        • P
          PNet
          last edited by PNet Mar 29, 2020, 2:41 AM Mar 28, 2020, 9:31 PM

          I wanted to check to see if anyone else is having issues with the newly released 2.4.5 (released 2020-03-26) using fq_codel. I had a perfectly working limiter setup with 2.4.4_3 and upgraded to 2.4.5 and now It will no longer load up the limiter, having the following in the logs:

          • php-fpm[351]: /rc.filter_configure_sync: The command '/sbin/kldload dummynet' returned exit code '1', the output was 'kldload: can't load dummynet: No such file or directory'
          • php-fpm[351]: /rc.filter_configure_sync: The command '/sbin/ipfw /tmp/rules.limiter' returned exit code '1', the output was 'Line 2: setsockopt(IP_DUMMYNET_CONFIGURE): Protocol not available'

          I completely removed my limiters/queue and floating rule, recreated within the gui and the same occurs. Was the dummynet kernel module not built with the 2.4.5 release or can I manually add it back? I found an old thread that this happened within the builds back in 2010 but nothing else current. At this point limiters are dead for me due to the non existent dummynet kernel module.

          uname info:
          FreeBSD XXXXXXXXXX 11.3-STABLE FreeBSD 11.3-STABLE #236 21cbb70bbd1(RELENG_2_4_5): Tue Mar 24 15:26:53 EDT 2020 root@buildbot1-nyi.netgate.com:/build/ce-crossbuild-245/obj/amd64/YNx4Qq3j/build/ce-crossbuild-245/sources/FreeBSD-src/sys/pfSense amd64

          Just an FYI I resolved the issue incase anyone else encounters this. Not sure if it is the correct fix. but I utilize ZFS instead of UFS, and it appears the old /boot use to actually be /bootpool/boot but after upgrade to 2.4.5 it has a new /boot under the root filesystem. This new /boot did not contain the /boot/kernel subdirectory and kernel modules so I did the following and rebooted
          mkdir /boot/kernel
          # cp -p /bootpool/boot/kernel/* /boot/kernel/
          # cp -p /boot/loader.conf /boot/loader.conf.orig
          # cp /bootpool/boot/loader.conf /boot/loader.conf

          Then rebooted and the system was able to load the dummynet kernel module - resolved.

          1 Reply Last reply Reply Quote 0
          • K
            kasper93
            last edited by Mar 28, 2020, 11:31 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • T
              tman222 @uptownVagrant
              last edited by Mar 31, 2020, 2:57 AM

              Hi @uptownVagrant - I have a quick question regarding your quick pass floating rule for echo-request and echo-reply from your configuration in post 815:


              2.) Add quick pass floating rule to handle ICMP echo-request and echo-reply. This rule matches ping packets so that they are not matched by the limiter rules. See bug 9024 for more info.

              Action: Pass
              Quick: Tick Apply the action immediately on match.
              Interface: WAN
              Direction: any
              Address Family: IPv4
              Protocol: ICMP
              ICMP subtypes: Echo reply, Echo Request
              Source: any
              Destination: any
              Description: limiter drop echo-reply under load workaround
              Click Save


              I see that this rules also allows the firewall (WAN IP) to respond to pings from the internet. How would you change this rule to avoid that (i.e. only allow outgoing ping but not incoming)? Would it just be as simple as changing the Source from "any" to e.g. "WAN Address"?

              Thanks in advance.

              B 1 Reply Last reply Mar 31, 2020, 1:39 PM Reply Quote 0
              • B
                bobbenheim @tman222
                last edited by Mar 31, 2020, 1:39 PM

                @tman222 setting direction to "out" and choose your gateway in advanced should give the result you want.

                T 1 Reply Last reply Apr 1, 2020, 1:44 PM Reply Quote 0
                • T
                  tman222 @bobbenheim
                  last edited by Apr 1, 2020, 1:44 PM

                  @bobbenheim said in Playing with fq_codel in 2.4:

                  @tman222 setting direction to "out" and choose your gateway in advanced should give the result you want.

                  Thanks @bobbenheim - that worked! I actually did try setting the direction on the rule to "Out" at first, but then outbound pings from LAN interfaces stopped working. Now I see why - I didn't realize I needed to set the gateway in advanced settings. Thanks again.

                  1 Reply Last reply Reply Quote 0
                  • D
                    dtaht
                    last edited by Apr 18, 2020, 8:29 AM

                    @gsakes @uptownVagrant etc. I've been looking for some coherent recommendations for zoom, especially, as to how to improve your videoconferencing experience. Also curious as to how just generic fq_codel is treating that for y'all?

                    Oy, what a long thread this has been!

                    1 Reply Last reply Reply Quote 0
                    • M
                      mikekoke
                      last edited by Apr 18, 2020, 3:58 PM

                      Hi, I have a problem, if after enabling the limiter I start to download a game that saturates the band and in the meantime I perform a ping, the ping increases from 10 ms to 50 ms.
                      Here are the screenshots of the settings, my bandwidth is 120/20.
                      Should I change something?

                      login-to-view spoiler

                      login-to-view spoiler

                      login-to-view

                      login-to-view

                      R 2 Replies Last reply Apr 18, 2020, 5:09 PM Reply Quote 0
                      • R
                        Ricardox @mikekoke
                        last edited by Apr 18, 2020, 5:09 PM

                        @mikekoke Sorry my English, I play without problems with these settings, stable ping + or - 2ms of variation.

                        login-to-view login-to-view

                        1 Reply Last reply Reply Quote 0
                        • R
                          Ricardox @mikekoke
                          last edited by Apr 18, 2020, 5:17 PM

                          @mikekoke My result

                          login-to-view

                          1 Reply Last reply Reply Quote 0
                          • M
                            mikekoke
                            last edited by Apr 18, 2020, 5:34 PM

                            Hi, thanks for the reply, but i have already tried to enable those two settings and the result does not change.
                            By doing the test on dslreports with the configuration shown in the screenshots i get three A + but if i download a game and at the same time i ping 8.8.8.8 the latency increases from 10 to 50 ms.

                            R 1 Reply Last reply Apr 19, 2020, 4:49 PM Reply Quote 1
                            • R
                              Ricardox @mikekoke
                              last edited by Apr 19, 2020, 4:49 PM

                              @mikekoke I did the download test and I didn't have this problem.

                              login-to-view

                              1 Reply Last reply Reply Quote 0
                              • M
                                mikekoke
                                last edited by Apr 19, 2020, 10:19 PM

                                When I did my tests I ran multiple downloads simultaneously to saturate the band.

                                R F 2 Replies Last reply Apr 20, 2020, 1:12 AM Reply Quote 0
                                • R
                                  Ricardox @mikekoke
                                  last edited by Ricardox Apr 20, 2020, 1:15 AM Apr 20, 2020, 1:12 AM

                                  @mikekoke Mystery.

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    dtaht
                                    last edited by Apr 20, 2020, 5:28 AM

                                    when you say "downloading a game" do you mean, steam? Steam really abuses the network, opening 10 or more full rate flows, and even with cake, it's hard to beat them down.

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      mikekoke
                                      last edited by Apr 20, 2020, 10:40 AM

                                      Yes, Steam.
                                      I'll try doing normal downloads.
                                      Would the best settings be Tail Drop, FQ_Codel, Queue length at 10000 and ECN both on download and on upload or only on download? I read that the ECN annoys the upload.
                                      The Queues of both on Tail Drop but without ECN and Queue length?
                                      Sorry for the questions but I have read the discussion and there are many opinions on the matter.

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        Pentangle
                                        last edited by Apr 20, 2020, 10:53 AM

                                        Does it still give the same issue when you reduce the headline bandwidth you have set in the limiters?

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          mikekoke
                                          last edited by Apr 20, 2020, 10:58 AM

                                          Yes, even if the bandwidth is reduced, the ping increases the same.

                                          R 2 Replies Last reply Apr 20, 2020, 11:24 AM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.