A IP packet has arrived in which the fragmentation offset value is 100, the value of HLEN is 5 and the value of total length field is 200. What is the number of the last byte ?

A IP packet has arrived in which the fragmentation offset value is 100, the value of HLEN is 5 and the value of total length field is 200. What is the number of the last byte ? Correct Answer 979

Answer: Option 3

Data: 

Fragmentation offset: 100 

HLEN: 5

total length field: 200

Calculation

Header Length: HLEN × 4 ≡ 5 × 4 ≡ 20 Bytes

Fragmentation offset: 100 

Hence Bytes ahead of this fragment: 100 × 8 = 800 Bytes

total length = 200 ;

Hence data part will be 200 - 20 = 180 bytes

Hence the last byte number will be 800 + 179 = 979

Option 3 is the correct answer.

Related Questions