Since IP addresses consist of 32 bit numbers, that means there are 232 available IP addresses on the Internet. 232 = 4,294,967,296 addresses between 0.0.0.0 and 255.255.255.255. The powers that allocate IP addresses arbitrarily broke up IP space into the network classes A,B, & C. They allocate these subnets to different organizations according to an organization's estimated needs. Those organizations then dole out portions of their IP space to subscribers or even other smaller Internet Service Providers.
Here are the traditional classful network sizes and boundaries[1]:
Table 1-4. IP address classes
Class | address range | network/host parts | # of networks | # of hosts |
---|---|---|---|---|
A | 1.0.0.0-126.255.255.255 | n.h.h.h | 126 | 16,777,214 |
B | 128.0.0.0-191.255.255.255 | n.n.h.h | 16,384 | 65,534 |
C | 192.0.0.0-223.255.255.255 | n.n.n.h | 2,097,152 | 254 |
There are also specific networks described as private IP space. These networks are reserved from the public IP classes described above. Private IP space can be used by networks not connected to the Internet directly. There is no fear over IP address overlap because these private blocks are not intended to be routed across the internet[2].
10.0.0.0/8 is a Class A network ID allowing the range of usable host IP addresses from 10.0.0.1 to 10.255.255.254
172.16.0.0/12 is a network ID that consists of 16 Class B network blocks allowing the range of usable host IP addresses from 172.16.0.1 to 172.31.255.254
192.168.0.0/16 is a network ID that consists of 256 class C network blocks allowing the range of usable host IP addresses from 192.168.0.1 to 192.168.255.254
You've probably already noticed our use of addresses from these private IP blocks in our examples. These are the addresses you'll be using in your private home networks while you probably only get 1 public IP address from your Internet Service Provider.
You probably also noticed the odd notation 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. What is /8, /12, and /16? The next section explains that we can subnet in many other ways besides breaking on traditional 8-bit boundaries....
[1] | The original IP address classes are described in RFC 1020 published way back in 1987. RFC's, Requests For Comments are the documents that define the internet standards we live by. There are thousands of them and the body of them represents both the current state of internetworking as well as the evolution of the net over time. The very name indicates the open and voluntary nature of the internet. Visit http://www.rfc-editor.org to learn more about how they work. |
[2] | These blocks are officially defined in RFC 1918. |