Skip to main content

GATE CSE 2025Computer Networks › Network Layer, Routing & IP AddressingVerified

GATE CSE 2025 PYQ: ​​​​​Consider a network that uses Ethernet and I P v 4 IPv4 I P v 4 . Assume that I P v 4 IPv4 I P v 4…

​​​​​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 1500 bytes in its data field. A UDP segment is transmitted. The payload (data) in the UDPO 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 IPv4IPv4 header?
  1. A
    5 fragments 1488 bytes
  2. B
    6 fragments 88 bytes
  3. C
    6 fragments 108 bytes
  4. D
    6 fragments 116 bytes
    Correct answer

Answer

(D) 6 6 6 fragments 116 116 116 bytes

Approach

The IP layer fragments the entire UDP segment, i.e. UDP header plus UDP data. Since the Ethernet MTU is 1500 bytes and the IPv4 header is 20 bytes, each fragment can carry at most 1480 bytes of IP payload. The remainder after sending as many full 1480-byte payload fragments as possible determines the last fragment size.

The correct choice is D. The IP payload consists of the 8-byte UDP header plus the 7488-byte UDP data, so 7496 bytes must be fragmented. With a 20-byte IPv4 header, each fragment can carry at most 1480 bytes of IP payload. Five full fragments carry 7400 bytes, leaving 96 bytes for the sixth fragment. Including the 20-byte IPv4 header, the last fragment size is 96 + 20 = 116 bytes.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.