Assuming 10 computers are connected via hub. Pc1 sends data to ip address of pc2. But hub broadcasts it to all computers.
Whereas if I replace hub with switch, then switch will maintain table of switch plug and Mac address.
When PC1 sends data to PC2's ip address, then how does switch ensure that it is send to correct computer (Pc2)? I am asking because switch doesn't keep record of ip address.