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

    10%-40% Packet Loss When Somebody On Network Streams Video

    Scheduled Pinned Locked Moved Virtualization
    36 Posts 6 Posters 2.4k 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.
    • GertjanG
      Gertjan @tictag
      last edited by

      @tictag said in 10%-40% Packet Loss When Somebody On Network Streams Video:

      Connected directly to WAN, no issues.

      Important to know.
      If you can do this : what happens if you remove - for me the most obvious - : proxmox.
      pfSense, on a a bare bone device like a 'close to 10 years old' stripped down "PC" can do 100 of Megas/sec.
      For me its a 'like here' or 'change that' in proxmox and pfSense will be fine.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      tictagT 1 Reply Last reply Reply Quote 0
      • tictagT
        tictag @Gertjan
        last edited by tictag

        @Gertjan It's a fair point and I was close to doing that at 23:30 last night after I had pulled out what hair I had left!!

        The things is, I also need to run Unifi Network and PaperCut (these are both disabled at the moment), hence the Proxmox solution. But that said, Internet Access is more important so if I can't find a resolution, that will be my next step.

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @tictag
          last edited by johnpoz

          @tictag said in 10%-40% Packet Loss When Somebody On Network Streams Video:

          I've confirmed 0% packet loss even when our WAN connection is saturated

          That is not what this is showing

          packetloss.jpg

          Nor your monitoring graphs showing packet loss..

          Turn off the gateway action option..

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          M tictagT 2 Replies Last reply Reply Quote 0
          • M
            michmoor LAYER 8 Rebel Alliance @johnpoz
            last edited by

            @johnpoz said in 10%-40% Packet Loss When Somebody On Network Streams Video:

            Turn off the gateway action option..

            What does Gateway Monitoring Action do?
            The documentation is not very clear. Ive submitted a Redmine to give a bit more clarity to the documentation on why one would want to turn off gateway monitoring action and when it would be appropriate to do so.

            Firewall: NetGate,Palo Alto-VM,Juniper SRX
            Routing: Juniper, Arista, Cisco
            Switching: Juniper, Arista, Cisco
            Wireless: Unifi, Aruba IAP
            JNCIP,CCNP Enterprise

            johnpozJ 1 Reply Last reply Reply Quote 1
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @michmoor
              last edited by johnpoz

              @michmoor The action is taken when pfsense believe the internet connection is down, ie what your monitoring is not answering ping.. If you disable the action then high ping times or what pfsense believe is packet loss because the monitoring IP is not answering pings don't take action..

              I have had this set pretty much since day 1.. Because I quite often saturate my links for short bursts and pfsense thinks since the ping times to the monitoring go way up, or showing packet loss it should take some action - when it it shouldn't in my use case.

              This is mostly has use only if your doing failover of some sort, where pfsense thinks well this internet connection is bad should switch over to another connection... If you don't have multiple wan interfaces, then you really have no use of taking any action like killing states, etc. Just disable it - if your internet is actually down your not going anywhere anyway - there is nothing for pfsense to actually do if you only have 1 wan interface.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              M 2 Replies Last reply Reply Quote 0
              • M
                michmoor LAYER 8 Rebel Alliance @johnpoz
                last edited by michmoor

                @johnpoz said in 10%-40% Packet Loss When Somebody On Network Streams Video:

                e had this set pretty much since day 1.. Because I quite often saturate my links for short bursts and pfsense thinks since the ping times to the monitoring go way up, or showing packet loss it should take some action - when it it shouldn't in my use case.

                But what I'm asking is what does this do?
                What action(s) does pfsense take when there is a loss of pings? The blurb is not clear on why someone would or should disable this. So you asked the OP to disable it but why?

                911a7285-ebff-490a-be3d-9a381769a4fb-image.png

                Firewall: NetGate,Palo Alto-VM,Juniper SRX
                Routing: Juniper, Arista, Cisco
                Switching: Juniper, Arista, Cisco
                Wireless: Unifi, Aruba IAP
                JNCIP,CCNP Enterprise

                1 Reply Last reply Reply Quote 0
                • M
                  michmoor LAYER 8 Rebel Alliance @johnpoz
                  last edited by

                  @johnpoz said in 10%-40% Packet Loss When Somebody On Network Streams Video:

                  This is mostly has use only if your doing failover of some sort, where pfsense thinks well this internet connection is bad should switch over to another connection... If you don't have multiple wan interfaces, then you really have no use of taking any action like killing states, etc. Just disable it - if your internet is actually down your not going anywhere anyway - there is nothing for pfsense to actually do if you only have 1 wan interface.

                  Ok so this action specifically is for MultiWAN set ups but what happens when its only a single Internet connection? What does pfsense do?

                  Firewall: NetGate,Palo Alto-VM,Juniper SRX
                  Routing: Juniper, Arista, Cisco
                  Switching: Juniper, Arista, Cisco
                  Wireless: Unifi, Aruba IAP
                  JNCIP,CCNP Enterprise

                  johnpozJ S 2 Replies Last reply Reply Quote 0
                  • tictagT
                    tictag @johnpoz
                    last edited by

                    @johnpoz said in 10%-40% Packet Loss When Somebody On Network Streams Video:

                    Turn off the gateway option..

                    Everybody has gone home now, disabled this option, re-tested, unfortunately, no change.

                    2024-05-14_18-12-46.png

                    2024-05-14_18-10-15.png

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @michmoor
                      last edited by

                      @michmoor it can reset the states..

                      killstates.jpg

                      Which isnt going to make for a good day.

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      M 1 Reply Last reply Reply Quote 0
                      • S
                        SteveITS Galactic Empire @michmoor
                        last edited by

                        @tictag In general this symptom is what traffic shaping is for. If you can identify particular streams then you can lower their priority. Otherwise something like CoDel is supposed to be more automatic.
                        https://docs.netgate.com/pfsense/en/latest/recipes/codel-limiters.html

                        @michmoor said in 10%-40% Packet Loss When Somebody On Network Streams Video:

                        Ok so this action specifically is for MultiWAN set ups but what happens when its only a single Internet connection? What does pfsense do?

                        It's not very useful in that case, no. Basically some form of "consider this WAN to be offline."

                        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                        Upvote 👍 helpful posts!

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @SteveITS
                          last edited by johnpoz

                          @SteveITS said in 10%-40% Packet Loss When Somebody On Network Streams Video:

                          It's not very useful in that case

                          exactly - which is why I have it disabled ;)

                          @tictag
                          Doesn't look your states are resetting now - don't see time with no traffic like you were seeing before, as @SteveITS mentions for something like you don't want something that can saturate your line to effect something like real time traffic like video, qos is something you prob want to look into.

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.8, 24.11

                          tictagT 1 Reply Last reply Reply Quote 0
                          • tictagT
                            tictag @johnpoz
                            last edited by

                            @johnpoz said in 10%-40% Packet Loss When Somebody On Network Streams Video:

                            qos is something you prob want to look into.

                            RE Traffic shaping / QoS... ironically, if you look closely at one of the images of pfSense, the 2nd tab from the left if pfSense's documentation on Traffic Shaping! Definitely on the cards, but just need to solve this problem first.

                            @johnpoz said in 10%-40% Packet Loss When Somebody On Network Streams Video:

                            Doesn't look your states are resetting now

                            The previous screenshot was showing the start-stop behaviour of a large file download, the most recent actually shows the problem I'm facing. You can see the pretty stable LAN OUT and WAN IN, but look at LAN IN, this is my video stream being received on pfSense's LAN interface, now look at what pfSense is actually sending out to the Internet over WAN OUT - every traffic drop shown there is where the pings time-out, the video at the receiving end freezes and the Gateway reports massive packet loss.

                            When adding a large file download i.e. to saturate the WAN pipe, it masks this underlying problem - when a video stream appears on the LAN, pfSense is reporting massive packet loss. Stop the video stream, and everything returns to normal.

                            I've been given some advice that the likely culprit for all my woes is the USB Ethernet adapter.

                            Do you guys think this could be causing the interrupt correlation?

                            johnpozJ tictagT 2 Replies Last reply Reply Quote 0
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator @tictag
                              last edited by

                              @tictag usb interfaces can be problematic for sure.

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.8, 24.11

                              1 Reply Last reply Reply Quote 0
                              • tictagT
                                tictag @tictag
                                last edited by

                                Just a quick update, tried swapping over the USB Ethernet adapter to service the LAN and the inbuilt Ethernet NIC to service the WAN...

                                Let's just say, that did not end well 🤮

                                The instant I started pfSense, I lost all connectivity to Proxmox and a load of kernel errors relating to Realtek (the USB Ethernet adpater's chipset) were recorded in the System Log.

                                I'm really starting to believe this USB Ethernet adapter might be the root cause.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  SteveITS Galactic Empire @tictag
                                  last edited by

                                  @tictag Realtek is also often cited here. :)

                                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                  Upvote 👍 helpful posts!

                                  johnpozJ 1 Reply Last reply Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator @SteveITS
                                    last edited by johnpoz

                                    Yeah realtek not known for being all that great, but that being said I have some usb2.5ge interfaces and work fine but one is windows and the other end is also a usb2.5 in a synology nas with a 3rd party driver written for it.

                                    And I pump lots and lots of data over them.. lots!!

                                    But lots of issues seen here on forums with realtek or just usb in general not something would choose to use at all.

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      michmoor LAYER 8 Rebel Alliance @johnpoz
                                      last edited by

                                      @johnpoz
                                      Do not kill states on gateway failure (Default) setting. Do not sure that’s in play here

                                      Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                      Routing: Juniper, Arista, Cisco
                                      Switching: Juniper, Arista, Cisco
                                      Wireless: Unifi, Aruba IAP
                                      JNCIP,CCNP Enterprise

                                      tictagT 1 Reply Last reply Reply Quote 0
                                      • tictagT
                                        tictag @michmoor
                                        last edited by

                                        @michmoor
                                        I'll try that tonight (when everybody has gone home). I'm also going to try a bare-metal install as a hail-Mary.

                                        Does anybody have any ideas as to why this would only happen with video streaming data? I mean packets are packets to a firewall, right?

                                        The only differences I can think of between video data and, say, web data is a different TCP port and such traffic is likely tagged with higher priority QoS markers. But http and https both have different TCP ports and audio traffic would likely have even higher QoS markers and that is unaffected.

                                        This fault just boggles my mind 🤯

                                        Oh, I found something else out last night, incoming video does NOT cause this issue, only outgoing, so, for example, you could be viewing 10 people's video streams in a Zoom/Teams meeting just fine, but as soon as you turn your camera on, it blows up.

                                        tictagT 1 Reply Last reply Reply Quote 0
                                        • tictagT
                                          tictag @tictag
                                          last edited by

                                          Update: so I bought a new SSD and installed pfSence onto bare metal and ... it works perfectly!! No issues at all, video streaming working fine in both directions, CPU usage doesn't move off 1%, Memory doesn't move off 4%, zero packet loss, RTT 0.6ms, RTTsd 0.1ms. Even maxing out my WAN at 100Mbs, ping times only increase by 10ms.

                                          So this is without any doubt whatsoever, a Proxmox issue. Maybe a driver issue with the external USB Ethernet adapter?

                                          Can you install device drivers in Linux or are they all built into the kernel?

                                          johnpozJ 1 Reply Last reply Reply Quote 0
                                          • johnpozJ
                                            johnpoz LAYER 8 Global Moderator @tictag
                                            last edited by

                                            @tictag you can for sure add drivers to linux.. modprobe, etc. You can always normally recompile the kernal.. Keep in mind pfsense isn't linux.. So take your talking about adding or changing the driver(s) in proxmox.

                                            I use to be a big fan of running pfsense as vm many years ago, but once I went to its own hardware - it is much nicer and easier.. Sure you could take snapshots for backups and switch versions real easy with a vm.. But having its own hardware is better solution to be honest just all the way around.

                                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                                            If you get confused: Listen to the Music Play
                                            Please don't Chat/PM me for help, unless mod related
                                            SG-4860 24.11 | Lab VMs 2.8, 24.11

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