Solved

Network Address

Posted on 2008-10-22
9
545 Views
Last Modified: 2010-04-21
Suppose that instead of using 16 bits for the network part of a class B address originally, 20 bits had been used.  How many class B networks would there have been?
0
Comment
Question by:ashp87
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 3

Expert Comment

by:sullivanr6
ID: 22778024
your subnetting down, to increase the number of total networks, while decreasing the total number of hosts you can support. If you orignally had a /16 bit mask then you'd have a total of 65536 networks, if you take host bits (which is what you're doing when you subnet down) away and give them to the network you'd have 2^20 which would give you over a million networks (1048576), and you'd be able to support 4094 hosts on each network.
0
 
LVL 4

Expert Comment

by:larsga
ID: 22779719
The historical "class B" address range was 128.0.0.0 to 191.255.255.255.

That is, all addresses in the range:
01000000.00000000.00000000.00000000
01011111.11111111.11111111.11111111

This was historically spilt so that the 16 first bits were used for network address, and the remaining 16 bits were used for host addresses.

That is, the mask used to split network address and host address was:
11111111.11111111.00000000.00000000

This resulted in:
00011111.11111111  = 2^14 = 16384 subnets

If one instead had used /20 instead of /16, the mask would have been:
11111111.11111111.11110000.00000000

Which would have given:
00011111.11111111.1111 = 2^18 = 262144 subnets.


0
 
LVL 3

Expert Comment

by:sullivanr6
ID: 22779849
i don't understand how you've reached this conclusion???

"This resulted in:
00011111.11111111  = 2^14 = 16384 subnets"

why do you have the first three bits off?

J
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 4

Expert Comment

by:larsga
ID: 22779896
The range for Class B was 128.0.0.0-191.255.255.255. The three first bits do not change.
0
 
LVL 4

Accepted Solution

by:
larsga earned 500 total points
ID: 22780095
Oops. Sorry. Managed to get that wrong.

The address range of class B was:
10000000.00000000.00000000.00000000
10111111.11111111.11111111.11111111

With 16-bit netmask, that gives (n for network bits, H for host bits):
10nnnnnn.nnnnnnnn.HHHHHHHH.HHHHHHHH
Giving 14 bits for network (2^14 = 16.384) and 16 bits for host (2^16 = 65.536).

If they had used 20-bit netmask instead, it would have been:
10nnnnnn.nnnnnnnn.nnnnHHHH.HHHHHHHH
Giving 18 bits for network (2^18= 262.144) and 12 bits for host (2^12 = 4.096)
0
 
LVL 3

Expert Comment

by:sullivanr6
ID: 22780212
yea, i keep wanna to think everything is classless. but i guess in the "real world" your class B address ranges actaully mean somthing.
thanx, for clearing that up.

J
0
 
LVL 4

Expert Comment

by:larsga
ID: 22780795
Note that I said "was" above. The traditional "classful" A/B/C/D/E were introduced in 1981. Routers were very short on CPU and RAM in those days, and one useful feature of "classful" was that the router only had to look at the first 3 bits of the address to determine the netmask.

It did have some serious problems, though. It was very inflexible, and the "C class" was very inefficient. Classful was abandoned around 1993, and was replaced by netmasks/prefixes (cidr). So what "class" an address is in has absolutely no practical meaning today in terms of inter-/intra-network routing - we use explicit netmasks instead.

The question was very explicit in what it asked for (I suppose he is cramming for something like CCDA/CCNA, the question is designed to show if you have an understanding of how the historical "classfull" division of the 32bit IP address space was done).

ashp87, the following should be useful reading for you:
http://en.wikipedia.org/wiki/Classful_network
http://en.wikipedia.org/wiki/CIDR
0
 
LVL 1

Author Closing Comment

by:ashp87
ID: 31508795
The answer was actually 4094 i believe.
0
 
LVL 4

Expert Comment

by:larsga
ID: 22818073
Yes, you have to subtract 2 for the number of usable host addresses. The top and bottom host address have special meaning (broadcast and network respectively), so those two can't be used for actual hosts.

So the number of usable host addresses in a subnet is 2^n -2 (n being the number of bits used for the host part of the address).

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question