Professional Documents
Culture Documents
and
Classless addressing
MADHAV INSTITUTE OF TECHNOLOGY & SCIENCE
A GOVT. AIDED UGC AUTONOMOUS INSTITUTE, AFFILIATED TO R.G.P.V. BHOPAL (M.P.), INDIA
NAAC ACCREDITED WITH A++ GRADE
Classful Vs
5 Classless 6 Conclusion
Addressing
Introduction
In the essentials of TCP/IP networking, a computer network is a group of some
interconnected computers that are sharing a common or different resources provided on
or by network nodes. These sharing or communication between the machines is
governed by some set of rules or network protocols. These computers or machines are
identified by network addresses, and may have hostnames. Four levels of addresses are
used in an internet employing the TCP/IP protocols: physical (link) addresses, logical
(IP) addresses, port addresses, and specific addresses.
Basics of IP Addressing
An IP address is a unique address that identifies a device on the internet or a local network.
IP stands for "Internet Protocol," which is the set of rules governing the format of data sent
via the internet or local network.
Class A, Class B, Class C, Class D, and Class E are the five varieties of Classful
addresses. In IPv4, this classification is known as Classful addressing
• The first three classes, Class A, B, and C, are used for "public addressing", in
which communication is always one-to-one between source and destination.
• The reserved categories include Class D and Class E, with Class D being utilized
for multicast and Class E being saved for future usage exclusively.
• In IPv4, the Network ID is the first part of Class A, B, and C, while the Host ID
is the remaining second portion.
• The Host ID always indicates the number of hosts or nodes in a certain network,
whereas the Network ID always identifies the network in a specific place.
Classless Addressing
Classless Inter-Domain Routing (CIDR) is another name for classless addressing.
This addressing type aids in the more efficient allocation of IP addresses. This
technique assigns a block of IP addresses based on specified conditions when the
user demands a specific amount of IP addresses.
To reduce the wastage of IP addresses in a block, we use sub-netting. What we do
is that we use host id bits as net id bits of a classful IP address. We give the IP
address and define the number of bits for mask along with it (usually followed by
a ‘/’ symbol), like, 192.168.1.1/28. Here, subnet mask is found by putting the
given number of bits out of 32 as 1, like, in the given address, we need to put 28
out of 32 bits as 1 and the rest as 0, and so, the subnet mask would be
255.255.255.240.
Classless Addressing
For example, assume the classless address is 192.168.1.35/27.
• The network component has a bit count of 27, whereas the host portion has a bit
count of 5. (32-27)
• The binary representation of the address is: (00100011. 11000000.
10101000.00000001).
• (11000000.10101000.00000001.00100000) is the first IP address (assigns 0 to all
host bits), that is, 192.168.1.32
• (11000000.10101000.00000001.00111111) is the most recent IP address (assigns
1 to all host bits), that is, 192.168.1.63
• The IP address range is 192.168.1.32 to 192.168.1.63.
Classful vs Classless
Classful addressing is a technique of Classless addressing is a technique of
allocating IP addresses that divides them into allocating IP addresses that is intended to
five categories. replace classful addressing in order to reduce
IP address depletion
Addressing with a class is less helpful as of Addressing without a class is more practical
now. and helpful
The network ID and host ID change based on In classless addressing, however, there is no
the classes in classful addressing. distinction between network ID and host ID.
Classful addressing requires more It requires less bandwidth. Thus, fast and less
bandwidth. expensive