Professional Documents
Culture Documents
Quality Of Service
QoS di implementasikan dalam mekanisme queue QoS digunakan untuk memprioritaskan trafik dan memanajemen paket
Ufoakses 2008
Prinsip
QoS diimplementasikan sebagai mekanisme queue ( manajemen bagaimana paket menunggu untuk disalurkan ke sebuah interface ) Queue bekerja saat meninggalkan interface ( packet flow )sehingga bagaimana kita dapat membatasi trafik yang masuk ke dalam router. Hanya satu disiplin pada sebuah interface Control Queing adalah permintaan dan kecepatan paket yang melalui interface serta mendefinisikan dimana paket menunggu atau dikirimkan dan mana yang akan didrop.
Ufoakses 2008 3
Quality Of Service
Ufoakses 2008
Ufoakses 2008
Tipe Queue
Scheduler ( melimit berdasarkan waktu tunggu paket ) BFIFO PFIFO RED SFQ Shaper ( Untuk mengontrol kecepatan aliran data atau dapat juga sebagai scheduling job )
Tipe Queue
Ufoakses 2008
Global-in ( mengambarkan semua data yang masuk ke dalam interface ) dieksekusi setelah mangle dan dst-nat. Global-out ( mengambarkan semua data yang keluar dari interface ) queque dikirim sebelum salah satu paket dikirim ke spesifik interface. Global-Total ( mengambarkan aliran data yang melalui router ) Ex = total max limit =256000 Kita akan mendaptkan upload + download = 256 kbps. ( maximum )
Ufoakses 2008 8
Dual limitation
Advance QoS Ada 2 jenis rate limit :
Ufoakses 2008
Ufoakses 2008
10
Ufoakses 2008
11
Ufoakses 2008
12
Paket Algoritme
When packet travels through the router, it passes all 4 HTB trees When packet travels to the router, it passes only global-in and global-total HTB. When packet travels from the router, it passes global-out, global-total and interface HTB.
Ufoakses 2008
13
Mangle = chain forward Queque = Queque interface Mangle = prerouting Queque = global in
Ufoakses 2008
14
Bursts
Digunakan untuk mengallow data rate tertinggi untuk beberapa periode waktu. Jika rata-rata data rate lebih rendah dari burst threshold burts akan secara aktual mengikuti burst limit Setiap detik router akan menghitung rata-rata data rate yang dicapai melalui burts time yang terakhir.
Ufoakses 2008
15
Contoh Bursts
Ufoakses 2008
16
Ufoakses 2008
17
Burst di winbox
Ufoakses 2008
18
HTB Term
HTB mentioned before is not managed like other queues HTB is a hierarchical queuing discipline. HTB is able to prioritize and group traffic flows HTB is not co-existing with another queue on an interface there can only be one queue and HTB is the one.
Ufoakses 2008 19
Alogaritma HTB
In order of priority HTB satisfies all limit-ats for leaf classes When the limit-at is reached the class becomes yellow When the max-limit is reached the class becomes red
Ufoakses 2008
20
Alogaritma HTB
Some attributes of HTB classes : limit-at max-limit priority Simple queues are executed by the HTB facility in global-out ('direct' queue), globalin ('reverse' queue) and global-total ('total queue) trees
Ufoakses 2008
21
HTB states
Ufoakses 2008
22
Prinsip HTB
Ufoakses 2008
23
Prioritas
Ufoakses 2008
24
Cara kerja
All the circles are queuing disciplines a packet storage with A flow management algorithm (FIFO, RED, SFQ or PCQ)
Ufoakses 2008
25
Rencana prioritas
Ufoakses 2008
26
Ufoakses 2008
27
SFQ
Ufoakses 2008
28
RED
Ufoakses 2008
29
PCQ
Ufoakses 2008
30
Queue Tree
Ufoakses 2008
31
Ufoakses 2008
33
Parent Queue
It is hard for the router to detect exact speed of Internet connection To optimize usage of your Internet resources and to ensure desired QoS operation you should assign maximal available connection speed manually To do so, you should create one parent queue with strict speed limitation and assign all your queues to this parent queue
Ufoakses 2008
34
Ufoakses 2008
35
Ufoakses 2008
36
Ufoakses 2008
37
Create a main queue Create child queue for ICMP Create child queue for HTTP Create child queue for OTHER
Consume all the available traffic using bandwidth-test and check the ping response times Set highest priority to ICMP Check the ping response times
Ufoakses 2008 38
Hasil Queue
Ufoakses 2008
39
Ufoakses 2008
40
Workshop 2
Sama dengan gambar diatas Limitlah menggunakan max limit dan burst time.
Ufoakses 2008
41
PCQ
Ufoakses 2008
42
Ufoakses 2008
43
PCQ setting
Jika limit at dan max limit 0 maka seluruh sub queue akan mendapatkan max limit b/w. Queue type
Type name = pcq down Kind = pcq Rate = unlimited / 0 Limit = 50 Clasifier = dst-address Type name = pcq up Kind = pcq Rate = unlimited / 0 Limit = 50 Clasifier = scr-address
Ufoakses 2008 44
64 Kbps up 128 Kbps Down Parent =kantor, limit=unlimited, type=pcq Parent =kantor, limit=unlimited, type=pcq Parent =kantor, limit=unlimited, type=pcq
Ufoakses 2008 45
Nico
Agus
Tania
Graphing
Dengan queue kita dapat mensetup grafik untuk monitoring Tool graphing queue rules simple queue = nama ( yang diberi kebijakan queque ) Untuk melihat grafiknya :
Ufoakses 2008
46