in Computer Networks retagged by
448 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 ______.
in Computer Networks retagged by
by
448 views

1 comment

i am getting  fragments viz;

80|20  80|20  80|20  80| 20  20|20 is it correct i am not getting the solution provided below 

please check it @Mk Utkarsh @abhishekmehta4u

0
0

3 Answers

1 vote
1 vote
Best answer

hope this helps!!!!

selected by

4 Comments

@akash sir, the data unit need to be a multiple of 8. Right? It should be 80 and not 85.
4
4
400 B includes header or not ? Although ans would be same.
0
0

@akash.dinkar12 shouldn't the size of a fragment be divisible by 8? how did you take size as 85 in the selected answer? :/

0
0
1 vote
1 vote
$( 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

1 comment

Hi Bikram sir, Shouldn't the IP header be 15x4=60(4 is scaling factor), as the minimum IP header length is 20 Bytes.

The answer should be then 9 packets, If there is any error in approach please tell me.
1
1
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