GATE 2015 CS (CS2) – Question 37
Host A sends 8880 bytes of user data by UDP over Ethernet with MTU 1500 bytes. UDP header is 8 bytes and IP header 20 bytes with no options. Find the number of IP fragments and the fragment-offset value of the last.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) 7 and 1110
Explanation
IP payload includes the UDP header, totalling 8888 bytes. Each nonfinal fragment carries at most 1500−20=1480 bytes, divisible by eight. Six such payloads cover 8880 bytes, leaving eight for a seventh fragment. Its offset is 8880/8=1110 in eight-byte units. Thus C.
More IPv4: Addressing, CIDR, Fragmentation and NAT questions
- GATE 2015 CS (CS3) Q46
- GATE 2026 CS (CS1) Q56
- GATE 2026 CS (CS2) Q33
- GATE 2025 CS (CS1) Q57
- GATE 2025 CS (CS2) Q18
- GATE 2025 CS (CS2) Q23
All IPv4: Addressing, CIDR, Fragmentation and NAT questions →