CS FundamentalsHardProduct company interview · GATE level

A receiver computes the Internet checksum over the 16-bit words 0xffff, 0x0001, 0x2222, 0x3333 using one's-complement addition with end-around carry. What is the checksum field value (the one's complement of the sum)?

  1. A. 0xaaa9~1
  2. B. 0xaaa9
  3. C. 0x5556
  4. D. 0xaa56

Correct answer: B. 0xaaa9

Adding the words with end-around carry (any overflow past 16 bits is added back in) gives a sum of 0x5556. The checksum is the one's complement of this sum: 0xaaa9.

More Computer Networks questions

Exams that ask this topic