Node has a connection open to node . The packets from to go through an intermediate router . Ethernet switch is the first switch on the network path between and . Consider a packet sent from to over this connection.
Which of the following statements is/are TRUE about the destination and addresses on this packet at the time it leaves ?
GATE CSE 2024Computer Networks › Data Link Layer, MAC Protocols & Error DetectionVerified
GATE CSE 2024 PYQ: Node X \text{X} X has a TCP \text{TCP} TCP connection open to node Y \text{Y} Y . The packets from X…
- AThe destination address is the address of
- BThe destination address is the address ofCorrect answer
- CThe destination address is the address of
- DThe destination address is the address of
Answer
(B) The destination IP \text{IP} IP address is the IP \text{IP} IP address of Y \text{Y} Y
Approach
At the network layer, the IP destination address is end-to-end and therefore remains Y's IP address throughout the journey. At the data-link layer, the destination MAC address is hop-by-hop and identifies the next device that should receive the frame, which on X's local link is the default gateway/router R, not switch S and not end host Y.
Only the destination IP address is preserved end-to-end and equals Y's IP address. The destination MAC address on the first hop is the MAC address of the router R, not the switch S or the final host Y. Hence option B alone is correct.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.