Question
An IP router with a Maximum Transmission Unit (MTU) of 1500 bytes has received an IP packet of size 4404 bytes with an IP header of length 20 bytes. The values of the relevant fields in the header of the third IP fragment generated by the router for this packet are
Official answer and solution
- Official answer
- A
- From
- Official GATE 2014 answer key
Solution
Compute maximum payload capacity per fragment from MTU and calculate offset and length for the third fragment.
-
Packet and MTU Parameters:
- Total original packet size = bytes.
- IP header length = bytes.
- Total data payload = bytes.
- Link MTU = bytes.
- Maximum fragment payload must be a multiple of bytes and satisfy:Since is divisible by (), maximum payload per non-terminal fragment is bytes.
-
Fragment Details:
- Fragment 1:
- Data bytes: to ( bytes).
- Datagram length = bytes.
- Fragment offset = .
- MF (More Fragments) bit = .
- Fragment 2:
- Data bytes: to ( bytes).
- Datagram length = bytes.
- Fragment offset = .
- MF bit = .
- Fragment 3:
- Remaining data payload = bytes.
- Datagram length = bytes.
- Fragment offset = .
- MF bit = (since this is the final fragment carrying the last byte of the original packet).
- Fragment 1:
-
Thus, for the third fragment:
This matches option A.
A
Using raw byte offset 2960 instead of dividing by 8 to obtain the 8-byte scaled fragment offset 370.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 3
- Question
- 38 of 65, printed as CS Q.28
- 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.