Most switches use Layer 2 bridging protocols to discover the topology of their LAN and to forward traffic toward destinations on the LAN.
Switch
https://www.ui.com/unifi-switching/unifi-switch-8-150w/