Multiple choice

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 and the sequence numbers of the first and the last bytes of the payload respectively are

  1. Last fragment; 2400 and 2789

  2. First fragment; 2400 and 2759

  3. Last fragment; 2400 and 2759

  4. Middle fragment; 300 and 689

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

M = 0 – Means there is no fragment after this, i.e. Last fragment HLEN = 10 So, header length is 4 ×10 = 40, as 4 is constant scale factor. Total length = 400(40 Byte Header + 360 Byte Payload) Fragment Offset = 300, that means 300 × 8 bytes = 2400 bytes are before this last fragment. So, the position of datagram is last fragment. Sequence number of First Byte of Payload = 2400 (as 0 to 2399 sequence numbers are used) Sequence number of Last Byte of Payload = 2400 + 360-1 = 2759