Material About IP ADDRESS
Material About IP ADDRESS
A. UNDERSTANDING IP ADDRESS
C. FORMAT IP ADDRESS
Class A IP addresses consist of 8 bits for network ID and the remaining 24 bits
are used for host ID, so class A IP addresses are used for networks with a very
large number of hosts. The first bit is assigned a number from 0 to 127
Characteristics of Class A IP
Format : 0NNNNNNN.HHHHHHHH.HHHHHHHH.HHHHHHHH
First bit : 0
NetworkID : 8 bits
HostID : 24 bits
First Oct: 0 - 127
Number of networks: 126 (0 and 127 are reserved)
IP Range : 1.x.x.x - 126.x.x.x
Number of IP addresses: 16,777,214
Example
IP address 120.31.45.18 then:
NetworkID = 120
HostID = 31.45.18
So, the IP above has a host with the number 31.45.18 on network 120.
2) Class B
Class B IP addresses consist of 16 bits for network ID and the remaining 16 bits
are used for host ID, so class B IP addresses are used for networks with not too
many hosts. In the first 2 bits, the number 10 is assigned.
Characteristics of Class B IP
So, the IP above has a host with the number 60.56 on the 150.70 network
3) Class C
Class C IP addresses consist of 24 bits for network ID and the remaining 8 bits are
used for host ID, so class C IP addresses are used for small networks. Class C is
usually used for Local Area Network or LAN networks. In the first 3 bits, the
number 110 is assigned.
Characteristics of Class C IP
4) Class D
Class D IP addresses are used for IP multicasting purposes. The first 4 bits of a
class D IP address are set to 1110. The next bits are set according to the needs of
the multicast group that uses this IP address. In multicasting, the network bit and
host bit are unknown.
Characteristics:
Format : 1110MMMM.MMMMMMMM.MMMMMMMM.MMMMMMMM
First 4 bits: 1110
Multicast bits: 28 bits
Initial bytes: 224-247
Description: class D is the multicast address space (RFC 1112)
5) ClassE
Class E IP addresses are not used publicly. The first 4 bits of this IP address are set
to 1111.
Characteristics
Format : 1111RRRR.RRRRRRRR.RRRRRRRR.RRRRRRRR
First 4 bits: 1111
Reserved bits: 28 bits
Initial bytes: 248-255
Description: class E is the reserved address space for experimental purposes
Apart from the network ID, another term used to refer to the part of the IP address
that indicates the network is the Network Prifix. Usually, when writing the network
prefix of a class of IP address, a slash (slash) "I" is used followed by a number
indicating the length of the network prefix in bits.
E. SUBNET MASK
The subnet mask value serves to separate the network ID from the host ID.
The subnet mask is required by TCP/IP to determine whether the network in
question is a local or non-local network. For non-local networks, it means that
TCP/IP must send data packets through a router. Thus, an address mask is needed
to filter IP addresses and data packets going in and out of the network.
The network ID and host ID in the IP address are distinguished by the use of
the subnet mask. Each subnet mask uses a 32-bit number pattern which is a group
of bits of all ones (1) indicating the network ID and all zeros (0) indicating the host
ID portion of the IP address.
1. IP Private adalah suatu IP address yang digunakan oleh suatu organisasi yang diperuntukkan
untuk jaringan lokal. Sehingga organisasi lain dari luar organisasi tersebut tidak dapat melakukan
komunikasi dengan jaringan lokal tersebut. Contoh pemakaiannya adalah pada jaringan intranet.
Sedangkan Range IP Private adalah sebagai berikut :
Kelas A : 10.0.0.0 – 10.255.255.255
Kelas B : 172.16.0.0 – 172.31.255.255
Kelas C : 192.168.0.0 – 192.168.255.255
2. IP Public adalah suatu IP address yang digunakan pada jaringan lokal oleh suatu organisasi dan
organisasi lain dari luar organisasi tersebut dapat melakukan komunikasi langsung dengan
jaringan lokal tersebut. Contoh pemakaiannya adalah pada jaringan internet. Sedangkan range
dari IP Public : range IP address yang tidak termasuk dalam IP Private.
Pengalokasian IP Address
Pengalokasian IP address pada dasarnya ialah proses memilih network ID dan
host ID yang tepat untuk suatu jaringan. Tepat atau tidaknya konfigurasi ini tergantung dari
tujuan yang hendak dicapai, yaitu mengalokasikan IP address seefisien mungkin.
B. ATURAN DASAR PEMILIHAN NETWORK ID DAN HOST ID
Terdapat beberapa aturan dasar dalam menentukan network ID dan host ID yang hendak
digunakan. Aturan tersebut ialah :
2.Network ID dan host ID tidak boleh sama dengan 255 (seluruh bit di set 1)
Seluruh bit dari network ID dan host ID tidak boleh semunya di set 1. Jika hal ini
dilakukan, network ID atau host ID tersebut akan diartikan sebagai alamat broadcast. ID
broadcast merupakan alamat yang mewakili seluruh anggota jaringan. Pengiriman paket ke
alamat broadcast akan menyebabkan paket ini didengarkan oleh seluruh anggota network
tersebut.