CS FundamentalsHardGATE CS (PYQ pattern)

An IPv4 header has words 4500, 0054, 1C46, 4000, TTL/protocol 4001, checksum 0000, C0A8, 0105, 0A00, 0009 (hex). A router decrements the TTL from 0x40 to 0x3F (TTL/protocol word becomes 3F01) and recomputes the header checksum. What is the new checksum?

  1. A. 0x52AD
  2. B. 0x54AD
  3. C. 0x53AD
  4. D. 0xAC52

Correct answer: C. 0x53AD

Original checksum = 0x52AD. Lowering one 16-bit word by 0x0100 raises the ones'-complement sum's complement by 0x0100 (with end-around carry): new checksum = 0x53AD.

More Computer Networks questions

Exams that ask this topic