It's a theoretical question. Let's say I have a switch with 3 ports and 3 PCs with MAC address AA, BB, CC, and ports 1, 2, 3.
PC A wants to send a message to PC B so it sends an ARP request or a message with source AA and destination BB?
after that, B received a message from the switch, and then what it does? Send an ACK? Send a message back to the switch says I'm PC B so the switch will update its table?
Next stage, let's say the table contains all the MAC addresses of all PCs and PC B changes its port. PC A wants to send a message to PC B so the switch will forward it to port 2 but PC B won't be there. How to switch will know about this situation?
I know its basic but somehow I got messed with too much information
TIA