sends a datagram containing of user data to over an Ethernet frames may carry data up to Size of header is and size of header is There is no option field in header. How many total number of fragments will be transmitted and what will be the contents of offset field in the last fragment?
View worked solution
Answer: C
To find the total number of IP fragments and the offset of the last fragment, we can break down the calculation into the following steps:
1. Calculate the Total IP Payload
The IP packet encapsulates the entire UDP datagram (UDP header + UDP user data):
2. Determine Maximum Payload per IP Fragment
The Maximum Transmission Unit (MTU) of the Ethernet LAN is . Each fragment must include its own IP header ():
Since the fragment offset field in the IP header is measured in units of , the payload size of all fragments (except the last one) must be a multiple of .
Checking if is divisible by :
Thus, the maximum payload size per fragment is indeed .
3. Calculate the Number of Fragments
We divide the total IP payload by the maximum payload size per fragment:
The distribution of payload across the fragments is as follows:
- Fragments 1 to 6: Each carries of payload.
- Fragment 7 (Last): Carries the remaining payload: .
4. Calculate the Offset of the Last Fragment
The fragment offset represents the number of payload bytes sent before the current fragment, divided by :
- Payload bytes sent before the fragment
- Offset of the fragment
Therefore, the total number of fragments is and the offset of the last fragment is .
Free practice · Your answers on this page are not saved.
