0
0
Computer Networksknowledge~10 mins

Classful addressing (Class A, B, C) in Computer Networks - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Classful addressing (Class A, B, C)
Start: IP Address
Check 1st Octet Value
Class A
Class B
Class C
Other Classes or Reserved
Assign Network and Host Portions
Use for Routing and Addressing
The IP address's first number decides its class (A, B, or C), which defines how the address is split between network and host parts.
Execution Sample
Computer Networks
IP = 130.25.10.5
Check first octet = 130
Class B: Network=130.25, Host=10.5
Determine the class of an IP by its first number and split network and host parts accordingly.
Analysis Table
StepFirst Octet ValueConditionClass DeterminedNetwork PortionHost Portion
1130Is 1 <= 130 <= 126?No--
2130Is 128 <= 130 <= 191?Class B130.2510.5
3-Assign network and host portions based on Class B-130.2510.5
4-End of classification---
💡 First octet 130 falls in 128-191 range, so IP is Class B and split accordingly.
State Tracker
VariableStartAfter Step 1After Step 2Final
IP130.25.10.5130.25.10.5130.25.10.5130.25.10.5
First Octet-130130130
Class--Class BClass B
Network Portion--130.25130.25
Host Portion--10.510.5
Key Insights - 3 Insights
Why is 127 not considered Class A?
127 is reserved for loopback addresses and is not used as a normal Class A network. The execution_table shows the range check excludes 127.
How do we know which part of the IP is network and which is host?
The class determines the split: Class A uses first octet for network, Class B uses first two octets, Class C uses first three. The execution_table step 3 shows this split for Class B.
What happens if the first octet is 224 or higher?
Such addresses belong to Class D or E, used for multicast or experimental purposes, not covered in this basic classful addressing. The flow shows these go to 'Other Classes or Reserved'.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at Step 2: What class is assigned when the first octet is 130?
AClass B
BClass C
CClass A
DClass D
💡 Hint
Refer to the 'Class Determined' column at Step 2 in the execution_table.
According to variable_tracker, what is the network portion after Step 2?
A130
B10.5
C130.25
D25.10
💡 Hint
Check the 'Network Portion' row under 'After Step 2' in variable_tracker.
At which step does the IP address get classified as Class B?
AStep 1
BStep 2
CStep 3
DStep 4
💡 Hint
Look at the 'Class Determined' column in execution_table to find when classification happens.
Concept Snapshot
Classful IP addressing divides IPs into classes by first octet:
Class A: 1-126 (Network.Host.Host.Host)
Class B: 128-191 (Network.Network.Host.Host)
Class C: 192-223 (Network.Network.Network.Host)
Used to separate network and host parts for routing.
Full Transcript
Classful addressing uses the first number of an IP address to decide its class. Class A covers 1 to 126, Class B covers 128 to 191, and Class C covers 192 to 223. Each class defines how many parts of the IP are network and how many are host. For example, Class B uses the first two numbers as network and the last two as host. This helps routers know which part identifies the network and which part identifies devices within that network. Addresses like 127 are reserved and not used for normal networks. Addresses above 223 belong to other classes not covered here.