CS FundamentalsVery hardGATE CS

The Internet checksum is computed over the three bytes 01 02 03 (hex). As the standard requires for an odd length, the data is padded with one zero byte. What checksum is sent?

  1. A. 0xFEFA
  2. B. 0xFBFD
  3. C. 0x0402
  4. D. 0xFDFB

Correct answer: B. 0xFBFD

Padding goes at the end, so the 16-bit words are 0x0102 and 0x0300; their sum is 0x0402 and its ones' complement is 0xFBFD. Padding at the front (0x0003) gives 0xFEFA, and 0x0402 forgets to complement.

More Computer Networks questions

Exams that ask this topic