GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 37

GATE CSE 2015 Set 2 Q37

Computer Networks · IP Addressing, Fragmentation & Address Resolution · Full GATE CSE 2015 Set 2 paper

GATE 2015 Set 2, Q37 2 marks · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 37, GATE 2015: UDP user data 8880 bytes, UDP header 8 bytes, IPv4 header 20 bytes, no options, Ethernet MTU1500. Find number of IPv4 fragments and final fragment offset: A6, 925; B6, 7400; C7, 1110; D7, 8880.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step through it (4 steps)

IP payload includes the 8-byte UDP header, totaling 8888 bytes. Each full fragment holds 1500−20=1480 bytes, a multiple of 8. Six hold 8880 bytes, leaving 8 bytes for a seventh. Its offset is 8880/8=1110. Thus 7 fragments and 1110, C.

Fragmentation splits the IP payload, which already includes the entire UDP header:8880+8=8888 bytes. Each fragment gets its own 20-byte IP header, leaving 1480 payload bytes within the 1500MTU.1480 is divisible by 8, so six full payloads consume 8880 bytes and an 8-byte remainder requires a seventh fragment. The final fragment begins after 8880 original-IP-payload bytes; divide by the 8-byte offset unit to get 1110. Omitting the UDP header incorrectly gives only six fragments.

Original paper, page 38 · Answer key