The GATE Grind

GATE 2018 CS – Question 64

Computer Networks · IPv4: Addressing, CIDR, Fragmentation and NAT · 2 marks · Numerical answer

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 ________.

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 144

Explanation

Total packet $=4500$ bytes, of which 20 bytes is the IP header, so the data to be fragmented is $4500-20=4480$ bytes.

MTU $=600$ bytes, so each fragment can carry at most $600-20=580$ bytes of data. Fragment data must be a multiple of 8 bytes (the offset is counted in 8-byte units), so the largest usable size is $576$ bytes.

More IPv4: Addressing, CIDR, Fragmentation and NAT questions

All IPv4: Addressing, CIDR, Fragmentation and NAT questions →