0% found this document useful (0 votes)
34 views

Fragmentation Example

This document provides an example of how data fragmentation works when transmitting a large payload across networks with different maximum transmission unit (MTU) sizes. It shows: 1) A 1400 byte payload needs to be fragmented because it exceeds the smallest MTU of 620 bytes. 2) The payload will be fragmented into 3 frames - two frames of 600 bytes each and one final frame of 200 bytes. 3) Each fragment will include the fragment offset and more flag to allow for reassembly of the original data.

Uploaded by

Tạ Thốn
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Fragmentation Example

This document provides an example of how data fragmentation works when transmitting a large payload across networks with different maximum transmission unit (MTU) sizes. It shows: 1) A 1400 byte payload needs to be fragmented because it exceeds the smallest MTU of 620 bytes. 2) The payload will be fragmented into 3 frames - two frames of 600 bytes each and one final frame of 200 bytes. 3) Each fragment will include the fragment offset and more flag to allow for reassembly of the original data.

Uploaded by

Tạ Thốn
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

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.

You might also like