

We will repeat the whole process for the next number which is 168. So the decimal number 192 when converted to binary will be 11000000. Now we will subtract 16 from which will again be a negative and the following steps which involve subtracting 8, 4, 2 and 1 from 0 will all result in negative numbers so we write 0 for all of them. Now we will substract 0 from 32 which 0 – 32 = – 32, we will write 0. We then subtract 64 from 64 (our remainder in the previous step) and we have 64 – 64 = 0, we write 1. We subtract 128 from 192 which is 192 – 128 = 64, subtraction is possible so we write 1 which is our left most binary digit.

So we apply the steps mentioned above on the IP address 192.168.116.210. Step 4 – Do Steps 1 through 3 with the other three IP address numbers, in order, until you have a 32-bit representation of the address. Step 3 – Repeat Step 2 using 32, 16, 8, 4, 2 and 1 each in place of 64, and write the ones or zeros in accordance with the results. Write the zero or one to the right of the zero or one you wrote in Step 1. Step 2 – Perform the same procedure using the remainder from Step 1, but use 64 instead of 128. If subtraction is not possible or answer is a negative number write a zero, if it possible write a one and keep track of the remainder of the subtraction. Step 1 – Subtract 128 from the first decimal number in the IP address. In the steps below we will learn to convert an IP address into binary. So when converting the IP address 192.168.116.210 into the number 192 will be equal to 11000000. When converting from decimal to binary each decimal number presents 8 bits. Thus the IP address when written in binary is 32-bits separated by dots into 4 groups of 8-bits. These four numbers in an IP address are called an Octet with each octet being equal to 8 bits. As discussed previously IP addresses and masks are 32-bit binary numbers which are represented in the dotted-decimal format with four numbers (each number in the range o 0 – 255) separated by periods, such as 192.168.116.210. Since computers understand IP addresses and mask in terms of 32-bit binary numbers it is very important that we understand the process of conversion between an IP address or mask into the binary equivalent and vice versa. Where p is the number of (leftmost) ‘1’ bits in the mask. This allows for efficient use of subnets and avoids wasting IP addresses.ĬIDR specifies an IP address range using a combination of an IP address and its associated network mask. CIDR replaced the classful addressing scheme with a flexible and less wasteful scheme and also provided enhanced route summarization.Ĭlassless Inter-Domain Routing is based on variable-length subnet masking (VLSM) which allows a network to be divided into different-sized subnets. The motive behind was to slow down the rapid growth of routing tables on routers on the Internet and to slow the exhaustion of IPv4 address space. ClassĬlassless Inter-Domain Routing (CIDR) introduced in 1993 replaced the prior addressing architecture of classful network design on the Internet. Shown below are the three classes A, B, and C with their default masks, also known as natural masks. The only real difference between these network classes was the number of bits used in the subnet mask to identify the network portion of the addresses, which in turn dictated the number of hosts that could be used on that network.

Subnet masks were also used to clump IP addresses into three distinct classes, each of which provided different-sized blocks of network addresses for organizations to use on their internal networks. Similarly, if a subnet mask shows that 16 bits are used for the network portion of an IP address then the remaining 16 bits can be used as host portion. In this case, 192.168.116.1 – 254 can be used as host addresses.
