modul qos

46
Ufoakses 2008 1 Quality of Service Divisi Training PT UFOAKSES SUKSES LUARBIASA Jakarta [email protected]

Upload: andi-ruswendi

Post on 12-Nov-2014

636 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Modul QoS

Ufoakses 2008 1

Quality of Service

Divisi TrainingPT UFOAKSES SUKSES LUARBIASAJakarta [email protected]

Page 2: Modul QoS

Ufoakses 2008 2

Quality Of ServiceQoS di implementasikan dalam mekanisme queueQoS digunakan untuk memprioritaskan trafik dan memanajemen paket

Page 3: Modul QoS

Ufoakses 2008 3

PrinsipQoS 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 interfaceControl Queing adalah permintaan dan kecepatan paket yang melalui interface serta mendefinisikan dimana paket menunggu atau dikirimkan dan mana yang akan didrop.

Page 4: Modul QoS

Ufoakses 2008 4

Quality Of Service

Page 5: Modul QoS

Ufoakses 2008 5

Contoh Simple Queue

Page 6: Modul QoS

Ufoakses 2008 6

Tipe QueueScheduler ( melimit berdasarkan waktu tunggu paket )− BFIFO− PFIFO− RED− SFQ

Shaper ( Untuk mengontrol kecepatan aliran data atau dapat juga sebagai scheduling job )− PCQ − HTB− Dapat dikonfigurasi di queque type

Page 7: Modul QoS

Ufoakses 2008 7

Tipe Queue

Page 8: Modul QoS

Ufoakses 2008 8

HTB Virtual Interface

Ada lebih dari satu interface fisikAda 3 Virtual interface yang di maintenance olehrouterOs :− 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 )

Page 9: Modul QoS

Ufoakses 2008 9

Dual limitation

Advance QoSAda 2 jenis rate limit :− CIR ( commited Information Rate )

Mengaransi data rate yang dapat dialirkan ( limit at )− MIR ( Maximal Information Rate )

Maximal data rate yang dapat dibolehkan untuk sebuah kelas yang dicapai ( maximal Limit )

Page 10: Modul QoS

Ufoakses 2008 10

Contoh Dual Limitasi

Page 11: Modul QoS

Ufoakses 2008 11

Mangle dan QueueMangle harus dilakukan sebelum queueMangle harus dilakukan pada chain prerouting agar dapat digunakan pada simple queueJika queue dilakukan hanya pada chain tertentu pakai queue tree.Mangle pada chain prerouting akan berpengaruh pada semua trafik input ataupun forward.Mangle pada chain postrouting akan berpengaruh pada trafik output dan forward.Kalau melakukan mangle pada chain forward maka lakukan queue pada global out atau interface queue

Page 12: Modul QoS

Ufoakses 2008 12

Mangle and HTB

Page 13: Modul QoS

Ufoakses 2008 13

Paket Algoritme

When packet travels through the router, it passes all 4 HTB treesWhen 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.

Page 14: Modul QoS

Ufoakses 2008 14

Dimana melakukan mangle

Untuk melakukan limitasi trafik user− Mangle = chain forward− Queque = Queque interface

Untuk melakukan prioritas trafik− Mangle = prerouting− Queque = global in

Page 15: Modul QoS

Ufoakses 2008 15

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 limitSetiap detik router akan menghitung rata-rata data rate yang dicapai melalui burts time yang terakhir.

Page 16: Modul QoS

Ufoakses 2008 16

Contoh Bursts

Page 17: Modul QoS

Ufoakses 2008 17

Melimit dengan Burst

Page 18: Modul QoS

Ufoakses 2008 18

Burst di winbox

Page 19: Modul QoS

Ufoakses 2008 19

HTB Term

HTB mentioned before is not managed like other queuesHTB is a hierarchical queuing discipline.HTB is able to prioritize and group traffic flowsHTB is not co-existing with another queue on an interface – there can only be one queue andHTB is the one.

Page 20: Modul QoS

