IP Address Classes
MCSE, CISSP, Security+, Network+, A+ Certification Practice Exams, Study Guides and Vouchers Sign Up | Login   
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
Practice Exams Exam Vouchers Video Training Free WinITPro Mag
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
MCSE CCNA  A+ CERTIFICATION NETWORK+ ETHICAL HACKER SECURITY+   CISSP   CCNP MORE...
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
NETWORK

IP Address Classes

Email this ArticleEmail this Article  Print this ArticlePrint this Article

• Relates to: Network+ | CCNA

So, you've decided it isn't good enough anymore to just know IP addresses are on the Network Layer of the OSI model, you want to apply that knowledge. This path will ultimately lead you to subnetting. For now, let's separate the IP classes.

Remember that every IP addy is 32 bits long and is divided into four (the quartet) octets arranged in dotted-decimal notation. An octet is 8 bits. This is one way look at an IP address:

216.77.133.249

Here's another:

11011000.01001101.10000101.11111001

It May not look it, right off the bat, but it's the same number. The first one is in decimal, the second is in binary. I don't want to stray too far from this article's topic, though I will, briefly, in just a second. Click here for another Cramsession article with a fuller explanation.

The IP address represented above in binary above contains four octets; the eight bits clearly designated (not so easily recognized in decimal). The position of each bit represents the binary number in powers of 2, like so:

2^7 = 128
2^6 = 64
2^5 = 32
2^4 = 16
2^3 = 8
2^2 = 4
2^1 = 2
2^0 = 1

Placing a 1 in any position turns it "on." And remember, in binary, the only language a computer knows, on = 1, off = 0.

So, returning to our example above, the first octet in the decimal version of the IP address, it comes out as:

1 = 128
1 = 64
0
1 = 16
1 = 8
0
0
0

So 128 + 64 + 16 + 8 = 216, which was the first octet (in decimal) in the IP address.

The highest possible value, in decimal, of each octet is 255:
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255.

When all the bits are "on" you get 11111111. When all the bits are "off" you get 00000000. So, a binary IP address of 11111111.11111111.11111111.11111111 will be, in decimal, 255.255.255.255 (a flooded broadcast). On the other hand, a binary IP address of 00000000.00000000.00000000.00000000 will be, in decimal, 0.0.0.0, which in a routing table represents an unknown network or host, and is typically used to designate the default gateway of last resort.

In theory, the 32-bit IP addressing scheme supports up to 3,720,314,628 hosts. In reality, it won't go that high. Generally, there will be only as many IP addresses as may be designated by the three most common classes of IP addresses, A, B and C. There are two more classes, D & E, but they are used for multicast and experimental purposes respectively, so we won't get into those here.

The classes are split based on the number in the first Octet. It breaks down like this:

Class First decimal value

Just as an aside, you'll notice the Class A IP address ends in 127 but that value really is not to be used. 127.0.0.1 is a special Class A address used for internal loopback testing and will generate no network traffic. Ping it sometime and you'll see what I mean.

Now, those are the decimal values. Get ready for a shock. Spotting IP address classes is even easier in binary. Each class can be identified by looking at the high order bits (the digits at the left end of the octet) and figuring out where the first zero falls, that is where the first "off" bit is. In Class A addresses, the very first high order bit is always off. In Class B, the second high order bit is always off, the first is on. In Class C, the third high order bit is always off, the first two are always on. That breaks down like this:

Class High Order Bit Value


So, when we look at our above example again, in decimal:
216.77.133.249

and in binary
11011000.01001101.10000101.11111001

In decimal, we see the value in the first octet is 216, which means it's a Class C IP Address. In binary, we look at the high order bits in the first octet and see that the first high order bit to be off (or 0) is the third one, so this is a Class C address.

Knowing the class is important because that will determine your default subnet. It also will indicate the network and host portions of each address. The default subnet mask for a Class A IP address is 255.0.0.0; Class B is 255.255.0.0 and Class C is 255.255.255.0. By coincidence, (yeah, you bet!) the network portion of a Class A IP address is the first octet. In Class B, it's the first two octets. In class C, it's the first three octets. In all three cases, the host number follows the network portion of the address.

The network portion of any IP address uniquely identifies the network to which the address belongs. Every workstation, every piece of equipment that can be assigned an IP address, will share the network portion in its IP address....

You must be logged in to view this entire article.
Click Here to Finish Reading this Article


 Subscribe to our Free Must Know News Newsletter
 Name:     Email:  
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification

KEYWORD
 
What is this?
Microsoft, CompTIA, Cisco Realistic Practice Exams
Microsoft, CompTIA, Cisco Realistic Practice Exams
Microsoft, CompTIA, Cisco Realistic Practice Exams
FREE STUDY GUIDES
Free WinITPro Mag
FREE QUESTIONS >>
HOME
CERTIFICATIONS
VIDEO TRAINING
PRACTICE EXAMS
AUDIO TRAINING
EXAM VOUCHERS
FREE IT MAGAZINES
CERT COMPARISON
EXAM COMPARISON
SALARY SURVEY
CAREER TRACKS
ARTICLE DIRECTORY
WHITE PAPERS
QUESTION OF THE DAY
NEWSLETTER
ADVERTISE
Industry Updates &
Special Offers
Certification
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
Picks for February
Untitled Document > Persistent Group Chat: An Approach for More Profitable Team Communications : Unlike email, instant messages (IMs) do not allow group communication; nor do they persist -- you can't hold on to them for as long as you wish. Persistent group chat, however, allows businesses to organize persistent dialogue around business- critical topics, and keep them for easy retrieval later.

> Recent White Papers
> NetworkWorld - FREE Subscription Center

> Never Open a Book Again! LearnSmart Video Training for A+, CCNA, Network+ and more.

> Pass Guaranteed: Hundreds of practice exam questions and the most authentic exam simulation.

> Lecture Series audio: Learn at home, on your iPod or while driving to work.

> PMP: Learn everything for the Project Management Professional (PMP) certification

> Quiz Me Series Audio: Rapid-fire question and answer session training

> FREE subscription to WindowsITPro Magazine - a must for Microsoft enthusiasts



Marketplace

CramSession Memeber Benefit: Subscribe to Windows IT Pro for FREE!
Windows IT Pro is the only independent resource for managing, securing, and troubleshooting the Windows enterprise. Included in your subscription is: The inside scoop on Microsoft won't tell you about Windows Server; Access to veteran experts like Mike Otey, Mark Minasi, and Paul Thurrott; Thousands of tips and solutions to help you get more done in less time; Tips from the trenches and other nuggets of wisdom from readers like you; Comprehensive coverage of Active Directory, security, virtualization and disaster recovery, and more; Comparative, thorough, and impartial product reviews; Admission into the single largest IT community in the world!

IT Certifications may waive some degree requirements for an online degree. Free catalog!
For several of the IT degrees at WGU, if you hold a relevant IT certification (such as MCSE), you automatically clear a significant portion of the degree requirements. Don't hold an IT certification yet? Don't worry. Not every WGU degree program requires an IT certification in advance. You can earn both at the same time. Lower tuition too!

FREE subscription to Network World.
Your complimentary subscription will include 50 weekly issues jam packed with news analysis, expert industry opinion and management/career advice, all of which is packaged with your business needs in mind. We want to help you connect the technology dots and help you advance your company's business goals.




Sponsored Link

MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
Free Certification Training Free Certification Training Free Study Guides
   © 1999 - 2010 CramSession. All Rights Reserved. Home   Advertise   Corporate Info   Opportunities   Help