GateAI
Principles of Layering

GATE CSE 2024 Set 2 · Q23

MSQ1 markEasy

Time

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

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

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: B) The destination IP address is the IP address of Y

Principles of Layering

When node X sends a packet to node Y located in a different subnet through router R:

  1. Destination IP Address:

    • The IP header carries the end-to-end network layer addressing. Therefore, the destination IP address remains the IP address of the final destination node, Y.

    • Hence, statement (B) is correct and statement (A) is incorrect.

  2. Destination MAC Address:

    • The data-link layer frame addresses the next-hop network-layer device. Here, the first router on the path to Y is R. Node X determines the MAC address of R's incoming interface (using ARP).

    • A standard Ethernet switch S operates at Layer 2 (data link layer) and acts transparently; frames are not addressed to the switch's MAC address for normal forwarding.

    • Therefore, the destination MAC address of the frame when leaving X is the MAC address of router R, not S and not Y.

    • Hence, statements (C) and (D) are incorrect.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Principles of Layering previous year question is Q23 of the GATE CSE 2024 Set 2 paper. Find more GATE CSE PYQs on Principles of Layering in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Principles of Layering PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Principles of Layering in GATE CSE

Principles of Layering has 12 GATE CSE PYQs across 10 papers from 2011 to 2025. This is the only 1-mark MSQ among them, and it is the only one in GATE CSE 2024 Set 2.

How GATE tests Principles of Layering

More from GATE CSE 2024 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 2 · Q23 · MSQ

Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP router R. Ethernet switch S is the first switch on the network path between X and R. Consider a packet sent from X to Y over this connection. Which of the following statements is/are TRUE about the destination IP and MAC addresses on this packet at the time it leaves X?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.