We first do an initial subnetting by using one bit for the subnet ID,
leaving us 7 bits for the host ID.
This gives us two subnets:
o 201.45.222.0/25 and
o 201.45.222.128/25.
Each of these can have a maximum of 126 hosts.
We set aside the first of these for subnet S6 and its 100 hosts
We take the second subnet, 201.45.222.128/25,
and subnet it further into two sub-subnets.
We do this by taking one bit from the 7 bits left in the host ID.
This gives us the sub-subnets
o 201.45.222.128/26 and
o 201.45.222.192/26,
each of which can have 62 hosts.
We set aside the first of these for subnet S5 and its 50 hosts.
We take the second sub-subnet,
201.45.222.192/26,
and subnet it further into four sub-subsubnets.
We take 2 bits from the 6 that are left in the host ID.
This gives us four sub-sub-subnets that each can have a maximum of
14 hosts.
These are used for S1, S2, S3 and S4.
CIDR
(Classless Inter-Domain Routing / "Supernetting)
Permasalahan Classful IP Addressing
Kurangnya fleksibilitas alamat IP internal
Penggunaan space address yang tidak efisien
Semakin banyaknya tabel routing yang ada
Solusi dengan CIDR
Konsep CIDR adalah subnetting sebuah network menjadi lebih besar
Class-class IP dipecah menjadi subnet dan dikumpulkan menjadi satu
supernet yang lebih besar
Hal ini dapat mengatasi masalah semakin banyaknya tabel routing
internet di dunia saat ini
Konsep CIDR
Classless Inter-Domain Routing (CIDR) is a system of IP addressing and
routing that solves the many problems of classful addressing by
eliminating fixed address classes in favor of a flexible,
multiple-level,
hierarchical structure of networks of varying size.
The Many Benefits of Classless Addressing and Routing
Efficient Address Space Allocation
addresses are allocated in sizes of any binary multiple
So, a company that needs 5,000 addresses can be assigned a block of
8,190 instead of 65,534
Elimination of Class Imbalances
no more class A, B and C networks!!!
Efficient Routing Entries
Network descriptions can be aggregated and represented by a single
entry
No Separate Subnetting Method
The Main Disadvantage of CIDR: Complexity
no longer possible to determine by looking at the first octet to
determine how many bits of an IP address represent the network ID
and how many the host ID.
A bit more care needs to be used in setting up routers as well, to make
sure that routing is accomplished correctly.
ROUTING
Proses yang dialami datagram untuk mencapai tujuan di jaringan
TCP/IP
Konsep Dasar Routing
Lapisan Internet
terjadi pengalamatan / addressing
Aliran data pada tcp/ip
o Data dari layer aplikasi
ke layer transport
diberi
header tcp/udp
o Segmen tcp/udp
ke layer ip
diberi header alamat asal
dan tujuan
o Lakukan routing, lihat table routing
ke layer network
interface
diberi header alamat asal dan tujuan (frame)
ARP (Address Resolution Protocol)
Menerjemahkan ip address ke alamat ethernet
Dengan melihat tabel cache arp
Berisi ip address dan alamat ethernet
Karena tidak ada hubungan antara ip address dengan ethernet address
IP Address
o bergantung pada ip address jaringan
Ethernet Address
o bergantung pada pembuat
Mekanisme penerjemahan oleh ARP
Awal, hanya mengenal informasi interface-nya sendiri
o Cache arp hanya berisi alamat ethernetnya sendiri
Pencarian awal adalah route default
Misal, datagram dikirimkan ke ip 202.162.32.1 dari host A (satu
subnet)
Host A hanya mengetahui alamat ip pada awalnya
Host A mengirimkan ARP request pada seluruh host dalam 1 subnet ke
alamat broadcast ethernet
Host A menempatkan datagram ip yang dikirim dalam antrian
Bunyi ARP request Jika alamat IP adalah 202.162.32.1 mohon
beritahu alamat ethernet-mu
address tujuan datagram. Jika ada entri yang sama, kirim frame ke
router menuju host tersebut.
Jika tidak terdapat entri host yang cocok pada table routing, gunakan
almat tujuan datagram yang telah di-mask pada langkah 1 untuk
mencari kesamaan di tabel routing. Periksa apakah ada net/subnet di
table routing yang sama dengan alamat network tujuan datagram. Jika
ada entri yang sama, kirim frame ke router menuju net/subnet tersebut
Jika tidak terpadat entri host maupun entri net/subnet yang sesuai
dengan tujuan datagram, host mengirimkan frame ke router default