The Network Layer - Subnetting - Subnet masks
8 important questions on The Network Layer - Subnetting - Subnet masks
How are subnet IDs calculated?
What is a subnet mask?
Why does a computer need a subnet mask? Use the example given by Sunny's classroom
Let's compare A and B
A's subnet mask (binary): 11111111 11111111 11111111 00000000
A's IP address: 00001010 00000001 10010111 00001010
B's IP address: 00001010 00000001 10010111 00000011
C's IP address: 01000000 11100011 10100000 00010111
Computer A is comparing the IP addresses based on the subnet mask. It uses the AND operator to determine this. As you can see above, the first three octets are the same for A and B which is how the Network ID is identified. This shows that A and B are on the same network (LAN). Computer A now knows that Computer B is a local. The last octet is reserved for the host ID in this case, because A and B are on the same network.
Now, Computer A is going to compare the IP address of C based on the subnet mask. As you can see above by comparing the first three octets, the network ID is different. Computer A now knows the network ID is different. Therfore, subnet mask is used by a computer to determine if another (target) computer is on the same network or a different network.
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding
How does a computer use a subnet mask to determine if an IP address exists on the same network
What is IP address 9.100.100.100 in binary?
The number 9 in binary is just 1001, why does the IP address have four 0s in front of it?
Each IP class has a subnet mask, such as 255.255.255.0, what is this in binary?
What is the purpose of the first three octets of a subnet mask?
The question on the page originate from the summary of the following study material:
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding