1) Classful Addressing: Classes and Blocks
1) Classful Addressing: Classes and Blocks
In the classful addressing, there are 5 classes in which the address space is
divided: A, B, C, D, and E.
We can find the class of an address when given the address in binary notation
or dotted-decimal notation by checking the first few bits or first byte.
D 1 268,435,456 Multicast
E 1 268,435.456 Multicast
2) Classless Addressing
Classful addressing leads to address depletion. That's the big issue for this
schema and that's why it's not used nowadays.
Address Blocks
In classless addressing, when an entity(organization or a single household
(small organization) or whatever which uses the internet) needs to be
connected to the Internet, it is granted a block (range) of addresses. The size
of the block (the number of addresses) varies based on the nature, size, and
need of the entity.
Hexadecimal Notation:
IP address belonging to class A are assigned to the networks that contain a large
number of hosts.
The network ID is 8 bits long.
The host ID is 24 bits long.
The higher order bit of the first octet in class A is always set to 0. The remaining 7
bits in first octet are used to determine network 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^7-2= 126 network ID(Here 2 address is subracted because 0.0.0.0 and
127.x.y.z are special address. )
2^24 – 2 = 16,777,214 host ID
IP addresses belonging to class A ranges from 1.x.x.x – 126.x.x.x
Class B:
IP address belonging to class B are assigned to the networks that ranges 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 network ID. The 16 bits of host ID is
used to determine the host in any network. The default sub-net 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
IP addresses belonging to class B ranges from 128.0.x.x – 191.255.x.x.
Class C:
IP address belonging to class C are assigned to small-sized networks.
The network ID is 24 bits long.
The host ID is 8 bits long.
The higher order bits of the first octet of IP addresses of class C are always set to
110. The remaining 21 bits are used to determine network ID. The 8 bits of host ID is
used to determine the host in any network. The default sub-net mask for class C is
255.255.255.x. Class C has a
total of:
Class D:
IP address belonging to class D are reserved for multi-casting. The higher order bits
of the first octet of IP addresses belonging to class D are always set to 1110. The
remaining bits are for the address that interested hosts recognize.
Class D does not posses any sub-net mask. IP addresses belonging to class D
ranges from 224.0.0.0 – 239.255.255.255.
Class E:
IP addresses belonging to class E are reserved for experimental and research
purposes. IP addresses of class E ranges from 240.0.0.0 – 255.255.255.254. This
class doesn’t have any sub-net mask. The higher order bits of first octet of class E
are always set to 1111.
sub-net mask. The higher order bits of first octet of class E are always set to 1111.