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

Quality of Service - Fahrezy Blog · −Dapat dikonfigurasi di queque type ... lakukan queque pada global out atau interface queque. Ufoakses 2008 12 Mangle and HTB. Ufoakses 2008

  • View
    214

  • Download
    0

Embed Size (px)

Text of Quality of Service - Fahrezy Blog · −Dapat dikonfigurasi di queque type ... lakukan queque pada...

Ufoakses2008 1

QualityofService

[email protected]

Ufoakses2008 2

QualityOfService QoSdiimplementasikandalam

mekanismequeque QoSdigunakanuntukmemprioritaskan

trafikdanmemanajemenpaket

Ufoakses2008 3

Prinsip QoSdiimplementasikansebagaimekanisme

queue(manajemenbagaimanapaketmenungguuntukdisalurkankesebuahinterface)

Queuebekerjasaatmeninggalkaninterface(packetflow)sehinggabagaimanakitadapatmembatasitrafikyangmasukkedalamrouter.

Hanyasatudisiplinpadasebuahinterface ControlQueingadalahpermintaandan

kecepatanpaketyangmelaluiinterfacesertamendefinisikandimanapaketmenungguataudikirimkandanmanayangakandidrop.

Ufoakses2008 4

QualityOfService

Ufoakses2008 5

ContohSimpleQueue

Ufoakses2008 6

TipeQueue Scheduler(melimitberdasarkanwaktutunggu

paket) BFIFO PFIFO RED SFQ

Shaper(Untukmengontrolkecepatanalirandataataudapatjugasebagaischedulingjob) PCQ HTB Dapatdikonfigurasidiquequetype

Ufoakses2008 7

TipeQueue

Ufoakses2008 8

HTBVirtualInterface Adalebihdarisatuinterfacefisik Ada3Virtualinterfaceyangdimaintenanceoleh

routerOs: Globalin(mengambarkansemuadatayangmasukke

dalaminterface)dieksekusisetelahmangledandstnat. Globalout(mengambarkansemuadatayangkeluardari

interface)quequedikirimsebelumsalahsatupaketdikirimkespesifikinterface.

GlobalTotal(mengambarkanalirandatayangmelaluirouter)

Ex=totalmaxlimit=256000 Kitaakanmendaptkanupload+download=256kbps.

(maximum)

Ufoakses2008 9

Duallimitation AdvanceQoS Ada2jenisratelimit:

CIR(commitedInformationRate) Mengaransidatarateyangdapatdialirkan(limitat)

MIR(MaximalInformationRate) Maximaldatarateyangdapatdibolehkanuntuksebuah

kelasyangdicapai(maximalLimit)

Ufoakses2008 10

ContohDualLimitasi

Ufoakses2008 11

MangledanQueque Mangleharusdilakukansebelumqueque Mangleharusdilakukanpadachainpreroutingagar

dapatdigunakanpadasimplequeque Jikaquequedilakukanhanyapadachaintertentu

pakaiquequetree. Manglepadachainpreroutingakanberpengaruhpada

semuatrafikinputataupunforward. Manglepadachainpostroutingakanberpengaruh

padatrafikoutputdanforward. Kalaumelakukanmanglepadachainforwardmaka

lakukanquequepadaglobaloutatauinterfacequeque

Ufoakses2008 12

MangleandHTB

Ufoakses2008 13

PaketAlgoritme Whenpackettravelsthroughtherouter,it

passesall4HTBtrees Whenpackettravelstotherouter,it

passesonlyglobalinandglobaltotalHTB.

Whenpackettravelsfromtherouter,itpassesglobalout,globaltotalandinterfaceHTB.

Ufoakses2008 14

Dimanamelakukanmangle Untukmelakukanlimitasitrafikuser

Mangle=chainforward Queque=Quequeinterface

Untukmelakukanprioritastrafik Mangle=prerouting Queque=globalin

Ufoakses2008 15

Bursts Digunakanuntukmengallowdataratetertinggi

untukbeberapaperiodewaktu. Jikarataratadataratelebihrendahdariburst

thresholdburtsakansecaraaktualmengikutiburstlimit

Setiapdetikrouterakanmenghitungrataratadatarateyangdicapaimelaluiburtstimeyangterakhir.

Ufoakses2008 16

ContohBursts

Ufoakses2008 17

MelimitdenganBurst

Ufoakses2008 18

Burstdiwinbox

