Question

Host A (on TCP/IP v4 network A) sends an IP datagram D to host B (also on TCP/IP v4 network B). Assume that no error occurred during the transmission of D. When D reaches B, which of the following IP header field(s) may be different from that of the original datagram D?

(i) TTL
(ii) Checksum
(iii) Fragment Offset

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2014 answer key

Solution

Analyze the behavior of intermediate IPv4 routers on datagram header fields during end-to-end transmission.

  1. (i) Time To Live (TTL):
    Every router that forwards an IP datagram decrements its TTL field by at least 1 (to prevent routing loops). Because datagram D travels from network A to network B across one or more routers, its TTL will be reduced. Thus, TTL changes.

  2. (ii) Header Checksum:
    The IPv4 header checksum covers only the IPv4 header fields. Because the TTL field changes at every intermediate router (and potentially options/length fields if fragmented), the router must recompute and update the header checksum. Thus, Checksum changes.

  3. (iii) Fragment Offset:
    If any intermediate network between host A and host B has a Maximum Transmission Unit (MTU) smaller than the datagram size, the router will fragment the datagram into multiple smaller fragments. In fragmented packets, the Fragment Offset field is set to indicate the relative offset of the fragment payload. Thus, when D reaches B (as one of the fragments), the Fragment Offset field may differ from that of the original datagram D.

Hence, all three fields (i), (ii), and (iii) may be different from the original datagram (option D).

Final answer

D

Common trap

Forgetting that routers must recompute the header checksum whenever the TTL is decremented.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 3
Question
35 of 65, printed as CS Q.25
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.