Limited connectivity LAN

Hey,

For some time (maybe a month) every time i open Firefox or i have traffic on Opera (or Opera Beta) that goes over 10.2 MiB/s i get this in the system log:

<info>  [1625205063.9936] manager: NetworkManager state is now CONNECTED_SITE

[system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=488 comm="/usr/bin/NetworkManager --no-daemon ")

Starting Network Manager Script Dispatcher Service...

[system] Successfully activated service 'org.freedesktop.nm_dispatcher'

Started Network Manager Script Dispatcher Service.

SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

audit: type=1130 audit(1625205064.002:115): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

NetworkManager-dispatcher.service: Deactivated successfully.

SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

audit: type=1131 audit(1625205074.465:116): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

Right after that, the network has limited connectivity (the issue happens on KDE Plasma testing and unstable branches, but also on Gnome unstable branch) - the installs are separate, as i never mix DE’s and yes, the home directory are not mixed either between the installs. Tested also with 5.13 - 5.12 - 5.10 and 5.4 kernels; and all gave the same result.

I can access the router interface and from there i can ping or traceroute whatever site/domain, there is connectivity and internet access, but i can’t reach internet from the desktop whatsoever, unless i first disconnect the network and restart the router then connect the network.
Just restarting services is not helping either.

Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 v: kernel port: d800 bus-ID: 04:00.0 
           IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IP v4: <filter> type: noprefixroute scope: global 
           IP v6: <filter> scope: link 
           Device-2: Broadcom NetLink BCM5784M Gigabit Ethernet PCIe vendor: Dell driver: tg3 v: kernel port: d800 
           bus-ID: 05:00.0 
           IF: enp5s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
           WAN IP: <filter> 

The thing is, regardless what LAN interface i use, same deal. Tried all the variants of static IP, link negotiation, speed, duplex … still happening. Since i kind of exhausted my “expertize” i thought maybe someone has an idea.
The issue is not present if i use Falkon and Vivaldi browsers. Can’t drop any of the browsers, nor mix their content, as for me each has a clear and predefined use.

Maybe some hardware quirks. Try using another LAN cable or connect to another port at the router.

However, that sounds like the physical connection is still ok when you get to the router from your PC.
Maybe some routing issue. What’s route saying while you have that issue? Is the output different to when it’s working?

2 Likes

So the network interface is working.

That leaves a routing or dns problem.
If you are able to ping machines via IPs but not via hostname - it’s a dns problem.
A little while ago I had a similar peculiar issue on unstable - dns would not work properly until I restarted systemd-resolved.
It went away on its own after 2 or 3 days, though.

2 Likes

In both cases i get:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    100    0        0 enp4s0
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 enp4s0

from my PC i can ping other devices in my network and even kdeconnect still works with my Galaxy Note, but can’t reach internet, while the GN is working fine via wireless.

Changed cables and ports, still does the same.
will try to remove the manually added DNS and see if with the one provided by my ISP is still doing it.

Thanks both for the hints. Will let you know in a bit how this goes.

Update:
Once i removed the manually added DNS on my router, the route with working internet shows

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192-168-0-1.rds 0.0.0.0         UG    100    0        0 enp4s0
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 enp4s0

as you can see now the 192-168-0-1.rds gateway is there instead, but once i hit the 10.2 MiB/s mark, i now get instant limited connectivity and

default         _gateway        0.0.0.0         UG    100    0        0 enp4s0
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 enp4s0

that doesn’t look different then when i had the manual DNS on my router settings.

When you have limited connectivity, can you still ping 9.9.9.9 for example? (I mean, do you get a reply)

Can you post ip r

Let me try to reproduce.
For example with Falkon i can download just fine

image

and the download completes.

While with Opera or Opera Beta this happens exactly when it hits the 10.2MB/s:

image

sure thing, this is what i get regardless (when works or crashes)

default via 192.168.0.1 dev enp4s0 proto dhcp metric 20100 
192.168.0.0/24 dev enp4s0 proto kernel scope link src 192.168.0.100 metric 100

tried with the enp5s0 that is the broadcom one … same deal.

That’s super weird :thinking:

So when you do the Opera download and it kills your connection, are still able to continue browsing with falcon at that point, or is the network really dead then?

What about ping 9.9.9.9 when you’re in that “limited connectivity” state.

Also, could you post: journalctl -u NetworkManager --since "5 minutes ago" shortly after killing it :wink:

no, after that there is no internet connection for any browser or chat client like telegram, slack … etc

