How to Calculate IPv4

Ip address is a network addressing, ip address consists of 32 -bit binary number is divided into four sections, the results of its 8bit in each octet.

Example : 11111111.11111111.11111111.11111111. Forms ip address with binary numbers as it will be difficult to use, and therefore the binary number is written in 4 decimals.
for more details please find on other websites. At this time I will explain how to easily calculate ip address version 4 ( IPv4 ).

Let's consider the following image :
Image by Teknik Informatika
binary number consists of the digits 0 and 1. The number 1 means the number that number is read while anggka 0 number is not readable, for the calculation of ip address 8bit let us refer to the last section. In the picture above was written 11111111 each per point 1 value is different.

Check out the image above:
Example 1: [11000000] Example 1 is read only the first two numbers, the first number 1 value is 128, and the value of the second number 64, how to calculate 128 + 64 = 192

Example 2: [11.1 million] in Example 2 were read only the first 3 numbers, first number 1 value is 128, the 1 second value is 64, and the number one third the value of 32, way menghitunya 128 + 64 + 32 = 224

Example 3: [11,000,111] Example 3 is read only five numbers that have different values, a figure that is read is the number one first value is 128, number 1 second worth 64 numbers from 0 to 3 to 0 to 5 was not read, and his numbers read one to six in value 4, one seventh and one eighth the value 2 value 1.
So how it's calculated: 128 + 64 + 4 + 2 + 1 = 199

if all the numbers are read 11111111 then the result 255, 255 results are:
32 + 64 + 128 + 16 + 8 + 4 + 2 + 1 = 255

Comments

Popular posts from this blog

5 Best Android apps for transferring files

Protecting your privacy with the 'Pokemon Go' app