Artificial intelligent assistant

ARP reply and use I have a very rudimentary doubt. I am sure missing something but cant recollect what. Suppose we have 2 hosts connected on 2 interfaces of a switch. if host 1 pings host 2 , it will first send an ARP request for host 2, host 2 will reply and it will be entered in the ping packet. BUT, we dmac is always of the next hop of the packet. In this case the next hop of the packet is the switch interface, so why dmac of the host and not the switch. Is it that next hop concept is used in routers and not in switches ?

Hosts do not know whether they are connected to directly to another host, or to a switch, or to two switches. They only know who the other party is they want to speak to, not what devices may or may not exist in between.

After having completed the ARP process, the host will be able to create a packet with a L2 header that includes a destination MAC address of the other host.

The switch will then behave as follows:

![Packet Traveling - Host to Host communication through a Switch](

In this example, the initial frame is addresses unicast, directly to Host B. The switch will flood the frame out all ports because it does not know (at this point) where Host B's MAC address exists.

Had the initial frame been a broadcast, which is to say a frame destined to the MAC address `ffff.ffff.ffff`, the effect would have been the same -- the switch would have flooded the frame.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 0c20af2925b7e1c54f0dabb89ad53534