Machine-translated by Google. Questions are authored in English.
Top

Discussion

Calculate the HLEN (Header Length) value in IPv4, if the total length is 1200 bytes, 1176 of which is data from the upper layer :

  • A.4
  • B.6
  • C.12
  • D.16

Answer: B

HLEN is 6.

The header is the total length minus the data:

\[ \begin{aligned} \text{header} &= 1200 - 1176 = 24 \text{ bytes} \\ \text{HLEN} &= 24 / 4 = 6 \end{aligned} \]

HLEN counts the header in 4-byte words, so a 24-byte header (the 20-byte minimum plus 4 bytes of options) has HLEN 6. 24 itself is not offered, 12 would count 2-byte units, and 4 or 16 do not fit the figures.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.