CS FundamentalsHardProduct-company MCQ pattern

A 5000-byte IPv4 datagram (20-byte header) must cross a link with MTU 1420 bytes. What are the fragment offset and total length of the last fragment?

  1. A. Offset 4200, total length 800 bytes
  2. B. Offset 525, total length 780 bytes
  3. C. Offset 525, total length 800 bytes
  4. D. Offset 350, total length 1420 bytes

Correct answer: C. Offset 525, total length 800 bytes

Data per fragment = 1400 bytes (1420 − 20, already a multiple of 8). 4980 data bytes → 1400 + 1400 + 1400 + 780, i.e. 4 fragments. The last starts at byte 4200 → offset 4200/8 = 525, and its total length is 780 + 20 = 800. 780 forgets the header; 4200 forgets the 8-byte unit.

More Computer Networks questions

Exams that ask this topic