Skip to content
Official PYQ · 2014

GATE CS 2014 Set 3 Q28 — Fragmentation and IP Addressing, IPv4, CIDR

Explain with AI

An IPIP router with a Maximum Transmission Unit (MTU)\text{Maximum Transmission Unit (MTU)} of 15001500 bytes has received an IPIP packet of size 4404 bytes4404\text{ bytes} with an IPIP header of length 20 bytes20\text{ bytes}. The values of the relevant fields in the header of the third IPIP fragment generated by the router for this packet are:

Choose one option
View worked solution

Answer: A

To find the fields of the third IP fragment, we break down the original IP packet based on the Maximum Transmission Unit (MTU) and the requirement that fragment offsets must be multiples of 8 bytes.

1. Identify Packet Parameters

  • Total Packet Size: 4404 bytes4404 \text{ bytes}
  • IP Header Length: 20 bytes20 \text{ bytes}
  • Total Payload Size: 4404−20=4384 bytes4404 - 20 = 4384 \text{ bytes}
  • MTU: 1500 bytes1500 \text{ bytes}

2. Determine Maximum Payload per Fragment

The maximum payload size in each fragment is limited by the MTU minus the header size:

Max Payload=1500−20=1480 bytes\text{Max Payload} = 1500 - 20 = 1480 \text{ bytes}

Since the fragment offset field in the IP header is measured in units of 8 bytes, the payload size of intermediate fragments must be a multiple of 8. Since 14801480 is divisible by 88 (1480/8=1851480 / 8 = 185), the maximum payload size for each fragment is exactly 1480 bytes1480 \text{ bytes}.

3. Fragment Breakdown

  • Fragment 1:
    • Payload: 1480 bytes1480 \text{ bytes} (bytes 00 to 14791479)
    • Total Length (Datagram Length): 1480+20=1500 bytes1480 + 20 = 1500 \text{ bytes}
    • Offset: 0/8=00 / 8 = 0
    • More Fragments (MF) bit: 11
  • Fragment 2:
    • Payload: 1480 bytes1480 \text{ bytes} (bytes 14801480 to 29592959)
    • Total Length: 1480+20=1500 bytes1480 + 20 = 1500 \text{ bytes}
    • Offset: 1480/8=1851480 / 8 = 185
    • MF bit: 11
  • Fragment 3 (Last Fragment):
    • Remaining Payload: 4384−(1480+1480)=1424 bytes4384 - (1480 + 1480) = 1424 \text{ bytes} (bytes 29602960 to 43834383)
    • Total Length (Datagram Length): 1424+20=1444 bytes1424 + 20 = 1444 \text{ bytes}
    • Offset: 2960/8=3702960 / 8 = 370
    • MF bit: 00 (since no more fragments follow)

Thus, the values for the third fragment are: MF bit: 0, Datagram Length: 1444, Offset: 370.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Fragmentation and IP Addressing, IPv4, CIDR questions