
Binary Math
Binary Math
Network devices communicate using BITS, where a bit is a single digit repre- sented by a 1 or a 0, or by using BYTEs, where a byte is made up of eight bits in any combination of 1’s or 0’s. A byte is also referred to as an octet.
Figure A-2 Bits and Bytes
An octet can be converted to or from binary using the technique shown in the decimal conversion chart in Figure
128 64 32 16
8
4
2 | 1 | 1 |
1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | = | 165 |
1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | = | 194 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | = | 255 |
128
32
4
1
_____
165
Figure A-3 Binary to Decimal Conversion
Bits containing a 1 in Figure
This is an example of changing a number expressed in binary (base 2) to its decimal equivalent (base 10). The numeric value is the same, you have only changed the numbering base (radix.) All digital processes are done in binary.
Vipersat |