Class of IP Address
What is IP address ?
A unique
string of characters that identifies each computer using the Internet Protocol
to communicate over a network
It consist
for 4 bytes.
Ex:
10.23.54.67
Note: An IP address must be unique within
any network.
There are 5
class of IP address.
Class A: 1-127
Used for
large number of hosts.
Class A IP
has one network byte and 3 host byte
Ex: N.H.H.H
( here N stands for Network IP and H stands for Host address)
We can
understand this with example:
Suppose we
have IP 10.10.10.10
Then mask address:
255.0.0.0
And Network
address: 10.0.0.0
Note: An address mask represents a subnet
used in computer networking
Network IP represents
the number of networks
Class B: 128 – 191
Used for
medium size network.
Class B IP
has two byte for network address and 2 byte for host address
Ex: N.N.H.H
( here N stands for Network IP and H stands for Host address)
We can
understand this with example:
Suppose we
have IP
IP Address: 150.150.150.15
Mask
Address: 225.225.0.0
Network
address: 150.150.0.0
Class C: 192 – 223
Used for local area
network.
Class B IP
has Three byte for network address and 1 byte for host address
Ex: N.N.N.H
( here N stands for Network IP and H stands for Host address)
We can
understand this with example:
Suppose we
have IP
IP Address: 200.10.10.10
Mask
Address: 225.225.255.0
Network
address: 200.10.10.0
Class D: 224 – 239
Reserve for
multi-tasking.
Class E: 240 – 255
This class
is reserved for research and Development Purposes.
There are few things we need to know
in IP address:
1. The hosts
located in the same network, We suppose to assign the same network ID.
2. IP
address cannot start with 127 as 127 is used exclusively by Class A.
3. If all
the bits of the network ID are set to 0, it could not be assigned as it
specifies a particular host on the local network.
4. If all
the bits of the network ID are set to 1, it could not be assigned as it is
reserved for multicast address.
No comments:
Post a Comment