0
0
Computer Networksknowledge~6 mins

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

Choose your learning style9 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 RangeStarts with 0 in the first bit, covering 1.0.0.0 to 126.255.255.255.
Class B Address RangeStarts with bits 10, covering 128.0.0.0 to 191.255.255.255.
Class C Address RangeStarts with bits 110, covering 192.0.0.0 to 223.255.255.255.
Host Capacity in Class ASupports over 16 million hosts per network.
Host Capacity in Class CSupports 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.