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

TCP ack Prioritization

Scheduled Pinned Locked Moved Traffic Shaping
7 Posts 3 Posters 1.1k 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.
  • M
    MagikMark
    last edited by Jan 8, 2023, 9:15 AM

    I'm currently using FQCodel to address bufferbloat. Works very well. I would like to experiment on prioritization of packets such as "TCP ACK" can any one provide some guidelines? Currently It is set up like this:

    1. Created another queue under upload pipe with a weight of 10 (named "Upload Priority Queue")
    2. Creaded floating rule :
      Action: Pass
      Interface: WAN
      Direction: Out
      Address Family: IPv4
      Protocol: TCP
      Source: Any
      Destination: Any
      TCP Flag: out of ACK (2nd row)
      Gateway: WAN
      In/Out Pipe: Download Queue / Upload Priority Queue

    Any thoughts on this?

    Thanks

    M 1 Reply Last reply Feb 18, 2023, 5:18 PM Reply Quote 0
    • M
      mloiterman @MagikMark
      last edited by Feb 18, 2023, 5:18 PM

      @magikmark

      This is really interesting and something I’ve been thinking about recently. I’ve implemented your configuration and so far it seems to work well. I did have to flip the way you had your pipes setup to get it to work, however. I think the in pipe has to be used for the upload and the out pipe has to be used for download at least in my system.

      I’ve also noticed that my OpenVPN connection is broken in a strange way it connects and I can ping internally but can’t pull up the web interface for any of my local servers or access anything outside my local network. I have to do some additional testing but I think it’s because the ACKs are not getting routed probably back through the VPN.

      Interested to know if you’ve made any changes to your setup or discovered anything else.

      M 1 Reply Last reply Feb 21, 2023, 7:35 AM Reply Quote 0
      • M
        Mystique_
        last edited by Feb 20, 2023, 6:56 PM

        Hey there.

        Can you possibly share a screenshot of your rules..

        I’m confused about if you only have the rules you described or if I have a problem with the 23.01 shaper wizard..

        Thanks in advance.

        M 1 Reply Last reply Feb 21, 2023, 7:42 AM Reply Quote 0
        • M
          MagikMark @mloiterman
          last edited by Feb 21, 2023, 7:35 AM

          @mloiterman

          You're right, the pipes are reversed. Made the corrections already. Thank you for pointing that out. This approach would bring down latency in very busy environemnt. I'm also using this in DNS queries.

          I only use VPN on client side using the provider's app. No problem so far

          M 1 Reply Last reply Feb 21, 2023, 2:44 PM Reply Quote 0
          • M
            MagikMark @Mystique_
            last edited by MagikMark Feb 21, 2023, 7:43 AM Feb 21, 2023, 7:42 AM

            @mystique_

            I use this guide for bufferbloat management. It has the same rules as mine:

            BufferBloat

            Remember to use "Match" instead of "In" under "Action" field. Pfsense recipe guide uses the reverse.

            1 Reply Last reply Reply Quote 0
            • M
              mloiterman @MagikMark
              last edited by Feb 21, 2023, 2:44 PM

              @magikmark

              I've been playing with this a bit more and trying to optimize things, but it seems like great minds think alike...tell me more about what you've done with the DNS queries.

              Also, have you played at all with DiffServ Code Points?

              M 1 Reply Last reply Feb 21, 2023, 8:57 PM Reply Quote 0
              • M
                MagikMark @mloiterman
                last edited by Feb 21, 2023, 8:57 PM

                @mloiterman

                DiffServe Code Points? What do u mean?

                All DNS queries are given the same priority as the TCP ack. Creat a floating rule that would intercept queries on your DNS resolver provider.

                The way I set up my DNS is somethin like this:

                AdGuard Home for pfSense

                Then I use NextDNS for my upstream DNS

                What optimization have you done on your pfsense? Have you tried playing around with the System Tunables?

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  [[user:consent.lead]]
                  [[user:consent.not_received]]