Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3889 - Loss of connection every 2 sec on 100Mbps cable #8890

Open
openwrt-bot opened this issue Jun 19, 2021 · 5 comments
Open

FS#3889 - Loss of connection every 2 sec on 100Mbps cable #8890

openwrt-bot opened this issue Jun 19, 2021 · 5 comments
Labels

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Jun 19, 2021

NitroOxid:

i have a Xiaomi Mi Router 3G (gigabyte) router, installed openwrt four years ago from source, it had issue - in lan the network would re-connect once 1-2 secs (dont know about WAN). it was impossible to use, i changed to another firmware, not openwrt

time passed, my lan upgraded to gigabyte cables, i compiled openwrt again, the re-connections were no longer an issue! it was ok.

Then i noticed these re-connections appeared suddenly in vmware in bridge mode.

Then more: if i connect to router, i can even use unmanaged switch (mercusys ms108g) clients with 100Mbit cable, then the device starts having these re-connects again. gigabyte clients don't have this issue.

Then i noticed that ethernet device it can be with 100Mbit network card, but the cable is gigabyte - the issue also disappears. I thought it is a bug in drivers for a long time.

But today I found one firmware at github, a fork, https://github.com/coolsnowwolf/lede compiled it, installed. Connected device with 100Mbit cable, waited 40 mins, disconnects are missing. in vmware they're also absent.
q
Hope this can be fixed in openwrt
The problem is observed on versions: 18.06 - present (21.02), and nightly.

I'm ready to be a tester, provide any logs, and flashing the router in testing the fix.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jun 19, 2021

FAYWORD:

Same problem. 19.07 and master (about two weeks ago)

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jun 21, 2021

rafadiw125:

Same on 100. 1000 also have short disconnects but with larger (1-3 days) interval

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Aug 9, 2021

nemesisdev:

I don't think it's happening only on Xiaomi, I reported something similar in the forum too:
https://forum.openwrt.org/t/21-02-rc4-mt7530-mdio-bus-1f-lan1-link-is-down-link-is-up/102931

@Vladislav can you please include the output of logread and dmesg when this the link goes down and up again?

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Nov 22, 2021

NitroOxid:

@federico Capoano thank you for info!
i tried disable EEE via ethtool by add this in /etc/rc.local
ethtool --set-eee lan1 eee off
ethtool --set-eee lan2 eee off
ethtool --set-eee lan3 eee off
ethtool --set-eee wan eee off

And.. no effect. VMWare in bridge mode still loses connection (host machine does not lose connection). Enabling/disabling EEE does not help.

LOGS:
dmesg:
[ 16.977375] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=24
[ 16.982939] pci 0000:00:01.0: enabling device (0006 -> 0007)
[ 16.988640] mt76x2e 0000:02:00.0: enabling device (0000 -> 0002)
[ 16.994936] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[ 17.468689] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[ 17.478805] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[ 17.484330] mt76x2e 0000:02:00.0: Build: 1
[ 17.488492] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[ 17.508111] mt76x2e 0000:02:00.0: Firmware running!
[ 17.514566] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 17.524934] PPP generic driver version 2.4.2
[ 17.531654] NET: Registered protocol family 24
[ 17.541188] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 24.015804] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[ 24.048372] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[ 24.056792] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 24.060965] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 24.072827] 8021q: adding VLAN 0 to HW filter on device lan1
[ 24.081797] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 24.088930] br-lan: port 1(lan1) entered blocking state
[ 24.094331] br-lan: port 1(lan1) entered disabled state
[ 24.100848] device lan1 entered promiscuous mode
[ 24.105805] device eth0 entered promiscuous mode
[ 24.135718] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[ 24.144282] 8021q: adding VLAN 0 to HW filter on device lan2
[ 24.153853] br-lan: port 2(lan2) entered blocking state
[ 24.159192] br-lan: port 2(lan2) entered disabled state
[ 24.166285] device lan2 entered promiscuous mode
[ 24.191743] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 24.198939] 8021q: adding VLAN 0 to HW filter on device wan
[ 26.240840] mt7530 mdio-bus:1f wan: Link is Up - 100Mbps/Full - flow control off
[ 26.248494] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[ 27.200609] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[ 27.208209] br-lan: port 2(lan2) entered blocking state
[ 27.213521] br-lan: port 2(lan2) entered forwarding state
[ 27.220149] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 29.184671] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 29.192288] br-lan: port 1(lan1) entered blocking state
[ 29.197626] br-lan: port 1(lan1) entered forwarding state
[ 30.208645] mt7530 mdio-bus:1f lan1: Link is Down
[ 30.213699] br-lan: port 1(lan1) entered disabled state
[ 30.272403] mt7530 mdio-bus:1f lan2: Link is Down
[ 30.277914] br-lan: port 2(lan2) entered disabled state
[ 30.336380] mt7530 mdio-bus:1f wan: Link is Down
[ 32.387582] mt7530 mdio-bus:1f wan: Link is Up - 100Mbps/Full - flow control off
[ 33.344558] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[ 33.352242] br-lan: port 2(lan2) entered blocking state
[ 33.357568] br-lan: port 2(lan2) entered forwarding state
[ 33.376857] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 33.384597] br-lan: port 1(lan1) entered blocking state
[ 33.390029] br-lan: port 1(lan1) entered forwarding state

logread:
Tue Nov 23 00:25:19 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:19 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.216 00:0c:29:6d:62:ba
Tue Nov 23 00:25:19 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.216 00:0c:29:6d:62:ba
Tue Nov 23 00:25:20 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:20 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:22 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:22 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:24 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:24 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:26 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:26 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:26 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.216 00:0c:29:6d:62:ba
Tue Nov 23 00:25:26 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.216 00:0c:29:6d:62:ba
Tue Nov 23 00:25:27 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:27 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:29 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:29 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:31 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:31 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:31 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.216 00:0c:29:6d:62:ba
Tue Nov 23 00:25:31 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.216 00:0c:29:6d:62:ba
Tue Nov 23 00:25:33 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:33 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:34 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:34 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:36 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:36 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:36 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.216 00:0c:29:6d:62:ba
Tue Nov 23 00:25:36 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.216 00:0c:29:6d:62:ba
Tue Nov 23 00:25:37 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:37 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:39 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:39 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:41 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.107 00:0c:29:6d:62:ba
Tue Nov 23 00:25:41 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.107 00:0c:29:6d:62:ba vmware
Tue Nov 23 00:25:41 2021 daemon.info dnsmasq-dhcp[3723]: DHCPREQUEST(br-lan) 192.168.1.216 00:0c:29:6d:62:ba
Tue Nov 23 00:25:41 2021 daemon.info dnsmasq-dhcp[3723]: DHCPACK(br-lan) 192.168.1.216 00:0c:29:6d:62:ba

@NitroOxid
Copy link

@NitroOxid NitroOxid commented Mar 23, 2022

Still no solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants