GATE 2024 CS (CS1) – Question 65
Consider sending an IP datagram of size 1420 bytes (including 20 bytes of IP header) from a sender to a receiver over a path of two links with a router between them. The first link has an MTU of 542 bytes, while the second link has an MTU of 360 bytes. The number of fragments that would be delivered at the receiver is ________
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: 6
Explanation
IP payload $=1420-20=1400$ bytes. Fragment data lengths must be multiples of 8 (except the last).
**Link 1 (MTU 542):** max data $=542-20=522\to$ round down to **520**. Fragments carry $520+520+360=1400$ bytes, so 3 fragments.
**Link 2 (MTU 360):** max data $=360-20=340\to$ round down to **336**. The router fragments each incoming fragment again:
- $520\to336+184$ (2 fragments)
- $520\to336+184$ (2 fragments)
- $360\to336+24$ (2 fragments)
Total fragments reaching the receiver $=\mathbf{6}$.
More IPv4: Addressing, CIDR, Fragmentation and NAT questions
- GATE 2024 CS (CS2) Q28
- GATE 2024 CS (CS2) Q32
- GATE 2024 CS (CS2) Q38
- GATE 2023 CS Q65
- GATE 2022 CS Q22
- GATE 2022 CS Q55
All IPv4: Addressing, CIDR, Fragmentation and NAT questions →