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

Improve Matter + Thread stability #640

Closed
20 tasks done
mvgijssel opened this issue Jan 15, 2024 · 16 comments · Fixed by #648
Closed
20 tasks done

Improve Matter + Thread stability #640

mvgijssel opened this issue Jan 15, 2024 · 16 comments · Fixed by #648
Assignees

Comments

@mvgijssel
Copy link
Member

mvgijssel commented Jan 15, 2024

Ideas to improve thread stability:

  • Enabled IGMP snooping done, didn't help
  • Disable home hub slaapkamer tv done, didn't help
  • Disable mDNS in Unifi and disable multicast enhancements done, didn't help
  • Try using a separate pci / usb network dongle for haos this maybe made it even worse
  • Turn off haos and see responsiveness thread network no difference
  • Turn of Apple tv and see responsiveness thread network no difference
  • ✅ Setup TP-Link Jetstream switches instead of Unify (https://www.derekseaman.com/2023/10/configuring-tp-link-igmp-mld-multicast-snooping.html)

Articles

TODO

  • Setup omada controller
  • Adopt router
  • Configure LAN networking change
  • Setup omada controller static ip
  • Update switch firmware (otherwise adoption does not work)
  • Adopt switches
  • Name switches
  • Setup static ips switches
  • Setup TP-Link cloud account
  • Configure IGMP + MLD snooping
  • Configure ipv6 networking and wan
  • Setup firewall for Unifi controller
  • Setup firewall for Teleport
  • Firewall prevent ipv6 addresses from becoming publicly available
  • Remove Unifi USG + switches
  • Replace Unifi APs with TP-Link EAP
  • Setup 2fa
  • Purchase pci Ethernet card for haos (Intel PRO/1000 GT, chose Intel over Realtek to have higher stability in Linux/NixOS)
  • Factory reset Unifi equipment
  • Install pci card haos (feat: Setup boilerplate for select component #648)
@mvgijssel mvgijssel self-assigned this Jan 15, 2024
@mvgijssel mvgijssel changed the title Improve Matter + Thread stability fix: Improve Matter + Thread stability Jan 15, 2024
@mvgijssel
Copy link
Member Author

Disabled spanning tree protocol on the hallway unifi switch for the tp link port.

@mvgijssel
Copy link
Member Author

Currently internet / ping6 is not working on haos when enabling ipv6. Could be due to USG as described here https://community.ui.com/questions/Unifi-USG-Problem-with-IPv6/dbe432ee-54e5-4436-bad1-fb95350d56e8.

@mvgijssel
Copy link
Member Author

The provisioner is no longer reachable at 192.168.1.31 for some reason 🤔.

@mvgijssel
Copy link
Member Author

Used the ipv6 sld template, maybe should be mixed profile in the switch?

@mvgijssel
Copy link
Member Author

Set the prefix delegation ID to 0 as mentioned here https://www.reddit.com/r/Ubiquiti/comments/f5k8mn/can_a_novice_get_some_ipv6_help/.

@mvgijssel
Copy link
Member Author

The provisioner is no longer reachable at 192.168.1.31 for some reason 🤔.

Switching the cables between the PS5 (previous cat5e) and the provisioner (previous cat 7) it now seems to work. Haven't validated if the PS5 now has internet access, but at least the provisioner works.

@mvgijssel
Copy link
Member Author

Updated the USG to disable rapid-commit, restarted the Home Assistant ipv6 interface but to no avail:

ssh -o PubkeyAuthentication=no ubnt@192.168.1.1

configure
set interfaces ethernet eth0 dhcpv6-pd rapid-commit disable
commit;save;exit

release dhcpv6-pd interface eth0
delete dhcpv6-pd duid 
renew dhcpv6-pd interface eth0

@mvgijssel
Copy link
Member Author

Set prefix delegation id to blank?

@mvgijssel
Copy link
Member Author

Installed the tp link omada router instead of the USG

@mvgijssel
Copy link
Member Author

@mvgijssel
Copy link
Member Author

Decided to give up on Nanoleaf essentials, because it's simply too unstable https://www.google.com/search?q=nanoleaf+essentials+unstable+site:www.reddit.com&sca_esv=599184041&sa=X&ved=2ahUKEwjA4s32_eSDAxVW1AIHHVOzDG8QrQIoBHoECB8QBQ&biw=1410&bih=1059&dpr=2#ip=1 after trying so many different things. I think the thread coverage is good enough with two apple tvs and a SkyConnect stick, so doing it without a mesh extender for now.

@mvgijssel
Copy link
Member Author

After removing the nanoleaf nodes I'll monitor the matter server to see if there still a lot of errors happening and/or if reconnecting nodes takes a long time.

@mvgijssel
Copy link
Member Author

Current Unifi firewall portforwarding rules:

Name From Port Dest Port/IP Enabled
provisioner-teleport * 443 192.168.1.31:443  
unifi-controller-inform * 8080 192.168.1.2:8080  
unifi-controller-stun * 3478 192.168.1.2:3478  

@mvgijssel
Copy link
Member Author

Configure ipv6 wan in the omada controller as follows

image

Configure ipv6 lan in the omada controller as follows

image

@mvgijssel
Copy link
Member Author

Pinged the ipv6 address from the WAN which returns just fine from mobile tethering. Pinged the ipv6 addresses of the provisioner and hypervisor which both did not resolve, making me believe the firewall is blocking inbound ipv6 traffic correctly.

@mvgijssel mvgijssel changed the title fix: Improve Matter + Thread stability Improve Matter + Thread stability Feb 12, 2024
@mvgijssel
Copy link
Member Author

mvgijssel commented Feb 12, 2024

Using

trying to get the new PCI ethernetcard passthrough to work

Check if vfio-pci module is loaded

lsmod

Check what driver the pci card is using (this should be vfio-pci and not e1000)

lspci -vnn

Using PR got it to work #648

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

Successfully merging a pull request may close this issue.

1 participant