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

Bufferbloat issue when using ipv4 and ipv6

Scheduled Pinned Locked Moved Traffic Shaping
22 Posts 6 Posters 2.2k 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.
  • R
    RobbieTT @Bob.Dig
    last edited by RobbieTT Nov 7, 2023, 2:08 PM Nov 7, 2023, 2:07 PM

    @Bob-Dig

    I went through the guide when I first moved to pfSense and set-up FQ_Codel in the firewall as below:

     2023-11-07 at 14.00.27.png

    Did I also make an error?

    ☕️

    B 1 Reply Last reply Nov 7, 2023, 2:25 PM Reply Quote 0
    • B
      Bob.Dig LAYER 8 @RobbieTT
      last edited by Nov 7, 2023, 2:25 PM

      @RobbieTT said in Bufferbloat issue when using ipv4 and ipv6:

      ☕️

      In their write-up they say you should add the WAN-address, so I would do it.
      Only with IPv6 you shouldn't.

      Capture.PNG
      That is how it is looking here.

      But I disabled them because in my first router (Fritzbox) I can click one button to do it automacically for me and it is even better, less latency and more bandwidth.

      R 1 Reply Last reply Nov 7, 2023, 5:11 PM Reply Quote 0
      • R
        RobbieTT @Bob.Dig
        last edited by Nov 7, 2023, 5:11 PM

        @Bob-Dig

        My first thought was that WAN, as a source, would exclude FQ_Codel from LAN to WAN - ie upload. Presumably this is not the case?

        ☕️

        B 1 Reply Last reply Nov 7, 2023, 5:21 PM Reply Quote 0
        • B
          Bob.Dig LAYER 8 @RobbieTT
          last edited by Bob.Dig Nov 7, 2023, 5:38 PM Nov 7, 2023, 5:21 PM

          @RobbieTT said in Bufferbloat issue when using ipv4 and ipv6:

          Presumably this is not the case?

          No, it will do both. But it is happening after Outbound NAT so the source address will be the WAN-Address for outgoing. Or to be more precise, I don't know how this actually works, I only know it will not work for IPv6 if the WAN-address is specified.

          1 Reply Last reply Reply Quote 0
          • D
            dennypage
            last edited by Nov 7, 2023, 7:16 PM

            The guide is written around IPv4 with NAT.

            For IPv4, if you are using NAT the source address of the packets will be the address of the WAN interface, which is why using a source of "WAN address" works. To my knowledge however, the only reason that it would be important to specify "WAN address" as the source instead of "any" is if you have multiple WAN interfaces. If you have a single WAN interface, a source address of "any" works fine.

            For IPv6, there is no NAT, which means that the source address of the packets will be the address of the originating host. So if you use a source of "WAN address", then you would end up only shaping the packets that originate from the firewall itself which is not very useful. Assuming that you have a single WAN interface, you want to use a source address of "any".

            FWIW, public IPv4 without NAT would need to be handled the same way as IPv6.

            1 Reply Last reply Reply Quote 0
            • A
              AlexanderK
              last edited by Nov 7, 2023, 8:50 PM

              my thoughts...
              My connection is 1gbit/100mbit
              When i am using ipv4 and one gateway everything is perfect.
              When i am using both ipv4 and ipv6 - two different gateways i have issues.
              Is it possible to use the rule per interface?

              R D 3 Replies Last reply Nov 7, 2023, 9:11 PM Reply Quote 0
              • R
                RobbieTT @AlexanderK
                last edited by Nov 7, 2023, 9:11 PM

                @AlexanderK

                I have my firewall settings above and both ipv4 & 6 work perfectly well.

                ☕️

                1 Reply Last reply Reply Quote 1
                • D
                  dennypage @AlexanderK
                  last edited by Nov 7, 2023, 9:15 PM

                  @AlexanderK said in Bufferbloat issue when using ipv4 and ipv6:

                  When i am using both ipv4 and ipv6 - two different gateways i have issues.
                  Is it possible to use the rule per interface?

                  You have two rules because IPv4 and IPv6 use different gateways. But you use the same limiter queue for both IPv4 and IPv6

                  My floating rules look like this:
                  Screenshot 2023-11-07 at 13.03.30.png

                  Both the IPv4 and IPv6 rules have the same queue assignments like this:
                  Screenshot 2023-11-07 at 13.07.34.png

                  1 Reply Last reply Reply Quote 1
                  • R
                    RobbieTT @AlexanderK
                    last edited by Nov 8, 2023, 12:18 PM

                    @AlexanderK said in Bufferbloat issue when using ipv4 and ipv6:

                    My connection is 1gbit/100mbit

                    I have a similar bandwidth, using both IPv4 and IPv6, also via PPPoE:

                    20231108-Bufferbloat-Short Version Smaller.png

                    ☕️

                    D 1 Reply Last reply Nov 8, 2023, 6:58 PM Reply Quote 0
                    • D
                      dennypage @RobbieTT
                      last edited by Nov 8, 2023, 6:58 PM

                      Assuming that the hosts in your LAN are at the same speed as your WAN connection (all 1Gb), I have an experiment to suggest...

                      Change your floating rule such that you are only assigning a limiter to the upload side, like so:

                      Screenshot 2023-11-08 at 10.53.29.png

                      and then re-test. Does your grade change or remain the same?

                      R 1 Reply Last reply Jan 18, 2024, 9:08 AM Reply Quote 0
                      • U
                        User1337
                        last edited by Jan 17, 2024, 7:42 PM

                        I have the same issue. The problem is you can't select IPv4+IPv6 because it doesn't let you save the rule without choosing a gateway, but the gateways are separate for IPv4/6. Thus creating the issue where each gateway receives a limit of X+X, instead of just X. In other words, the limiter is applied separately for IPv4/6 instead of in combination.

                        1 Reply Last reply Reply Quote 0
                        • R
                          RobbieTT @dennypage
                          last edited by Jan 18, 2024, 9:08 AM

                          @dennypage said in Bufferbloat issue when using ipv4 and ipv6:

                          Assuming that the hosts in your LAN are at the same speed as your WAN connection (all 1Gb), I have an experiment to suggest...

                          Change your floating rule such that you are only assigning a limiter to the upload side, like so:

                          Screenshot 2023-11-08 at 10.53.29.png

                          and then re-test. Does your grade change or remain the same?

                          Sorry Denny, I thought I had replied to your suggestion at the time. I set FQ_CoDel on download through experimentation but mindful that setting it on upload only is common. It did improve my latency / buffurbloat under load and with tuning I found a good balance between latency and the small decrease in bandwidth. I experienced the same on 2 different routers previously but both of them did not have the CPU power to run download FQ-CoDel at high bandwidths - this is one of the reasons I moved to pfSense.

                          The downlink from pfSense to my production LAN & VLAN runs at 10 GbE, as do my switches and a number of servers and hosts, so typically at greater bandwidths than my nominal 1 GbE WAN connection. I am not sure my config is what you seek for your experiment but still happy to tweak & test it for you, if you would still like some data?

                          ☕️

                          D 1 Reply Last reply Jan 18, 2024, 4:03 PM Reply Quote 0
                          • D
                            dennypage @RobbieTT
                            last edited by Jan 18, 2024, 4:03 PM

                            @RobbieTT I had suggested the experiment because on reading the description of your config at the time it seemed that you might not have a choke (buffer) point in your download path. And if there is no choke point, shaping such as CoDel is a hinderance rather than a benefit. Sounds like you were already aware of this however. 😊

                            R 1 Reply Last reply Jan 19, 2024, 7:57 AM Reply Quote 1
                            • R
                              RobbieTT @dennypage
                              last edited by Jan 19, 2024, 7:57 AM

                              @dennypage - Thanks Denny 👍

                              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