Qassia Qassia United States
Qassia Global > Qassia United States > dab0neman's Intel > IP Subnet Masks. The Basics...
Intel Contributor
This intel was added by dab0neman


Intel Classification
This intel has been classified as Unpublished Original Content, which means it first appeared on Qassia.

Intel Calendar
December, 2008
1234567
891011121314
15161718192021
22232425262728
293031

January, February, March, April, May, June, July, August, September, October, November, December

Sign Up!
Not a member yet? You're missing out on one of the most powerful website promotion resources on the web. Sign up and join the party.

About Qassia
Find out more about Qassia by reading our About Us page, if you haven't done so already. Or you could skip straight to the Sign Up form.

PRINT THIS INTEL EMAIL THIS INTEL

IP Subnet Masks. The Basics...

A subnet mask tells a computer and/or a router what portion of an IP address is a host and what portion is a network.

Take, for example Google's IP address: 72.14.207.99

You should probably already know what *your* IP is: 68.87.60.XXX --- insert your Flakey ComCast IP number here.

Let's assume that your router address from ComCast is: 68.87.60.1

Now let's use a standard class C subnet mask: 255.255.255.0

Using this information, your computer "knows" that your network is 68.87.60.0
So if you want to send a message to 68.87.60.77 it will check that address with its subnet mask first to see if it is in its network.

How does it check? It "ANDs" the subnet mask with 68.87.60.99 and it does this using **binary** operations and numbers.

01000100.01010111.00111100.01001101 = 68.87.60.77
11111111.11111111.11111111.00000000 = 255.255.255.000
01000100.01010111.00111100.00000000 = 68.87.60.000 = Bingo, I'm on the same network!

Now it just sends the message to your nosey next door neighbor with ComCast with no fussing with the router. Notice that the zeros are the part that actually "mask" when you AND them to something else. The ones just let the original number pass through when they are ANDed.

Now, you want to search for widgets on Google using one of its known IPs: 72.14.207.99:

01001000.00001110.11001111.11001111 = 72.14.207.99 = The Almighty Google
11111111.11111111.11111111.00000000 = 255.255.255.000
01001000.00001110.11001111.00000000 /= 01000100.01010111.00111100.00000000 = Oh no! Gimme router!

So now, if the router is configured correctly on your computer, your message to Google gets sent to 68.87.60.1 and then the router figures out which network interface Google is on so you can get your shiny new widget.

That's as far as I dare take it before the weekend! Suck this up and try to squeeze it into your cerebrum.

Copyright Notice: All Rights Reserved.

Add to Facebook Digg Add to Mixx Add to Reddit Add to StumbleUpon
Added by dab0neman on May 29, 9:23 PM.

Rate This Intel

Please login or sign up to rate this intel.

Comments

Please login or sign up to add a comment.





Crawled [11/30] - We promised all users participating in the Sticker Mania Promo ...



ABOUT | FAQ | PRESS RELEASES | HELP | CONTACT
USAGE POLICY | PRIVACY POLICY

Copyright 2008 Qassia. All Rights Reserved.

Username:
Password:
No account? Sign up.
Lost password? Retrieve.

In Directory
Networking + Network