CS FundamentalsVery hardGATE CS

A receiver has these fragments of one IPv4 datagram (all with 20-byte headers): offset 0, total length 1420, MF = 1; offset 175, total length 1420, MF = 1; offset 525, total length 620, MF = 0. How many data bytes are still missing, and what was the original datagram's total length?

  1. A. 1400 bytes missing; total length 4800
  2. B. 1200 bytes missing; total length 4820
  3. C. No bytes missing; total length 3460
  4. D. 1400 bytes missing; total length 4820

Correct answer: D. 1400 bytes missing; total length 4820

The fragments carry bytes 0–1399, 1400–2799 and 4200–4799 (offset × 8). Bytes 2800–4199 (1400 bytes) are missing. The last fragment ends at byte 4799, so the payload is 4800 bytes and the original total length 4800 + 20 = 4820.

More Computer Networks questions

Exams that ask this topic