CS FundamentalsVery hardGATE CS

A TCP header has data offset = 8. How many bytes of options does it contain, and could they hold MSS (4 bytes), window scale (3 bytes) and SACK-permitted (2 bytes)?

  1. A. 8 bytes; no
  2. B. 32 bytes; yes, with room for timestamps too
  3. C. 12 bytes; yes, 9 bytes plus 3 bytes of padding/NOPs
  4. D. 12 bytes; no, options must be multiples of 8

Correct answer: C. 12 bytes; yes, 9 bytes plus 3 bytes of padding/NOPs

Data offset counts 32-bit words: 8 × 4 = 32-byte header, 12 bytes of options. 4 + 3 + 2 = 9 bytes fit, with NOPs/padding to reach a 4-byte boundary; adding timestamps (10 bytes) would need 20.

More Computer Networks questions

Exams that ask this topic