GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER NETWORKS

Determine IPv4 fields changed by forwarding

3 questions solved the same way, newest first. Back to Computer Networks

How these are solved

Track TTL decrement and the resulting header checksum update; ordinary routing preserves source IP, while optional fragmentation can change length/offset. Distinguish may-change from always-change and exclude NAT.

1 mark · MSQ
Report issue

IPv4 fields updated on forwarding

IP Addressing, Fragmentation & Address Resolution

Question 32, GATE 2024: Which IP-header fields are always updated by an ordinary forwarding router in the IPv4 model? A source IP; B protocol; C TTL; D header checksum.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C, D

Approach: Find the field representing the remaining hop lifetime, then account for header integrity.

1. Derivation. An IPv4 router decrements TTL before forwarding. TTL is covered by the IPv4 header checksum, which must therefore be updated. Ordinary routing need not alter the source IP address or the upper-layer protocol field. Thus C, D. The header-checksum option makes the IPv4 model implicit.

2. Explanation and checks. TTL decreases as a packet is forwarded; if it expires the packet is discarded rather than forwarded. Changing TTL changes the header over which the IPv4 checksum is defined, so the checksum must be recomputed or incrementally adjusted. The protocol value still indicates the same encapsulated transport protocol. Source address changes can occur under NAT, but NAT is not a necessary operation of every router. IPv6 is a different header format and has no IPv4-style header checksum.

Original paper, page 22 · Answer key

1 mark · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 26, GATE 2015: Which IPv4 header field is NOT modified by a typical IP router? A checksum; B source address; C Time To Live; D length.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

A forwarding router decrements TTL to prevent indefinite circulation and must recompute the header checksum accordingly. If it fragments an IPv4 datagram, each fragment's total length differs from the original. Routing alone leaves the source address identifying the originating host. NAT is a separate address-rewriting function and is outside the typical-forwarding premise.

Solution: Ordinary IPv4 forwarding preserves the source address, B. A router decrements TTL and updates the header checksum; fragmentation can alter total length. Address translation is an additional NAT function, not assumed here.

Original paper, page 11 · Answer key

1 mark · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 25, GATE 2014: Host A sends an IPv4 datagram to host B on another network without transmission errors. Which fields may differ when it reaches B: (i) TTL; (ii) header checksum; (iii) fragment offset? A i only; B i,ii only; C ii,iii only; D i,ii,iii.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Step 1: Every forwarding router decrements TTL. Since TTL is part of the IPv4 header, the router updates the header checksum even on an error-free path. Thus i and ii can differ. Step 2: A smaller outgoing MTU can require fragmentation. Later fragments carry nonzero fragment offsets even if the original unfragmented datagram had offset zero. Step 3: Therefore all three may differ, D, when considering received fragment headers before reassembly. No-error transmission rules out corruption, not ordinary forwarding changes or fragmentation. A fully reassembled abstract datagram needs separate interpretation.

Original paper, page 58 · Answer key