In today’s post I want to explain Table 1 on the cheat-sheet. I will explain the other tables and show you how to use the tables in future posts.
Table 1: Conversions
and Jump Numbers
You should be well aware of the top row, the decimal value
of each bit in an octet. The bit on the
right is bit 0 and is worth “1” which is derived from base2 numbering, 20
or 2 raised to the zero (0) power. As you can see, the value of the bits double as you move left and the power of 2 increases
(21, 22, 23, etc). That’s the beauty of base2. The values also represent
the Jump Number, or number of addresses that make up each network derived from
the original classful network (more on this later).
Now that we’ve established the meaning of the top row, we can now examine
rows 2-4. Rows 2-4 represent the bits in octets 2-4 and the possible subnet
masks in prefix (slash) notation. This is extremely easy to recreate since all
you’re doing is counting, starting at the 9th bit position. Note: you should never see a subnet
mask that is less than 8, unless it’s a special address or illegal.What does all of this mean? Recall that every IP address has two parts; the network portion and the host portion. A mask of /20 means that the first 20 bits (from left to right) are network bits, and the 12 bits that remain are host bits. In most IP addressing questions we are interested in resolving an address to the network portion of the address. All of the host bits then become zeros (0). For instance, the address 172.16.123.88 /16 becomes 172.16.0.0 when you apply the subnet mask. The /16 implies that there are 16 network bits (from left to right) and the remaining 16 bits are host bits and they are filtered (zeroed) out.
The bottom row represents the other type of mask that you will see (dotted-decimal). The number is calculated based on the sum of the network bits (from left to right) in a given octet. A mask of /20 means the first 16 bits in octets 1 and 2 are all part of the network, along with the first four bits of octet 3. If you add the decimal values of the first four bits of octet 3, the sum is 240 (128+64+32+16). Therefore the mask /20 converts to 255.255.240.0. Remember, the remaining bits, bits 21-32 are all host bits and are changed to zeros (0) when determining the network address.
In Part 2 we will see how we can apply this to a problem.
-Jim (revised 6/19/14)
Jim I hope you do not mind but for those that have struggled as I have with subnetting research presented me with a site that offers another resource that is in my opinion easier to use.
ReplyDeleteIt is extremely easy to recreate and only takes about a minute or two to recreate. Here is the table and the instructions are at the following link:
Previewing the post the final post formatting is changed from what I intended but following the link provides a better picture.
http://www.subnetting.net/Tutorial.aspx
Bits Block Size / Exponents Decimal Mask Value
0 1 255
1 2 254
2 4 252
3 8 248
4 16 240
5 32 224
6 64 192
7 128 128
8 256
9 512
10 1024
11 2048
12 4096
On this site it also allows one to practice.
Good resource!
Lee,
ReplyDeleteI always tell my students that if you don't understand the way the teacher explains a concept (like subnetting) find someone you can understand. The Internet makes that easy to do. By the way, as much as I push shortcuts when teaching subnetting and address resolution, I don't believe you should become dependent on the cheat-sheet before you actually understand it and can solve a problem entirely on your own.