Lab2 (1130221), страница 2
Текст из файла (страница 2)
Step 4 - Decimal to Binary Practice Exercises.
Task: Practice converting the following decimal values of the IP address 209.114.58.165 to the binary octet equivalent.
Explanation: Look at the Decimal value and then subtract binary values starting from 128 (the highest value binary bit). If the number is larger than 128 then put a one in the first position binary number bit status. Subtract 128 from the number and then see if there is a 64 left. If there is put a one there otherwise put a zero and see if there is a 32. Continue until all 8 bits are defined as either a zero or a one.
1. Solve the 1st , 2nd , 3rd and 4th octet Decimal value to binary bit number
Exponent | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 |
Bit Position | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Binary Number Bit Status |
1st Octet Binary Value: ________________
Exponent | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 |
Bit Position | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Binary Number Bit Status |
2nd Octet Binary Value: ________________
Exponent | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 |
Bit Position | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Binary Number Bit Status |
3rd Octet Binary Value: ________________
Exponent | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 |
Bit Position | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Binary Number Bit Status |
4th Octet Binary Value: ________________
2. Enter the 8 Binary bits (zeros and ones) octet values for all four octets for the IP address:
209 . 114 . 58 . 165
__________ __________ __________ __________
4