1 / 28

Bandwidth Management

Bandwidth Management. Introduction. Bandwidth manajemen merupakan cara pengaturan bandwidth supaya terjadi pemerataan pemakaian bandwidth Cara melakukan : Dari Proxy Dengan Qos / Traffick Shapping : HTB, CBQ. Traffic Conditioners. Policing Limits bandwidth by discarding traffic.

Download Presentation

Bandwidth Management

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Bandwidth Management

  2. Introduction • Bandwidth manajemen merupakan cara pengaturan bandwidth supaya terjadi pemerataan pemakaian bandwidth • Cara melakukan : • Dari Proxy • Dengan Qos / Traffick Shapping : HTB, CBQ

  3. Traffic Conditioners • Policing Limits bandwidth by discarding traffic. Can re-mark excess traffic and attempt to send. Should be used on higher-speed interfaces. Can be applied inbound or outbound. • Shaping Limits excess traffic by buffering. Buffering can lead to a delay. Recommended for slower-speed interfaces. Cannot re-mark traffic. Can only be applied in the outbound direction.

  4. Traffic Policing and Shaping Overview • These mechanisms must classify packets before policing or shaping the traffic rate. • Traffic policing typically drops or marks excess traffic to stay within a traffic rate limit. • Traffic shaping queues excess packets to stay within the desired traffic rate.

  5. To limit access to resources when high-speed access is used but not desired (subrate access) To limit the traffic rate of certain applications or traffic classes To mark down (recolor) exceeding traffic at Layer 2 or Layer 3 To prevent and manage congestion in ATM, Frame Relay, and Metro Ethernet networks, where asymmetric bandwidths are used along the traffic path To regulate the sending traffic rate to match the subscribed (committed) rate in ATM, Frame Relay, or Metro Ethernet networks To implement shaping at the network edge Why Use Policing? Why Use Shaping?

  6. Incoming and outgoing directions. Out-of-profile packets are dropped. Dropping causes TCP retransmits. Policing supports packet marking or re-marking. Outgoing direction only. Out-of-profile packets are queued until a buffer gets full. Buffering minimizes TCP retransmits. Marking or re-marking not supported. Shaping supports interaction with Frame Relay congestion indication. Policing Versus Shaping

  7. Traffic Policing Example • Do not rate-limit traffic from mission-critical server. • Rate-limit file-sharing application traffic to 56 kbps.

  8. Traffic Policing and Shaping Example • Central to remote site speed mismatch • Remote to central site oversubscription • Both situations result in buffering and in delayed or dropped packets.

  9. Token Bucket • Mathematical model used by routers and switches to regulate traffic flow. • Tokens represent permission to send a number of bits into the network. • Tokens are put into the bucket at a certain rate by IOS. • Token bucket holds tokens. • Tokens are removed from the bucket when packets are forwarded. • If there are not enough tokens in the bucket to send the packet, traffic conditioning is invoked (shaping or policing).

  10. Single Token Bucket • If sufficient tokens are available (conform action): Tokens equivalent to the packet size are removed from the bucket. The packet is transmitted.

  11. Single Token Bucket Exceed Action • If sufficient tokens are not available (exceed action): Drop (or mark) the packet.

  12. Bc is normal burst size. Tc is the time interval. CIR is the committed information rate. CIR = Bc / Tc Single Token Bucket Class-Based Policing

  13. Bandwidth management Menggunanan QoS

  14. CBQ • Teknik klasifikasi paket data yang paling terkenal adalah CBQ, mudah dikonfigurasi, memungkinkan sharing bandwidth • antar kelas (class) dan memiliki fasilitas user interface. CBQ mengatur pemakaian bandwidth jaringan yang dialokasikan • untuk tiap user, pemakaian bandwidth yang melebihi nilai set akan dipotong (shaping), cbq juga dapat diatur untuk sharing • dan meminjam bandwidth antar class jika diperlukan.

  15. HTB • Teknik antrian HTB mirip dengan CBQ hanya perbedaannya terletak pada opsi, HTB lebih sedikit opsi saat konfigurasi • serta lebih presisi. Teknik antrian HTB memberikan kita fasilitas pembatasan trafik pada setiap level maupun klasifikasi, • bandwidth yang tidak terpakai bisa digunakan oleh klasifikasi yang lebih rendah. Kita juga dapat melihat HTB seperti suatu • struktur organisasi dimana pada setiap bagian memiliki wewenang dan mampu membantu bagian lain yang memerlukan, • teknik antrian HTB sangat cocok diterapkan pada perusahaan dengan banyak struktur organisasi.

  16. Bandwidth management Menggunakan Squid

  17. Proxy Bandwidth management • delay_pools • menyatakan berapa banyak bagian/pool yang akan dibuat. • Penulisan : delay_pools 2  terdapat dua kelompok management bandwidth • delay_class • menentukan klas/tipe pembagian bandwith dari setiap pool. 1 pool hanya boleh memiliki 1 clas. • Terdapat 3 tipe class yang ada • Penulisan : delay_class 1 2  Pada Pool/kelompok 1 tipe classnya 2 delay_class 2 2  Pada Pool/Kelompok 2 tipe classnya 2 • delay_parameters • Ini adalah bagian terpenting dari delay pools memberikan aturan main setiap delay pools yang dibentuk. • Penulisan : delay_parameters 1 1000/64000  Pada Pool/Kelompok 1 punya rule 1000/64000 delay_parameters 2 32000/32000 8000/8000 1000/64000 Pada Pool/kelompok 2 punya rule bandwitdh 32000/32000 8000/8000 1000/64000 • delay_access • Memberi batasan siapa saja yang boleh mempergunakan delay pools ini. • setelah menetukan batasan jangan lupa di akhiri dengan deny all. delay_access 1 allow manajer  Pool 1 diterapkan pada network manajer delay_access 1 deny all delay_access 2 allow sales  Pool 2 diterapkan pada network sales delay_access 2 deny all

  18. Delay Class • Penulisan format pada delay_parameter bergantung dari kelas yang dipilih • class 1 • delay_parameters <#Kelompok_pool individual>ex: delay_parameters 1 1000/64000 • class 2 • delay_parameters <#Kel_pool agregate individual>ex: delay_parameters 1 32000/32000 1000/64000 • class 3 • delay_parameters <#Kel_pool agregate network individual>ex: delay_parameters 1 32000/32000 8000/8000 1000/64000

  19. Delay Parameter • Format baku : restore/max. • restore menunjukkan maksimum kecepatan data yang dapat dilewatkan bila harga max sudah terlampaui, dalam satuan bytes/second • max menunjukkan besar-nya file atau bucket yang dapat dilewatkan tanpa melalui proses delay. dalam satuan bytes. • Perlu di perhatikan sewa bandwidth dari provider dalam satuan bits/second bukan bytes/second. Sedangkan satuan kecepatan dowload adalah bytes/sec.Perlu konversi ke bytes/sec • SpesialCase: -1/-1 berarti unlimited atau tidak dibatasi pada nilai restore/max • ex: 1000/64000 harga restore sama dengan =1000*8 = 8000 bits/sec atau 8 kbits/sec.Yang artinya user akan mendapat download brustable selama file yang akan dibuka lebih kecil dari 64 kbytes, jadi kecepatan bisa diatas 8 kbit/sec.Bila ternyata file yang dibuka melebihi 64 kbytes, maka proses limitasi akan segera dimulai dengan membatasi kecepatan maksimal 8 kbits/s

  20. Delay Access • Memberi batasan siapa saja yang boleh mempergunakan delay pools ini.Penting untuk diingat sebaiknya setelah menetukan batasan jangan lupa di akhiri dengan deny all.misal: delay_access 1 allow manajer delay_access 1 deny all delay_access 2 allow sales delay_access 2 deny all

  21. Delay Parameter • class 1 • delay_parameters <#pool individual>ex: delay_parameters 1 1000/64000 Berarti semua network akan mendapat bandwidth yang sama di pool no 1.Sebesar 1 kbytes/sec (8 kbits/sec), dengan burstable file 64 kb. • class 2 • delay_parameters <#pool agregate individual>ex: delay_parameters 1 32000/32000 1000/64000 Berarti squid akan memakai bandwidth maksimum (32000*8) 256kbits dari semua bandwidth.Bila terdapat lebih dari 1 network class C, maka total yang dihabiskan tetap 256 kbit/sec dan tiap user akan mendapat bandwidth maksimum 1 kbytes/sec (8 kbits/sec), dengan burstable file 64 kb. • class 3 • delay_parameters <#pool agregate network individual>ex: delay_parameters 1 32000/32000 8000/8000 1000/64000 Berarti squid akan memakai bandwidth maksimum (32000*8) 256kbits dari semua bandwidth.Bila terdapat lebih dari 1 network class C, maka setiap network akan dipaksa maksimum sebesar (8000*8) 64 kbits/sec dan tiap user pada satu network akan mendapat bandwidth maksimum 1 kbytes/sec (8 kbits/sec), dengan burstable file 64 kb

  22. Contoh 1 • dalam suatu network yang sama dengan penggunaan bandwidth total tidak dibatasi, terdapat beberapa komputer dengan klasifikasi sebagai berikut : • admin dengan bandwidth unlimited • staff dengan bandwidth 1,5 kbytes/sec, bila file yang diakses melebihi 64Kbte • umum dengan bandwidth 1 kbytes/sec, bila file yang diakses melebihi 32 Kbyte acl all src 0.0.0.0/0.0.0.0acl admin src 192.168.1.250/255.255.255.255acl server src 192.168.1.251/255.255.255.255acl umum src 192.168.1.0/255.255.255.0acl staff src 192.168.1.1 192.168.1.111 192.168.1.2 192.168.1.4 192.168.1.71delay_pools 3delay_class 1 1delay_parameters 1 -1/-1delay_access 1 allow admindelay_access 1 allow serverdelay_access 1 deny alldelay_class 2 1delay_parameters 2 1500/64000delay_access 2 allow stafdelay_access 2 deny alldelay_class 3 1delay_parameters 3 1000/32000delay_access 3 allow umumdelay_access 3 deny all

  23. Contoh 2 • Delay pools juga dapat digunakan untuk membatasi download file untuk extensi tertentu. • Gunakan ACL url_regex untuk mengatasi hal ini.Contoh dibawah digunakan untuk membatasi download file multimedia hingga 1 kByte/sec. acl multimedia url_regex -i \.mp3$ \.rm$ \.mpg$ \.mpeg$ \.avi$ \.dat$ delay_pools 1delay_class 1 1delay_parameters 1 1000/16000delay_access 1 allow multimediadelay_access 1 deny ALL

  24. Contoh 3 • bagaimana caranya membuat delay pools untuk membatasi download di siang hari untuk 15 klient sedangkan malam harinya lost asumsi jamnya ( 10:00 - 21:00) • acl LTIME time SMTWHFA 10:00-21:00acl download url_regex -i ftp \.exe$ \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$ \.rar$acl download url_regex -i \.avi$ \.mpg$ \.mpeg$ \.rm$ \.iso$ \.wav$ \.mov$ \.dat$ \.mpe$ \.mid$acl download url_regex -i \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.m1v$ \.mp2$ \.mpa$ \.wax$acl download url_regex -i \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \.aif$ \.asf$ \.m2v$acl download url_regex -i \.m2p$ \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vob$ \.aob$ \.dts$acl download url_regex -i \.ac3$ \.cda$ \.vro$ \.deb$delay_pools 1delay_class 1 1delay_parameters 1 3000/3000delay_access 1 allow download TIMEdelay_access 1 deny all

  25. Contoh 4 • Bagaimana caranya membuat delay pools untuk membatasi download di siang hari dengan speed ... dan malam hari dengan speed ..., abis si bozz malem-nya mau pakai buat download.Jadi pengennya pas malam bw buat user makin kecil, bukan malah di loss acl JAM_KANTOR time SMTWHFA 07:00-18:00delay_pools 2 delay_class 1 2delay_parameters 1 24000/32000 -1/-1delay_access 1 allow riset JAM_KANTORdelay_access 1 deny alldelay_class 2 2delay_parameters 2 8000/8000 -1/-1delay_access 2 allow riset !JAM_KANTORdelay_access 2 deny all

  26. Contoh 5 • Saya ada bandwidth besar, 1mbps.Ingin membatasi yang download file besar di atas 5mbyte, di beri speed 32kbps.Misal bila ada 3 user yang download, tiap-tiap user akan mendapat bandwidth maximal 32kbps. acl user src 192.168.1.0/24delay_pools 1delay_class 1 2delay_parameters 1 40000/10000000 4000/5000000delay_access 1 allow user downloaddelay_access 1 deny ALL

  27. Contoh 6 • untuk memaksa caching terhadap youtube ( sesuai wiki.squid-cache.org ) acl youtube dstdomain -i .youtube.comacl striming url_regex -i get_video\?video_id videodownload\?cache allow youtubecache allow striming dan harap di ingat untuk posisi tsb di atas sebaiknya diletakkan sebelum hierarchy_stoplistkemudian bisa di gabung ke delay_pool juga delay_class 2 3delay_access 2 allow warnet strimingdelay_access 2 deny alldelay_parameters 2 -1/-1 -1/-1 3000/200000

  28. Contoh 7 • download file mp3 dan 3gp sebesar 1KBps baik pada jam kerja maupun di luar jam kerjaakses dmz baik pada jam kerja maupun di luar jam kerja 64KBpsakses internet pada jam kerja 32KBpsakses internet di luar jam kerja 4KBps acl download urlpath_regex -i \.mp3$ \.3gp$acl localnet src 192.168.0.0/24acl dmz dst 202.202.202.0/24acl onpeak time MTWHF 08:00-18:00delay_pools 4 delay_class 1 1delay_parameters 1 1000/1000delay_access 1 allow downloaddelay_access 1 allow localnetdelay_access 1 deny all delay_class 2 1delay_parameters 2 4000/4000delay_access 2 allow localnetdelay_access 2 allow !dmzdelay_access 2 allow !onpeakdelay_access 2 deny all delay_class 3 1delay_parameters 3 64000/64000delay_access 2 allow localnetdelay_access 3 allow dmzdelay_access 3 deny all delay_class 4 1delay_parameters 4 320000/320000delay_access 4 allow localnetdelay_access 4 deny all

More Related