CS FundamentalsHardTCS NQT · Infosys pattern

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

  1. A. 0x3333
  2. B. 0xcc33
  3. C. 0xcccc~1
  4. D. 0xcccc

Correct answer: D. 0xcccc

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

More Computer Networks questions

Exams that ask this topic