In my computer textbook, on one page, its given that switches can't stop traffic from travelling to all other LAN segments. On the next page, it says that switches send traffic only to appropriate connections. On a YouTube video, it says both will happen. First it send the packets to all workstations, learns the address, and then next time, sends data only to the required destination. I am totally confused. Everyone has their own definition for a switch. Can someone give the actual working of a switch?