GATE / CS ARCHIVE

GATE CSE 2024 SET 2 / QUESTION 23

Separate the IP destination from the Ethernet next hop

Computer Networks · Network Layers & Devices · Full GATE CSE 2024 Set 2 paper

GATE 2024 Set 2, Q23 1 mark · MSQ
Report issue

Network Layers & Devices

Question 23, GATE 2024: X sends a TCP packet to Y through router R; Ethernet switch S is the first switch between X and R. At departure from X, which statements hold? A destination IP is R; B destination IP is Y; C destination MAC is S; D destination MAC is Y.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B

Approach: Use end-to-end addressing for the IP packet and local-link addressing for its enclosing frame.

1. Derivation. The network-layer destination remains final host Y. Because R is the next IP hop beyond the local Ethernet, the frame’s destination MAC is the local interface of R, not the switch S or remote host Y. A switch forwards that frame without being its destination. Thus only B is true, under ordinary routing without destination NAT.

2. Explanation and checks. X chooses R as the next-hop router and obtains the MAC address of R’s local interface, normally through ARP. S reads that destination MAC to forward the frame, but is not itself the frame recipient. R later removes the incoming link header and constructs a new one for the next link. This changes link addresses without replacing the final IP destination Y under ordinary routing. TCP does not make a distant host directly reachable on the local Ethernet.

Original paper, page 17 · Answer key