1

Let us assume Host A wants to contact Host B. Does it send the packet addressing (IP address of the Host B) and MAC address of router, or does it use ARP to send to the MAC address of the Host B?

  • So , the packet is sent to the router ? Or can HOST B directly intercept the packet ? – Santy Nov 30 '16 at 14:53
  • is the packet sent to the router ? or the host B ? – NetwokingGeek Nov 30 '16 at 15:01
  • See my answer. It matters if the two hosts are on the same network, or not. If the hosts are on the same network, the frames containing the packets get sent directly to the destination. If they are on different networks, the frames containing the packets get sent to the configured gateway so that the packets can be routed to the other network. – Ron Maupin Nov 30 '16 at 15:18
  • See the edit to my answer. – Ron Maupin Nov 30 '16 at 15:30
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer. – Ron Maupin Aug 15 '17 at 5:39
1

It works the same way as it would if you were using ethernet on a switch. If a host wants to send something to another host on the same network, it will send it to the MAC address of the destination host. If the destination host is on a different network, the host will send it to the MAC address of its configured gateway.


Edit:

Based on your comment, it seems you need to step back and understand the functions of the network devices.

Routers route packets between different networks, so traffic is only sent to a router if it needs to get to a different network. If the source and destination hosts are on different networks, the traffic will be routed between the networks by a router.

Bridges, including switches and WAPs, switch frames on the same network. If the source and destination hosts are on the same network, the traffic will not go through a router. The traffic may be switched by a bridge (switch, WAP, etc.).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.