Bird
Raised Fist0
Computer Networksknowledge~6 mins

Classful addressing (Class A, B, C) in Computer Networks - Full Explanation

Choose your learning style10 modes available
Introduction
Imagine trying to send a letter but not knowing how to organize addresses so the mail reaches the right place quickly. Early internet systems faced a similar problem with IP addresses, needing a way to divide and assign addresses efficiently to different sizes of networks.
Explanation
Class A Addresses
Class A addresses are designed for very large networks. They use the first 8 bits to identify the network and the remaining 24 bits for hosts within that network. This allows for a small number of networks but each can have millions of devices.
Class A supports few networks with many hosts each.
Class B Addresses
Class B addresses balance between network and host sizes. They use the first 16 bits for the network and the last 16 bits for hosts. This setup suits medium-sized networks with thousands of devices.
Class B supports a moderate number of networks and hosts.
Class C Addresses
Class C addresses are for small networks. They use the first 24 bits to identify the network and only 8 bits for hosts. This means many networks exist but each can only have up to 254 devices.
Class C supports many networks with few hosts each.
Real World Analogy

Think of a city divided into districts, neighborhoods, and houses. Class A is like a few huge districts with many houses, Class B is medium-sized neighborhoods, and Class C is many small neighborhoods with fewer houses.

Class A Addresses → Huge city districts with many houses
Class B Addresses → Medium neighborhoods with a balanced number of houses
Class C Addresses → Many small neighborhoods with few houses
Diagram
Diagram
┌───────────────┬───────────────────────────────┐
│ Class A       │ Network (8 bits) | Hosts (24 bits) │
├───────────────┼───────────────────────────────┤
│ Class B       │ Network (16 bits) | Hosts (16 bits) │
├───────────────┼───────────────────────────────┤
│ Class C       │ Network (24 bits) | Hosts (8 bits)  │
└───────────────┴───────────────────────────────┘
This diagram shows how the bits in an IP address are divided between network and host parts for Class A, B, and C.
Key Facts
Class A Address Range → Starts with 0 in the first bit, covering 1.0.0.0 to 126.255.255.255.
Class B Address Range → Starts with bits 10, covering 128.0.0.0 to 191.255.255.255.
Class C Address Range → Starts with bits 110, covering 192.0.0.0 to 223.255.255.255.
Host Capacity in Class A → Supports over 16 million hosts per network.
Host Capacity in Class C → Supports up to 254 hosts per network.
Common Confusions
Believing Classful addressing is still widely used today.
Believing Classful addressing is still widely used today. Classful addressing is mostly replaced by Classless Inter-Domain Routing (CIDR) for more flexible IP allocation.
Thinking Class A networks are common for small businesses.
Thinking Class A networks are common for small businesses. Class A networks are too large and expensive for small businesses; they are mostly reserved for very large organizations.
Summary
Classful addressing divides IP addresses into Classes A, B, and C based on network size needs.
Class A supports few networks with many hosts, Class B balances network and host sizes, and Class C supports many networks with few hosts.
This system helped organize early internet addressing but is now mostly replaced by more flexible methods.

Practice

(1/5)
1. Which class of IP address has the first octet range from 1 to 126?
easy
A. Class D
B. Class B
C. Class C
D. Class A

Solution

  1. Step 1: Understand IP class ranges

    Class A addresses have the first octet from 1 to 126.
  2. Step 2: Match the range to the class

    Since 1-126 matches Class A, this is the correct class.
  3. Final Answer:

    Class A -> Option D
  4. Quick Check:

    1-126 = Class A [OK]
Hint: Class A starts with 1-126 in first octet [OK]
Common Mistakes:
  • Confusing Class A with Class B range
  • Including 0 or 127 in Class A range
  • Mixing Class D with Class A
2. Which of the following is the correct subnet mask for a Class B IP address?
easy
A. 255.0.0.0
B. 255.255.255.0
C. 255.255.0.0
D. 255.255.255.255

Solution

  1. Step 1: Recall subnet masks for classes

    Class A uses 255.0.0.0, Class B uses 255.255.0.0, Class C uses 255.255.255.0.
  2. Step 2: Identify Class B subnet mask

    The correct subnet mask for Class B is 255.255.0.0.
  3. Final Answer:

    255.255.0.0 -> Option C
  4. Quick Check:

    Class B mask = 255.255.0.0 [OK]
Hint: Class B mask has two 255 blocks at start [OK]
Common Mistakes:
  • Choosing Class A or C subnet masks for Class B
  • Confusing subnet mask with broadcast address
  • Selecting 255.255.255.255 which is a host mask
3. What is the network class of the IP address 192.168.1.1?
medium
A. Class C
B. Class B
C. Class D
D. Class A

Solution

  1. Step 1: Check the first octet of the IP

    The first octet is 192.
  2. Step 2: Match first octet to class range

    Class C addresses range from 192 to 223, so 192.168.1.1 is Class C.
  3. Final Answer:

    Class C -> Option A
  4. Quick Check:

    192 in 192-223 = Class C [OK]
Hint: 192-223 first octet means Class C [OK]
Common Mistakes:
  • Mistaking Class B range for Class C
  • Confusing Class D (224-239) with Class C
  • Ignoring the first octet range
4. Identify the error in this IP address classification: IP: 130.25.10.5 classified as Class C.
medium
A. 130.25.10.5 is Class B, not Class C
B. 130.25.10.5 is Class A, not Class C
C. 130.25.10.5 is Class C, classification is correct
D. 130.25.10.5 is Class D, not Class C

Solution

  1. Step 1: Check the first octet of the IP

    The first octet is 130.
  2. Step 2: Determine correct class range

    Class B ranges from 128 to 191, so 130.25.10.5 is Class B, not Class C.
  3. Final Answer:

    130.25.10.5 is Class B, not Class C -> Option A
  4. Quick Check:

    130 in 128-191 = Class B [OK]
Hint: 130 is in Class B range 128-191 [OK]
Common Mistakes:
  • Classifying 130 as Class C (192-223)
  • Confusing Class A and B ranges
  • Ignoring first octet value
5. You have an IP address 10.0.0.1 and want to divide it into smaller networks. Which classful address and default subnet mask does it belong to, and how many hosts can each subnet support?
hard
A. Class B, 255.255.0.0, supports about 65,000 hosts
B. Class A, 255.0.0.0, supports about 16 million hosts
C. Class C, 255.255.255.0, supports about 254 hosts
D. Class D, no subnet mask, used for multicast

Solution

  1. Step 1: Identify the class of IP 10.0.0.1

    The first octet is 10, which falls in Class A (1-126).
  2. Step 2: Recall default subnet mask and host count for Class A

    Class A default mask is 255.0.0.0, allowing 2^24 - 2 = 16,777,214 hosts approximately.
  3. Final Answer:

    Class A, 255.0.0.0, supports about 16 million hosts -> Option B
  4. Quick Check:

    10 in 1-126 = Class A, hosts ≈ 16 million [OK]
Hint: Class A IPs start 1-126, huge host capacity [OK]
Common Mistakes:
  • Confusing Class A with Class B or C
  • Using wrong subnet mask for Class A
  • Miscounting number of hosts
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard