• edited by
5,872 views
6 6 votes

A host X send a message to host Y having two intermediate  networks in between them.A TCP message consisting of 2100 bytes is passed to IP for delivery across two hosts. In first network has MTU of  1200 bytes  second network has MTU of 400 bytes excluding network overhead. Assume that IP overhead per packet is 20 bytes. What is the fragmentation offset for the Last fragment that reaches destination

2 Answers

Best answer
13 13 votes

File size = 2100 when it goes to network layer 20 bytes are added so it becomes 2120B but this is just for understanding as we can solve it without considering IP overhead because fragmentation is done on data not headers.

At sender S : 2100 B to intermediate router P(1200 bytes without header) to intermediate router Q(400 B w/o header)  to destination D.

S to P :

fragement 1 : 1200 fragment 2 : 900 to P

P to Q :

for 1200B fragment 

F1 : 400(data length in bytes) offset : 0 

F2 : 400 offset : 400/8=50

F3 : 400 offset : 100

for 900B fragment 

F4: 400 offset : 150

F5: 400 offset : 200

F6: 100 offset : 250 last fragment 

In other way 250*8 = 2000 bytes ahead of this last fragment (from 0 to 1999) and sequence number of last fragment is 2000.

So 250 shoud be answer.

• selected by
Answer:
Position:
Show:

Related questions

5 5 votes
2 answers 2 answers
4.4k
4.4k views
Shubhanshu asked Aug 19, 2017
4,418 views
Suppose a network:-Suppose a TCP message contains 492 B of data and TCP header is of size 20B then deliver it to IP. IP header is 20 B.Assume link A-R1 has the maximum fr...
1 1 vote
1 1 answer
756
756 views
Rajesh R asked Oct 20, 2017
756 views
When calculating fragmentation offset, we try to make the size of frame multiple of 8.Can someone tell me when to remove bits and make it multiple of 8 and when to pad bi...
1 1 vote
1 1 answer
882
882 views
Markzuck asked Jan 7, 2019
882 views
Fragmentation is only done at the DATA part of the IP layer and NOT the IP header right?in above, 1st should be 920 instead of 940 as 20B of IP header shall not be counte...
3 3 votes
1 1 answer
1.2k
1.2k views
sunita24 asked Jan 16, 2018
1,151 views
Consider Host A sends a UDP datagram containing 1100 bytes of user data to host B over an ethernet LAN. Maximum transmission unit (MTU) of the network is 206 bytes (inclu...