retagged by
437 views
2 votes
2 votes
A router receives an $IP$ packet containing $400$ data bytes and forwards that packet in a network where maximum transmission unit is $100$ bytes. If the $\text{IP}$ header is $15$ bytes long, then the number of fragments required is ______.
retagged by

3 Answers

Best answer
1 votes
1 votes

hope this helps!!!!

selected by
1 votes
1 votes
$( 100 - 15) = 85 /8 = 10.5 = 10$
that means $10 * 8 B + 15 B header = 95 B$
so number of fragments require $( 100 - 95) = 5$
edited by
0 votes
0 votes

If the IP header is 15 bytes long

The size of IPv4 header is between 20 and 60 Bytes. But it is given 15 bytes, so let's play along.

(We only should use scaling, when just the number is given. Here, the unit "bytes" is explicitly mentioned)

 

Only two things you must keep in mind:

  1. The payload must be a multiple of 8 in all but the last fragment. $^{[1]}$
  2. Sum of fragmented payloads = original payload (not original packet size).

So, keeping these two golden rules in mind, we'll fragment

15 400

into

 

15 80
15 80
15 80
15 80
15 80

 

So, 5 fragments.


$^{[1]}$ The reason goes a little deep. Read the answer by Ryan here: https://stackoverflow.com/questions/7846442/why-the-ip-fragments-must-be-in-multiples-of-8-bytes

Answer:

Related questions

0 votes
0 votes
1 answer
2
2 votes
2 votes
1 answer
4
Nisha Bharti asked Sep 30, 2022
743 views
What is the difference between frame & fragmented packet?