Apologies for a pretty basic question about how switches work. My knowledge of networking is a bit like Swiss cheese - full of holes. Electronics and software development background means I can sort of grasp how things work ![]()
Want to clarify how a switch works. Am I right in thinking that when the first packet is sent to a switch from an unknown device, the switch has no idea what to do with it and therefore broadcasts it on every other port. Every other device connected then receives the packet and decides whether it’s for them. However, when the return packet comes back, the switch knows where it came from and can forward it directly to the original port. And this port-to-port mapping stays in place for the duration of the session.
And this is the big difference between a switch and a hub. The hub doesn’t keep the mapping table (ARP?) and therefore forwards every packet to every port - all the time.