-2

The figure below is part of a networking homework question. enter image description here

The question asks about the source/destination IP and MAC addresses of frames sent throughout the system. My question doesn't touch on that directly, rather I want to better understand the effect router one (R1 in the diagram) has on the system. Does R1 split the system into two separate LANs, or a single LAN with two subnets? I'm asking because I think the answer will impact the extent to which ARP messages are propagated throughout the system. If R1 split the system into two separate LANs, I think R1 would block ARP messages from one LAN from entering the other LAN. If we're dealing with the same LAN with two subnets, I'm not so sure.

0

ARP requests are broadcast, and broadcasts are bounded by layer-3 devices, such as routers. Frames are layer-2 PDUs, and are also bounded by routers. Routers will strip off the layer-2 frame header before forwarding the layer-3 packet, which is the payload of the layer-2 frame. Hence, layer-2 frame addresses are only relevant or seen in the layer-2 LAN.

MAC addresses are the layer-2 frame addresses of some layer-2 LAN protocols (IEEE LAN protocols, such as ethernet, Wi-Fi, token ring, etc.). Some layer-2 protocols use 48-bit MAC addresses, some use 64-bit MAC addresses, some use something else, and some use nothing at all for addressing.

Layer-3 addresses, such as IPv4 or IPv6 addresses, are used to move layer-3 packets between different layer-3 networks. In almost all cases, each layer-2 LAN will use a different layer-3 network. There are corner cases where this may not be true, but they are special and have nothing to do with what you are studying.

Layer-2 addresses are used to deliver directly from one host to another host on the layer-2 LAN. ARP (Address Resolution Protocol) is used to resolve a layer-2 address from a layer-3 address so that the packet can be encapsulated in a layer-2 frame. For hosts on the same layer-2 LAN, there will be a one-to-one correspondence between the layer-3 address and the layer-2 address. If the destination layer-3 address is on a different layer-3 network, the host will use ARP to get the layer-2 address of its configured gateway (the host that knows how to reach other networks, usually a router), and the layer-3 packet is encapsulated in a layer-2 frame with the layer-2 address of the gateway, even though the layer-3 address is for a different host on a different network.

The gateway will strip off the layer-2 frame, inspect the layer-3 destination address, make a decision on which interface to forward the layer-3 packet, and create a new layer-2 frame for the packet on the new interface.

3

Homework is explicitly off-topic here, but since you asked for something required for basic understanding:

  • "LAN" can mean different things - I usually use "LAN" for a complete site; it's better to use "broadcast domain", "layer 2 segment" or "layer 3 (sub)network" (which are not exactly the same - differing in perspective -, but most often they are identical)
  • a router connects multiple layer 3 subnets, each (usually) running within its own layer 2 segment
  • Ok, so assuming that R1 divides the system/site into two separate layer 2 segments / LANs, an ARP message would not propagate between layer 2 segments, correct? It would be blocked from crossing over by R1. I'm looking for general, high-level principles here. It doesn't have to be specific to the assignment question. – Adam Dec 2 '17 at 21:24
  • ARP uses layer 2 broadcasts that will not be forwarded by a router. A router works on the IP layer (L3). – Zac67 Dec 2 '17 at 21:56

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.