Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

The whole site in one document for easy reference!
The TCP/IP Guide

Custom Search







Table Of Contents  The TCP/IP Guide
 9  TCP/IP Lower-Layer (Interface, Internet and Transport) Protocols (OSI Layers 2, 3 and 4)
      9  TCP/IP Internet Layer (OSI Network Layer) Protocols
           9  Internet Protocol (IP/IPv4, IPng/IPv6) and IP-Related Protocols (IP NAT, IPSec, Mobile IP)
                9  Internet Protocol Version 4 (IP, IPv4)
                     9  IP Addressing
                          9  IP Subnet Addressing ("Subnetting") Concepts

Previous Topic/Section
IP Custom Subnet Masks
Previous Page
Pages in Current Topic/Section
1
2
Next Page
IP Subnetting Summary Tables For Class A, Class B and Class C Networks
Next Topic/Section

IP Subnet Identifiers, Subnet Addresses and Host Addresses
(Page 1 of 2)

The main advantage of conventional “classful” addressing without subnets is its simplicity. Even though we've seen that there can be problems with how to manage thousands of devices in a single Class B network, for example, there is little complexity in how to assign addresses within the network. They are all lumped together, so any combination of bits can be used within the host ID (except for all-zeroes and all-ones, which are special).

When we subnet, however, we create a two-level structure within the “classful” host ID—subnet ID and host ID. This means we must choose IP addresses for devices more carefully. In theory, we are selecting subnets to correspond to our physical networks within the organization, so we want to assign IP addresses in a way that is consistent with our physical network structure.

Subnet Identifiers

Once we decided how many subnets we are going to have, we need to identify the subnets and determine what the addresses are for the subnets. Let's start by looking at the subnet identifier. This is just the subnet ID of any of the subnets in our network. Subnets are numbered starting with 0 and increasing up to one less than the maximum number of subnets, which is a function of how many bits are in the subnet ID. (If the all-zero and all-one subnet IDs are excluded as specified in RFC 950 then the first subnet identifier is one).

Of course, we may not need all of the subnets that can theoretically be defined. For example, if we have 20 subnets, we need 5 bits for the subnet identifier, which allows a theoretical maximum of 32 subnets. We would use only subnets 0 to 19; 20 through 31 would be reserved for future use. These subnets could be expressed either in decimal form (0, 1, 2 … up to 19) or in binary (00000, 00001, 00010 … up to 10011).

Subnet Addresses

For each subnet we can also determine the subnet address. To do this we start with the IP address for the overall network, which recall has all zeroes in the “classful” host ID field (8 bits, 16 bits or 24 bits). We then insert the subnet identifier for a particular subnet into the designated subnet bits.

As an example, let’s refer back to the subnetting of a Class B network, 154.71.0.0, shown in Figure 66. We used five subnet ID bits there. We start with the following network IP address, with the subnet ID bits highlighted:

10011010 01000111 00000000 00000000

To find the address of say, subnet #11, we would substitute “01011” for these bits, leaving the host ID bits zero:

10011010 01000111 01011000 00000000

We can then convert this from binary form to dotted decimal, resulting in a subnet address of 154.71.88.0.

Key Concept: The subnet identifier of a subnet is just its subnet ID. The subnet address of a subnet is determined by substituting its subnet ID into the subnet bits of the overall network address.



Previous Topic/Section
IP Custom Subnet Masks
Previous Page
Pages in Current Topic/Section
1
2
Next Page
IP Subnetting Summary Tables For Class A, Class B and Class C Networks
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.