IPv4 Address Validity: Selecting the Correct Dotted-Decimal Notation
An IPv4 address in dotted-decimal form must consist of exactly four decimal octets separated by dots, where each octet is a number in the range to (because each octet represents 8 bits).
A common additional constraint in typical dotted-decimal parsing is that an octet must not contain an invalid “extra” dot count (i.e., it must be four octets total), and each octet must be within the decimal range.
Footnotes
-
IPv4 address - Wikipedia - Describes dotted-decimal notation and that an IPv4 address is 32-bit represented as four 8-bit octets (0–255). ↩ ↩2
IPv4 Addressing Basics (dotted-decimal and octets)
Let’s evaluate each option against the rules “four octets” and “each octet is –”.
Key checks you should apply
- Octet: each part between dots
- Dotted-decimal: exactly four numbers
- Range constraint: no octet beyond 255
Validate each proposed IPv4 address
- 1Step 1
An IPv4 dotted-decimal address must have three dots, yielding exactly four octets.
- 2Step 2
Each octet must be a valid decimal number (no missing/extra separators).
- 3Step 3
If any octet is less than or greater than , the address is invalid.
- 4Step 4
"Some parsers treat leading zeros specially, but in many educational contexts the key issue is: the octet must still represent a value within – and follow the dotted-decimal structure."
Footnotes
-
Dotted-decimal notation - Wikipedia - Discusses representations of IP addresses in dotted-decimal and parsing considerations such as leading zeros. ↩
-
Evaluate the given options
- (i)
124.201.3.1.52
- Problem: It has 5 octets (there are 4 dots), but IPv4 dotted-decimal must have 4 octets total.
✅ Conclusion: Invalid.
- (ii)
300.142.210.64
- (iii)
01.200.128.123
- Structure: Four octets is correct.
- Range:
01represents the value 1, which is within –.
✅ Conclusion: Typically considered valid in dotted-decimal notation used in coursework/standard decimal interpretation. Leading zeros may vary by strict parser rules, but range + four-octet format are satisfied. 2
- (iv)
128.64.0.0
Footnotes
-
IPv4 address - Wikipedia - Describes dotted-decimal notation and that an IPv4 address is 32-bit represented as four 8-bit octets (0–255). ↩ ↩2 ↩3 ↩4
-
Dotted-decimal notation - Wikipedia - Discusses representations of IP addresses in dotted-decimal and parsing considerations such as leading zeros. ↩
Validity of Each Option (Based on IPv4 Format Rules)
Check counts: four-octet structure and octet range (0–255).
Common mistake: counting octets
IPv4 dotted-decimal always has exactly 4 octets. If you see 5 segments like 124.201.3.1.52, it’s automatically invalid regardless of values.
Common mistake: octet range
Even if there are exactly four parts, any octet above 255 (e.g., 300) makes the entire IPv4 address invalid.
Edge cases & strictness
IPv4 Validity Quick Checks
Knowledge Check
Which of the following is a syntactically valid IPv4 dotted-decimal address?