| You are here: | About>Computing & Technology>Wireless / Networking> TCP/IP Networking> Working with IP Addresses> IP Tutorial - Subnet Mask and Subnetting |
![]() | Wireless / Networking |
IP Address Tutorial - MoreIP Address NotationDNS - Domain Name SystemCIDR - Classless Inter-Domain Routing IP TutorialSubnet Masks and SubnettingA subnet allows the flow of network traffic between hosts to be segregated based on a network configuration. By organizing hosts into logical groups, subnetting can improve network security and performance.
Subnet MaskPerhaps the most recognizable aspect of subnetting is the subnet mask. Like IP addresses, a subnet mask contains four bytes (32 bits) and is often written using the same "dotted-decimal" notation. For example, a very common subnet mask in its binary representation
Applying a Subnet MaskA subnet mask neither works like an IP address, nor does it exist independently from them. Instead, subnet masks accompany an IP address and the two values work together. Applying the subnet mask to an IP address splits the address into two parts, an "extended network address" and a host address.For a subnet mask to be valid, its leftmost bits must be set to '1'. For example,
Conversely, the rightmost bits in a valid subnet mask must be set to '0', not '1'. Therefore,
All valid subnet masks contain two parts: the left side with all mask bits set to '1' (the extended network portion) and the right side with all bits set to '0' (the host portion), such as the first example above.
Next page > IP Subnetting in Practice > Pages: IP Address Tutorial - MoreIP Address NotationDNS - Domain Name SystemCIDR - Classless Inter-Domain Routing |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


