CS FundamentalsVery hardProduct company interview · GATE level
An IPv4 datagram of total length 4020 bytes (20-byte header, no options) is forwarded over a link with MTU 1500 bytes and then over a link with MTU 620 bytes. Each router fragments whatever it receives into the largest fragments its outgoing link allows, and nothing is reassembled until the destination. How many fragments reach the destination, and what is the fragment-offset field of the one carrying the final bytes of the payload?
- A. 7 fragments; offset 450
- B. 8 fragments; offset 445
- C. 8 fragments; offset 450
- D. 8 fragments; offset 3560
Correct answer: B. 8 fragments; offset 445
MTU 1500 allows 1480 payload bytes: the 4000-byte payload becomes 1480 + 1480 + 1040 (offsets 0, 185, 370). MTU 620 allows 600 payload bytes: each 1480-byte fragment becomes 600 + 600 + 280 and the 1040-byte one becomes 600 + 440, giving 3 + 3 + 2 = 8 fragments. The last starts at payload byte 2960 + 600 = 3560, so its offset field is 3560/8 = 445 (length 440 + 20 = 460). Fragmenting the original directly at MTU 620 would give 7 fragments with last offset 450, but routers re-fragment the fragments they receive; 3560 is the byte position, not the field value in 8-byte units.
More Computer Networks questions
- A router receives an IPv4 fragment with header length field 5, total length 1196, fragment offset 294 and the More Fragments bit set…
- A sender protects the 10-bit message 1011001110 with a CRC using the generator 10011 (x^4 + x + 1) and transmits the resulting 14-bit…
- A 12-bit Hamming codeword protects 8 data bits. Positions are numbered 1 to 12 from the left, even-parity check bits sit at positions 1…
- A 100 Mbps CSMA/CD network has its two farthest stations 500 m of cable apart, with two repeaters on the path between them. Signals travel…
- Two Ethernet stations A and B collide. For A this is the 1st collision of its current frame, so it picks its backoff K uniformly from {0…
- Routers A, B and C run a basic distance-vector protocol with no split horizon or poisoned reverse. Link costs are A-B = 3, B-C = 2 and A-C…