Question
Consider sending an IP datagram of size 1420 bytes (including 20 bytes of IP header) from a sender to a receiver over a path of two links with a router between them. The first link (sender to router) has an MTU (Maximum Transmission Unit) size of 542 bytes, while the second link (router to receiver) has an MTU size of 360 bytes. The number of fragments that would be delivered at the receiver is ________
Official answer and solution
- Official answer
- 6
- From
- Official GATE 2024 answer key
Solution
Fragment the 1400-byte IP payload across Link 1 (MTU = 542, max payload multiple of 8 is 520 bytes) and then re-fragment each resulting packet across Link 2 (MTU = 360, max payload multiple of 8 is 336 bytes).
The original IP datagram has a header and of data payload.
-
Fragmentation on the first link ():
- Maximum data per fragment must be a multiple of :
- The payload is split into 3 fragments with payload sizes:
- Fragment 1: data ( total)
- Fragment 2: data ( total)
- Fragment 3: data ( total)
- Maximum data per fragment must be a multiple of :
-
Fragmentation on the second link ():
- Maximum data per fragment:
- Each of the 3 fragments arriving at the router exceeds (even Fragment 3 has total size !) and is further fragmented:
- Fragment 1 ( data) fragments ( data)
- Fragment 2 ( data) fragments ( data)
- Fragment 3 ( data) fragments ( data)
- Maximum data per fragment:
Total fragments delivered at the receiver .
6
Thinking the 3rd fragment (with 360 bytes of payload) fits inside Link 2's MTU of 360 bytes, overlooking its 20-byte IP header (total size 380 bytes > 360 bytes), which would give 5.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
- Question
- 65 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.