Showing posts with label Subnetting. Show all posts
Showing posts with label Subnetting. Show all posts

Saturday, 6 October 2018

October 06, 2018 - , No comments

IPv4 Subnetting: Decimal to Binary Conversion - Subtraction Short Method


Subtraction (Short Method)
Procedure: Subtract the given number to the value of maximum number(255).

Rule:
  1. If the result of maximum number (255) subtracted from given number equals to zero (0) set every bit position to one(1).
Given number: 255           
n=255           255-255 = 0

255 = 128 64 32 16 8 4 2 1
11111111 = 1 1 1 1 1 1 1 1

Binary Equivalent:     11111111

  1. If the result is not equal to zero (0) we will considered it as excess value. Evaluate if what particular constant value of bit position will consummate to the excess value and set it to zero(0) and the rest set it to one(1).

Given number: 217
n = 217         255-217 = 38           32 + 4 + 2 = 38       

128     64      32      16      8        4        2        1
                     0                           0        0

Note: 38 was considered here as the excess value, so the constant value of bit position that consummate the excess value will be set to zero(0) and the rest to one(1). You just need to add the constant value of bit position corresponds to one(1).

217 = 128 64 32 16 8 4 2 1
11011001 = 1 1 0 1 1 0 0 1

Binary Equivalent:     11011001

October 06, 2018 - , No comments

IPv4 Subnetting: Decimal to Binary Conversion

Division Method

255 = 128 64 32 16 8 4 2 1
11111111 = 1 1 1 1 1 1 1 1

Recall that in subnetting, the maximum value of a subnet in every octet is 255. Our maximum number here for each octet is 255.

There were 3 arithmetic operations that allow us to convert decimal (considering the maximum number value of 255) to binary.

Given the value of 224

October 06, 2018 - , No comments

IPv4 Subnetting: Understanding Binary Number


Focus: We will use 8bits binary number or an octet value which is our focus in subnetting.

To Compute:
Given the binary of 11111111

Set the exponent value starting 0 from right to left in every bit position.

Exponent Value         7     6     5   4    3      2     1     0
Binary                      1   1    1   1   1    1    1    1