Question Bank - Computer Networks

Here's the question bank on all the computer networks topics.

In an IPv4 datagram, the M bit is 0, the value of HLEN is 10, the value of total length is 400 and the fragment offset value is 300. The position of the datagram, the sequence numbers of the first and the last bytes of the payload, respectively are

A.
Last fragment, 2400 and 2789
B.
First fragment, 2400 and 2759
C.
Last fragment, 2400 and 2759
D.
Middle fragment, 300 and 689

Solution:

The correct answer is option 3EXPLANATION:In the question given that M bit is 0, it means that no more fragments remaining to send after this fragment, hence this is the last fragment.So the answer should be either option 1 or option 3Let's checkthe value of HLEN is 10 × 4 =40B because the scaling factor is 4 byte for the field,Total length is given that is 400BPayload size =Total length - header lengthPayload size = 400B - 40BPayload size = 360BFragment offset = 300 × 8 =2400B, where 8 is the scaling factorValue of the first byte for this last fragment =2400and the last byte is =2400 +360 -1 = 2759, here we subtract -1 because start the byte from 0So the correct answer is option 3

For more questions,

Click Here

Download Gyanm App

free current affairs for competitive exams

Scan QR code to download our App for
more exam-oriented questions

free current affairs for competitive exams

OR
To get link to download app

Thank you! Your submission has been received. You will get the pdf soon. Call us if you have any question: 9117343434
Oops! Something went wrong while submitting the form.