what does 'per subnet' means then ?

The Gateway to Computer Science Excellence

First time here? Checkout the FAQ!

x

+12 votes

If a class $B$ network on the Internet has a subnet mask of $255.255.248.0$, what is the maximum number of hosts per subnet?

- $1022$
- $1023$
- $2046$
- $2047$

+23 votes

Best answer

Number of zeros are to be counted for calculating the total number of possible hosts per subnet.

$255$-$248$ = $7$ can be represented using $3$ $bits$

these $3$$bits$ + $8$$bits$ more = $11$ $bits$

So, possible subnets $= $2$^{11}$ out of these $2$ are reserved as subnet $ID$ and $DBA$

Therefore, we have maximum possible usable hosts = $2$^{$11$}-$2$ = $2046$

$255$-$248$ = $7$ can be represented using $3$ $bits$

these $3$$bits$ + $8$$bits$ more = $11$ $bits$

So, possible subnets $= $2$^{11}$ out of these $2$ are reserved as subnet $ID$ and $DBA$

Therefore, we have maximum possible usable hosts = $2$^{$11$}-$2$ = $2046$

- All categories
- General Aptitude 1.4k
- Engineering Mathematics 6k
- Digital Logic 2.3k
- Programming & DS 4.3k
- Algorithms 3.7k
- Theory of Computation 4.6k
- Compiler Design 1.7k
- Databases 3.4k
- CO & Architecture 2.9k
- Computer Networks 3.4k
- Non GATE 1.2k
- Others 1.3k
- Admissions 506
- Exam Queries 482
- Tier 1 Placement Questions 22
- Job Queries 64
- Projects 16

40,967 questions

47,601 answers

146,689 comments

62,338 users