GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 45

GATE CSE 2021 Set 1 Q45

Computer Networks · IP Addressing, Fragmentation & Address Resolution · Full GATE CSE 2021 Set 1 paper

GATE 2021 Set 1, Q45 2 marks · MSQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 45, GATE 2021: P sends a 1400-byte TCP segment to Q through router R. MTUs are 1500 bytes on P–R and 820 bytes on R–Q; IP headers are 20 bytes, identification 0x1234, and DF=0. Select true statements: A R creates two fragments and the second IP datagram is 620 bytes; B if the second fragment is lost, R retransmits it with ID 0x1234; C if it is lost, P must resend the whole TCP segment; D the TCP destination port can be obtained from the second fragment alone.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A; C

The TCP segment is the 1400-byte IP payload. The original IP datagram is 1420 bytes and fits the first MTU. The second link allows 820-20=800 payload bytes per fragment, a multiple of eight. Fragment payloads are therefore 800 and 600 bytes, giving datagram sizes 820 and 620, so A holds. IP routers do not retransmit lost fragments, so B is false. Loss prevents reassembly of the original segment and TCP at P retransmits the unacknowledged data, corresponding to C in the ordinary unchanged-segmentation model. TCP may resegment retransmitted bytes in a more general implementation; it does not repair just the missing IP fragment. The TCP header is only in the first fragment, so the second alone does not reveal the destination port and D is false.

IPv4 fragment offsets count eight-byte units. The first fragment has offset 0, payload 800, total 820 and MF=1; the second has offset 100, payload 600, total 620 and MF=0. Both retain the original identification for reassembly. The receiver needs both to reconstruct the TCP segment. Reliable delivery belongs to TCP endpoints, not an IP router's fragment-repair service. A later TCP retransmission may choose new segmentation or a new IP identification; retaining the exam answer does not justify claiming otherwise.

Original paper, page 36 · Answer key