Converting IP Addresses Into Binary
Summary
In this lesson, we will learn a technique called the positional notation method. The value of each digit in a binary number is determined by its position in the table. The sum of all these column values for each digit gives the decimal representation of the binary number.
Highlights
Routers and switches see IP addresses like this:
110000.10101000.00000001.00101101
However, we humans find it hard to work and remember binary numbers. That is why we work and write IP addresses in decimal representation that looks like this:
192.168.1.45 ([View Highlight] (https://read.readwise.io/read/01h8mz74wmt7k6zq4c7112qqrs))
Binary Math
In this lesson, we will learn a technique called the positional notation method. In binary numbers, each successive bit within a group represents a power of two and the values ascend from right to left. Therefore, the rightmost bit represents 20, the second most-right bit represents 21, and so on, as is shown in the table below. Each successive bits on the left represent twice the value. The value of each digit in a binary number is determined by its position in the table. The sum of all these column values for each digit gives the decimal representation of the binary number.
Values of each bit in an octet
8th bit
7th bit
6th bit
5th bit
4th bit
3th bit
2th bit
1th bit
27
26
25
24
23
22
21
20
128
64
32
16
8
4
2
1 ([View Highlight] (https://read.readwise.io/read/01h8mz6txqqcb7kzner0re3s5k))