Skip to content
GATEiit

GATE CSE 2018 Q64: Fragment offset of the third IPv4 fragment with MTU 600

Syllabus topic: IPv4: fragmentation, CIDR notation and network address translation (NAT)

Question

Consider an IP packet with a length of 4,500 bytes that includes a 20-byte IPv4 header and a 40-byte TCP header. The packet is forwarded to an IPv4 router that supports a Maximum Transmission Unit (MTU) of 600 bytes. Assume that the length of the IP header in all the outgoing fragments of this packet is 20 bytes. Assume that the fragmentation offset value stored in the first fragment is 0.

The fragmentation offset value stored in the third fragment is _______.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 144 (official GATE 2018 final answer key)

Concept used: Each fragment's data length (except the last) must be a multiple of 8 bytes, and the offset field stores the data position in units of 8 bytes; the TCP header counts as IP payload.

Concept notes

Loading notes…

First step: Find the largest multiple of 8 that fits in 600 − 20 bytes; that is the data per fragment, and the third fragment starts after two such pieces.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on IPv4: fragmentation, CIDR notation and network address translation (NAT)

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2018 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key