Suppose a message of size bytes is transmitted from a source to a destination using IPv4 protocol via two routers as shown in the figure. Each router has a defined maximum transmission unit (MTU) as shown in the figure, including IP header. The number of fragments that will be delivered to the destination is _________. (Answer in integer)

View worked solution
Answer: 7:7
To find the number of fragments delivered to the destination, we analyze the fragmentation process at each hop. Let the IP header size be bytes.
1. First Hop (Source to Router 1): bytes
- Maximum payload size per fragment bytes.
- Since the fragment offset must be a multiple of , the payload size must be a multiple of .
- The largest multiple of less than or equal to is bytes.
- The bytes message payload is fragmented into:
- fragments with bytes payload (total size bytes each)
- fragment with bytes payload (total size bytes)
- Total fragments sent to Router 1 .
2. Second Hop (Router 1 to Router 2): bytes
- Maximum payload size per fragment bytes.
- The largest multiple of is bytes.
- Router 1 fragments each incoming packet that exceeds the MTU:
- Each of the large fragments ( bytes payload) is split into two sub-fragments: one of size bytes payload and another of size bytes payload.
- The small fragment ( bytes payload) is forwarded as-is.
- Total fragments leaving Router 1 .
3. Third Hop (Router 2 to Destination): bytes
- The maximum size among the incoming fragments is bytes (payload bytes + header bytes).
- Since bytes, no further fragmentation occurs at Router 2.
Thus, the number of fragments delivered to the destination is 7.
Free practice · Your answers on this page are not saved.
