In a scenario like the following, where different hosts are connected via switches only, I'm not sure how the ARP packets will look like when A wants to send an IP packet to B. I assumed all the devices' forwarding tables/ ARP tables were empty.
Host A ---- Switch 1 ---- Switch 2 ---- Host B
I understand how it would work if at least one of the switches were routers, but not when there are only switches (layer-2 switches, with no ARP tables)
Here is my best guess:
A sends ARP request with MAC address FF:FF:FF:FF:FF:FF to Switch 1.
Switch 1, not knowing where FF:FF:FF:FF:FF:FF goes to, 'broadcasts' a request for FF:FF:FF:FF:FF:FF to Switch 2.
Switch 2 behaves like Switch 1 and 'broadcasts' a request for FF:FF:FF:FF:FF:FF to Host B.
Host B receives this "ARP-request-like message" and responds with its MAC address to Switch 2.
Switch 2 relays this message to Switch 1.
Switch 1 relays this message to Host A, and now A has the MAC address of D.
A sends an IP packet with destination MAC address of D.
Switch 1 and Switch 2 forwards the message to D.
I'd like to know if the behavior is true.
Any help or push in the right direction would be greatly appreciated. Thanks!