CS FundamentalsHardGATE CS

A sender computes the 16-bit Internet checksum of the words 4500, 003C, 1C46, 4000, 4006 (hex) and sends 0x1E77. At the receiver the ones'-complement sum of the five data words plus the received checksum is computed. Which result means 'no error detected'?

  1. A. 0x0000
  2. B. 0xFFFF
  3. C. 0x0100
  4. D. 0xE188

Correct answer: B. 0xFFFF

The data words sum (with end-around carry) to 0xE188, and the checksum is its complement 0x1E77. Adding them gives all ones, 0xFFFF; any other result (for example 0x0100 after one bit flip in the checksum) signals an error.

More Computer Networks questions

Exams that ask this topic