Skip to content

GATE CS 2024 Set 2 Q13 — Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging

Explain with AI

​Node X\text{X} has a TCP\text{TCP} connection open to node Y\text{Y}. The packets from X\text{X} to Y\text{Y} go through an intermediate IP\text{IP} router R\mathrm{R}. Ethernet switch S\mathrm{S} is the first switch on the network path between X\mathrm{X} and R\mathrm{R}. Consider a packet sent from X\mathrm{X} to Y\mathrm{Y} over this connection.

Which of the following statements is/are TRUE about the destination IP\text{IP} and MAC\text{MAC} addresses on this packet at the time it leaves X\mathrm{X}?

Choose one option
View worked solution

Answer: B

To determine the correct destination IP and MAC addresses when the packet leaves Node X\text{X}, we analyze the roles of the Network Layer (Layer 3) and the Data Link Layer (Layer 2):

  1. Destination IP Address (End-to-End):

    IP addressing is responsible for end-to-end delivery. The source IP is X\text{X} and the destination IP is the final destination, which is Y\text{Y}. This IP address remains unchanged as the packet travels across intermediate routers. Thus, the destination IP address is the IP address of Y\text{Y}.

  2. Destination MAC Address (Hop-by-Hop):

    MAC addressing is responsible for hop-by-hop delivery within a local network segment.

    • Since Y\text{Y} is on a different network (connected via router R\text{R}), X\text{X} cannot send the frame directly to Y\text{Y}'s MAC address. Instead, X\text{X} must send it to its default gateway, which is the router R\text{R}. Therefore, the destination MAC address is the MAC address of R\text{R}.
    • The Ethernet switch S\text{S} is a transparent Layer 2 device. It forwards frames based on their destination MAC address but is not the destination itself. Hence, the destination MAC address is not that of S\text{S}.

Comparing this with the given options:

  • A is False: The destination IP is of the final host Y\text{Y}, not the intermediate router R\text{R}.
  • B is True: The destination IP is indeed the IP address of Y\text{Y}.
  • C is False: The destination MAC is that of the next-hop router R\text{R}, not the transparent switch S\text{S}.
  • D is False: The destination MAC is that of the router R\text{R}, not the final host Y\text{Y} (which is on a different network).

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging questions