1 / 64

Chapter : 18 DiffServ Quality of Service (QoS)

Chapter : 18 DiffServ Quality of Service (QoS). Introducing QoS. Quality of Service คืออะไร ?.

nguyet
Télécharger la présentation

Chapter : 18 DiffServ Quality of Service (QoS)

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. Chapter : 18 DiffServ Quality of Service (QoS)

  2. Introducing QoS

  3. Quality of Service คืออะไร? Quality of Service (QoS) หรือ แปลตรงตัวแล้วนั่นก็คือคุณภาพการให้บริการนั่นเอง แต่ในที่นี้เราจะหมายความถึง บริการที่ได้รับจากโครงข่ายการสื่อสารจะเกี่ยวข้องกับการตอบสนองของแอพพลิเคชั่นต่างๆที่เราใช้งานได้ดี หรือสามารถใช้งานเครือข่ายนั้นได้คุณภาพที่ดีนั่นเอง โดยสิ่งที่ส่งผลต่อคุณภาพดังกล่าว สำหรับในเครือข่ายการสื่อสารแบบแพ็กเกตหรือ packet network นั้น สิ่งต่างๆดังกล่าวจะได้แก่ • Bandwidth • Packet loss • Delay

  4. Other describe • Network Based Application Recognition (NBAR) • Class of Service (CoS) • IP Precedence • Differentiated Service Code Point (DSCP) • Modular QoS CLI (MQC) • Queuing • Traffic Conditioning • Congestion Avoidance

  5. The Problems You Face

  6. Bandwidth • Increased bandwidth • Prioritized traffic • Weighted fair queuing (WFQ) • Class-based weighted fair queuing (CBWFQ) • Low latency queuing (LLQ) • Weighted round robin (WRR) • Compression

  7. Delay • Processing delay • Queuing delay • Serialization delay • Propagation delay • Increase Bandwidth • Priority Forwarding • Compression Path of solve a problem

  8. Packet loss • Increased bandwidth • Priority Forwarding Configure • Congestion Avoidance

  9. Preparing to Implement QoS

  10. Preparing to Implement QoS การใช้ QoS บนเครือข่ายจะแบ่งเป็น 3 กระบวนการคือ • การระบุชนิดการสื่อสารและเทคนิคที่ต้องการของแต่ละชนิดการสื่อสาร • การแบ่งชนิดของการสื่อสาร ให้เป็นประเภทที่แตกต่างกันเพื่อให้ QoS สามารถเข้าถึงแต่ละประเภทของการสื่อสาร • สร้างนโยบาย QoS ที่ตรงกับความต้องการของประเภทของการสื่อสารและเครือข่ายของคุณ

  11. Preparing to Implement QoS • Identifying Traffic • Classifying Traffic

  12. Identifying Traffic Concept: NBAR

  13. Classifying Traffic • Incoming interface • IP precedence • Differentiated Services Code Point (DSCP) • Source or destination address • Application

  14. Classifying Traffic

  15. Models for Implementing QoS • The best effort model • Integrated Services model (IntServ) • Differentiated Services model (DiffServ) มีด้วยกัน 3 รูปแบบ เพื่อใช้ในการเพิ่มประสิทธิภาพของ QoS ในระบบเครือข่าย

  16. QoS Mechanisms

  17. QoS features • Traffic marking • Queuing • Traffic conditioning • Congestion avoidance

  18. Traffic Marking การทำเครื่องหมายการสื่อสารนั้นช่วยให้อุปกรณ์ในเครือข่ายสามารถแยกประเภทของแพ็กเก็ต เช่น • Data Link Layer ใช้การทำเครื่องหมายแบบ CoS • Network Layer มีการใช้ IP Precedence และ Differentiated Service Code Point (DSCP)

  19. Class of Service (CoS)

  20. IP Precedence && Differentiated Services Code Point (DSCP)

  21. Concept: The DiffServ Field

  22. Concept: PHB Notation

  23. DSCP with Drop Probability

  24. Tell Yourself, “Six Bits, Only Six Bits!”

  25. Queuing • First- In-First-Out (FIFO) • Priority Queuing (PQ) • Weighted round robin (WRR) • Weighted fair queuing (WFQ) • Class-based weighted fair queuing (CBWFQ) • Low latency queuing (LLQ)

  26. Traffic Conditioning • Policing • Shaping

  27. Congestion Avoidance • Random early detection (RED) • Weighted random early detection (WRED)

  28. Configuring QoS

  29. Configuring QoS • Legacy Command-Line Interface (CLI) • Modular QoS CLI (MQC) • Auto QoS • SDM QoS Wizard

  30. Legacy Command-Line Interface (CLI) In the past, the only way to implement a QoS policy in the network was by using the Command-Line Interface (CLI) to individually configure QoS policies at each interface.

  31. Modular QoS CLI (MQC) Cisco introduced the Modular QoS CLI (MQC) to simplify QoS configuration. With MQC, QoS can be configured in a building-block approach, using a single module repeatedly to apply policy to multiple interfaces.

  32. Auto QoS Cisco AutoQoS represents innovative technology that simplifies the challenges of network administration by reducing QoS complexity, cost, and deployment time.

  33. SDM QoS Wizard You can easily configure, manage, and troubleshoot QoS deployments using the Cisco Security Device Manager (SDM) QoS Wizard.

  34. Small Office/ Home Office (SOHO)

  35. Concept: MQC • Class-map (for traffic classification) • Policy-map (QoS component assignment) • Service-policy (for applying to an interface)

  36. Incoming Class-Map Configuration เป็นส่วนแรกของการตั้งค่านโยบาย สามารถเลือกพารามิเตอร์เพื่อกำหนด class-map หากต้องการกำหนดหลาย state ให้ใช้ AND แต่ถ้าเลือกใช้ให้กำหนด OR เพื่อเลือกตัวใดตัวหนึ่ง ถ้าไม่ใช้ตัวเลือกนี้ให้ตั้งค่าเป็นค่าเริ่มต้นทั้งหมด

  37. ต้องระบุชื่อสำหรับ class-map การกำหนดนโยบาย QoS สำหรับ SOHO เพื่อการเชื่อมต่อ DalRtr1 ไปที่ฐาน class-map ชื่อที่ใช้ค้นหาบนชนิดของข้อมูลเข้าออก voice_mark video_mark ตัวอย่างการสร้าง class-map DalRtr1(config)#class-map voice_mark DalRtr1(config-cmap)#

  38. การจัดกลุ่ม class-map DalRtr1(config-cmap)# match ? access-group กลุ่ม access any แพ็กเกตใดๆ class-map Class map cos IEEE 802.1Q/ISL ระดับการ ให้บริการความสำคัญของผู้ใช้ destination-address ที่อยู่ปลายทาง discard-class ระบุการยกเลิก dscp ตรง DSCP ใน IP (v4) และ IPv6

  39. DalRtr1(config)#class-map voice_mark DalRtr1(config-cmap)#match protocol rtp audio DalRtr1(config)#class-map http_mark DalRtr1(config-cmap)#match protocol http DalRtr1(config-cmap)#exit DalRtr1(config)#class-map ftp_mark DalRtr1(config-cmap)#match protocol ftp DalRtr1(config-cmap)#exit DalRtr1(config)#class-map business_app_mark DalRtr1(config-cmap)#match acccess-group 101 DalRtr1(config)#access-list 101 permit tcp any anyeq 16384

  40. Incoming Policy-Map Configuration การเข้าใช้งานต้องมีการระบุ class-map กำหนดตั้งค่านโยบายสำหรับการเข้าใช้งานโดยตรง QoS สามารถกำหนดเครื่องหมายได้และไม่จำแนกประเภทการเข้าใช้โดยโปรโตคอล เริ่มต้นด้วยคำสั่ง policy-map โดยจะต้องระบุชื่อให้ตรงกับ class-map จะสร้าง policy-map ทั้งหมดของ class-map ดังนั้นชื่อตามนโยบายจะตั้งชื่อ minemark_trafficสิ่งที่ควรรู้คือ คำสั่งของ class

  41. DalRtr1(config ) #policy-map mark-traffic DalRtr1(config-pmap)#? คำสั่งการตั้งค่า QoS policy-map class เกณฑ์นโยบาย description ประเภท Policy-Map exit ออกจากนโยบาย QoS โหมด การตั้งค่าpolicymap no ปฏิเสธ หรือ ตั้งค่าเริ่มต้น rename เปลี่ยนชื่อของ policy-map

  42. คำสั่ง class เชื่อมโยง class-map และ เส้นทางที่ระบุโดย class-map ไปยัง policy-map ตัวเลือกที่จะใส่ หลังจากคำสั่ง class คือ ชื่อของ class-mapOutput ของคุณควรจะเหมือนดังต่อไปนี้ DalRtr1(config-pmap)#class voice_mark DalRtr1(config-pmap-c)#

  43. ข้อสังเกตในการกำหนด class-map โดยการเคลื่อนย้ายด้วยโหมด class policy-map-c ในโหมดนี้คุณสามารถกำหนดค่า class ของช่องทางการสื่อสารสามารถกำหนดค่าดังนี้ DalRtr1(config-pmap-c)#? คำสั่งกำหนดค่า QoS policy-map class bandwidth แบนด์วิดธ์ compression ตอบสนองการบีบอัด drop ทิ้งแพ็คเก็ตทั้งหมด estimate ประเมินทรัพยากรในคลาส exit ออกจากการกำหนดค่า QoS

  44. netflow-sampler การทำ NetFlow no คัดค้านหรือตั้งค่าเริ่มต้นของคำสั่ง police Police priority ให้ความสำคัญใน class นี้ queue-limit ขีดจำกัดสูงสุดในการละทิ้ง random-detect เปิดการสุ่มการค้นหาเท่ากับการทิ้ง service-policy กำหนดค่า Flow Next set ตั้ง ค่า QoS shape การสร้างการเข้าใช้

  45. DalRtr1(config-pmap-c)#set ? atm-clpตั้ง ATM CLP bit เป็น 1 cos กำหนด IEEE 802.1Q/ISL class ของ service/user priority discard-class ระบุการยกเลิก dscp กำหนด DSCP ในแพ็กเก็ต IP(v4) และ IPv6 fr-de กำหนด FR DE bit เป็น 1 ipกำหนด IP ค่าเฉพาะ mpls กำหนด MPLS ค่าเฉพาะ precedence กำหนดแพ็คเก็ตสำคัญใน IP (v4) และ IPv6 qos-group กำหนดกลุ่ม QoS

  46. Incoming Service-Policy Configuration ส่วนสุท้ายของการกำหนดค่าบริการนโยบาย โดยมีการกำหนดการเข้าใช้ดังนี้ DalRtr1(config-pmap-c)#exit DalRtr1(config)#intfa0/0 DalRtr1(config-if)#service-policy input mark_traffic

  47. Outgoing Policy-Map Configuration ในนโยบายนี้ class-map แบ่งประเภทการใช้งานการสื่อสาร class-map ควรมีลักษณะดังนี้ DalRtr1(config)#class-map queue_voice DalRtr1(config-cmap)#match dscp ef DalRtr1(config-cmap)#exit DalRtr1(config)#class-map queue_business_app DalRtr1(config-cmap)#match dscp af31 DalRtr1(config-cmap)#exit DalRtr1(config)#class-map queue_http_ftp DalRtr1(config-cmap)#match dscp af21

  48. Outgoing Service-Policy Configuration ส่วนนี้ class-map ที่มีการประยุกต์ใช้การเพิ่มเข้าไปในคิว ใช้ LLQ class เสียงโดยใช้คำสั่งพิเศษ คุณสามารถเลือกได้สองตัวเลือกใน LLQ โดยคุณสามารถกำหนด bandwidth เป็นกิโลไบต์ หรือ เป็นเปอร์เซ็นต์ DalRtr1(config)#policy-map queue_traffic DalRtr1(config-pmap)#class queue_voice DalRtr1(config-pmap-c)#priority ? <8-2000000> Kilo Bits per second percent % of total bandwidth DalRtr1(config-pmap-c)#priority percent 35

  49. สำหรับอีกสอง class มีการกำหนดค่า CBWFQ เป็นคำสั่งเพื่อที่กำหนดค่า CBWFQ เป็นแบนด์วิธ คำสั่ง CBWFQ มีสองตัวเลือกสำหรับผู้ที่ได้รับสิทธิ และ ผู้ที่เข้ามาใหม่เป็นเปอร์เซ็นต์ที่เหลือของแบนด์วิธ คำสั่งที่เหลือจะมีประโยชน์เมื่อแบนด์วิธที่ใช้จริงที่มีความแตกต่างกัน DalRtr1(config-pmap)#class queue_business_app DalRtr1(config-pmap-c)#bandwidth ? <8-2000000> Kilo Bits per second เปอร์เซ็นต์รวมของ Bandwidth DalRtr1(config-pmap-c)#bandwidth percent 25

  50. ใน class สุดท้าย เราใช้เปอร์เซ็นต์ ของ CBWFQ queuing เช่นกัน DalRtr1(config-pmap)#class queue_http_ftp DalRtr1(config-pmap-c)#bandwidth ? <8-2000000> Kilo Bits per second เปอร์เซ็นต์รวมของ Bandwidth DalRtr1(config-pmap-c)#bandwidth percent 15

More Related