Question
In the IPv4 addressing format, the number of networks allowed under Class C addresses is
Official answer and solution
- Official answer
- C
- From
- Official GATE 2012 answer key
Solution
Calculate the total number of network identifiers available in the Class C IPv4 address space.
-
An IPv4 address comprises 32 bits divided into 4 octets.
-
In traditional classful addressing, Class C addresses allocate:
- 24 bits for the Network ID (first 3 octets)
- 8 bits for the Host ID (last octet)
-
The leading 3 bits of a Class C network ID are permanently fixed as
110(defining the first octet range 192 to 223). -
Subtracting the 3 fixed prefix bits from the 24 network bits leaves:
- Therefore, the total number of distinct Class C networks allowed is:
(Each Class C network can support assignable hosts).
C
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2012 Computer Science and Information Technology (CS)
- Question
- 23 of 65, printed as CS Q.23
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.