ISRO | ISRO CS 2014 | Question 31

An IP packet has arrived in which the fragment offset value is 100, the value of HLEN is 5 and the value of total length field is 200. What is the number of last byte in packet.
(A) 194
(B) 394
(C) 979
(D) 1179


Answer: (C)

Explanation: Given, fragment offset = 100 * 8 = 800
HLEN = 5, So header length = 5 * 4 = 20
Total length field = 200
payload size = 200 – 20 = 180

Therefore, number of last byte in packet = 800 + 180 – 1 = 979

So, option (C) is correct.


Quiz of this Question

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.