Skip to content
GATEiit

GATE CSE 2024 Session 2 Q23: Destination IP and MAC addresses as a packet leaves the host

Question

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?

Try it: multiple select: one or more correct options

Select one or more options
Select all correct options. No negative marking, no partial marks.
Show answer and explanation

Answer: B (official GATE 2024 final answer key)

Concept used: IP addresses are end to end; MAC addresses are per hop, and switches are transparent at layer 2.

First step: The IP destination stays Y throughout; the frame's MAC destination is the next-hop router R, not the switch or Y.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2024 Session 2 CS question paper and final answer key, organised by IISc Bangalore. Question paper · Answer key