it just hangs there with nothing in terminal

iul 02 18:39:18 AuroraALX NetworkManager[488]: <info>  [1625240358.6009] device (enp5s0): state change: disconnected -> unavailable (reason 'carrier-changed', sys-iface-state: 'managed')
iul 02 18:39:22 AuroraALX NetworkManager[488]: <info>  [1625240362.4505] device (enp4s0): carrier: link connected
iul 02 18:39:22 AuroraALX NetworkManager[488]: <info>  [1625240362.4506] device (enp4s0): DHCPv4 lease renewal requested
iul 02 18:39:22 AuroraALX NetworkManager[488]: <info>  [1625240362.4731] dhcp4 (enp4s0): canceled DHCP transaction
iul 02 18:39:22 AuroraALX NetworkManager[488]: <info>  [1625240362.4731] dhcp4 (enp4s0): state changed bound -> terminated
iul 02 18:39:22 AuroraALX NetworkManager[488]: <info>  [1625240362.4735] dhcp4 (enp4s0): activation: beginning transaction (timeout in 45 seconds)
iul 02 18:39:22 AuroraALX NetworkManager[488]: <info>  [1625240362.4741] device (enp5s0): carrier: link connected
iul 02 18:39:22 AuroraALX NetworkManager[488]: <info>  [1625240362.4744] device (enp5s0): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
iul 02 18:39:27 AuroraALX NetworkManager[488]: <info>  [1625240367.6170] device (enp5s0): state change: disconnected -> unavailable (reason 'carrier-changed', sys-iface-state: 'managed')
iul 02 18:39:30 AuroraALX NetworkManager[488]: <info>  [1625240370.9257] device (enp5s0): carrier: link connected
iul 02 18:39:30 AuroraALX NetworkManager[488]: <info>  [1625240370.9260] device (enp5s0): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
iul 02 18:39:31 AuroraALX NetworkManager[488]: <info>  [1625240371.6229] device (enp5s0): state change: disconnected -> unavailable (reason 'carrier-changed', sys-iface-state: 'managed')
iul 02 18:39:32 AuroraALX NetworkManager[488]: <info>  [1625240372.9599] device (enp5s0): carrier: link connected
iul 02 18:39:32 AuroraALX NetworkManager[488]: <info>  [1625240372.9601] device (enp5s0): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
iul 02 18:39:33 AuroraALX NetworkManager[488]: <info>  [1625240373.5430] device (enp4s0): state change: activated -> unavailable (reason 'carrier-changed', sys-iface-state: 'managed')
iul 02 18:39:33 AuroraALX NetworkManager[488]: <info>  [1625240373.5598] dhcp4 (enp4s0): canceled DHCP transaction
iul 02 18:39:33 AuroraALX NetworkManager[488]: <info>  [1625240373.5599] dhcp4 (enp4s0): state changed unknown -> terminated
iul 02 18:39:33 AuroraALX NetworkManager[488]: <info>  [1625240373.5915] manager: NetworkManager state is now CONNECTED_LOCAL
iul 02 18:39:33 AuroraALX NetworkManager[488]: <info>  [1625240373.5918] manager: NetworkManager state is now DISCONNECTED

Ok, so then the connection is really dead and it fails to reconnect.
I somewhat misunderstood it and thought you can still access the local network after that.

Do you have MAC address randomization enabled in some config file maybe?

https://wiki.archlinux.org/title/NetworkManager#Configuring_MAC_address_randomization

1 Like

No mac address randomization, in fact i prefer to add mac address and IP reservation to my router and only allow access to known devices, regardless if wifi or lan, so … will see what else i can cope about this. It bothers me as it started just some time ago, never had this problem. Thanks so much for your imput so far! :beer: :beer: :beer:

1 Like

Pretty much out of ideas now :wink:

You could try the r8168 driver instead (but since you have that issue with both adapters I guess that won’t help).

Pretty much everything else you’ve already tried I think. Like the link speed / duplex settings…

If I understood correctly, you can only really fix it by restarting the router (so PC reboot is not even helping). Then probably the router is about to die or so :grimacing:

We can try calling in “Mr Network” @xabbu
Maybe he still has some ideas… :wink:

1 Like

It would not surprise me that, is quite oldish now. Connecting directly to my ISP via PPPoE gives a stable connection to my PC, but i would have to do some changes here to make things accessible to some visitors and all… Will procure a new router even only for a quick test and see where that leads me.

1 Like