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?
- A. 8 fragments and offset 355
- B. 7 fragments and offset 370
- C. 7 fragments and offset 355
- 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
- What is the network address of the host 192.168.45.130/26?
- What is the broadcast address of the host 172.16.5.9/22?
- The signal speed in a link is 2 x 10^8 m/s and the link is 1500 km long. What is the propagation delay?
- Which TCP port does SMTP use by default?
- At which OSI layer does a router primarily operate?
- What is the Hamming distance between the codewords 10110 and 11011?