IP Addressing:
The
second function of the Internet Protocol is to provide logical addressing for
the network devices to identify them uniquely. So to understand about the IP
addressing and its importance let us take a look at the below simple example:
From the above picture we can
identify any house uniquely just by providing the street number and the house
number. This naming structure is provided by the government of that town to
easily identify the houses in that town instead of the names of the house
owners or anything else.
If
we try to use the names of the building owners then it might be possible that
two owners with the same name reside in the same street. In order to maintain the
uniqueness the streets and houses are provided with numbering scheme.
Now
if a person is sending a courier to any of the houses, then he just need to simply
mention the “Street number and House number”.
Similarly
for the computers to be identified uniquely in a network the Internet Protocol
has defined an addressing format:
“Network
number/component . Host number/component”.
There
are two versions of Internet Protocol they are IPv4 (Internet Protocol version4)
and IPv6 (Internet Protocol version6). Even today the mostly seen IP version is
IPv4 the latter version is emerging rapidly and will soon replace the first
version. (We will discuss the difference between versions later).
Internet Protocol version4 (IPv4):
According
to the IPv4, an IP address is made up of 32 bits (4 bytes) and is partitioned
as two components: Network component and Host component, just like the Street
Number and the House Number.
The
32 bits (4 bytes) are separated by a period for every 8 bits (1 Byte), for
example:
Then the 32 binary bits are
converted to decimal numbers as shown below, to make it easily read and
understood by human beings. (To understand about the binary to decimal
conversions, have a look at the post: Number Systems).
The above decimal format is
commonly called dotted-decimal notation.
History/Background Information of IPv4:
In
the early stages of the IP addressing the network component was only Most
Significant Octet i.e. only the first 8bits from the left hand side and the
rest of the 24 bits were for host component.
Since
there were only 8bits to represent a network (Street) the structure was able to support only 256 networks (Street numbers). In the beginning it was
fine but later as soon as the users of internet grew (number of streets increased); the Internet Protocol was short of
networks (Street numbers).
Then
in 1981, the Internet Protocol was revised to support large number of networks
resulting in classful networks.
Classful Networks:
The
revised Internet Protocol increased the number of network bits from 8 to 24 and
then classified the IP address space into five classes: Class A, Class B, Class
C, Class D and Class E.
So
first we need to understand how the classes are defined.
How the five classes of IPv4 are formed?
Before
we try to understand about the classification, we need recollect our previous
knowledge about bits and the values they represent.
One
octet/byte = 8 bits, so the minimum value of an octet is eight zeros and the
maximum value is eight ones.
So now the minimum value of an
IPv4 address is 32 zeros and the maximum value of the IPv4 address is 32 ones.
Now let us take few random values
b/w the minimum value of an octet i.e. 0 (00000000) and the maximum value of an
octet i.e. 255 (11111111) in binary digits.
Now let us consider the octet to
be Most Significant Octet:
Now if we observe the above table
carefully, we can order the randomly chosen numbers from the Most Significant
Octet into 5 types:
- Numbers beginning with 0.
- Number beginning with 10.
- Numbers beginning with 110.
- Number Beginning with 1110.
- Number beginning with 1111.
These bits are called as priority/leading
bits and depending on these three bits from the most significant octet the five
classes are defined.
Class A:
The
IP addresses beginning with 0 as the leading/parity bit are considered as the
Class-A IP address.
Class B:
The
IP addresses beginning with 10 as the leading/parity bit are considered as the
Class-B IP address.
Class C:
The
IP addresses beginning with 110 as the leading/parity bit are considered as the
Class-C IP address.
Class D:
The
IP addresses beginning with 1110 as the leading/parity bit are considered as
the Class-D IP address.
Class E:
The
IP addresses beginning with 1111 as the leading/parity bit are considered as
the Class-E IP address.
This is how the IPv4 address
space is classified into five classes respectively. And the main reason for classifying
is to increase the number of networks.
In the next post let us discuss
in more detail about the network component/portion and host component/portion
of each of the five classes.
No comments:
Post a Comment