Occasional drop in connection speed on the line

Turris Omnia on a 300/100 line occasionally (once every 2-4 months) shows a connection speed of 100/100 (speedtest.net). In two cases, the problem with slower downloads disappeared after restarting the router.

How can I analyze the problem, if it occurs, in more detail ?

At the moment the connection is fine and through I found the message

Jan 9 13:56:02 Turris_JB kernel: [24085.751275] Marvell 88E1540 mv88e6xxx-1:04: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!
Jan 9 13:56:02 Turris_JB kernel: [24085.764018] mv88e6085 f1072004.mdio-mii:10 lan4: Link is Up - 100Mbps/Full - flow control off

LAN 4 was the line where the technicians’ laptop connected when checking the connection - I had to allow them access to the network (IP bound to MAC). Her measurements were also fine

So as the messages tell you, something is marginal either the ethernet cable of one of the ports on either side. For 1 Gbps link rate ethernet needs all 4 wire pairs, while for 100 Mbps only 2 wire pairs are needed. If even a single wire has marginal contact (either broken in the cable itself or a dirty contact or a bent spring in the socket) the link might degrade down to 100 Mbps. I would bet that instead of restarting the router you could also:
a) unplug and replug the problematic cable in the affected LAN port
b) use ethtool to force 1 Gbps renegotiation (not sure about the invocation and currently not at home)

In my experience cables actually do get bad so consider replacing that cable and check both involved sockets on either end of that cable as well.

1 Like

Also check with ethtool -S lan4 for errors they might indicate problem with cabling as well.

I have a link at home that has the same problem. So I forced 1Gbps there on one side and thats it. Left autoneg on but advertising only 1Gbps. Cable couldnt be replaced cuz its in the walls. So ot is what it is

This link might be helpful, maybe on the too much side:
https://origin.kernel.org/doc/html/latest/networking/diagnostic/twisted_pair_layer1_diagnostics.html

The problem on LAN 4 is more just for illustration, the port is not commonly used and the measurements that the provider’s technicians made on it (as a free port) were fine. They measured 10% better than 300/100

I routinely take measurements on another LAN port. The problem will not, I think, be with the specific port, but in general. This should be demonstrated by the following: start monitoring the status systematically using LibreSpeed directly on the router.

At the time of the fault, I will check the interface in reForis

It doesn’t bother me that much, in normal operation I don’t know about it. But I’ll start looking into it.

Souhrn

root@Turris_JB:~# ethtool -S lan1
NIC statistics:
tx_packets: 19999
tx_bytes: 28155097
rx_packets: 29953
rx_bytes: 10592926
in_good_octets: 23070745
in_bad_octets: 0
in_unicast: 35647
in_broadcasts: 4328
in_multicasts: 7041
in_pause: 0
in_undersize: 0
in_fragments: 0
in_oversize: 0
in_jabber: 0
in_rx_error: 0
in_fcs_error: 0
out_octets: 34332846
out_unicast: 41330
out_broadcasts: 27155
out_multicasts: 11105
out_pause: 0
excessive: 0
collisions: 0
deferred: 0
single: 0
multiple: 0
out_fcs_error: 0
late: 0
hist_64bytes: 27850
hist_65_127bytes: 44389
hist_128_255bytes: 8570
hist_256_511bytes: 12383
hist_512_1023bytes: 3588
hist_1024_max_bytes: 29826
sw_in_discards: 0
sw_in_filtered: 0
sw_out_filtered: 47016
atu_member_violation: 0
atu_miss_violation: 0
atu_full_violation: 0
vtu_member_violation: 0
vtu_miss_violation: 0
root@Turris_JB:~#

Souhrn

root@Turris_JB:~# ethtool -S lan2
NIC statistics:
tx_packets: 1960579
tx_bytes: 4043722090
rx_packets: 1587351
rx_bytes: 987552707
in_good_octets: 1018488687
in_bad_octets: 0
in_unicast: 1578983
in_broadcasts: 23368
in_multicasts: 2997
in_pause: 22
in_undersize: 0
in_fragments: 0
in_oversize: 0
in_jabber: 0
in_rx_error: 0
in_fcs_error: 0
out_octets: 4141911628
out_unicast: 3153667
out_broadcasts: 8349
out_multicasts: 15613
out_pause: 0
excessive: 0
collisions: 0
deferred: 0
single: 0
multiple: 0
out_fcs_error: 0
late: 0
hist_64bytes: 971467
hist_65_127bytes: 306233
hist_128_255bytes: 55375
hist_256_511bytes: 36389
hist_512_1023bytes: 29950
hist_1024_max_bytes: 3383585
sw_in_discards: 0
sw_in_filtered: 0
sw_out_filtered: 32484
atu_member_violation: 0
atu_miss_violation: 0
atu_full_violation: 0
vtu_member_violation: 0
vtu_miss_violation: 0
root@Turris_JB:~#

Souhrn

root@Turris_JB:~# ethtool -S lan3
NIC statistics:
tx_packets: 1171733
tx_bytes: 6111970520
rx_packets: 840968
rx_bytes: 67375859
in_good_octets: 82719426
in_bad_octets: 2003
in_unicast: 837881
in_broadcasts: 1899
in_multicasts: 2206
in_pause: 3
in_undersize: 0
in_fragments: 0
in_oversize: 0
in_jabber: 0
in_rx_error: 1
in_fcs_error: 2
out_octets: 6275991265
out_unicast: 4216183
out_broadcasts: 12709
out_multicasts: 6101
out_pause: 0
excessive: 0
collisions: 0
deferred: 0
single: 0
multiple: 0
out_fcs_error: 0
late: 0
hist_64bytes: 766138
hist_65_127bytes: 96304
hist_128_255bytes: 25305
hist_256_511bytes: 12271
hist_512_1023bytes: 19039
hist_1024_max_bytes: 4157928
sw_in_discards: 0
sw_in_filtered: 0
sw_out_filtered: 55554
atu_member_violation: 0
atu_miss_violation: 0
atu_full_violation: 0
vtu_member_violation: 0
vtu_miss_violation: 0
root@Turris_JB:~#

Souhrn

root@Turris_JB:~# ethtool -S lan4
NIC statistics:
tx_packets: 196216
tx_bytes: 561400080
rx_packets: 213695
rx_bytes: 175923107
in_good_octets: 179809353
in_bad_octets: 0
in_unicast: 212988
in_broadcasts: 231
in_multicasts: 950
in_pause: 0
in_undersize: 0
in_fragments: 0
in_oversize: 0
in_jabber: 0
in_rx_error: 0
in_fcs_error: 0
out_octets: 573390823
out_unicast: 422056
out_broadcasts: 576
out_multicasts: 511
out_pause: 0
excessive: 0
collisions: 0
deferred: 0
single: 0
multiple: 0
out_fcs_error: 0
late: 0
hist_64bytes: 135326
hist_65_127bytes: 9838
hist_128_255bytes: 1726
hist_256_511bytes: 403
hist_512_1023bytes: 463
hist_1024_max_bytes: 489556
sw_in_discards: 0
sw_in_filtered: 0
sw_out_filtered: 17561
atu_member_violation: 0
atu_miss_violation: 0
atu_full_violation: 0
vtu_member_violation: 0
vtu_miss_violation: 0
root@Turris_JB:~#

What is your uptime now? There are some fcs_errors that indicate physical layer problems but not much.

Edit: I use this in my /etc/rc.local

ethtool -s lan4 advertise 0x020 autoneg on

Uptime is 10-11 hour. In the morning the WAN cable was manipulated (off-on)

I’ll go through all the cables and treat the contact oxidation.

Good instructions … I will check and test