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

    Traffic shaper and gaming

    Scheduled Pinned Locked Moved Traffic Shaping
    20 Posts 3 Posters 6.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.
    • A
      afern23
      last edited by

      I have traffic shaper set up on priq for both Wan and Lan interfaces and have queues for gaming, ack and deafult. Gaming has priorty 7 with nothing check marked except the last on, I believe it is Codel. Ack is at priority 6 with nothing check marked and default has only default check marked. i have firewall rule set up so that all the ports for the playstation 4 go into ack and game queue for tcp ports and game queue only for udp ports but for some reason all traffic works properly before a game of lets say call of duty by going into the game queue but when the game actually starts and we start playing, all traffic pretty goes into default. Can anyone explain this?

      1 Reply Last reply Reply Quote 0
      • R
        roccor
        last edited by

        Afern, can you post your shaper config?

        1 Reply Last reply Reply Quote 0
        • A
          afern23
          last edited by

          this is my traffic shaper config

          shaper>
          <queue><interface>wan</interface>
          <name>wan</name>
          <scheduler>PRIQ</scheduler>
          <bandwidth>16</bandwidth>
          <bandwidthtype>Mb</bandwidthtype>
          <enabled>on</enabled>
          <queue><name>qACK</name>
          <interface>wan</interface>
          <priority>6</priority>
          <enabled>on</enabled>
          <ecn>ecn</ecn></queue>
          <queue><name>qDefault</name>
          <interface>wan</interface>
          <priority>5</priority>
          <enabled>on</enabled>
          <default>default</default></queue>
          <queue><name>qGames</name>
          <interface>wan</interface>
          <priority>7</priority>
          <enabled>on</enabled>
          <codel>codel</codel></queue></queue>
          <queue><interface>lan</interface>
          <name>lan</name>
          <scheduler>PRIQ</scheduler>
          <bandwidth>60</bandwidth>
          <bandwidthtype>Mb</bandwidthtype>
          <enabled>on</enabled>
          <queue><name>qLink</name>
          <interface>lan</interface>
          <qlimit>500</qlimit>
          <priority>2</priority>
          <enabled>on</enabled>
          <default>on</default>
          <ecn>on</ecn></queue>
          <queue><name>qACK</name>
          <interface>lan</interface>
          <priority>6</priority>
          <enabled>on</enabled>
          <ecn>on</ecn></queue>
          <queue><name>qGames</name>
          <interface>lan</interface>
          <priority>7</priority>
          <enabled>on</enabled>
          <codel>codel</codel></queue></queue>

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            A screenshot of your floating rules please.

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              Can you show a screen of the details of the first rule for Ps4?

              1 Reply Last reply Reply Quote 0
              • A
                afern23
                last edited by

                okay so here is the allies for ps4

                alias.png
                alias.png_thumb

                1 Reply Last reply Reply Quote 0
                • A
                  afern23
                  last edited by

                  this is the first rule

                  ![source 1.png](/public/imported_attachments/1/source 1.png)
                  ![source 1.png_thumb](/public/imported_attachments/1/source 1.png_thumb)
                  ![source 2.png](/public/imported_attachments/1/source 2.png)
                  ![source 2.png_thumb](/public/imported_attachments/1/source 2.png_thumb)

                  1 Reply Last reply Reply Quote 0
                  • A
                    afern23
                    last edited by

                    this is the second rule

                    ![destination 1.png](/public/imported_attachments/1/destination 1.png)
                    ![destination 1.png_thumb](/public/imported_attachments/1/destination 1.png_thumb)
                    ![destination 2.png](/public/imported_attachments/1/destination 2.png)
                    ![destination 2.png_thumb](/public/imported_attachments/1/destination 2.png_thumb)

                    1 Reply Last reply Reply Quote 0
                    • A
                      afern23
                      last edited by

                      this a game port rule

                      ![port game1.png](/public/imported_attachments/1/port game1.png)
                      ![port game1.png_thumb](/public/imported_attachments/1/port game1.png_thumb)
                      ![port game2.png](/public/imported_attachments/1/port game2.png)
                      ![port game2.png_thumb](/public/imported_attachments/1/port game2.png_thumb)

                      1 Reply Last reply Reply Quote 0
                      • A
                        afern23
                        last edited by

                        also it shows this during packet capture

                        14:35:30.887057 IP 192.168.1.90 > 73.181.40.222: ICMP 192.168.1.90 udp port 3074 unreachable, length 36
                        14:35:31.385923 IP 180.10.151.134.3074 > 192.168.1.90.3074: UDP, length 6
                        14:35:31.386280 IP 192.168.1.90 > 180.10.151.134: ICMP 192.168.1.90 udp port 3074 unreachable, length 36
                        14:35:31.455092 IP 172.6.33.182.3074 > 192.168.1.90.3074: UDP, length 6
                        14:35:31.455461 IP 192.168.1.90 > 172.6.33.182: ICMP 192.168.1.90 udp port 3074 unreachable, length 36
                        14:35:31.527863 IP 68.230.60.78.41147 > 192.168.1.90.3074: UDP, length 6
                        14:35:31.528208 IP 192.168.1.90 > 68.230.60.78: ICMP 192.168.1.90 udp port 3074 unreachable, length 36
                        14:35:31.653851 IP 70.190.150.248.3074 > 192.168.1.90.3074: UDP, length 6
                        14:35:31.654157 IP 192.168.1.90 > 70.190.150.248: ICMP 192.168.1.90 udp port 3074 unreachable, length 36

                        why does it say that port 3074 is unreachable?

                        1 Reply Last reply Reply Quote 0
                        • KOMK
                          KOM
                          last edited by

                          In your first floating rule, you have the Interface set to WAN and the Source set to a private IP space address.  This won't work unless your private network is on the outside of your router…  Unset WAN and leave it so that both WAN and LAN are unselected.  Change the Protocol from any to TCP/UDP, and then change your queue so that Ackqueue is set to qACK.  Make sure the ports are set to Any and not (other).  Edit your other Ps4 floating rule just like this.

                          Lastly, your PS4 is trying to send an ICMP (ping) packet to port 3074 at those IP addresses, and is being blocked for some reason.

                          1 Reply Last reply Reply Quote 0
                          • A
                            afern23
                            last edited by

                            Is this happening on my end? Is there a way to allow my ps4 ip icmp ping requests?

                            1 Reply Last reply Reply Quote 0
                            • KOMK
                              KOM
                              last edited by

                              It looks like it's the receiving end that is blocking the packets.

                              1 Reply Last reply Reply Quote 0
                              • A
                                afern23
                                last edited by

                                Also should I keep the rules for the ports on Wan interface or should I have both Wan and Lan unselected

                                1 Reply Last reply Reply Quote 0
                                • A
                                  afern23
                                  last edited by

                                  That's weird

                                  1 Reply Last reply Reply Quote 0
                                  • KOMK
                                    KOM
                                    last edited by

                                    I would unselect them.  That way the rule applies to either interface.

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      afern23
                                      last edited by

                                      Should I keep port rules on wan or should I have both WaN and Lan unselected

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        afern23
                                        last edited by

                                        Sorry for asking the same question twice. And okay thanks. I'll give these new settings a shot

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          afern23
                                          last edited by

                                          So about the icmp ping requests. Is there anything I should do about this? Or does it even effect me at all in terms of latency and such for gaming. I still can't firgure out why on call of duty all the traffic goes to the game queue while in a lobby but when the match starts and up until the end of the match all traffic mainly goes through default. When I run packet capture the only ports being utilized is 3074 which I have a rule for that goes through game queue only since its mostly udp packets. Is there anything I could do about this?

                                          1 Reply Last reply Reply Quote 0
                                          • KOMK
                                            KOM
                                            last edited by

                                            I don't think there is anything you can do about it. If you haven't noticed any in-game issues or network gameplay features not working then I really wouldn't be concerned.  It may be as simple as a heartbeat check for game clients that are no longer there.

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