What is IP address?
An Internet Protocol is usually a numerical label assigned to each network device (e.g., computer, printer, Mobile etc.) to participating in a computer network for communication. An IP address has two parts : host and network part.
There are two Types of IP address:
- IPv4.0- It is consist by 32 bit numbers, represented in doted decimal format.
- IPv6.0- Consist by 128 bit numbers, represented in hexadecimal number. separated by colons.
Details of IPv4.0
IP address 4.0 consists of 32 bits which limits the address space to 4294967296 (232) possible unique addresses. IPv4 reserves some addresses for special purposes such as private networks (~18 million addresses) or multicast addresses (~270 million addresses).
IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers. Minimum value : 00000000 = 0; Maximum 11111111 = 255
IPv4 class details:
Class A: Most significant bit of this class is 0xxxxxxx. This provide maximum Network 27 = 128. and maximum host per network 2563=16777216.
IP– | 0-127 | 0-255 | 0-255 | 0-255 |
SM– | 255 | 0 | 0 | 0 |
ID– | Network | Host | Host | Host |
Class B: Most significant bit of this class is 10xxxxxx. This provide maximum Network 64*256 = 16384. and maximum host per network 256*256 = 65,536.
IP– | 128-191 | 0-255 | 0-255 | 0-255 |
SM– | 255 | 255 | 0 | 0 |
ID– | Network | Network | Host | Host |
Class C: Most significant bit of this class is 110xxxxx. This provide maximum Network 32*256*256 = 20,97,152. and maximum host per network =256.
IP– | 192-223 | 0-255 | 0-255 | 0-255 |
SM– | 255 | 255 | 255 | 0 |
ID– | Network | Network | Network | Host |
Class D: Most significant bit of this class is 1110xxxx. This rang is used for multicast purpose. You can not assign this range in your PC.
IP range- | 224-239 | 0-255 | 0-255 | 0-255 |
Class E: Most significant bit of this class is 1111xxxx. This range is reserved for Research and development (R&D) purpose.
IP– | 240-255 | 0-255 | 0-255 | 0-255 |
Notes to remember:
- Content all 0’s in host portion of Subnet Mask = Network or sub network address
- Content all 1’s in host portion of Subnet Mask = Broadcast address
- Combination of 1’s and 0’s in host portion = Valid host address
Example of one Class-B IP & Subnet Mask binary formation:
IP | 172 | 16 | 10 | 1 |
Binary | 10101100 | 00010000 | 00001010 | 00000001 |
SM | 255 | 255 | 0 | 0 |
Binary | 11111111 | 11111111 | 00000000 | 00000000 |
What is Private IP addresses and range in IPv4.0 :
These addresses are not routed on the Internet and thus their use need not be coordinated with an IP address registry. Such private networks typically connect to the Internet through network address translation (NAT).
Class Details | Start | End | No. of addresses |
---|---|---|---|
24-bit Block (/8 prefix, 1 × A) | 10.0.0.0 | 10.255.255.255 | 16777216 |
20-bit Block (/12 prefix, 16 × B) | 172.16.0.0 | 172.31.255.255 | 1048576 |
16-bit Block (/16 prefix, 256 × C) | 192.168.0.0 | 192.168.255.255 | 65536 |