OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 20.7 Legacy Series »
  • [SOLVED] Regular packet loss / latency spikes of ~30 seconds
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Regular packet loss / latency spikes of ~30 seconds  (Read 6109 times)

crayon

  • Newbie
  • *
  • Posts: 13
  • Karma: 4
    • View Profile
[SOLVED] Regular packet loss / latency spikes of ~30 seconds
« on: January 28, 2021, 10:42:48 am »
Hi Forum,

I'm trying to debug a curious problem that's been plaguing us for a while now (first time reported to me October 2020). We're seeing regular packet loss / latency spikes for ~30 seconds, which is particularly disrupting during video calls.

Our setup:

PC Engines APU2D4 (co-located) currently running OPNsense 20.7.8 as router/firewall. The system has been in place for 2 years, and we've only seen issues recently.

Interface 1 (if1): WAN
Interface 2 (if2): carries 3 VLANs (our internal network) to our offices in another building
Interface 3 (if3): DMZ

Ifs 1 and 2 are connected to the server room switch, if3 is connected to two servers through our own small switch.

We only observe the issues on if1 and if2, never on if3.

I'm monitoring all three interfaces from OPNsense through monit ping tests to the next available system (upstream router on if1, our own switch on if2, both servers on if3).

Because we only see issues on if1 and if2, e.g. the ones connected to the server room network equipment, I thought the problem could be there. While I'm still monitoring that, I think it can increasingly rule out this possibility.

Things I've (unsuccessfully) tried on the router:
- downgrade to 20.7.4 (the version preceding the first problem report)
- disable flow control (dev.igb.X.fc=0)
- disable TSO (net.inet.tcp.tso=0)

I don't see any suspicious messages in the logs.

My gut feeling is that this may be an issue with the new iflib-ified igb(4), but I'm puzzled that we don't see these issues on if3.

I've though about downgrading to OPNsense 20.1.9 as a test; would that be possible from a 20.7.8-based system, or result in issues with the configuration?

Thanks for reading, if anyone has an idea I'm all ears.

Thanks!
« Last Edit: December 15, 2021, 12:14:32 am by crayon »
Logged
APU2D4

thowe

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 11
  • Open Source can do a lot.
    • View Profile
Re: Regular packet loss / latency spikes of ~30 seconds
« Reply #1 on: January 29, 2021, 10:57:15 am »
If it is some kind of incompatibility between the firewall and the central switch, interposing a small switch might help for a test. This might solve the problem by "normalizing" the communication. It would be worth a try.
Logged
System 1: PC Engines APU2C4
System 2: PC Engines APU2E4
System 3: Proxmox-VM on Intel NUC

crayon

  • Newbie
  • *
  • Posts: 13
  • Karma: 4
    • View Profile
Re: Regular packet loss / latency spikes of ~30 seconds
« Reply #2 on: January 29, 2021, 06:46:19 pm »
Good suggestion, I'll give it a try, thanks. Updating to 21.1 did not help in any case.
Logged
APU2D4

linuxmail

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
    • View Profile
Re: Regular packet loss / latency spikes of ~30 seconds
« Reply #3 on: February 24, 2021, 02:36:31 pm »
hi,

can you tell me, what for a network card you use ?

Because: https://forum.opnsense.org/index.php?topic=21663.0
Logged

crayon

  • Newbie
  • *
  • Posts: 13
  • Karma: 4
    • View Profile
Re: Regular packet loss / latency spikes of ~30 seconds
« Reply #4 on: February 26, 2021, 03:07:41 pm »
Quote from: linuxmail on February 24, 2021, 02:36:31 pm
hi,

can you tell me, what for a network card you use ?

Because: https://forum.opnsense.org/index.php?topic=21663.0

NIC in use: Intel i210AT. The problems I have sound different from the ones you describe.

I have since updated to OPNsense 21.1.2.

The issue on the WAN connection appears to have been fixed by moving to a different switch port. The issues on the LAN port persist though; there have been fixes related to iflib/igb/VLAN in FreeBSD, so I'm trying to figure out whether any of them may help.
« Last Edit: February 26, 2021, 04:08:54 pm by crayon »
Logged
APU2D4

crayon

  • Newbie
  • *
  • Posts: 13
  • Karma: 4
    • View Profile
Re: Regular packet loss / latency spikes of ~30 seconds
« Reply #5 on: December 14, 2021, 03:29:52 pm »
Just a not that we eventually figured this problem out. It was due to an overheating fanless switch; after replacing it the issues went away.
Logged
APU2D4

thowe

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 11
  • Open Source can do a lot.
    • View Profile
Re: Regular packet loss / latency spikes of ~30 seconds
« Reply #6 on: December 14, 2021, 04:24:48 pm »
Thanks for the update!  8)

If you wish, you could add [SOLVED] to the title then.
Logged
System 1: PC Engines APU2C4
System 2: PC Engines APU2E4
System 3: Proxmox-VM on Intel NUC

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 20.7 Legacy Series »
  • [SOLVED] Regular packet loss / latency spikes of ~30 seconds
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2