QoS

54
Ufoakses 2008 1 Quality of Service PT UFOAKSES SUKSES LUARBIASA Jakarta [email protected]

description

jarkom

Transcript of QoS

  • Quality of ServicePT UFOAKSES SUKSES LUARBIASA Jakarta [email protected]

    Ufoakses 2008

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

    Ufoakses 2008

  • 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.

    Ufoakses 2008

  • Quality Of Service

    Ufoakses 2008

  • Create Simple Queue

    Ufoakses 2008

  • Table Simple Queue

    Ufoakses 2008

  • Workshop Simple LimitLimit PC 128 Kbps Down64 Kbps UpPakai Bandwith testNoteJika pc dalam NAT gunakan connection tracking

    Ufoakses 2008

  • BurstsDigunakan 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.

    Ufoakses 2008

  • Contoh Bursts

    Ufoakses 2008

  • Melimit dengan Burst

    Ufoakses 2008

  • Burst di winbox

    Ufoakses 2008

  • Workshop 2Sama dengan gambar diatas Limitlah menggunakan max limit dan burst time.Cobalah burts threshold lebih kecil dari max limitCobalah burst threshold lebih besar dari max limit

    Ufoakses 2008

  • Dual limitationAdvance 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 )

    Ufoakses 2008

  • Contoh Dual Limitasi

    Ufoakses 2008

  • Parent QueueIt 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

    Ufoakses 2008

  • Membuat Parent utama

    Ufoakses 2008

  • Membuat Child Queue 1

    Ufoakses 2008

  • Membuat Child Queue 2

    Ufoakses 2008

  • Ufoakses 2008

  • Ufoakses 2008

  • Ufoakses 2008

  • Ufoakses 2008

  • Tipe QueueScheduler ( melimit berdasarkan waktu tunggu paket )BFIFOPFIFOREDSFQShaper ( Untuk mengontrol kecepatan aliran data atau dapat juga sebagai scheduling job )PCQ HTBDapat dikonfigurasi di queque type

    Ufoakses 2008

  • Tipe Queue

    Ufoakses 2008

  • PCQ

    Ufoakses 2008

  • Ufoakses 2008

  • Contoh PCQ

    Ufoakses 2008

  • PCQ settingJika limit at dan max limit 0 maka seluruh sub queue akan mendapatkan max limit b/w.Queue typeType name = pcq downKind = pcqRate = unlimited / 0 Limit = 50Clasifier = dst-address

    Type name = pcq upKind = pcqRate = unlimited / 0 Limit = 50Clasifier = scr-address

    Ufoakses 2008

  • Simple queueKantor64 Kbps up128 Kbps Down NicoParent =kantor, limit=unlimited, type=pcqAgusParent =kantor, limit=unlimited, type=pcqTaniaParent =kantor, limit=unlimited, type=pcq

    Ufoakses 2008

  • HTB TermHTB 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.

    Ufoakses 2008

  • Alogaritma HTBIn order of priority HTB satisfies all limit-ats for leaf classesWhen the limit-at is reached the class becomes yellowWhen the max-limit is reached the class becomes red

    Ufoakses 2008

  • HTB Virtual InterfaceAda lebih dari satu interface fisikAda 3 Virtual interface yang di maintenance oleh routerOs :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 =256000Kita akan mendaptkan upload + download = 256 kbps. ( maximum )

    Ufoakses 2008

  • Alogaritma HTBSome attributes of HTB classes :limit-atmax-limitprioritySimple queues are executed by the HTB facilityin global-out ('direct' queue), globalin ('reverse' queue) and global-total ('total queue) trees

    Ufoakses 2008

  • Paket AlgoritmeWhen 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.

    Ufoakses 2008

  • HTB states

    Ufoakses 2008

  • Prinsip HTB

    Ufoakses 2008

  • Prioritas

    Ufoakses 2008

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

    Ufoakses 2008

  • Rencana prioritas

    Ufoakses 2008

  • PFIFO & BFIFO

    Ufoakses 2008

  • SFQ

    Ufoakses 2008

  • RED

    Ufoakses 2008

  • PCQ

    Ufoakses 2008

  • Queue Tree

    Ufoakses 2008

  • Queue Tree and Simple QueuesTree 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 queueIf placed in same place Simple queue will take traffic before Queue Tree

    Ufoakses 2008

  • Prinsip Queue TreeQueue 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

    Ufoakses 2008

  • 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

    Ufoakses 2008

  • Mangle and HTB

    Ufoakses 2008

  • Dimana melakukan mangleUntuk melakukan limitasi trafik userMangle = chain forwardQueque = Queque interfaceUntuk melakukan prioritas trafikMangle = preroutingQueque = global in

    Ufoakses 2008

  • Ufoakses 2008

  • Ufoakses 2008

  • Workshop Queue TreeCreate queue tree:Create a main queueCreate child queue for ICMPCreate child queue for HTTPCreate child queue for OTHERConsume all the available traffic using bandwidth-test and check the ping response timesSet highest priority to ICMPCheck the ping response times

    Ufoakses 2008

  • Hasil Queue

    Ufoakses 2008

  • GraphingDengan 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

    Ufoakses 2008