QOSPQ+CQ+WFQ+CBWFQ+LLQ配置实例_第1页
QOSPQ+CQ+WFQ+CBWFQ+LLQ配置实例_第2页
QOSPQ+CQ+WFQ+CBWFQ+LLQ配置实例_第3页
QOSPQ+CQ+WFQ+CBWFQ+LLQ配置实例_第4页
QOSPQ+CQ+WFQ+CBWFQ+LLQ配置实例_第5页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、QOS关于队列的相关配置(PQ+CQ+WFQ+CBWFQ+LLQ所有试验共用的试验拓扑:PQ:优先级队列(priorityqueue)在优先级队列PQ中,有高,中,普通,低优先级4个队列。数据包根据事先定义放在不同的队列中,路由器按照高,中,普通,低顺序服务,只有高优先级的队列为空后,才为其他队列服务,依次类推。直接手敲的制作匆忙。priority-list1protocoliphightcptelnetpriority-list1protocoliphighlist101priority-list1protocalipmediumgt1000中等优先级队列里/将telnet流量放在高优先级队

2、列里/将acc-list101定义的流量放在高优先级里/将数据包大小大于1000字节的流量放在priority-list1interfaceEthernet1/0normal优先级队列里priority-list1defaultlowpriority-list1queue-limit20304050度,如果超出这些长度的数据包将被丢弃/。分别定义高、中、普通、低优先级队列长Ints0/0Prority-group1Showints0/0、showqueueingpriority就能检测了。CQ:自定义队列(customqueue)与PQ不同,在CQ中有16个队列数据包根据事先定义的放在不同的队

3、列中,路由器将为第一队列服务一定数量的数据包、字节后就为第二个队列服务,我们定义的是深度一一即为每个队列服务的那“一定数量的数据包、字节”然后转而为下一队列服务。注意:CQ中队列0比较特殊,只有0为空了才为其他队列服务。一下是showrun的内容access-list101permitiphostanyqueue-list1protocolip1tcptelnetqueue-list1protocolip2list101queue-list1protocolip3gt1000queue-list1interfaceEthernet1/04queue-list1default5q

4、ueue-list1queue1limit40/定义深度队列一的深度为40queue-list1queue2limit35queue-list1queue3limit30queue-list1queue4limit25interfaceSerial0/0将从Ethernet口收到的流量放在普通的ipaddressipospf1area0serialrestart-delay0custom-queue-list1接口上应用showints0/0ints0/0serial0/0isup,1ineprotocolisupHarrihiareisM4T

5、internetaddressis192.1&8.12.1/24MTU15D0bytes,BW1544Kbit,DiY20000usee,reliabiliTy255/255,txload1/25$,rxlaad1/255EncapsuIationHDICTrrc16,1oopbfleknotsetKeepaliveset(10Restart-DeIayis0secsLast5npur00:00:00,output00:00:07,outputhangnewerLastclearing0fshowinterfacecountersneverinputqueue:0/75/0/0(siz

6、e/my/dropE/flushes);1otaloutputdrops:0Queuftingstrategy:custom-1ist1ourpuxqueues:(queue 草:sze/max/drops010/20/01:0/40/02:0/35/03:0/30/04:0/25/05:0/20/06:0/20/07:0/20/08:0/2U/Uy:U/ZU/010:0/20/01110/20/012:0/20/013:0/20/014:0/20/015:0/20/016:0/20/0bnrinu1:inputrate口bits/secp0packets/&ec5minuteoutp

7、utrate0birs/Eecl0packets/sec634packets-input,4/33。bytes,。nobufferReceived337broadcasts,0runts.0giants,0throttles0inputcrrors,0CRC,0frame,0overrun,0ignoredT0abort635packeteoutput;47310bytesh0underruns0 outputerrors,0col1islons,-Iintcrfaccresets0 outputbufferfailures0outputbuffersswappedOUT0 carriertr

8、an5TtionsDC口-upD5R-upDTR=upRTS=upCTS-upShowqueueingcustomRl#showqueueing匚口与tomCurrentcustomqueuecorfiguration;List1Queue5ArgsdefauTt11protocoltepporttelnet12protocol1plist10113protocol1pgt100014interfaceEthernetl/011Inmit4012limit3513j-imit3014limit25WFQ:(weigthfairqueue 加权公平队列WFQ 是低速链路(低于 2.048Mbps

9、)上的默认设置,它将数据包区分为不同的流。配置相当简单一条命令解决问题啊ints0/0fair-queue512102410/512 为丢弃阈值,1024 为动态会话数 10 为 RSVP预留队列ints0/0saria.10/0isup,1ireprotocolisupHardwartisM4TInternetaddressis192.168,12.1/24Niu1500bytesBW1544Kbit,OLY20000usee,rcliability255/255,txload1/255,rxload1/255ErKapsulatSonIIDLCtere16,loopbacknotsetKe

10、eps-1iveset(10sec)Restart-Delayis0secsLastinput00:00:0,output00:00:05,outputhangneverLflstcfcaringofshointerfacecountersneverinputqueue:0/75/0/0fsizp/hwx/drop/flushps);TOTR!outputdrops:0Queuenngstrategy:weightedfanrOutputqueujv/iJQ0/12/O(size/maxtotal/threshold/drops)Conversations0/1/1024factive/max

11、actiye/maxtotallReservedconveriatlens口/口(al1orated/(ria)tall口cared)Avi-:;aL1vQiiuv/idrh4dp、占kiipi?iec5rrinute-inputrate0bits/sec,0pckets/secSminuteoutputrte0bits/sec,0packets/sec&13pack&tsinptit300546byres,0nobufferkece-ived43Abroadca.ts;0runts,0g-iants,0throttles0inputerrors,0CRC,Uframe,0ov

12、errun,0ignored,0abort815packetsoutput,60600bytesr0underruns0outputerrors0collisions,7Interfaceresars0outputbuffertailures,0outputbuffersswappedout9carriertrarrsdDCD-UDD5R_UDDTR_u口RTSUDCTS-u口CBWFQ(class-basedweightfairqueue 基于类的加权公平队列简单来说就是根据数据包的协议类型、ACLIP 优先级或者输入接口等条件实现定义好流量的类型,为不同的类型配置最大带宽和占用接口带宽的百

13、分比。能与 NBARWRED 一起使用!class-mapmatch-anyMYMAP1/定义类matchprotocolhttpmatchprotocolftpclass-mapmatch-allMYMAP2matchprotocoltelnet!policy-mapMYPOLICY/定义策略classMYMAP1bandwidth60classMYMAP2bandwidth10interfaceSerial0/0ipaddressipospf1area0serialrestart-delay0service-policyoutputMYPO

14、LICYRl#showints0/0SerialO/Gisup,1ineprotocolisupHardwareiisrInternetaddressi192.168412TR=upRTS=upCTS=upRl#&howpolicy-mapMYPOLICYPolicyMapMYPOLICYClA5MVMAP1BandwidthE60(kbps)MaxThreshold64(packets)class_BandwidthIQ(kbp?)MaxThreshold64(packets)ffshowclass-mapClassMapmatch-anyclass-defaultCid01Matc

15、haryClassMapmatch-anyMYMAP1(id1)MatchprotocolhttpMatchprotocolftpClassMapmatch-allMYMAP2Cid2)MatchprotocolJtelnetLLQ(lowlatencyqueue)低延时队列该实验需要在 CBWFQ 的基础上完成即允许用户自定义数据类别,并优先让这些类别的数据传输R1(config)#class-mapmatch-anyMYMAP3R1(config-cmap)#matchipprecedencecriticalR1(config-cmap)#exitR1(config)#policy-map

16、MYPOLICYR1(config-pmap)#classMYMAP3R1(config-pmap-c)#priority15R1#showpolicy-mapPolicyMapMYPOLICYClassMYMAP1Bandwidth60(kbps)MaxThreshold64(packets)ClassMYMAP2Bandwidth10(kbps)MaxThreshold64(packets)ClassMYMAP3StrictPriorityBandwidth15(kbps)Burst375(Bytes)R1#showpolicy-mapints0/0Serial0/0Service-pol

17、icyoutput:MYPOLICYClass-map:MYMAP1(match-any)0packets,0bytes5minuteofferedrate0bps,droprate0bpsMatch:protocolhttp0packets,0bytes5minuterate0bpsMatch:protocolftp0packets,0bytes5minuterate0bpsQueueingOutputQueue:Conversation265Bandwidth60(kbps)MaxThreshold64(packets)(pktsmatched/bytesmatched)0/0(depth

18、/totaldrops/no-bufferdrops)0/0/0Class-map:MYMAP2(match-all)0packets,0bytes5minuteofferedrate0bps,droprate0bpsMatch:protocoltelnetQueueingOutputQueue:Conversation266Bandwidth10(kbps)MaxThreshold64(packets)(pktsmatched/bytesmatched)0/0(depth/totaldrops/no-bufferdrops)0/0/0Class-map:MYMAP3(match-any)0packets,0bytes5minuteofferedrate0bps,droprate0bpsMat

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论