2.5.1 IP address version 4 IPV4
IP address is a binary number 32 bit that is separated with a dot in every 8 bit. Every 8 bit is called octet. The addressing of IP in 32 bit consists of subnet
address and host. The example: 11000000000010100001111000000010
The addressing of 32 bit is divided into four octets 8 bit per section: 11000000.00001010.00011110.00000010
Every octet is changed into decimal number become: 192.10.30.2
2.5.2 IP Class
According to Dede 2008:65, Ip address is grouped in 5 classes: class A, class B, class C, class D, and class E. The differences among 5 classes are in how
big the network and the calculation of hosts. Class A is used in few networks, but the networks have many hosts. Class C is used in many networks but, only has
few hosts. Class D and class E are not common to be used. Based on Anji and Rianto 2008:62, class A has 8 bit network number
and 24 bit host number, class B has 16 bit network number and 16 bit host number, and class C has 24 bit network number and 8 bit network host. In
Addressing, not all IP classes are used. The used classes are class A, B, and C. Class D is used to multicasting and class E is used to research.
Figure 2.1 Class IP
2.5.3 Subnet Mask
According to dede 2008:71, every network has number subnet known as subnet mask or address mask. Subnet mask separate network id and host id.
Subnet mask is needed by TCPIP to decide whether the network is local network or non local network. For non local network, it has to transmit packet data via
router. So the subnet mask is needed to filter ip address and packet data that come in and out from the network.
Table 2.1 Subnet mask
Subnet mask CIDR
255.128.0.0 9
255.192.0.0 10
255.224.0.0 11
255.240.0.0 12
255.248.0.0 13
255.252.0.0 14
255.254.0.0 15
255.255.0.0 16
255.255.128.0 17
255.255.192.0 18
255.255.224.0 19
255.55.240.0 20
255.255.248.0 21
255.255.252.0 22
255.255.254.0 23
255.255.255.0 24
255.255.255.128 25
255.255.255.192 26
255.255.255.224 27
255.255.255.240 28
255.255.255.248 29
255.255.255.252 30
2.6 Routing 2.6.1 Routing Concept