The maximum length (in bytes) of an IPv4 datagram is:

2025

The maximum length (in bytes) of an IPv4 datagram is:

  1. A.

    32

  2. B.

    256

  3. C.

    1024

  4. D.

    65535

Attempted by 295 students.

Show answer & explanation

Correct answer: D

In IPv4, the Total Length field in the header is 16 bits long

A 16-bit field can represent values from 0 to 65,535

So, the maximum possible size of an IPv4 datagram is 65,535 bytes

This includes both the header and data (payload)

In practice, packets are often smaller due to MTU (Maximum Transmission Unit) limits in networks

Explore the full course: Bpsc