TCP/IP's Big Three
An IP address is actually a combination of two required parameters, the IP address and the subnet mask. A third parameter, the default gateway, is not required unless you want your computer to be able to reach other networks besides the one you're on. That is, if you want to reach the Internet, you need a default gateway. For this reason, I've christened these three parameters TCP/IP's "Big Three":
IP Address
Required. The IP address is the number that uniquely identifies your computer, just as a phone number uniquely identifies a phone. It's composed of four binary octets (a group of eight 1s and 0s), which, when expressed in decimal notation, look something like this:192.168.1.23Each of the four decimal numbers ranges from 0 to 255. And, just like a phone number, the IP address identifies which network the computer is on. On a computer internetwork, every network must be unique, and every device (or host) on a given network must be unique as well.Again, I'll use the phone system to illustrate. The phone number (913) 555-2427 includes the network identifier of 913 and the host identifier of 555-2427. There can't be two networks with the 913 network number, and there can't be two phones in the 913 area code with a phone number of 555-2427.So too the IP address, although the IP address needs some help to determine which of its octets are the network number and which are the host number. This is the job of the subnet mask.
Subnet Mask
Required. The subnet mask is used to divide the IP address into its network portion and host portion. Without the subnet mask, the computer has no idea what network it belongs to. Like the IP address, it's composed of four octets that look something like this when broken down for human consumption:255.255.255.0You can probably hazard a guess as to how this works. When communicating, your computer compares the IP address and subnet mask. The computer uses the 255s to calculate, or mask, the network portion of the IP address, and it uses the 0s to calculate the host number, as shown in Figure 9-2.
Figure 9-2. Masking determines the network number.

Well, More or LessThere actually is much more to TCP/IP addressing than I'm presenting. These decimal numbers mean zilch to a computer. Your computer uses only binary 1s and 0s, and the decimal 255s and 0s are really strings of contiguous 1s followed by contiguous 0s. Therefore, you can actually end up with valid subnet masks that look like 255.255.224.0, but a full discussion is way beyond the scope of this book. It would be extraordinarily rare to see one of these subnet masks on most home, small business, or coffee shop networks. |