154Appendix E: Understanding IP and IP addressing
Figure 31 IP addressing: class B
Class B addresses range from 128.0.X.X to 191.255.X.X (standard network mask is 255.255.0.0), therefore, we can have
32
bits
| 10 |
|
| networkid |
|
|
|
|
| hostid |
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 bit |
|
| 14 bits |
|
|
|
|
|
|
| 16 bits |
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| Field subnet in table IPNETWRK |
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
Class B indicator |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| subnet id |
|
|
|
| hostid |
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
| 2 to 14 bits | 2 to 14 bits |
For any class, the hostid can be split into a subnet id and a hostid depending on custom- er requirements. This helps simplify routing to areas. For class B network, the subnet id can range from 2 to 14 bits.
Note 1: Network ids and host ids which are comprised of all 1’s or all 0’s are reserved, therefore, subtract 2 from the subnet id and hostid to get the actual count.
Note 2: There are also special addresses that are reserved for ‘unconnected’ networks (networks that use IP but are not connected to the Internet). Class B networks
have 16 of these special addresses ranging from 172.16.0.0 to 172.31.0.0.