GATE CS 2024 Set 1 — Question 65
NAT+2 / -0HardIPv4 Packet & FragmentationNetwork Layer: AddressingComputer Networks
Computer Networks → Network Layer: Addressing → IPv4 Packet & Fragmentation
Last updated
Question
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 (sender to router) has an MTU (Maximum Transmission Unit) size of 542 bytes, while the second link (router to receiver) has an MTU size of 360 bytes. The number of fragments that would be delivered at the receiver is _________
Correct answer
6 to 6
Solution
1.Original Datagram:
- Total size = 1420 bytes
- IP Header = 20 bytes
- Data Payload = bytes
- Maximum IP packet size = 542 bytes
- Maximum data payload per fragment = bytes
- Since the Fragment Offset field is in units of 8 bytes, the data length in all but the last fragment must be a multiple of 8.
- Largest multiple of 8 is ().
- Fragments generated:
- Fragment 1: Data = 520 bytes, Total size = 540 bytes
- Fragment 2: Data = 520 bytes, Total size = 540 bytes
- Fragment 3: Data = bytes, Total size = 380 bytes
- Maximum IP packet size = 360 bytes
- Maximum data payload per fragment = bytes
- Largest multiple of 8 is ().
- Each fragment from Link 1 is checked against the new MTU:
- Fragment 1 (520 bytes data): Needs fragmentation. . (2 fragments)
- Fragment 2 (520 bytes data): Needs fragmentation. . (2 fragments)
- Fragment 3 (360 bytes data): Needs fragmentation (since total size 380 > 360). . (2 fragments)
- Total = fragments.
More questions on Network Layer: Addressing
2024 Set 1 Q16A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP…2024 Set 2 Q23Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP…2024 Set 2 Q28Which of the following statements about IPv4 fragmentation is/are TRUE?2024 Set 1 Q29TCP client successfully establishes a connection to TCP server . Let denote the…2024 Set 1 Q31Which of the following fields is/are modified in the IP header of a packet going out of a network…
Practice GATE CS PYQs with adaptive difficulty
Timed practice, skill tracking, and AI explanations — free to start.
Start practicing free