PDA

View Full Version : QoS (P4)



logmeinvietnam
05-05-2010, 03:53
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5 Cmsohtml1%5C01%5Cclip_filelist.xml"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"></o:smarttagtype><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; text-align:justify; line-height:110%; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p.Lenh, li.Lenh, div.Lenh {mso-style-name:Lenh; mso-style-link:"Lenh Char"; margin:0in; margin-bottom:.0001pt; text-align:justify; line-height:110%; mso-pagination:widow-orphan; font-size:10.0pt; mso-bidi-font-size:13.0pt; font-family:"Courier New"; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman";} span.LenhChar {mso-style-name:"Lenh Char"; mso-style-locked:yes; mso-style-link:Lenh; mso-bidi-font-size:13.0pt; font-family:"Courier New"; mso-ascii-font-family:"Courier New"; mso-hansi-font-family:"Courier New"; mso-ansi-language:EN-US; mso-fareast-language:EN-US; mso-bidi-language:AR-SA;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> 5. Ví dụ của AutoQoS – Enterprise<o:p></o:p>
<o:p> </o:p>
a. Bật giai đoạn Auto-Discovery<o:p></o:p>
Dùng lệnh auto discovery qos trên cổng s4/0. Trong ví dụ này, mặc dù là tùy chọn nhưng băng thông kết nối vẫn được xác định rõ. Với cấu hình này, dữ liệu sẽ được thu thập dựa vào giao thức NBAR
<o:p> </o:p>
Router# configure terminal
Router(config)# interface s4/0
Router(config-if)# bandwidth 1540
Router(config-if)# auto discovery qos
Router(config-if)# exit
<o:p> </o:p>
b. Bật giai đoạn tạo biểu mẫu và cài đặt<o:p></o:p>
Sau khi giai đoạn AutoQoS – <st1:place w:st="on"><st1:city w:st="on">Enterprise</st1:city></st1:place> kết thúc, dùng lệnh auto qos để bật giai đoạn thứ hai lên.
<o:p> </o:p>
Router> enable
Router# configure terminal
Router(config)# interface s4/0
Router(config-if)# auto qos
Router(config-if)# exit
<o:p> </o:p>
c. Kiểm tra cấu hình<o:p></o:p>
<o:p> </o:p>


Router# show auto discovery qos


Serial2/1.1


AutoQoS Discovery enabled for applications


Discovery up time: 2 hours, 42 minutes


AutoQoS Class information:


Class Voice:


Recommended Minimum Bandwidth: 517 Kbps/50% (PeakRate).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


--------- -------- -------- ----


rtp audio 2/<1 517/50 703104


Class Interactive Video:


Recommended Minimum Bandwidth: 24 Kbps/2% (AverageRate).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


--------- ----------- -------- -------


rtp video 24/2 5337/52 704574


Class Control:


Recommended Minimum Bandwidth: 0 Kbps/0% (AverageRate).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


--------- ----------- -------- ---------


h323 0/0 74/7 30212


rtcp 0/0 7/<1 1540


Class Streaming Video:


Recommended Minimum Bandwidth: 3 Kbps/<1% (AverageRate).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


-------- ----------- -------- ---------


Cuseeme 3/<1 6148/60 99038


Class Transactional:


Recommended Minimum Bandwidth: 1 Kbps/<1% (AverageRate).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


----------- ----------- -------- -------


sqlnet 1/<1 1706/16 40187


Class Bulk:


Recommended Minimum Bandwidth: 0 Kbps/0% (AverageRate).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


---------- ----------- -------- --------


ftp 0/0 313/30 74480


Class Scavenger:


Recommended Minimum Bandwidth: 1 Kbps (AverageRate)/0% (fixed).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


--------- ----------- -------- ----------


napster 1/<1 1429/13 33941


Class Management:


Recommended Minimum Bandwidth: 0 Kbps/0% (AverageRate).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


----------- ----------- -------- --------


dhcp 0/0 84/8 114480


ldap 0/0 169/16 55364


Class Routing:


Recommended Minimum Bandwidth: 0 Kbps/0% (AverageRate).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


---------- ----------- -------- ----------


icmp 0/0 2/<1 300


Class Best Effort:


Current Bandwidth Estimation: 350 Kbps/34% (AverageRate).


Detected applications and data:


Application/ AverageRate PeakRate Total


Protocol (kbps/%) (kbps/%) (byte)


---------- ----------- -------- ----------


unknowns 336/32 99457/97 949276


http 14/1 15607/15 41945
<o:p> </o:p>


Suggested AutoQoS Policy based on a discovery uptime of 2 hours, 42 minutes:


!


class-map match-any AutoQoS-Voice


match protocol rtp audio


!


class-map match-any AutoQoS-Inter-Video


match protocol rtp video


!


class-map match-any AutoQoS-Signaling


match protocol sip


match protocol rtcp


!


class-map match-any AutoQoS-Transactional


match protocol citrix


!


class-map match-any AutoQoS-Bulk


match protocol exchange


policy-map AutoQoS-Policy


class AutoQoS-Voice


priority percent 1


set dscp ef


class AutoQoS-Inter-Video


bandwidth remaining percent 1


set dscp af41


class AutoQoS-Signaling


bandwidth remaining percent 1


set dscp cs3


class AutoQoS-Transactional


bandwidth remaining percent 1


random-detect dscp-based


set dscp af21


class AutoQoS-Bulk


bandwidth remaining percent 1


random-detect dscp-based


set dscp af11


class class-default


fair-queue


<o:p> </o:p>


<o:p> </o:p>


Router# show auto qos<o:p></o:p>


<o:p> </o:p>


!


policy-map AutoQoS-Policy-Se2/1.1


class AutoQoS-Voice-Se2/1.1


priority percent 70


set dscp ef


class AutoQoS-Inter-Video-Se2/1.1


bandwidth remaining percent 10


set dscp af41


class AutoQoS-Stream-Video-Se2/1.1


bandwidth remaining percent 1


set dscp cs4


class AutoQoS-Transactional-Se2/1.1


bandwidth remaining percent 1


set dscp af21


class AutoQoS-Scavenger-Se2/1.1


bandwidth remaining percent 1


set dscp cs1


class class-default


fair-queue


!


policy-map AutoQoS-Policy-Se2/1.1-Parent


class class-default


shape average 1024000


service-policy AutoQoS-Policy-Se2/1.1


!


class-map match-any AutoQoS-Stream-Video-Se2/1.1


match protocol cuseeme


!


class-map match-any AutoQoS-Transactional-Se2/1.1


match protocol sqlnet


!


class-map match-any AutoQoS-Voice-Se2/1.1


match protocol rtp audio


!


class-map match-any AutoQoS-Scavenger-Se2/1.1


match protocol napster


!


class-map match-any AutoQoS-Inter-Video-Se2/1.1


match protocol rtp video


!


rmon event 33333 log trap AutoQoS description "AutoQoS SNMP traps for Voice Drops" own


AutoQoS


Serial2/1.1: DLCI 58 -


!


interface Serial2/1.1 point-to-point


frame-relay interface-dlci 58


class AutoQoS-FR-Serial2/1-58


!


map-class frame-relay AutoQoS-FR-Serial2/1-58


frame-relay cir 1024000


frame-relay bc 10240


frame-relay be 0


frame-relay mincir 1024000


service-policy output AutoQoS-Policy-Se2/1.1-Parent
<o:p> </o:p>


Router# show policy-map interface


<o:p> </o:p>


Serial2/1.1: DLCI 58 -


Service-policy output: AutoQoS-Policy-Se2/1.1-Parent


Class-map: class-default (match-any)


725797 packets, 224584146 byte


5 minute offered rate 3468.000 bps, drop rate 2605000 bps


Match: any


Traffic Shaping


Target/Average Byte Sustain Excess Interval Increment


Rate Limit bits/int bits/int (ms) (byte)


1024000/1024000 6400 25600 25600 25 3200


Adapt Queue Packets Byte Packets Byte Shaping


Active Depth Delayed Delayed Active


- 1000 268047 48786251 268032 48777309 yes


Service-policy : AutoQoS-Policy-Se2/1.1


Class-map: AutoQoS-Voice-Se2/1.1 (match-any)


80596 packets, 5158144 byte


5 minute offered rate 105000 bps, drop rate 14000 bps


Match: protocol rtp audio


80596 packets, 5158144 byte


5 minute rate 105000 bps


Queueing


Strict Priority


Output Queue: Conversation 72


Bandwidth 70 (%)


Bandwidth 716 (kbps) Burst 17900 (Byte)


(pkts matched/byte matched) 82010/5248640


(total drops/byte drops) 12501/8.00064


QoS Set


dscp ef


Packets marked 82010


Class-map: AutoQoS-Inter-Video-Se2/1.1 (match-any)


50669 packets, 42473594 byte


5 minute offered rate 692000 bps, drop rate 513000 bps


Match: protocol rtp video


50669 packets, 42473594 byte


5 minute rate 692000 bps


Queueing


Output Queue: Conversation 73


Bandwidth remaining 10 (%) Max Threshold 64 (packets)


(pkts matched/byte matched) 51558/43218807


(depth/total drops/no-buffer drops) 9/37454/7588


QoS Set


dscp af41


Packets marked 52193


Class-map: AutoQoS-Stream-Video-Se2/1.1 (match-any)


79843 packets, 30678725 byte


5 minute offered rate 511000 bps, drop rate 428.000 bps


Match: protocol cuseeme


79843 packets, 30678725 byte


5 minute rate 511000 bps


Queueing


Output Queue: Conversation 74


Bandwidth remaining 1 (%) Max Threshold 64 (packets)


(pkts matched/byte matched) 82381/31658370


(depth/total drops/no-buffer drops) 0/63889/7245


QoS Set


dscp cs4


Packets marked 82395


Class-map: AutoQoS-Transactional-Se2/1.1 (match-any)


77805 packets, 8511468 byte


5 minute offered rate 157000 bps, drop rate 102000 bps


Match: protocol sqlnet


77805 packets, 8511468 byte


5 minute rate 157000 bps


Queueing


Output Queue: Conversation 75


Bandwidth remaining 1 (%) Max Threshold 64 (packets)


(pkts matched/byte matched) 80635/8820988


(depth/total drops/no-buffer drops) 64/50967/3296


QoS Set


dscp af21


Packets marked 80655


Class-map: AutoQoS-Scavenger-Se2/1.1 (match-any)


30723 packets, 7127736 byte


5 minute offered rate 136000 bps, drop rate 84000 bps


Match: protocol napster


30723 packets, 7127736 byte


5 minute rate 136000 bps


Queueing


Output Queue: Conversation 76


Bandwidth remaining 1 (%) Max Threshold 64 (packets)


(pkts matched/byte matched) 31785/7373950


(depth/total drops/no-buffer drops) 0/16381/6160


QoS Set


dscp cs1


Packets marked 31955


Class-map: class-default (match-any)


406161 packets, 130634479 byte


5 minute offered rate 2033000 bps, drop rate 1703000 bps


Match: any


Queueing


Flow Based Fair Queueing


Maximum Number of Hashed Queues 64


(total queued/total drops/no-buffer drops) 806/291482/13603
<o:p> </o:p>