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 ______. Computer Networks tbb-mockgate-4 numerical-answers computer-networks network-layer fragmentation + – Bikram asked May 14, 2017 • retagged Sep 11, 2020 by ajaysoni1924 Bikram 437 views answer comment Share Follow See 1 comment See all 1 1 comment reply vijju532 commented Dec 19, 2018 reply Follow Share 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 votes 0 votes Please log in or register to add a comment.
Best answer 1 votes 1 votes hope this helps!!!! akash.dinkar12 answered Aug 1, 2017 • selected Aug 1, 2017 by Bikram akash.dinkar12 comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments Rishabh Gupta 2 commented Jan 30, 2018 reply Follow Share @akash sir, the data unit need to be a multiple of 8. Right? It should be 80 and not 85. 4 votes 4 votes VS commented Jan 31, 2018 reply Follow Share 400 B includes header or not ? Although ans would be same. 0 votes 0 votes chauhansunil20th commented Jan 31, 2019 reply Follow Share @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 votes 0 votes Please log in or register to add a comment.
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$ Bikram answered May 14, 2017 • edited Jan 29, 2018 by Andrijana3306 Bikram comment Share Follow See 1 comment See all 1 1 comment reply Harish Kumar 2 commented Jan 30, 2018 reply Follow Share 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 votes 1 votes Please log in or register to add a comment.
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: The payload must be a multiple of 8 in all but the last fragment. $^{[1]}$ 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 JashanArora answered Jan 17, 2020 JashanArora comment Share Follow See all 0 reply Please log in or register to add a comment.