|
Home »
Networking
»
Network IP Addressing
Summary: A subnet mask is a way of telling your computer or router what network addresses it can consider local and which are remote. A subnet mask is a way of telling your computer or router what network addresses it can consider local and which are remote. Well, to be blunt it's something you probably never need to know about. Sure, you may have to "get it right" when you enter one into a router configuration, but as to what it means or why it matters, why bother? You want to know anyway, don't you? Fair enough. A subnet mask is just a nifty way to define sub-networks. And that of course opens up a slightly larger can of worms. • I'm going to use phone numbers as an analogy here. Like any it's an imperfect analogy, but I think it'll help make the point. In North America, phone numbers are 10 digits long and consist of three parts:
So what we take for granted as a 10 digit "phone number" is really a construction of three distinct numbers, each with a specific meaning. (And for the record, many of those meanings have become blurred over the years, particularly with the advent of cellular phones.) Now let's look at the internet. You already know that each computer connected to the internet has its own equivalent of a phone number, called its "address". Names, such as "www.microsoft.com" actually map to these numeric addresses, such as "207.46.156.220". As you might already be thinking each internet (or IP - for Internet Protocol) address breaks down into components not unlike the 10 digit phone number. The difference is that the components are not always the same size. IP addresses broken down into what are called "classes". Classes are kind of like area codes; they define where, at the highest level, an address lives. To grossly over-simplify, classes are really just a contiguous block of internet addresses. Within each block though it's still desirable to "subdivide" that network into smaller logical groups. For example a class-A network can have 16 million addresses. It's not a good idea to have traffic for 16 million computers traveling across the entire network. That's where "subnetting" and the subnet mask comes in. The internet protocol's rough equivalent to the telephone's exchange number. The "problem"with subnets is that each network administrator who's been assigned a range of IP addresses is free to create their own subnets and to define how large they are. It's the subnet mask that defines how big a part of the internet address is to be used as the subnet number. Unfortunately this is also where we have to start thinking like computers in binary. We'll use these addresses:
And this subnet mask:
The mask's binary digits are set to 1 to indicate the positions of an internet address that define the subnet. Conversely, it's set to zero for that portion of the address that defines the specific computer on that subnet. If we do the masking and converting and other what-have-you, we find that of our example addresses #1 and #2 are on the same subnet: 164.109.0.0 while #3 is on a different subnet: 164.109.128.0. Which after all this brings us to an even more important question: why should we care? It's all about routing. When information flows across the internet, it flows through equipment called "routers". Routers look at the IP address the information is destined for and decide on the best way to get it there. A subnet is a quick way to know where the information belongs. For example, a packet from our example #1 to example #2 is on the same subnet so routers can take advantage of that information and not send the packet anywhere else. A packet from #1 to our example #3 however is destined for a computer on a different subnet and the routers handling that packet will know to send it along a different path to get there. To use our telephone analogy again, if I'm in Duvall making a call on my 788-xxxx telephone to another 788-xxxx telephone then the phone equipment knows that it doesn't have to try anywhere else - it all happens within the Duvall exchange. On the other hand, if I try to call a 483-xxxx number then the 788 exchange needs to route my call to other equipment within my area code that knows how to find the 483 exchange. As you can imagine, I've only scratched the surface here. IP addresses, subnets and supernets, routing, special purpose addresses, network address translation; the internet's a complicated world. If you're interested in reading further here are some resources:
Article 164 | Posted March 13, 2004 |
Popular & Hot How do I make a new MSN Hotmail account? How do I delete history items from my Google tool bar? My desktop Recycle Bin has disappeared - why, and how do I get it back? I accidentally deleted my Recycle Bin in Vista - how do I get it back? New & Important How can I get the old Windows Live Hotmail back? Internet Safety: How do I keep my computer safe on the internet? Are free email services worth it? Would you please recover my password? My account has been hacked or I've forgotten it.
Stay Informed Archives Advertisers |
•
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ask your ISP.
Leo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
iD8DBQFGES5vCMEe9B/8oqERAhTTAJ99A8kNbPIZTLJwlU2MuD1AVcpp8wCdHN8H
Posted by: Leo Notenboom at April 2, 2007 9:24 AMUuwQ3kTSohohCWprzH7OzPI=
=KWce
-----END PGP SIGNATURE-----
im compltely and thourly confused how do u get from having the 3 ip adress and the subnet mask to tell that their on the same subnet?
is it just b/c the the first number in the 3rd octet for #1 and 2 is 0 while on #it starts w/ 1?
Basicly what im asking is u said "If we do the masking and converting and other what-have-you, " at one part. could u show what the "converting and other what-have-you," b/c i basily have to be able to do a few wxample problems like this for my class and i have no clue what u did
Posted by: anonymous( very confused person) at April 26, 2007 4:31 PMI think it's about using AND logic operator on every bit. 1*1=1, 0*1 = 0, 1*0=0, 0*0=0. Apply this on both ip#1 and ip#3 and see that results are different. In other words, the bits on 1 in the subnet mask says where the received packet address should be the same with the local address.
Posted by: artcoding at May 30, 2007 12:34 AMwhat is my subnte mask,gateway,dns1,and dns2,please help.
billy ray
Posted by: billy r.johnson at June 2, 2007 8:04 PMhow do i get to know what my subnet mask is and my gateway is
Posted by: jake aleck at June 11, 2007 2:30 PMquit good info keep it up leo
Posted by: e.solomon at June 12, 2007 3:40 AMIs the network mask the same as the subnet mask ?
Posted by: Alex at August 29, 2007 8:32 AMOpen a command prompt and type
Posted by: Robert Reeks at October 18, 2007 7:11 AMipconfig /all
this will tell you or IP settings, default gateway IP, etc...
where can i find the sub mask, gateway, the dns1 and dns2 at please help
11-Oct-2008
Posted by: Terry Rhodes at October 10, 2008 1:51 PM
im very confused with your explanation of subnet masks if i provide you my ip address could you please work out my subnet mask 78.145.35.16. thank you very much.
14-Oct-2008