Ufoakses2008 19

HTBTerm HTBmentionedbeforeisnotmanaged

likeotherqueues HTBisahierarchicalqueuingdiscipline. HTBisabletoprioritizeandgrouptraffic

flows HTBisnotcoexistingwithanotherqueue

onaninterfacetherecanonlybeonequeueand

HTBistheone.

Ufoakses2008 20

AlogaritmaHTB InorderofpriorityHTBsatisfiesall

limitatsforleafclasses Whenthelimitatisreachedthe

classbecomesyellow Whenthemaxlimitisreachedthe

classbecomesred

Ufoakses2008 21

AlogaritmaHTB SomeattributesofHTBclasses:

limitat maxlimit priority

SimplequeuesareexecutedbytheHTBfacility inglobalout('direct'queue),

globalin('reverse'queue)andglobaltotal('totalqueue)trees

Ufoakses2008 22

HTBstates

Ufoakses2008 23

PrinsipHTB

Ufoakses2008 24

Prioritas

Ufoakses2008 25

Carakerja

AllthecirclesarequeuingdisciplinesapacketstoragewithAflowmanagementalgorithm(FIFO,RED,SFQorPCQ)

Ufoakses2008 26

Rencanaprioritas

Ufoakses2008 27

PFIFO&BFIFO

Ufoakses2008 28

SFQ

Ufoakses2008 29

RED

Ufoakses2008 30

PCQ

Ufoakses2008 31

QueueTree

Ufoakses2008 32

QueueTreeandSimpleQueues Treequeuecanbeplacedin4differentplaces:

Globalin(directpartofsimplequeuesareplacedhereautomatically)

Globalout(totalpartofsimplequeuesareplacedhereautomatically)

Globaltotal(reversepartsimplequeuesareplacedhereautomatically)

Interfacequeue IfplacedinsameplaceSimplequeuewilltake

trafficbeforeQueueTree

Ufoakses2008 33

PrinsipQueueTree Queuetreeisonlyonedirectional.Theremust

beonequeuefordownloadandoneforupload Queuetreequeuesworkonlywithpacket

marks.Thesemarksshouldbecreatedinthefirewallmangle

Queuetreeallowstobuildcomplexqueuehierarchies

Ufoakses2008 34

ParentQueue Itishardfortheroutertodetectexactspeedof

Internetconnection TooptimizeusageofyourInternetresources

andtoensuredesiredQoSoperationyoushouldassignmaximalavailableconnectionspeedmanually

Todoso,youshouldcreateoneparentqueuewithstrictspeedlimitationandassignallyourqueuestothisparentqueue

Ufoakses2008 35

MembuatParentutama

Ufoakses2008 36

MembuatChildQueue1

Ufoakses2008 37

MembuatChildQueue2

Ufoakses2008 38

WorkshopQuequeTree Createqueuetree:

Createamainqueue CreatechildqueueforICMP CreatechildqueueforHTTP CreatechildqueueforOTHER

Consumealltheavailabletrafficusingbandwidthtestandcheckthepingresponsetimes

SethighestprioritytoICMP Checkthepingresponsetimes

Ufoakses2008 39

HasilQueue

Ufoakses2008 40

WorkshopSimpleLimit LimitPC

128KbpsDown 64KbpsUp

PakaiBandwithtest Note

JikapcdalamNATgunakanconnectiontracking

Ufoakses2008 41

Workshop2 Samadengangambardiatas Limitlahmenggunakanmaxlimitdanbursttime.

Ufoakses2008 42

PCQ

Ufoakses2008 43

Ufoakses2008 44

PCQsetting Jikalimitatdanmaxlimit0makaseluruhsubquequeakanmendapatkan

maxlimitb/w. Quequetype

Typename=pcqdown Kind=pcq Rate=unlimited/0 Limit=50 Clasifier=dstaddress

Typename=pcqup Kind=pcq Rate=unlimited/0 Limit=50 Clasifier=scraddress

Ufoakses2008 45

Simplequeque Kantor

64Kbpsup 128KbpsDown

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

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

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

Ufoakses2008 46

Graphing Denganquequekitadapatmensetupgrafik

untukmonitoring Toolgraphingquequerulessimplequeque

=nama(yangdiberikebijakanqueque) Untukmelihatgrafiknya:

Diaksesmelaluiwebbrowserdenganalamathttp://iprouter/graphs