Home > Networking Tips > > Protocols, Lesson 7: Subnet masks and their effect
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Protocols, Lesson 7: Subnet masks and their effect


Firewall.cx
10.12.2004
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


There are a few different ways to approach subnetting, and it can get confusing because of the complexity of some subnets and the flexibility they offer. For this reason I created this little paragraph to let you know how we are going to approach and learn subnetting.

We are going to analyze the common subnet masks for each class, giving detailed examples for most of them and allowing you to "see" how everything is calculated and understand the different effects a subnet mask can have as you change it. Once you have mastered this, you can then go on and create your custom subnet masks using any type of class.

Default subnet masks of each class

By now you should have some idea what the subnet mask does and how it's used to partition a network. What you need to keep in mind is that each class has its DEFAULT subnet mask, which we can change to suit our needs. I have already mentioned this in the previous page, but we need to look into it in a bit more detail.

The picture below shows our three network classes with their respective default subnet masks:

[IMAGE]

The effect of a subnet mask on an IP address

In the IP classes page we analyzed and showed how an IP address consists of two parts, 1) The network ID and 2) The host ID. This rule applies for all IP addresses that use the default subnet mask, so we call them classful IP addresses.

We can see this once again in the picture below, where the IP address is analyzed in binary, because this is the way you should work when dealing with subnet masks:

[IMAGE]

We are looking at an IP address with its subnet mask for the first time. What we have done is take the decimal subnet mask and converted it to binary, along with the IP address. It is essential to work in binary because it makes things clearer and we can avoid making silly mistakes. The ones (1) in the subnet mask "lock" or, if you like, define the network ID porti...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Network Administration
Why is access denied to my Active Directory (AD) users and computers?
What network loss testing tools/methods calculate dropped packets from a PC?
Network user management
Do I have to disable DHCP on my router to create a DHCP server?
What preventative maintenance procedures for network devices exist?
Top 10 reasons why computers do not have network access to each other
Troubleshooting -- 'Network Know-How' Chapter 17
How server virtualization improves efficiency in a client-server model
Understand Windows tracert output to troubleshoot network connectivity
Why would a computer show drive letters for discs that don't exist?
Network Administration Research

IP Networking
What is the definition of ATM (Asynchronous Transfer Mode)?
Do I have to disable DHCP on my router to create a DHCP server?
Windows Server 2008 IP routing configuration: Static and dynamic RIPv2
What is IP?
Connect your LAN to the Internet using static or dynamic NAT
Using tracert and TTL to troubleshoot network connectivity problems
Test your TCP/IP protocol stack to troubleshoot network connectivity
IP addressing and subnetting explained
Checking IP configuration to troubleshoot Windows network connectivity
Does IPv6 abandon TCP/IP fragmentation?

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
availability  (SearchNetworking.com)
carrier detect  (SearchNetworking.com)
fiber jumper  (SearchNetworking.com)
layer 2  (SearchNetworking.com)
MAE  (SearchNetworking.com)
Network layer  (SearchNetworking.com)
networking  (SearchNetworking.com)
OSI  (SearchNetworking.com)
patch cord  (SearchNetworking.com)
staggered quadrature phase-shift keying  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


on. If we change any bit within the network ID of the IP address, then we immediately move to a different network. So in this example, we have a 24 bit subnet mask.

NOTE:

All class C classful IP addresses have a 24 bit subnet mask (255.255.255.0).

All class B classful IP addresses have a 16 bit subnet mask (255.255.0.0).

All class A classful IP addresses have an 8 bit subnet mask (255.0.0.0).

On the other hand, the use of an IP address with a subnet mask other than the default results in the standard host bits (the Bits used to identify the HOST ID) being divided in to two parts: a subnet ID and Host ID. These types of IP addresses are called classless IP addresses.

In order to understand what a "classless IP address" is without getting confused, we are going to take the same IP address as above, and make it a classless IP address by changing the default subnet mask:

[IMAGE]

Looking at the picture above you will now notice that we have a subnet ID, something that didn't exist before. As the picture explains, we have borrowed three bits from the host ID and used them to create a subnet ID. Effectively we partitioned our class C network into smaller networks.

If you're wondering how many smaller networks, you'll find the answer on the next page. I prefer that you understanding everything here rather than blasting you with more subnet ID's, bits and all the rest :)

Summary

In this page we saw the default subnet mask of each class and also introduced the classful and classless IP addresses, which are a result of using various subnet masks.

When we use IP addresses with their default subnet masks, e.g. 192.168.0.10 is a class C IP address so the default subnet mask would be 255.255.255.0, then these are "classful IP addresses."

On the other hand, classless IP addresses have their subnet mask modified in a way so that there is a "subnet ID". This subnet ID is created by borrowing bits from the host ID portion.

The picture below shows us both examples:

[IMAGE]

I hope that you have understood the new concepts and material on this page. Next we are going to talk about subnet bits, learn how to calculate how many bits certain subnet masks are and see the different and most used subnet masks available.

If you think you might have not understood a few sections throughout this page, I would suggest you read it once more :)

Return to the introduction or continue to Lesson 8.


[IMAGE]
Click over to Firewall.cx for more articles like this one. You don't have to register or jump through any hoops. All you do is get the networking information you want. Copyright 2004 Firewall.cx.

Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts