CS FundamentalsHardAccenture · Tech Mahindra pattern

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

  1. A. 0x5555~1
  2. B. 0x5555
  3. C. 0xaaaa
  4. D. 0x55aa

Correct answer: B. 0x5555

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

More Computer Networks questions

Exams that ask this topic