660 likes | 894 Views
Chapter : 18 DiffServ Quality of Service (QoS). Introducing QoS. Quality of Service คืออะไร ?.
E N D
Chapter : 18 DiffServ Quality of Service (QoS)
Quality of Service คืออะไร? Quality of Service (QoS) หรือ แปลตรงตัวแล้วนั่นก็คือคุณภาพการให้บริการนั่นเอง แต่ในที่นี้เราจะหมายความถึง บริการที่ได้รับจากโครงข่ายการสื่อสารจะเกี่ยวข้องกับการตอบสนองของแอพพลิเคชั่นต่างๆที่เราใช้งานได้ดี หรือสามารถใช้งานเครือข่ายนั้นได้คุณภาพที่ดีนั่นเอง โดยสิ่งที่ส่งผลต่อคุณภาพดังกล่าว สำหรับในเครือข่ายการสื่อสารแบบแพ็กเกตหรือ packet network นั้น สิ่งต่างๆดังกล่าวจะได้แก่ • Bandwidth • Packet loss • Delay
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
Bandwidth • Increased bandwidth • Prioritized traffic • Weighted fair queuing (WFQ) • Class-based weighted fair queuing (CBWFQ) • Low latency queuing (LLQ) • Weighted round robin (WRR) • Compression
Delay • Processing delay • Queuing delay • Serialization delay • Propagation delay • Increase Bandwidth • Priority Forwarding • Compression Path of solve a problem
Packet loss • Increased bandwidth • Priority Forwarding Configure • Congestion Avoidance
Preparing to Implement QoS การใช้ QoS บนเครือข่ายจะแบ่งเป็น 3 กระบวนการคือ • การระบุชนิดการสื่อสารและเทคนิคที่ต้องการของแต่ละชนิดการสื่อสาร • การแบ่งชนิดของการสื่อสาร ให้เป็นประเภทที่แตกต่างกันเพื่อให้ QoS สามารถเข้าถึงแต่ละประเภทของการสื่อสาร • สร้างนโยบาย QoS ที่ตรงกับความต้องการของประเภทของการสื่อสารและเครือข่ายของคุณ
Preparing to Implement QoS • Identifying Traffic • Classifying Traffic
Identifying Traffic Concept: NBAR
Classifying Traffic • Incoming interface • IP precedence • Differentiated Services Code Point (DSCP) • Source or destination address • Application
Models for Implementing QoS • The best effort model • Integrated Services model (IntServ) • Differentiated Services model (DiffServ) มีด้วยกัน 3 รูปแบบ เพื่อใช้ในการเพิ่มประสิทธิภาพของ QoS ในระบบเครือข่าย
QoS features • Traffic marking • Queuing • Traffic conditioning • Congestion avoidance
Traffic Marking การทำเครื่องหมายการสื่อสารนั้นช่วยให้อุปกรณ์ในเครือข่ายสามารถแยกประเภทของแพ็กเก็ต เช่น • Data Link Layer ใช้การทำเครื่องหมายแบบ CoS • Network Layer มีการใช้ IP Precedence และ Differentiated Service Code Point (DSCP)
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)
Traffic Conditioning • Policing • Shaping
Congestion Avoidance • Random early detection (RED) • Weighted random early detection (WRED)
Configuring QoS • Legacy Command-Line Interface (CLI) • Modular QoS CLI (MQC) • Auto QoS • SDM QoS Wizard
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.
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.
Auto QoS Cisco AutoQoS represents innovative technology that simplifies the challenges of network administration by reducing QoS complexity, cost, and deployment time.
SDM QoS Wizard You can easily configure, manage, and troubleshoot QoS deployments using the Cisco Security Device Manager (SDM) QoS Wizard.
Concept: MQC • Class-map (for traffic classification) • Policy-map (QoS component assignment) • Service-policy (for applying to an interface)
Incoming Class-Map Configuration เป็นส่วนแรกของการตั้งค่านโยบาย สามารถเลือกพารามิเตอร์เพื่อกำหนด class-map หากต้องการกำหนดหลาย state ให้ใช้ AND แต่ถ้าเลือกใช้ให้กำหนด OR เพื่อเลือกตัวใดตัวหนึ่ง ถ้าไม่ใช้ตัวเลือกนี้ให้ตั้งค่าเป็นค่าเริ่มต้นทั้งหมด
ต้องระบุชื่อสำหรับ class-map การกำหนดนโยบาย QoS สำหรับ SOHO เพื่อการเชื่อมต่อ DalRtr1 ไปที่ฐาน class-map ชื่อที่ใช้ค้นหาบนชนิดของข้อมูลเข้าออก voice_mark video_mark ตัวอย่างการสร้าง class-map DalRtr1(config)#class-map voice_mark DalRtr1(config-cmap)#
การจัดกลุ่ม 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
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
Incoming Policy-Map Configuration การเข้าใช้งานต้องมีการระบุ class-map กำหนดตั้งค่านโยบายสำหรับการเข้าใช้งานโดยตรง QoS สามารถกำหนดเครื่องหมายได้และไม่จำแนกประเภทการเข้าใช้โดยโปรโตคอล เริ่มต้นด้วยคำสั่ง policy-map โดยจะต้องระบุชื่อให้ตรงกับ class-map จะสร้าง policy-map ทั้งหมดของ class-map ดังนั้นชื่อตามนโยบายจะตั้งชื่อ minemark_trafficสิ่งที่ควรรู้คือ คำสั่งของ class
DalRtr1(config ) #policy-map mark-traffic DalRtr1(config-pmap)#? คำสั่งการตั้งค่า QoS policy-map class เกณฑ์นโยบาย description ประเภท Policy-Map exit ออกจากนโยบาย QoS โหมด การตั้งค่าpolicymap no ปฏิเสธ หรือ ตั้งค่าเริ่มต้น rename เปลี่ยนชื่อของ policy-map
คำสั่ง class เชื่อมโยง class-map และ เส้นทางที่ระบุโดย class-map ไปยัง policy-map ตัวเลือกที่จะใส่ หลังจากคำสั่ง class คือ ชื่อของ class-mapOutput ของคุณควรจะเหมือนดังต่อไปนี้ DalRtr1(config-pmap)#class voice_mark DalRtr1(config-pmap-c)#
ข้อสังเกตในการกำหนด class-map โดยการเคลื่อนย้ายด้วยโหมด class policy-map-c ในโหมดนี้คุณสามารถกำหนดค่า class ของช่องทางการสื่อสารสามารถกำหนดค่าดังนี้ DalRtr1(config-pmap-c)#? คำสั่งกำหนดค่า QoS policy-map class bandwidth แบนด์วิดธ์ compression ตอบสนองการบีบอัด drop ทิ้งแพ็คเก็ตทั้งหมด estimate ประเมินทรัพยากรในคลาส exit ออกจากการกำหนดค่า QoS
netflow-sampler การทำ NetFlow no คัดค้านหรือตั้งค่าเริ่มต้นของคำสั่ง police Police priority ให้ความสำคัญใน class นี้ queue-limit ขีดจำกัดสูงสุดในการละทิ้ง random-detect เปิดการสุ่มการค้นหาเท่ากับการทิ้ง service-policy กำหนดค่า Flow Next set ตั้ง ค่า QoS shape การสร้างการเข้าใช้
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
Incoming Service-Policy Configuration ส่วนสุท้ายของการกำหนดค่าบริการนโยบาย โดยมีการกำหนดการเข้าใช้ดังนี้ DalRtr1(config-pmap-c)#exit DalRtr1(config)#intfa0/0 DalRtr1(config-if)#service-policy input mark_traffic
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
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
สำหรับอีกสอง 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
ใน 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