The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
67 views

Which of the following statements are True ?

asked in Computer Networks by Loyal (7.4k points) | 67 views
0
I am getting S1 and S2 as an answer. Please anybody Verify it
0
I'm getting  S1 only, can you explain how s2 is valid
0
I am getting S2 and S3. There will be total 8 fragments that will be sent with 184+20 B for 7 fragments and 50+20 B for the last one. So MF bit of 6th fragment will also be 1. Offset of 4th fragment comes out to be 69.

total data will be 1100+10(UDP)+20(IP) =1130. But 20B will be discarded by router and total data would now be 1110 which is to be sent.

Please confirm the answer.
0

@Gupta731 sorry there was a calculation glitch, below is the solution I got 

1100 data +10 header ==> 1110 total packet from Transport layer.

MTU=206(DATA+IP header)==>Data = 186/8 ==> 23.25 it contains decimal so take 23.

So the Data should be 184.

Total length = 184+20 => 204

No of packets= 1110/184 ==>6.032608695652174.==> 7 packets(S3 is true and S1 is false)

length of data for $7^{th}$ packet =( 6.032608695652174 - 6 )* 184 =6

Offset of $4^{th}$ fragment = (3 * 184)/8  ==>552/8==>69  (S2 is true).

Conclusion:

S1 is false S2 is true S3 is true

0
Yes exactly. But total packets will be 8 it seems.

As 184+20 =204 will be in each packet, but only 184 B of data will be present. It will take 8 packets to send the data completely along with the total overhead of IP headers.
0

No of packets= 1110/184 ==>6.032608695652174.==> 7 packets(S3 is true and S1 is false

But I got 7 packets only 

0

We could wait for @Na462 to verify with the answers provided.

0
Answer is S2 and S3.
0
There should be total of 6 fragmentation

See for network layer the payload is = 1100 + 10 = 1110 Bytes which will be fragmented = 1110 / (206-20) = 6

The fragments will be as = (186 + 20),(186+20),(186+20),(186+20),(186+20),(180,20)

I dont understand how 7 packets ???
0

@Na462 that was the trap set.

You should not consider 186 as data length it should be 184 because it should be divisible by 8 as we scale down for offset.

0
I didn't understand If I take 184 instead of 186 the utilization will decrease as overhead will increase. I don't understand your reason brother. Can u elaborate a little please. Or some reference
0
See what will be the offset of 1st packet or 4th packet ?? You will get a decimal value which cannot be stored. so we we have to round value to nearest decimal but we should not take ceil because it crosses MTU so we take floor. Hope you got this
0
I got your point brother but can't we take the floor of that decimal offset and store it ?
0
Yes we have to take the floor not ceil

Please log in or register to answer this question.

Related questions

+5 votes
1 answer
1


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

43,964 questions
49,518 answers
162,485 comments
65,759 users