Question

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

Which ONE of the following choices has the CORRECT total number of fragments transmitted and the size of the last fragment including IPv4 header?

Choose one option
Official answer and solution
Official answer
D
From
Official GATE 2025 answer key

Solution

Add the 8-byte UDP header to the UDP payload to get the IPv4 payload, divide by the maximum fragment payload of 1480 bytes, and add the 20-byte IPv4 header to the last fragment.

  1. Total IPv4 payload: The UDP segment consists of 74887488 bytes of UDP data plus an 88-byte UDP header, giving 7488+8=74967488 + 8 = 7496 bytes.
  2. Maximum data per IPv4 fragment: Ethernet MTU =1500= 1500 bytes, and the basic IPv4 header is 2020 bytes, so each fragment can carry at most 1500−20=14801500 - 20 = 1480 bytes of payload (note that 14801480 is divisible by 88).
  3. Number of fragments and last fragment size:
    • The first 55 fragments carry 5×1480=74005 \times 1480 = 7400 bytes of IPv4 payload.
    • The 66th (last) fragment carries the remaining 7496−7400=967496 - 7400 = 96 bytes of payload.
    • Including its 2020-byte IPv4 header, the size of the 66th fragment is 96+20=11696 + 20 = 116 bytes.
Final answer

Option (D)

Common trap

Forgetting to include the 8-byte UDP header in the IPv4 payload (which would give 88 + 20 = 108 bytes in Option C).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2025 Computer Science and Information Technology - Session 2 (CS2)
Question
23 of 65
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.