GATE CS 2024 Set 2 — Question 23
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.MSQ+1 / -0MediumEthernet & MACMedium Access & LANsComputer NetworksIPv4 AddressingNetwork Layer: Addressing
Computer Networks → Medium Access & LANs → Ethernet & MAC
Last updated
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?
Correct answer
(B) The destination IP address is the IP address of Y
Solution
When a packet is sent from a source host (X) to a destination host (Y) on a different network (implied by the presence of intermediate router R):
(A) False. Destination IP is Y.
(B) True. Destination IP is Y.
(C) False. Destination MAC is R, not S.
(D) False. Destination MAC is R, not Y (since Y is not on the local link).Thus, only statement (B) is true.
1.Destination IP Address: The IP header contains the logical address of the final destination. Therefore, the destination IP address is the IP address of Y.
2.Destination MAC Address: The Ethernet frame header contains the physical address of the next hop device. Since X is connected to R (via switch S), and R is the gateway/router to reach Y, X will resolve the MAC address of R's interface. The switch S is a Layer 2 device and is transparent to IP routing; it does not change the MAC addresses and is not the destination MAC (unless the frame is management traffic for S, which is not the case here). Therefore, the destination MAC address is the MAC address of Router R.
Evaluating the options:(A) False. Destination IP is Y.
(B) True. Destination IP is Y.
(C) False. Destination MAC is R, not S.
(D) False. Destination MAC is R, not Y (since Y is not on the local link).Thus, only statement (B) is true.
Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Medium Access & LANs
2026 Set 1 Q18With respect to a TCP connection between a client and a server, which one of the following…2026 Set 1 Q19Which of the following statements is/are true with respect to the interaction of a web browser with…2026 Set 2 Q21Consider a file of size 4 million bytes being transferred between two hosts connected via a path…2026 Set 2 Q22Which one of the following protocols may need to broadcast some of its messages?2026 Set 2 Q33If an IP network uses a subnet mask of 255.255.240.0, the maximum number of IP addresses that can…