IP address: It is a unique logical address specified in the TCP/IP used to identify the host in a computer network. It can be a 32 bit address (IPv4) or a 128 bit address (IPv6). The IPv4 address include two parts namely, Network Identification number (net id) and Host identification number (host id). There are five different classes or formats of IP address are as given below:
Class A:
Class A type of IP addresses have First byte consisting of Network address with first bit as 0 and the next 3 bytes with host id. Hence, numbers of hosts are more when compared to number of networks.
Class B:
This type has first two bytes specifying network ID with starting two bits as 10 and last two bytes referring to host ID.
Class C:
This class has first three bytes referring to network with starting bits as 110 and last byte signifies Host ID. Here, numbers of networks are more when compared to number of hosts in each network.
Class D:
Class D is used for multicasting and its starting bits are 1110
Class E:
Class E is reserved for future use and its starting bits are 1111