Ufoakses 2008 20

Alogaritma HTB

In order of priority HTB satisfies all “limit-at”s for leaf classesWhen the “limit-at” is reached the class becomes “yellow”When the “max-limit” is reached the class becomes “red “

Page 21: Modul QoS

Ufoakses 2008 21

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

Page 22: Modul QoS

Ufoakses 2008 22

HTB states

Page 23: Modul QoS

Ufoakses 2008 23

Prinsip HTB

Page 24: Modul QoS

Ufoakses 2008 24

Prioritas

Page 25: Modul QoS

Ufoakses 2008 25

Cara kerja

All the circles are queuing disciplines – a packet storage with A flow management algorithm (FIFO, RED, SFQ or PCQ)

Page 26: Modul QoS

Ufoakses 2008 26

Rencana prioritas

Page 27: Modul QoS

Ufoakses 2008 27

PFIFO & BFIFO

Page 28: Modul QoS

Ufoakses 2008 28

SFQ

Page 29: Modul QoS

Ufoakses 2008 29

RED

Page 30: Modul QoS

Ufoakses 2008 30

PCQ

Page 31: Modul QoS

Ufoakses 2008 31

Queue Tree

Page 32: Modul QoS

Ufoakses 2008 32

Queue Tree and Simple Queues

Tree queue can be placed in 4 different places:− Global-in (“direct” part of simple queues are

placed here automatically)− Global-out(“total” part of simple queues are

placed here automatically)− Global-total (“reverse” part simple queues are

placed here automatically)− Interface queue

If placed in same place Simple queue will take traffic before Queue Tree

Page 33: Modul QoS

Ufoakses 2008 33

Prinsip Queue Tree

Queue tree is only one directional. There must be one queue for download and one for uploadQueue tree queues work only with packet marks. These marks should be created in the firewall mangleQueue tree allows to build complex queue hierarchies

Page 34: Modul QoS

Ufoakses 2008 34

Parent Queue

It is hard for the router to detect exact speed of Internet connectionTo optimize usage of your Internet resources and to ensure desired QoS operation you should assign maximal available connection speed manuallyTo do so, you should create one parent queue with strict speed limitation and assign all your queues to this parent queue

Page 35: Modul QoS

Ufoakses 2008 35

Membuat Parent utama

Page 36: Modul QoS

Ufoakses 2008 36

Membuat Child Queue 1

Page 37: Modul QoS

Ufoakses 2008 37

Membuat Child Queue 2

Page 38: Modul QoS

Ufoakses 2008 38

Workshop Queque Tree

Create queue tree:− 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 timesSet highest priority to ICMPCheck the ping response times

Page 39: Modul QoS

Ufoakses 2008 39

Hasil Queue

Page 40: Modul QoS

Ufoakses 2008 40

Workshop Simple Limit

Limit PC − 128 Kbps Down− 64 Kbps Up

Pakai Bandwith testNote− Jika pc dalam NAT

gunakan connection tracking

Page 41: Modul QoS

Ufoakses 2008 41

Workshop 2

Sama dengan gambar diatas Limitlah menggunakan max limit dan burst time.

Page 42: Modul QoS

Ufoakses 2008 42

PCQ

Page 43: Modul QoS

Ufoakses 2008 43

Page 44: Modul QoS

Ufoakses 2008 44

PCQ settingJika 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

Page 45: Modul QoS

Ufoakses 2008 45

Simple queueKantor− 64 Kbps up− 128 Kbps Down

Nico− Parent =kantor, limit=unlimited, type=pcq

Agus− Parent =kantor, limit=unlimited, type=pcq

Tania− Parent =kantor, limit=unlimited, type=pcq

Page 46: Modul QoS

Ufoakses 2008 46

Graphing

Dengan queue kita dapat mensetup grafik untuk monitoringTool graphing – queue rules – simple queue = nama ( yang diberi kebijakan queque )Untuk melihat grafiknya :− Diakses melalui web browser dengan alamat

http://ip router/graphs