CS FundamentalsVery hardGATE CS

A 3000-byte IP datagram (20-byte header, 2980 bytes of payload) is sent over a link with MTU 1500, producing fragments that then cross a second link with MTU 700 and are fragmented again where necessary (fragment payloads are multiples of 8 bytes except the last, headers are 20 bytes). How many fragments reach the destination in total, and what is the fragment-offset field of the last piece derived from the second first-level fragment?

  1. A. 8 fragments and offset 355
  2. B. 7 fragments and offset 370
  3. C. 7 fragments and offset 355
  4. D. 6 fragments and offset 340

Correct answer: C. 7 fragments and offset 355

At MTU 1500 the payload per fragment is 1480 bytes: fragments of 1480, 1480 and 20 bytes with offsets 0, 185, 370. At MTU 700 the payload limit is 680 bytes (a multiple of 8): each 1480-byte fragment becomes 680 + 680 + 120, so 3 + 3 + 1 = 7 fragments. The second fragment's pieces have offsets 185, 270 and 185 + 170 = 355.

More Computer Networks questions

Exams that ask this topic