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

    Latency

    Scheduled Pinned Locked Moved Gaming
    20 Posts 10 Posters 13.8k 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.
    • H
      hoba
      last edited by

      Can you test with the trafficshaper enabled and with the trafficshaper disabled and check latency? Try to only have the game running so there is no other concurrent load on the link while testing.

      1 Reply Last reply Reply Quote 0
      • S
        Shanlar
        last edited by

        Trafficshaper had no effect. The only activity I have going on my network is WoW. I have tried it with following settings:

        NAT Reflection enabled and disable
        enabled static port on the default entry it creates when I select to do Advanced Outbound NAT
        static port with a manual entry of 3274 for source, interface WAN
        static port with a manual entry of 3274 for destination, interface WAN
        set firewall to agressive with 30k states

        None of these settings seem to make any noticeable difference. My router is a PII 400 with 512MB RAM so there should be no bottle-neck there.

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by

          do you see errors on any interface whan checking status>interfaces? Maybe you have some link negotiation issue with the modem or a switch somewhere?

          1 Reply Last reply Reply Quote 0
          • S
            sullrich
            last edited by

            Try editing /etc/sysctl.conf with Diagnostics -> Edit file.

            Change:

            net.inet.tcp.rfc1323=1
            to
            net.inet.tcp.rfc1323=0

            Reboot, test again.  Any change?  If not, edit:

            net.inet.tcp.sack.enable=1
            to
            net.inet.tcp.sack.enable=0

            Reboot, test again.  Any change?

            1 Reply Last reply Reply Quote 0
            • C
              cmb
              last edited by

              @revvy:

              ever since i've installed pfsense the latency to .. everywhere become alot worse (places that used to have 1-3 ms is now 20-30 ms in games and even worse for the web)

              I think you're seeing something that just isn't happening. There's no way that's actually the case. It's impossible to have 1-3 ms latency across the Internet, your latency to your first hop is likely at least that much and possibly more. 20-30 ms across the Internet is very good.

              The speed of light in fiber is about 30% less than the speed of light in a vacuum, or roughly 209,854,720 meters per second. That's ~130.4 miles per ms. Given that your average random remote Internet host is probably at least several hundred if not a thousand or more miles away, 1-3 ms is faster than the speed of light. Absolutely without question impossible to achieve without breaking the laws of physics.

              Add varying routing latencies of around 0.2-1 ms per hop depending on router load, and probably 20-30 hops to most destinations, and it's even more impossible.

              Might you be seeing some sort of issue causing increased latency?  It's possible. But when you describe 20-30 ms latencies across the Internet, I really doubt it. pfSense generally adds about 0.2 ms latency to traffic passing through it on lower end hardware, which is better than many routers/firewalls and very acceptable. What you're describing sounds very normal, there's no possible way you ever saw 1-3 ms across the Internet.

              1 Reply Last reply Reply Quote 0
              • S
                Shanlar
                last edited by

                @sullrich:

                Try editing /etc/sysctl.conf with Diagnostics -> Edit file.

                Change:

                net.inet.tcp.rfc1323=1
                to
                net.inet.tcp.rfc1323=0

                Reboot, test again.  Any change?  If not, edit:

                net.inet.tcp.sack.enable=1
                to
                net.inet.tcp.sack.enable=0

                Reboot, test again.  Any change?

                I don't have those entries in my sysctl.conf file. Should I manually add them into it?

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by

                  Yeah, try adding the entries with =1 for kicks.

                  1 Reply Last reply Reply Quote 0
                  • C
                    cmb
                    last edited by

                    I really don't think changing that will have any effect, since you don't seem to be seeing anything abnormal, but let us know.

                    1 Reply Last reply Reply Quote 0
                    • S
                      Shanlar
                      last edited by

                      Yea I tried putting them to 1 and then tried 0, no effect. Any other possible ideas?

                      1 Reply Last reply Reply Quote 0
                      • C
                        cmb
                        last edited by

                        Actually yeah of course that isn't going to affect anything.  Looking back at exactly what was recommended (only briefly glanced through this earlier), that only affects traffic initiated by the firewall itself, it has no effect whatsoever on traffic traversing the firewall.

                        If you take the firewall out and connect directly to the Internet, you can verify that your latency really drops that much? I have my doubts, unless your hardware is undersized, that increased latency would be caused by pfSense.

                        What are the specs of your hardware, CPU, RAM, type of NICs, etc.?

                        1 Reply Last reply Reply Quote 0
                        • S
                          Shanlar
                          last edited by

                          It looks like it isnt pfSense. I did verify my latency drops that low when I am plugged directly into the DSL line. So I went digging through some boxes and found an old DLink router that I plugged in and loaded up WoW on both machines. Same issue happened. So it appears to be related to only when the game is loaded on 2 machines on the network. The odd part is we have no latency issues in any other games, only WoW.

                          Guess it is time to call up my DSL Provider and get them to check out my line. Thanks for the help, I appreciate it.

                          1 Reply Last reply Reply Quote 0
                          • B
                            Bogdan
                            last edited by

                            I had the same problems in the past yer , but i resolve with a new configuration system.
                            I change the network cards in to a gigabyte "intel" 1000 full duplex and the ram "512 ddr333 to 1024 ddr 400
                            I have better connection and lag then i play alone with single pc without any firewall

                            ex : ping 5-10 metro loss=0  choke=0 "  ping 20-30 europe loss=1-3  choke=max5'  ping 30-50 usa loss= 2-8
                            choke= max 20

                            ps: u have to change this

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