IPv4
- Its a 32-bit long value
- In binary, its a 32-bit long string of onez and zeros
- In decimal format, it consits of 4 decimal numbers separated by a dot. Example: 192.134.34.11
- Class A -> start from| 0 = 0
- Class B -> start from| 0 + 128 = 128
- Class C -> start from| 0 + 128 + 64 = 192
- Class D -> start from| 0 + 128 + 64 + 32 = 224
- Class E -> start from| 0 + 128 + 64 + 32 + 16 = 240
- Class A -> ends at| 127
- Class B -> ends at| 191
- Class C -> ends at| 223
- Class D -> ends at| 239
- Cladd E -> ends at| 255
First Octet in Decimal
IP range
Subnet Mask
# Of hosts per Network ID ^ # Of networks
Java
- h is the no. of hosts
- x is the number of zeros in the binary representation of the IP address
Java
