IPv4 Subnetting - Preparation
Remember that computers see everything as binary (1,0).
We need to understand data masking, which is based on the binary operation ‘AND’. We can treat this like multiplication:
0∙0=0, 0∙1=0, 1∙0=0, 1∙1=1 (actual symbol for AND is ⋀)
Performing this operation bitwise between two binary numbers results in a new binary number with 1’s in every space where both original numbers had 1’s, and 0’s everywhere else. The second binary “masks” the first by passing only the values where it has 1’s.