Skip to content
Official PYQ · 2025

GATE CS 2025 Set 2 Q13 — Fragmentation and IP Addressing, IPv4, CIDR

Explain with AI

​​​​​Consider a network that uses Ethernet and IPv4IPv4. Assume that IPv4IPv4 headers do not use any options field. Each Ethernet frame can carry a maximum of 15001500 bytes in its data field. A UDP segment is transmitted. The payload (data) in the UDPO segment is 74887488 bytes.

Which ONE of the following choices has the CORRECT total number of fragments transmitted and the sixe of the last fragment including IPv4IPv4 header?
Choose one option
View worked solution

Answer: D

To find the number of fragments and the size of the last fragment, we follow these steps:

  1. Determine the total IP payload:

    The UDP segment consists of the UDP payload and the UDP header (8 bytes):

    Total IP Payload=7488 bytes (UDP payload)+8 bytes (UDP header)=7496 bytes\text{Total IP Payload} = 7488 \text{ bytes (UDP payload)} + 8 \text{ bytes (UDP header)} = 7496 \text{ bytes}
  2. Determine the maximum IP payload per fragment:

    The maximum transmission unit (MTU) of Ethernet is 1500 bytes. Excluding the 20-byte IPv4 header (without options):

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

    Since 1480 is a multiple of 8, it is a valid fragment size.

  3. Calculate the number of fragments: Number of fragments=⌈74961480⌉=⌈5.065⌉=6 fragments\text{Number of fragments} = \left\lceil \frac{7496}{1480} \right\rceil = \lceil 5.065 \rceil = 6 \text{ fragments}
  4. Calculate the size of the last fragment:

    The first 5 fragments each carry 1480 bytes of IP payload. The remaining payload for the 6th6^{\text{th}} fragment is:

    Last fragment payload=7496−(5×1480)=96 bytes\text{Last fragment payload} = 7496 - (5 \times 1480) = 96 \text{ bytes}

    Including the 20-byte IPv4 header, the total size of the last fragment is:

    Last fragment size=96+20=116 bytes\text{Last fragment size} = 96 + 20 = 116 \text{ bytes}

Thus, there are 6 fragments and the last fragment size is 116 bytes.

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

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