In: Computer Science
ISP have been allocated the address block 200.23.16.0/20 ISP, wants to divide its address block into four equal sized address blocks and give one to each of four organizations. Write the address range and also subnet mask for each organization
200.23.16.0 Let's convert all octets to binary separately Converting 200 to binary Divide 200 successively by 2 until the quotient is 0 > 200/2 = 100, remainder is 0 > 100/2 = 50, remainder is 0 > 50/2 = 25, remainder is 0 > 25/2 = 12, remainder is 1 > 12/2 = 6, remainder is 0 > 6/2 = 3, remainder is 0 > 3/2 = 1, remainder is 1 > 1/2 = 0, remainder is 1 Read remainders from the bottom to top as 11001000 So, 200 of decimal is 11001000 in binary 200 in binary is 11001000 Converting 23 to binary Divide 23 successively by 2 until the quotient is 0 > 23/2 = 11, remainder is 1 > 11/2 = 5, remainder is 1 > 5/2 = 2, remainder is 1 > 2/2 = 1, remainder is 0 > 1/2 = 0, remainder is 1 Read remainders from the bottom to top as 10111 So, 23 of decimal is 10111 in binary 23 in binary is 00010111 Converting 16 to binary Divide 16 successively by 2 until the quotient is 0 > 16/2 = 8, remainder is 0 > 8/2 = 4, remainder is 0 > 4/2 = 2, remainder is 0 > 2/2 = 1, remainder is 0 > 1/2 = 0, remainder is 1 Read remainders from the bottom to top as 10000 So, 16 of decimal is 10000 in binary 16 in binary is 00010000 Converting 0 to binary Divide 0 successively by 2 until the quotient is 0 Read remainders from the bottom to top as So, 0 of decimal is in binary 0 in binary is 00000000 ================================================================================== || 200.23.16.0 in binary notation is 11001000.00010111.00010000.00000000 || ================================================================================== Answer: --------- address range for organization 1: ---------------------------------- 11001000.00010111.00010000.00000000 - 11001000.00010111.00010011.11111111 in decimal it is 200.23.16.0 - 200.23.19.255 address range for organization 2: ---------------------------------- 11001000.00010111.00010100.00000000 - 11001000.00010111.00010111.11111111 in decimal it is 200.23.20.0 - 200.23.23.255 address range for organization 3: ---------------------------------- 11001000.00010111.00011000.00000000 - 11001000.00010111.00011011.11111111 in decimal it is 200.23.24.0 - 200.23.27.255 address range for organization 4: ---------------------------------- 11001000.00010111.00011100.00000000 - 11001000.00010111.00011111.11111111 in decimal it is 200.23.28.0 - 200.23.31.255 subnet mask is /22 in dotted decimal notation it is 255.255.252.0