
Subnet Mask - Explained
PowerCert Animated Videos
Overview
This video explains the concept of a subnet mask, a crucial component in IP networking. It begins by defining IP addresses and their structure (IPv4, octets, network vs. host portions). The core function of a subnet mask is then introduced: to delineate these network and host portions. The explanation delves into the binary representation of IP addresses and subnet masks, illustrating how computers process this information. It further explores the practical application of subnet masks in network management, particularly through subnetting, which breaks down large networks into smaller, more manageable subnets to reduce broadcast traffic and improve efficiency. Finally, the video touches upon IP address classes (A, B, C) and CIDR notation as alternative ways to represent subnet masks.
Save this permanently with flashcards, quizzes, and AI chat
Chapters
- An IP address (specifically IPv4) is a unique 32-bit numerical identifier for devices on a network, structured as four octets (0-255) separated by periods.
- An IP address is divided into two parts: the network address (identifying the network) and the host address (identifying a specific device within that network).
- A subnet mask is a number that looks like an IP address and is used to determine which bits of an IP address represent the network and which represent the host.
- Computers and networks operate using binary (1s and 0s), so IP addresses and subnet masks must be converted to binary for processing.
- Each octet (0-255) can be represented in binary using 8 bits, where each bit position has a specific power-of-two value (e.g., 128, 64, 32...).
- To convert a decimal number to binary, place 1s under the bit values that sum up to the decimal number and 0s elsewhere.
- When an IP address and its subnet mask are aligned in binary, the 1s in the subnet mask indicate the bits belonging to the network portion of the IP address, while the 0s indicate the host portion.
- Network and host portions exist to enable manageability by breaking large networks into smaller, logical sub-networks (subnets).
- Without subnetting, a large network would experience excessive broadcast traffic, slowing down communication and making troubleshooting difficult.
- Routers act as boundaries for broadcasts, preventing them from spreading across the entire network; subnetting allows for more granular control.
- Subnetting logically divides a network, with broadcasts confined to their respective subnets, and traffic to other subnets being routed by a gateway.
- Subnetting is achieved by altering the default subnet mask, specifically by changing some 0s in the host portion to 1s.
- Borrowing bits from the host portion to extend the network portion increases the number of available subnets but decreases the number of hosts per subnet.
- For example, borrowing 1 bit creates 2 subnets with half the hosts; borrowing 2 bits creates 4 subnets with a quarter of the hosts, and so on.
- The goal is to create enough subnets to meet the organization's needs while ensuring each subnet has sufficient host addresses.
- IP addresses are categorized into classes (A, B, C, D, E), with A, B, and C used for commercial purposes and having default subnet masks.
- Class A addresses are for very large networks (e.g., ISPs) supporting millions of hosts, with a default mask like 255.0.0.0.
- Class B addresses are for medium to large organizations, supporting about 65,000 hosts, with a default mask like 255.255.0.0.
- Class C addresses are for small organizations and homes, supporting 254 hosts, with a default mask like 255.255.255.0.
- CIDR (Classless Inter-Domain Routing) notation, or slash notation (e.g., /24), is a shorthand for representing subnet masks by indicating the number of consecutive 1s in the binary mask.
Key takeaways
- A subnet mask is essential for distinguishing the network portion from the host portion within an IP address.
- Computers process network information in binary, making the binary representation of IP addresses and subnet masks fundamental.
- Subnetting breaks large networks into smaller, manageable subnets to reduce broadcast traffic and improve network performance.
- By borrowing bits from the host portion and adding them to the network portion of the subnet mask, administrators can create more subnets.
- The more bits borrowed for subnets, the more subnets are created, but the fewer hosts are available per subnet.
- IP address classes (A, B, C) historically dictated default subnet masks based on the expected number of hosts.
- CIDR notation offers a concise way to represent subnet masks by counting the number of network bits.
Key terms
Test your understanding
- What is the primary function of a subnet mask in relation to an IP address?
- Why is it necessary to convert IP addresses and subnet masks into binary format for network communication?
- How does subnetting contribute to the manageability and efficiency of a large computer network?
- What is the trade-off between creating more subnets and the number of available hosts per subnet when modifying a subnet mask?
- How does CIDR notation provide a shorthand for representing subnet masks?