What is the size of the 'total length' field in πΌππ£4 diagram ?
2015
What is the size of the 'total length' field inΒ πΌππ£4Β diagram ?
- A.
4Β bits
- B.
8Β bits
- C.
16Β bits
- D.
32Β bits
Attempted by 726 students.
Show answer & explanation
Correct answer: C
Answer: 16 bits
Explanation: The Total Length field in the IPv4 header is 16 bits (2 bytes). It indicates the length of the entire IP packet, including the header and payload, measured in bytes.
Maximum value: 65535 bytes (range 0 to 65535).
Why other sizes are incorrect:
4 bits: used for the Version and Internet Header Length (IHL) fields.
8 bits: used for the Type of Service (DSCP+ECN) field.
32 bits: size of an IPv4 address (source or destination), not the Total Length field.