Mac – How a switch works when it’s aware of MAC address but the sending PC isn’t aware of MAC of destination MAC

mac addressnetworkingswitch

4 PCs are connected to a switch and this switch is aware of their MAC addresses (all 4 PCs). Computer A and Computer D have not communicated ever earlier hence they both don't have their ARP table updated with each other's MAC address.

Computer A wants to communicate with Computer D, hence it sends out an ARP request for Computer D's MAC address. This ARP would be a broadcast message (with FF:FF:FF:FF:FF:FF as destination MAC in ARP packet).

I'd want to understand as how switch will take it up as it's already aware of Computer D's MAC but Computer A is not. Will the switch let Computer D respond to the ARP messgage (the broadcast) or drop that ARP request and directly route Computer A's packet to Computer D (since switch is already aware of Computer D's MAC)?

Best Answer

The ARP request will of course go through.

The switch doesn’t know about ARP. It only knows about Ethernet (ie. MAC addresses on Ethernet frames), not protocols on top of it. (Some switches offer advanced features like IGMP snooping, but that’s not relevant here.)

Because it’s a broadcast message, it has to be delivered to all (connected) ports. That’s all the switch cares about. It can’t know it’s really destined for computer D.

Related Question