What is the difference between a switch and a hub in networking?
A switch intelligently forwards data to specific devices based on MAC addresses, while a hub broadcasts data to all connected devices, resulting in more network congestion.