PPT4-Classful IP Addressing
PPT4-Classful IP Addressing
Engineering
DEPARTMENT OF COMPUTER
SCIENCE & ENGINEERING
Bachelor of Engineering
(Computer Science & Engineering)
Subject Name: Computer Network
Subject Code: CSH-312/ ITH-312
Prepared By :Er. Monika(E9911)
DISCOVER . LEARN .
EMPOWER
Department of Computer and Science Engineering (CSE)
.
Classful Addressing
Hexadecimal Notation
The 32-bit IP address is divided into five sub-classes. These are given below:
• Class A
• Class B
• Class C
• Class D
• Class E
Purpose of Classful Addressing
• Each of these classes has a valid range of IP
addresses.
• Classes D and E are reserved for multicast and
experimental purposes respectively.
• The class of IP address is used to determine
the bits used for network ID and host ID and
the number of total networks and hosts
possible in that particular class..
Classful Addressing
Network ID The higher-order bit of the first octet in class A is always set to 0.
The remaining 7 bits in the first octet are used to determine network ID.
Host ID The 24 bits of host ID are used to determine the host in any network.
• The default subnet mask for Class A is 255.x.x.x. Therefore, class A has a
total of:
• 2^24 – 2 = 16,777,214 host ID
Classful A Addressing
Class B
• IP address belonging to class B is assigned to networks that range from
medium-sized to large-sized networks.
• The network ID is 16 bits long.
• The host ID is 16 bits long.
• The higher-order bits of the first octet of IP addresses of class B are always
set to 10.
• The remaining 14 bits are used to determine the network ID.
• The 16 bits of host ID are used to determine the host in any network.
• The default subnet mask for class B is 255.255.x.x.
• Class B has a total of: 2^14 = 16384 network address
2^16 – 2 = 65534 host address
Classful B Addressing
Class B
• IP addresses belonging to class B ranges from 128.0.0.0 –191.255.255.255.
Classful C Addressing
Class D
• IP address belonging to class D is reserved for multi-casting.
• The higher-order bits of the first octet of IP addresses belonging to class D
is always set to 1110. The remaining bits are for the address that
interested hosts recognize.
• Class D does not possess any subnet mask. IP addresses belonging to class
D range from 224.0.0.0 – 239.255.255.255.
Classful E Addressing
• Class E
• IP addresses belonging to class E are reserved for experimental and
research purposes. IP addresses of class E range from 240.0.0.0 –
255.255.255.255. This class doesn’t have any subnet mask. The higher-
order bits of the first octet of class E are always set to 1111.
IP Addressing
Range of Special IP Addresses
• 169.254.0.0 – 169.254.0.16 : Link-local addresses
127.0.0.0 – 127.255.255.255 : Loop-back addresses
0.0.0.0 – 0.0.0.8: used to communicate within the current network.
Rules for Assigning Host ID
Host IDs are used to identify a host within a network. The host ID is assigned
based on the following rules:
• Within any network, the host ID must be unique to that network.
• A host ID in which all bits are set to 0 cannot be assigned because this host
ID is used to represent the network ID of the IP address.
• Host ID in which all bits are set to 1 cannot be assigned because this host
ID is reserved as a broadcast address to send packets to all the hosts
present on that particular network.
IP Addressing
Rules for Assigning Network ID
• Hosts that are located on the same physical network are
identified by the network ID, as all host on the same physical
network is assigned the same network ID. The network ID is
assigned based on the following rules:
-The network ID cannot start with 127 because 127 belongs to the
class A address and is reserved for internal loopback functions.
-All bits of network ID set to 1 are reserved for use as an IP
broadcast address and therefore, cannot be used.
-All bits of network ID set to 0 are used to denote a specific host on
the local network and are not routed and therefore, aren’t used.
Problems With Classful Addressing
References :
• Computer Networks, Tanenbaum, Andrew, Fifth Edition,
PHI.
• Data Communication and Networking, Behrouz A.
Forouzan, Fourth Edition.Larry
• https://www.youtube.com/watch?v=vUDtFjiNib4