CS FundamentalsHardGATE CS (PYQ pattern)

A 4000-byte IP datagram (20-byte header, no options) is sent over a link with MTU 1500 bytes. Considering the last fragment, the fragment offset field and its total length are:

  1. A. offset 370, total length 1040 bytes
  2. B. offset 370, total length 1020 bytes
  3. C. offset 375, total length 1040 bytes
  4. D. offset 185, total length 1040 bytes

Correct answer: A. offset 370, total length 1040 bytes

Data = 3980 bytes; each full fragment carries 1480 data bytes (a multiple of 8). The last carries 3980 − 2960 = 1020 data bytes, plus a 20-byte header gives 1040, and its offset is 2960/8 = 370.

More Computer Networks questions

Exams that ask this topic