Home > Ask the Networking Experts > Networking fundamentals Questions & Answers > How are IP addresses and subnet masks calculated?
Ask The Networking Expert: Questions & Answers
EMAIL THIS

How are IP addresses and subnet masks calculated?

Chris Partsenidis EXPERT RESPONSE FROM: Chris Partsenidis

Pose a Question
Other Networking Categories
Meet all Networking Experts
Become an Expert for this site


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


>
QUESTION POSED ON: 15 March 2007
How are IP addresses and subnet masks calculated?


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



RELATED CONTENT
Networking fundamentals
VLANs versus IP subnets: Why use a VLAN over IP subnetting?
Difference between circuit-switching and packet-switching in examples
Can Network Address Translation work without static IP addresses?
Can building T3 lines using satellite be cheaper than a carriers'?
Can IP addresses of LANs that make up a WAN be the same?
How each wireless technology differs: Wi-Fi, WiMax and WLANs
Do multiple router interfaces affect the amount of IP addresses?
How can I prevent collisions on my network?
What makes a WAN different from a LAN and MAN?
The difference between half-duplex and full-duplex

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?

LANs (Local Area Networks)
Testing LAN switch power consumption: A best practices guide
3Com acquisition confirms HP-Cisco battle for China
Integrated wireless and wired LAN: Brocade-Motorola deal ups the ante
Enterprise passive optical networks: a spanning-tree LAN alternative
10 Gigabit Ethernet tutorial: Connecting data centers, storage, LAN and beyond
Intelligent edge switches: Complexity is driving a smarter LAN
Q&A: Jim Metzler previews the networking track at Interop
Extreme's port extender can replace consumer devices at network edge
VLANs versus IP subnets: Why use a VLAN over IP subnetting?
Troubleshooting VLANs: How to monitor 802.1q tagged traffic

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
32-bit IP addressing  (SearchNetworking.com)
fixed-length subnet mask  (SearchNetworking.com)
GARP (Generic Attribute Registration Protocol)  (SearchNetworking.com)
Port Address Translation (PAT)  (SearchNetworking.com)
route aggregation  (SearchNetworking.com)
route summarization  (SearchNetworking.com)
subnet  (SearchNetworking.com)
subnet mask  (SearchNetworking.com)
variable-length subnet mask  (SearchNetworking.com)
wildcard mask  (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


IP addressing and subnet masks are one of the most popular topics in the networking community simply because they can be very confusing and require some time to sink in.

While it's not possible to fully analyze the topic in one page, I'll give you a bit of information to start off with and some guidance to help you move deeper into the subject.

An IP address is an address that helps us uniquely identify a network device or host.

When configuring a computer with an IP address we define the logical network it is part of. A logical network is not something we can touch or see, but a term used to describe the way certain things are perceived by the computer or network device.

The IP address given to the computer tells it which network it belongs to, and how it will identify itself to the rest of the computers that are part of the same network. The subnet mask sets the network's boundaries.

IP addresses exist in both public networks (the Internet) and private ones (LANs) and since there are millions of them, it was decided to put them in specific classes to help organize the IP addressing structure and make it more easy to work with.

Today all IP addresses can be categorized into five different classes, each class having a specific range:

IP Classes Default Subnet Mask
Class A: 1.0.0.0 to 127.255.255.255 255.0.0.0
Class B: 128.0.0.0 to 191.255.255.255 255.255.0.0
Class C: 192.0.0.0 to 223.255.255.255 255.255.255.0
Class D: 224.0.0.0 to 239.255.255.255
Class E: 240.0.0.0 to 255.255.255.255

Out of the five classes, the first three, A, B and C are used on the Internet by its users in order to communicate, while the rest, D and E, are reserved for other reasons. In most cases, you will always be working with Classes A to C.

Each Class was also given a certain subnet mask, called the "default subnet mask." The default subnet mask allowed us to define the range each network would have depending on the class it belonged to.

You might have read or hear people saying that Class C networks can hold up to 255 IP addresses, while Class A networks hold a lot more. While this is correct, they are really referring to the default subnet mask each class has, that determines the amount of networks these classes hold.

By using a different subnet mask, other than the default, we are able to further split the networks into smaller ones to suit our needs.

Instead of continuing on the analysis of subnets, I'll refer you to my Web site (www.firewall.cx/) which covers the topic in the best possible way using easy to understand diagrams to help you "see" what happens during the break down.

If you find the information overwhelming, it might comfort you to know that it took me some time to fully understand it back in the days I was introduced to the topic!




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Expert networking advice and tips for IT professionals
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