12 March 2025 Lecture Notes : 9
[Link]. (CSE) 7th Semester – Section C, D and LE
Even Semester 2025
Computer Networks - BTCSE 603
Topics
Classful IP Addressing
Faculty :
Dr. Siddhartha Sankar Biswas
Department of Computer Science & Engineering
School of Engineering Sciences and Technology
Jamia Hamdard, New Delhi, INDIA 1
Leading Class A Addressing
Bit
Network ID
(net ID) Host ID
7 Bits 24 Bits
1st Octet 2nd Octet 3rd Octet 4th Octet
0 0 - 255 0 - 255 0 - 255
to
127 Range of Class A IP Addresses
[Link]
Range of 1st Octet to
[Link]
0 0 0 0 0 0 0 0 = 0
[Link]. of possible Networks
= 27
to = 128
Max. No. of possible Hosts per Network
0 1 1 1 1 1 1 1 = 127 = 224
= 16777216
12 March 2025 Dr. Siddhartha Sankar Biswas 2
Leading
Bits Class B Addressing
Network ID
(net ID) Host ID
14 Bits 16 Bits
1 0
1st Octet 2nd Octet 3rd Octet 4th Octet
128 - 191 0 - 255 0 - 255 0 - 255
Range of Class B IP Addresses
[Link]
Range of 1st Octet to
[Link]
1 0 0 0 0 0 0 0 = 128
Max. No. of possible Networks
= 214
to = 16384
Max No. of possible Hosts per Network
1 0 1 1 1 1 1 1 = 191 = 216
= 65536
12 March 2025 Dr. Siddhartha Sankar Biswas 3
Leading Class C Addressing
Bits
Network ID
(net ID) Host ID
21 Bits 8 Bits
1 1 0
1st Octet 2nd Octet 3rd Octet 4th Octet
192 - 223 0 - 255 0 - 255 0 - 255
Range of Class C IP Addresses
Range of 1st Octet [Link]
to
1 1 0 0 0 0 0 0 = 192 [Link]
Max. No. of possible Networks
= 221
to = 2097152
Max No. of possible Hosts per Network
1 1 0 1 1 1 1 1 = 223 = 28
= 256
12 March 2025 Dr. Siddhartha Sankar Biswas 4
Leading Class D Addressing
Bits (used for Broadcasting)
28 Bits
1 1 1 0
1st Octet 2nd Octet 3rd Octet 4th Octet
224 - 239 0 - 255 0 - 255 0 - 255
Range of Class D IP Addresses
[Link]
Range of 1st Octet to
[Link]
1 1 1 0 0 0 0 0 = 224 Max. No. of possible Networks
= 20
to = 1
Max No. of possible Hosts
= 228
1 1 1 0 1 1 1 1 = 239 = 268435456
12 March 2025 Dr. Siddhartha Sankar Biswas 5
Leading Class E Addressing
Bits (Reserved for Future Use)
28 Bits
(To be defined in future)
1 1 1 1
1st Octet 2nd Octet 3rd Octet 4th Octet
240 - 255 0 - 255 0 - 255 0 - 255
Range of Class E IP Addresses
Range of 1st Octet [Link]
to
1 1 1 1 0 0 0 0 = 240 [Link]
to Max. No. of possible Networks
and
Max No. of possible Hosts per Network
1 1 1 1 1 1 1 1 = 255
Not yet defined
12 March 2025 Dr. Siddhartha Sankar Biswas 6
Class Leadin N/W Host Max. No. Max. IP
g Bits ID ID of No.
Size Size N/W of Range
(Bits) (Bits) Hosts
per N/W
A 0 7 24 27 = 224 = [Link]
128 16777216 to
[Link]
B 214 = 216 = [Link]
10 14 16
16384 65536 to
[Link]
221 = 28 = [Link]
C 110 21 8
2097152 256 to
[Link]
20 = 1 228 = [Link]
D 1110 0 28
268435456
Data is Multicast
to
to all Hosts [Link]
Reserved for Future Use. [Link]
E 1111 Parameters Still Not Defined. to Future
Use
[Link]
12 March 2025 Dr. Siddhartha Sankar Biswas 7
E
D 6% Total IPv4 Addresses
6% (232 = 4294967296)
C
% of Let us find the number of
13% A IP addresses available in
addresses
in each 50% each class
Max. No.
class Max. No. of IP
B of hosts addresses
Max. No. per N/W possible
25%
of N/W
Class A = 128 x 16777216 = 2147483648
Class B = 16384 x 65536 = 1073741824
Class C = 2097152 x 256 = 536870912
Class D = 1 x 268435456 = 268435456
Class E = 268435456
12 March 2025 Dr. Siddhartha Sankar Biswas 8
Lets do some case study
What do you think , which Class of network would a network engineer
implement in a organization
Case 1:
If suppose there needs to be 110 sub-networks and each of them
would require to 50,000 to 60,000 hosts?
Ans: ClassA or ClassB
Case 2:
If suppose there needs to be 125 sub-networks and each of them
would require to 50,000 to 70,000 hosts?
Ans: Class A
Case 3:
If suppose there needs to be 200 sub-networks and each of them
would require to 50,000 to 60,000 hosts?
Ans: Class B
Case 4:
If suppose there needs to be 500 sub-networks and each of them
would require to 50,000 to 70,000 hosts?
?
Good Luck
12 March 2025 Dr. Siddhartha Sankar Biswas 9