CS FundamentalsModerateGATE CS · Product company CS fundamentals

An IPv4 packet has HLEN = 8 and total length = 1000. How many bytes of options does the header carry, and how many bytes of payload does the packet carry?

  1. A. 12 bytes of options, 968 bytes of payload
  2. B. 0 bytes of options, 992 bytes of payload
  3. C. 3 bytes of options, 992 bytes of payload
  4. D. 12 bytes of options, 980 bytes of payload

Correct answer: A. 12 bytes of options, 968 bytes of payload

HLEN counts 4-byte words: 8 × 4 = 32-byte header, of which 20 are the fixed part, so 12 bytes of options. Total length includes the header: 1000 − 32 = 968 bytes of payload.

More Computer Networks questions

Exams that ask this topic