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

2.4.5 High latency and packet loss, not in a vm

Problems Installing or Upgrading pfSense Software
22
81
17.1k
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.
  • S
    stephenw10 Netgate Administrator
    last edited by Apr 4, 2020, 7:58 PM

    Try running a packet capture on the WAN when you see this. Filter by pings.
    Check to see where the latency is happening. Ping requests delayed sending, delayed responses or somehow delayed within pf before it gets back to the ping process.

    Steve

    1 Reply Last reply Reply Quote 0
    • ?
      A Former User
      last edited by Apr 4, 2020, 8:20 PM

      Delayed by pf. Pings between vlans see the latency when tables are reloaded.

      From one vlan to another:

      login-to-view

      1 Reply Last reply Reply Quote 0
      • D
        Derelict LAYER 8 Netgate
        last edited by Apr 4, 2020, 8:23 PM

        That is not a packet capture.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by A Former User Apr 4, 2020, 8:54 PM Apr 4, 2020, 8:27 PM

          I am aware of that. Standby for a packet capture.

          login-to-view

          login-to-view

          1 Reply Last reply Reply Quote 0
          • D
            Derelict LAYER 8 Netgate
            last edited by Apr 4, 2020, 10:01 PM

            If you are not able to test in a way that allows you to post actual pcaps I don't know how much good it is going to do anyone.

            It is past the point of trying to convince people this is a problem (in apparently edge cases). Now it's about trying to compile information so it can be identified and corrected.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User
              last edited by Apr 4, 2020, 10:11 PM

              That is a pcap, in wireshark with my public ip blanked out. I would be happy to send you the file if you would like but I'll decline to post it publicly, some knuckle head will just decide to go fishing around at my public ip.

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Apr 4, 2020, 10:18 PM

                I find adding the 'time difference' and 'response time' columns useful here.

                That will show if the request is delayed. And what the actual response time on the wire is. Like:

                login-to-view

                ? 1 Reply Last reply Apr 4, 2020, 10:34 PM Reply Quote 0
                • D
                  Derelict LAYER 8 Netgate
                  last edited by Apr 4, 2020, 10:20 PM

                  I just don't think this data is very helpful at diagnosing exactly what is happening.

                  Chattanooga, Tennessee, USA
                  A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                  DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                  Do Not Chat For Help! NO_WAN_EGRESS(TM)

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @stephenw10
                    last edited by A Former User Apr 4, 2020, 11:18 PM Apr 4, 2020, 10:34 PM

                    @stephenw10 said in 2.4.5 High latency and packet loss, not in a vm:

                    I see delta time but not response time as column choices. Maybe it would be more expedient for me to send the pcap. I have used wireshark exactly once, this time. :)

                    OK, I see now. Custom column and then icmp.resptime. Does that make any sense if it's not sorted by the icmp seq number?

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by Apr 4, 2020, 11:52 PM

                      I hope this is more useful. If not I'll try again.

                      login-to-view

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User
                        last edited by Apr 5, 2020, 1:13 AM

                        I'll add this to the mix. I changed the average time in the gateway settings. That's the time dpinger averages over. When changing the setting, saving and then applying it the interface locked up for an extended time (minutes).

                        So, I ssh'd in, ran top and did it again:

                        login-to-view

                        I can see dpinger using some resources, but why pfctl, ntpd and sshd? I'm not sure if that means anything, but it sure appears odd to me.

                        1 Reply Last reply Reply Quote 0
                        • R
                          riften
                          last edited by Apr 5, 2020, 2:51 AM

                          This looks so much like the problem I had, even before PFS 2.45. The symptoms. Latency spikes, then packet loss over and over. I had just created my first VLAN and gave the VLAN interface a static IPV6 in one of the 64s I should have. But no route and this horrible latency and packet drop. I followed the info HERE and created a 'Configuration Override' on the WAN IPV6 and set my VLAN static IPV6 and that was the only way to get darn ATT to route IPV6 from my VLAN. It made it trouble free after I spent almost a week pulling out my hair. So just wondering, can you guys ping (route) from your LAN or from the VLANS in ipv6? I am seeing ipv4 pings but did I miss the ipv6 pings...
                          I'm on 2.45 with no issues, and am using the latest PFBLOCKERNG. It just looks so familiar...

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User
                            last edited by Apr 5, 2020, 3:13 AM

                            I can ping ipv6 without issue. I get a /56 from my isp.

                            The only thing that has changed in my configuration is the pfsense version.

                            I have offered to share my config.xml to test on matching hardware. My Supermicro hardware is the same as a box Netgate sells other than not being Netgate branded.

                            This is an frustrating problem, more so for Netgate than anyone else I'm sure.

                            1 Reply Last reply Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Apr 5, 2020, 11:10 AM

                              Can you see what is calling pfctl if you run, say: ps -auxdww | grep pfctl.

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User
                                last edited by A Former User Apr 5, 2020, 2:19 PM Apr 5, 2020, 1:41 PM

                                root 25572 33.5 0.0 8828 4888 - R 09:34 0:04.12 | | `-- /sbin/pfctl -o basic -f /tmp/rules.debug

                                1 Reply Last reply Reply Quote 0
                                • ?
                                  A Former User
                                  last edited by A Former User Apr 5, 2020, 4:40 PM Apr 5, 2020, 1:44 PM

                                  I was able to run ps auxdww >> psoutput a few times before the shell locked up.

                                  Here it is: (removed)

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Apr 5, 2020, 4:36 PM

                                    Thanks, that could be useful.
                                    Interesting there are things there using far more CPU than I would ever expect.

                                    You might want to remove it though if those public IPs are static.

                                    Steve

                                    ? 2 Replies Last reply Apr 5, 2020, 4:41 PM Reply Quote 0
                                    • ?
                                      A Former User @stephenw10
                                      last edited by Apr 5, 2020, 4:41 PM

                                      @stephenw10 Dynamic. No open ports, so they can bang away all they want ;)

                                      1 Reply Last reply Reply Quote 1
                                      • ?
                                        A Former User @stephenw10
                                        last edited by A Former User Apr 5, 2020, 5:49 PM Apr 5, 2020, 5:44 PM

                                        @stephenw10

                                        I have some spare cycles, I suppose a lot of people do. You, however, are slammed.

                                        If it would be helpful I'm willing to run through a methodical sequence of configurations and test to try to get a handle on the issue(s).

                                        If you provided an outline of configurations like: Generic install, no ipv6, Test. Make big table(s). Test. Turn on ipv6, test. Make big ipv6 tables. Test. Like that.

                                        I can give it some hours over the next day or two and see if that helps get a handle on the issue(s).

                                        I would ask that the tests be specific and the data needed be spelled out clearly so my gaps in experience doesn't reduce the usefulness of the exercise.

                                        I have a Supermicro 5018D-FN4T (32GB ECC) which is the same as Netgates XG-1541. I have been doing zfs (single ssd) UEFI installs.

                                        I wonder if there is something apparently unrelated going on that is common with the installations that are experiencing these issues. Something simple like UPnP or the like. I wouldn't think so, but it would be nice to know exactly what is what as each service is configured in a methodical sequence.

                                        Anyhow, just a thought.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          stephenw10 Netgate Administrator
                                          last edited by Apr 5, 2020, 9:05 PM

                                          The fact that pfctl is running for so long and using so many cycles implies it's having a very hard time loading the ruleset for some reason.
                                          I would manually check the /tmp/rules.debug file. Make sure it's not absolutely huge for example.
                                          If it isn't then start disabling things that add anything to it. So UPnP, and packages like pfBlocker.

                                          Steve

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