494 views
0 votes
0 votes
The packet is sent from source to router with the link having the maximum transmission unit (MTU) as 480 bytes, the header is of size 20 bytes. The intermediate fragment size is X and the last fragment size is Y when the packet size is of 2000 bytes including the header. Calculate the value of X+Y in bytes?

1 Answer

Best answer
1 votes
1 votes
Intermediate fragment size can be calculated from the given MTU. Data going through the router is the payload(actual data) + headers. Since the fragment size is required to be a multiple of 8 ,the actual size of data would be  $(MTU - size(header)) - ((MTU-size(header))%8)$.

No. of fragments can be calculated by $\frac{size(packet)-size(headers))}{size(fragment)}$, round it to the next integer value. So in this case a total of 5 packets. Each packet except the last one will be transmitted using the complete MTU size, so the last fragment size would be $(size(packet)-size(headers)) - ((no. of fragments-1)*size(fragment))$, which is  156 in this case. So $X+Y=456+156=612$
selected by

Related questions

0 votes
0 votes
1 answer
2
LRU asked Nov 11, 2021
644 views
A router with MTU of 1024 bytes has received an IP packet of size 4240 bytes with an IP header of 20 bytes. The value of MF and offset of the 3rd fragment is ________
3 votes
3 votes
1 answer
3
LRU asked Oct 10, 2021
999 views
Let an IP datagram of the following data and header sizes be sent through a network of MTU 500 bytes. Calculate the fragment offset values that should be set for 3rd frag...
1 votes
1 votes
1 answer
4