CS FundamentalsVery hardGATE CS

Compute the 16-bit Internet checksum (ones' complement of the ones' complement sum) of the words 0xABCD, 0xF00F, 0x1234 and 0x8E91.

  1. A. 0xC35C
  2. B. 0xC35E
  3. C. 0x3CA3
  4. D. 0xC35D

Correct answer: A. 0xC35C

Add with end-around carry: the ones' complement sum is 0x3CA3; inverting gives 0xC35C. Dropping the carries instead of folding them back gives 0xC35E, and 0x3CA3 forgets the final complement.

More Computer Networks questions

Exams that ask this topic