Difficulty: Easy
Correct Answer: 32 - bits
Explanation:
Introduction / Context:
IPv4 addressing is the classic scheme for identifying hosts and interfaces on TCP/IP networks. Each IPv4 address uniquely identifies a destination for packets across routed networks. Knowing the bit-length of this address is a foundational networking fact tested in many exams and interviews.
Given Data / Assumptions:
Concept / Approach:
IPv4 uses a fixed 32-bit address. In dotted-decimal form, this is written as four octets (for example, 192.168.1.10). The 32-bit space provides approximately 4.29 billion unique combinations (subject to reservation and subnetting). IPv6, by contrast, uses 128 bits, but it is not the subject of this question.
Step-by-Step Solution:
Verification / Alternative check:
Inspect any IPv4 packet capture: fields 'Source Address' and 'Destination Address' are 32 bits each. Networking APIs (for example, sockaddr_in) also model IPv4 addresses as 32-bit values.
Why Other Options Are Wrong:
Common Pitfalls:
Mixing up MAC address length (48 bits) with IP address length (32 bits) or confusing IPv4 with IPv6.
Final Answer:
32 - bits
Discussion & Comments