IPv4 Fragmentation Problems

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Fragmentation Example

A 3,000-bytes IP packet with a default IPHL of 20 bytes must be sent over

an Ethernet network.

a) What is the data payload of the packet?

b) In how many fragments this packet must be decomposed?

c) What are the FO’s of the fragments?

d)What are the data payloads of the fragments?

e) How long the fragments are?

f) What are the expected

lower and upper bounds of n?

Solution:
For Ethernet v2, MTU = 1,500 bytes.

a) The data payload of the packet is : DP = PL-IPHL

DP = 3,000 – 20 = 2,980 bytes

b) Number of fragments this packet must be decomposed: n =

PL-IPHL/MTU-IPHL

n = (3,000 – 20)/(1,500 – 20) = 2.0135

… Since this result is not a whole number, it is incremented by 1 and

rounded off to the nearest integer; i.e. n = 2.0135… + 1 =

3.0135…
= 3.

c) The fragment offsets are: FOi = (i-1) * (MTU-IPHL/8)

FO1 = (1 –

1)*(1,500 – 20)/8

=0

FO2 = (2 –

1)*(1,500 – 20)/8

= 185

FO3 = (3 –

1)*(1,500 – 20)/8

= 370
d) The data payloads of the fragments are: dpi = MTU - IPHL

dp1 = 1,500 – 20 = 1480 bytes

dp2 = 1,500 – 20 = 1480 bytes

dp3 = DP – (dp1 + dp2) = DP – 8*FO3 = 2980 – 2,960 = 20 bytes

e) The lengths of the fragments are:

pl1 = dp1 + IPHL

= 1,500 bytes

pl2 = dp2 + IPHL

= 1,500 bytes

pl3 = dp3 + IPHL

= 40 bytes
f) The expected lower and upper bounds of n are:

Lower Bound : PL/MTU

= 3,000/1,500 = 2

Upper Bound: PL/MTU

+1=3

2 <=n <=3

Therefore regardless of whether IPHL is 20 or 60 bytes, the packets must

be broken up into no more than 3 fragments.

You might also like