Fragmentation Example
Fragmentation Example
Station A needs to send a payload size of 1400 bytes (octets) to station B across the
networks as shown above. Data needs to be fra!ented beca"se the payload is too bi to
fit the s!allest #$% size (&'0 bytes) in one of the network.
Show the Data (enth) #ore *la) and *ra!ent +ffset val"es in each of the res"ltin
fra!ents.
Solutions:
1. Deter!ine that act"al data size for trans!ission.
$he dada needs to be trans!itted is 1400 octets
,e will ass"!e that the size of the -. header is '0 octets.
#$% *ra!e / 0eader 1 Data
&'0 / '0 1 Data
Data / &'0 2 '0 / &00
So each fra!e can carry an -. datara! with a '02octet header and 600 data octets.
3ote the &00 is divisible by 4. -f not) we need to take the nearest !"ltiple of 4 in the
Data part of the #$% fra!e. $he reason is that the fra!ent offset !"st be a
!"ltiple of 42byte.
'. $he n"!ber of fragments needed to trans!it 1400 data octets5
Define
n / n"!ber of fra!ents
d / total n"!ber of data to be trans!itted at the network layer / -. data / 1400
! / !a6i!"! data size for the network / &00
1400
&00
'.77
7
d
n
m
=
=
=
=
B
B
Net 1
MTU =
1500
Net 3
MTU = 1500
Net 2
MTU = 620
R
1
R
2 A
A
So we need 3 fragments) ' fra!ents of &00 octets and the last one is (1400 8 ' 6 &00)
/ '00 octets.
.lease note that the fra!ent offset is in 42byte "nit.
Fragment Number Data Length Fragment Offset
!"b#te$
%ore Flag
1 &00 0 1
' &00 600&! / 9: 1
7 '00 9:19: / 1:0 0
Both *ra!ent +ffset and #ore *la are "sed for reasse!bly of fra!ents. $he #ore
*la is one e6cept the last fra!ent. $he #ore *la for the last fra!ent is 0 to indicate
no !ore fra!ents.