In computer network, what is the size of IP address in IPv4?

2023

In computer network, what is the size of IP address in IPv4?

  1. A.

    8 bits

  2. B.

    32 bits

  3. C.

    16 bits

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 3118 students.

Show answer & explanation

Correct answer: B

Concept: IPv4 defines a fixed-length addressing scheme: every IPv4 address is a 32-bit binary number, conventionally written as four 8-bit fields (octets) in dotted-decimal notation (e.g., 192.168.1.1). This fixed length is set by the IPv4 standard and caps the total address space at 232 unique addresses.

Application: Counting the bits that make up one IPv4 address:

  1. An IPv4 address is written as 4 octets separated by dots.

  2. Each octet is 8 bits wide.

  3. Total address length = 4 octets × 8 bits per octet = 32 bits.

Cross-check: This matches the CIDR prefix ceiling of /32 (the longest possible IPv4 subnet mask, using all address bits as network bits) and contrasts with IPv6's 128-bit addresses — confirming that 32 bits is specific to IPv4.

Hence, the size of an IP address in IPv4 is 32 bits.

Explore the full course: Up Lt Grade Assistant Teacher 2025