GATE / CS ARCHIVE

GATE CSE 2024 SET 2 / QUESTION 32

IPv4 fields updated on forwarding

Computer Networks · IP Addressing, Fragmentation & Address Resolution · Full GATE CSE 2024 Set 2 paper

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

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