2.1 1-Ip-Address-Fundamentals
2.1 1-Ip-Address-Fundamentals
(IPv4 Version)
Same way if we want 2 or more than 2 systems to communicate, we need unique numbers for the
systems, that numbers are called IP addresses. The IP addresses are of two types, IPv4 (32 bit) and IPv6
(128 bit). But here our focus will be on 32 bit IPv4.
Can We Remember IP Address in Binary Format ?
01011111110111010111101011010111
10011111110111010111101011010101
11011111110101010100001011010100
Different Number Systems
1 20 1
2 21 2
3 22 4
4 23 8
5 24 16
6 25 32
7 26 64
8 27 128
101 4+0+1=5
10110011 128+0+32+16+0+0+2+1=179
11111 16+8+4+2+1=31
00000000 0+0+0+0+0+0+0+0=0
11111111 128+64+32+16+8+4+2+1=255
Positional Value of Different Number Systems
32 bit address is divided into 4 octets (of 8 bits each). in each octet the “min” in binary format is all zeroes
(00000000) and “max” is all ones (11111111).
In decimal, “min” is “0” and “max” is “255”. ie 4 octets can have min “0.0.0.0” and max “255.255.255.255”
values. We can not assign any value less than “0.0.0.0” and any value more than “255.255.255.255”.
Which One is Valid IP Address
IP Address Range (Minimum and Maximum Values)
Network Part and Host Part
IP 172.24.1.10 is a valid address since it falls between range. Now this IP The mask can be of many
address has got 2 parts. One is network part, other is host part. Which part is types but mostly we are
“network no” and which part is “host no” will be decided by “subnet mask”. comfortable with
You can simply compare our IP addresses with our phone number which 255.255.255.0
contains “city code” and “phone no” portion. For particular “city”, “code” 255.255.0.0.
will be same. 255.0.0.0
Network Part and Host Part
addresses subnet mask network network written as host can be named class
172.24.1.10 255.255.255.0 172.24.1 172.24.1.0 10 C
172.24.1.10 255.255.0.0 172.24 172.24.0.0 1.10 B
172.24.1.10 255.0.0.0 172 172.0.0.0 24.1.10 A
Are Systems in Networking ?
The network portion is different for both systems, so systems will not
be in networking. In this case no matter what mask we are going to
set, the network portion will not be the same. so to make these 2
systems communicate we will need “router”.
CIDR (Classless Inter Domain Routing) or Slash “/” Notation