IP_QoS技术实验指导书_ISSUE_1.0_第1页
IP_QoS技术实验指导书_ISSUE_1.0_第2页
IP_QoS技术实验指导书_ISSUE_1.0_第3页
IP_QoS技术实验指导书_ISSUE_1.0_第4页
IP_QoS技术实验指导书_ISSUE_1.0_第5页
已阅读5页,还剩38页未读 继续免费阅读

下载本文档

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

文档简介

DL010030IP QoS技术实验指导书ISSUE1.0DL010030 IP QoS实验指导书 ISSUE 1.0目录目录课程说明1实验说明1版本介绍1实验目的1实验任务1相关资料1第1章 流量监管和流量整形配置指导11.1 组网及业务描述11.2 配置流程图11.3 配置步骤21.4 结果验证21.5 配置参考4第2章 PQ队列配置指导72.1 组网及业务描述72.2 配置流程图72.3 配置步骤82.4 结果验证82.5 配置参考11第3章 CQ队列配置指导143.1 组网及业务描述143.2 配置流程图143.3 配置步骤143.4 结果验证153.5 配置参考18第4章 WFQ队列配置指导204.1 组网及业务描述204.2 配置流程图204.3 配置步骤204.4 结果验证214.5 配置参考22第5章 WRED配置指导255.1 组网及业务描述255.2 配置流程图255.3 配置步骤265.4 配置参考26第6章 基于类的QOS配置指导286.1 组网及业务描述286.2 配置流程图296.3 配置步骤296.4 测试验证306.5 配置参考3537华为技术有限公司 版权所有, 未经许可不得扩散DL010030 IP QoS实验指导书 ISSUE 1.0课程说明课程说明实验说明本实验从操作层面介绍了路由器上QoS的具体实现及应用。课程内容覆盖QoS的不同应用配置与步骤。版本介绍本指导书适用于路由器上VRP 3.4版本实验目的l 熟悉掌握QoS的基本配置与基本原理l 熟悉QoS的基本调试实验任务l 配置QoS流量监管和流量整形l 配置拥塞管理l 配置拥塞避免l 配置基于类的QoS相关资料l 路由器 VRP 3.4操作手册DL010030 IP QoS实验指导书 ISSUE 1.0第6章 基于类的QOS配置指导第1章 流量监管和流量整形配置指导1.1 组网及业务描述图1-1 流量监管及流量整形实验组网图l 如上图所示,PC1、PC2从Server下载文件。l 在R1的Ethernet0/1上使用流量监管,对进入R1的流量进行限制,使去往PC1的带宽不超过160 Kbps。在R1的Ethernet0/0上使用流量整形,对出口流量进行限制,使去往PC2的带宽不超过80Kbps 1.2 配置流程图配置ACL下发端口CAR策略下发端口GTS策略图1-2 流量监管配置流程1.3 配置步骤1. 定义ACL规则定义高级ACL以区分去往PC1的流量和去往PC2的流量。2. 下发接口限速规则在R1的E0/1接口上应用流量监管,以限制去往PC1的流量,在R1的E0/1接口上应用流量整形,以限制去往PC2的流量。1.4 结果验证1.4.1 配置流量监管R1acl number 3000R1-acl-adv-3000rule 0 permit ip destination 0R1interface Ethernet0/1R1-Ethernet0/1qos car inbound acl 3000 cir 160000 cbs 80000 ebs 0 green pass red discard1.4.2 查看PC1接收数据的速率变化1. 在PC1上从服务器下载文件,通过ftp客户端查看实际带宽。图1-3 PC1的下载状态图& 说明: 可以看到ftp下载的速率为16.4KBps,说明流量监管使带宽受到了限制。2. 检查路由器相应接口上的统计信息。display qos car interface e0/1Interface: Ethernet0/1Direction: Inbound Rule(s): If-match ACL 3000 CIR 160000 (bps), CBS 80000 (bit), EBS 0 (bit) Conform Action: pass Exceed Action : discard Conformed: 4552/6249759 (Packets/Bytes) Exceeded : 1543/2074783 (Packets/Bytes)& 说明: 和GTS不同,使用CAR时,当速率超过限制的范围,超过部分的流量会根据配置重新标记或丢弃,在本实验中,可以看到1543个数据包被丢弃。1.4.3 配置流量整形R1acl number 3001R1-acl-adv-3001rule 0 permit ip destination 0R1-acl-adv-3001quitR1interface Ethernet0/0R1-Ethernet0/0qos gts acl 3001 cir 80000 cbs 40000 ebs 0 queue-length 50R1-Ethernet0/0quit1.4.4 查看PC2接收数据的速率变化使用FTP从服务器下载文件到PC2,通过ftp客户端查看实际带宽。图1-4 PC2的下载状态图& 说明: 可以看到接口的输出速率为9.5KBps,说明流量整形使接口的速率受到了限制1. 同时查看端口Qos状态统计信息:display qos gts interface e0/0Interface: Ethernet0/0 Rule(s): If-match ACL 3001 CIR 80000 (bps), CBS 40000 (bit), EBS 0 (bit) Queue Length: 50 (Packet) Queue Size : 5 (Packet) Passed : 329/302153 (Packets/Bytes) Discarded: 0/0 (Packets/Bytes) Delayed : 203/278910 (Packets/Bytes)& 说明: 在GTS的限制下,尽管速率被约束了,但是超过流量部分的数据并没有被丢弃,而是被缓存。1.5 配置参考1. R1的配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R1R1isisR1-isisnetwork-entity 49.0001.0010.0100.1001.00R1-isisis-level Level-2R1-isissilent-interface Ethernet0/0R1-isisquitR1acl number 3000R1-acl-adv-3000rule 0 permit ip destination 0R1-acl-adv-3000quitR1acl number 3001R1-acl-adv-3001rule 0 permit ip destination 0R1-acl-adv-3001quitR1interface Ethernet0/0R1-Ethernet0/0ip address R1-Ethernet0/0isis enableR1-Ethernet0/0qos gts acl 3001 cir 80000 cbs 40000 ebs 0 queue-length 50R1-Ethernet0/0quitR1interface Ethernet0/1R1-Ethernet0/1ip address 52R1-Ethernet0/1isis enableR1-Ethernet0/1qos car inbound acl 3000 cir 160000 cbs 80000 ebs 0 green pass red discardR1-Ethernet0/1quitR1interface LoopBack0R1-LoopBack0ip address 55 R1-LoopBack0isis enableR1-LoopBack0return2. R2的配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R2R2isisR2-isisnetwork-entity 49.0001.0020.0200.2002.00R2-isisis-level Level-2R2-isisquitR2interface Ethernet0/0R2-Ethernet0/0ip address 52R2-Ethernet0/0isis enableR2-Ethernet0/0quitR2interface Ethernet0/1R2-Ethernet0/1ip address 52R2-Ethernet0/1isis enableR2-Ethernet0/1quitR2interface LoopBack0R2-LoopBack0ip address 55R2-LoopBack0isis enableR2-LoopBack0return3. R3的配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R3R3isisR3-isisnetwork-entity 49.0001.0030.0300.3003.00R3-isisis-level Level-2R3-isissilent-interface Ethernet0/1R3-isisquitR3interface Ethernet0/0R3-Ethernet0/0ip address 52R3-Ethernet0/0isis enableR3-Ethernet0/0quitR3interface Ethernet0/1R3-Ethernet0/1ip address R3-Ethernet0/1isis enableR3-Ethernet0/1quitR3interface LoopBack0R3-LoopBack0ip address 55R3-LoopBack0isis enableR3-LoopBack0return第2章 PQ队列配置指导2.1 组网及业务描述 图2-1 PQ队列实验组网图l 如图PC机和服务器通过广域网连接,PC1和PC2从服务器下载文件。l 在R3路由器E0/0接口上配置PQ,使去往PC1的数据进入Top队列,去往PC2的数据去往Middle队列2.2 配置流程图配置高级ACL配置优先列表组在接口应用优先列表组图2-2 PQ队列配置流程2.3 配置步骤(1) 配置高级ACL配置高级ACL,分别匹配去往PC1和PC2的数据(2) 定义优先列表组配置优先列表,去PC1的数据进入Top队列,去PC2的数据进入Middle队列。(3) 在接口上应用优先列表组路由器R3的E0/0接口视图下应用优先列表组2.4 结果验证2.4.1 配置PQ队列R1acl number 3000R1-acl-adv-3000rule 0 permit ip destination 0R1-acl-adv-3000quitR1acl number 3001R1-acl-adv-3001rule 0 permit ip destination 0R1-acl-adv-3001quit/配置PQ列表/将去往PC1的数据放入top队列/将去往PC2的数据放入middle队列R3qos pql 1 protocol ip acl 3000 queue topR3qos pql 1 protocol ip acl 3001 queue middle/在接口上应用pq队列R3-Ethernet0/0qos pq pql 1/为了便于产生拥塞,限制了端口的速率。R3-Ethernet0/0qos lr cir 160000 cbs 80000 ebs 0& 说明:这条命令非必须,此处仅用于制造实验测试条件,在现网中,请根据情况小心使用。2.4.2 查看PQ配置1. 查看配置的PQLdisplay qos pql 1Current PQL Configuration:List Queue Params-1 Top Protocol ip acl 3000 1 Middle Protocol ip acl 3001 display qos pq interface e0/0Interface: Ethernet0/0Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (Priority queuing : PQL 1 Size/Length/Discards)Top: 0/20/35 Middle: 23/40/117 Normal: 0/60/0 Bottom: 0/80/0& 说明:默认情况下Top队列长度为20, middle为40,normal为60,bottom为802.4.3 验证1. PC2从Server下载文件,PC1空闲。查看队列情况,可以看到top队列没有任何数据包,而middle队列这时可以传数据:display qos pq interface e0/0Interface: Ethernet0/0Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (Priority queuing : PQL 1 Size/Length/Discards)Top: 0/20/35 Middle: 23/40/117 Normal: 0/60/0 Bottom: 0/80/0 查看PC2上的数据传输速度,可以达到线速(被物理限速后的)。图2-3 PC2的下载状态图2. PC1、PC2同时从Server下载文件。查看pq队列,发现top队列有包,所以middle队列不能发送数据(队列满)。display qos pq interface e0/0Interface: Ethernet0/0Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (Priority queuing : PQL 1 Size/Length/Discards)Top: 13/20/73 Middle: 40/40/198 Normal: 0/60/0 Bottom: 0/80/0 查看PC2上的ftp客户端,发现ftp连接中断(因为所有包都不能收发)。而PC1达到线速。图2-4 PC2的下载状态图图2-5 PC1的下载状态图2.5 配置参考1. R1配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R1R1isisR1-isisnetwork-entity 49.0001.0010.0100.1001.00R1-isisis-level Level-2R1-isissilent-interface Ethernet0/0R1-isisquitR1interface Ethernet0/0R1-Ethernet0/0ip address R1-Ethernet0/0isis enableR1-Ethernet0/0quitR1interface Ethernet0/1R1-Ethernet0/1ip address 52R1-Ethernet0/1isis enableR1-Ethernet0/1quitR1interface LoopBack0R1-LoopBack0ip address 55 R1-LoopBack0isis enableR1-LoopBack0return2. R2的配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R2R2isisR2-isisnetwork-entity 49.0001.0020.0200.2002.00R2-isisis-level Level-2R2-isisquitR2interface Ethernet0/0R2-Ethernet0/0ip address 52R2-Ethernet0/0isis enableR2-Ethernet0/0quitR2interface Ethernet0/1R2-Ethernet0/1ip address 52R2-Ethernet0/1isis enableR2-Ethernet0/1quitR2interface LoopBack0R2-LoopBack0ip address 55R2-LoopBack0isis enableR2-LoopBack0return3. R3的配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R3R3acl number 3000R3-acl-adv-3000rule 0 permit ip destination 0R3-acl-adv-3000quitR3acl number 3001R3-acl-adv-3001rule 0 permit ip destination 0R3-acl-adv-3001quitR3qos pql 1 protocol ip acl 3000 queue topR3qos pql 1 protocol ip acl 3001 queue middleR3isisR3-isisnetwork-entity 49.0001.0030.0300.3003.00R3-isisis-level Level-2R3-isissilent-interface Ethernet0/1R3-isisquitR3interface Ethernet0/0R3-Ethernet0/0ip address 52R3-Ethernet0/0isis enableR3-Ethernet0/0qos pq pql 1R3-Ethernet0/0qos lr cir 160000 cbs 80000 ebs 0R3-Ethernet0/0quitR3interface Ethernet0/1R3-Ethernet0/1ip address R3-Ethernet0/1isis enableR3-Ethernet0/1quitR3interface LoopBack0R3-LoopBack0ip address 55R3-LoopBack0isis enableR3-LoopBack0return第3章 CQ队列配置指导3.1 组网及业务描述 图3-1 CQ队列实验组网图l 如图PC机和服务器通过广域网连接,PC1和PC2从服务器上下载文件l 在路由器R3 的接口E0/0上配置CQ,去往PC1的数据进入队列1,去往PC2的数据进入队列2,并且PC1的下载速度为PC2的两倍。3.2 配置流程图配置CQ队列组在接口应用CQ队列组图3-2 CQ队列配置流程3.3 配置步骤(1) 定义CQ队列组配置各队列长度,并配置各队列轮询字节数。(2) 在接口上应用CQ 队列组R3连接R2的接口上应用CQ队列组。3.4 结果验证3.4.1 配置路由器R3acl number 3000R3-acl-adv-3000rule 0 permit ip destination 0R3-acl-adv-3000quitR3acl number 3001R3-acl-adv-3001rule 0 permit ip destination 0R3-acl-adv-3001quitR3qos cql 1 queue 1 queue-length 100R3qos cql 1 queue 2 queue-length 100/每次轮询取出30000字节R3qos cql 1 queue 1 serving 30000 /每次轮询取出15000字节R3qos cql 1 queue 2 serving 15000 /将去往PC1的数据引入队列1R3qos cql 1 protocol ip acl 3000 queue 1/将去往PC2的数据引入队列2R3qos cql 1 protocol ip acl 3001 queue 2R3-Ethernet0/0qos cq cql 1/进行端口限速,以便制造队列拥塞。R3-Ethernet0/0qos lr cir 160000 cbs 80000 ebs 0& 说明:这条命令非必须,此处仅用于制造实验测试条件,在现网中,请根据情况小心使用。1. PC1下载,PC2没有下载display qos cq interface Ethernet 0/0Interface: Ethernet0/0Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (Custom queuing : CQL 1 Size/Length/Discards) 0: 1/ 50/0 1: 0/ 100/0 2: 35/ 100/0 3: 0/ 20/0 4: 0/ 20/0 5: 0/ 20/0 6: 0/ 20/0 7: 0/ 20/0 8: 0/ 20/0 9: 0/ 20/0 10: 0/ 20/0 11: 0/ 20/0 12: 0/ 20/0 13: 0/ 20/0 14: 0/ 20/0 15: 0/ 20/0 16: 0/ 20/0 & 说明:默认情况下,所有队列长度为20,因为设置每一次轮询发送30000个字节,所以,把队列长度改为100。查看PC2上ftp下载的速率,可以达到限速后的线速。图3-3 PC2的下载状态图2. 两台PC同时下载。display qos cq interface Ethernet 0/0Interface: Ethernet0/0Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (Custom queuing : CQL 1 Size/Length/Discards) 0: 1/ 50/0 1: 43/ 100/0 2: 47/ 100/0 3: 0/ 20/0 4: 0/ 20/0 5: 0/ 20/0 6: 0/ 20/0 7: 0/ 20/0 8: 0/ 20/0 9: 0/ 20/0 10: 0/ 20/0 11: 0/ 20/0 12: 0/ 20/0 13: 0/ 20/0 14: 0/ 20/0 15: 0/ 20/0 16: 0/ 20/0 查看PC1、PC2的下载速率,发现PC2的速率约为PC1的一半。图3-4 PC1的下载状态图图3-5 PC2的下载状态图3.5 配置参考1. R1配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R1R1isisR1-isisnetwork-entity 49.0001.0010.0100.1001.00R1-isisis-level Level-2R1-isissilent-interface Ethernet0/0R1-isisquitR1interface Ethernet0/0R1-Ethernet0/0ip address R1-Ethernet0/0isis enableR1-Ethernet0/0quitR1interface Ethernet0/1R1-Ethernet0/1ip address 52R1-Ethernet0/1isis enableR1-Ethernet0/1quitR1interface LoopBack0R1-LoopBack0ip address 55 R1-LoopBack0isis enableR1-LoopBack0return2. R2的配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R2R2isisR2-isisnetwork-entity 49.0001.0020.0200.2002.00R2-isisis-level Level-2R2-isisquitR2interface Ethernet0/0R2-Ethernet0/0ip address 52R2-Ethernet0/0isis enableR2-Ethernet0/0quitR2interface Ethernet0/1R2-Ethernet0/1ip address 52R2-Ethernet0/1isis enableR2-Ethernet0/1quitR2interface LoopBack0R2-LoopBack0ip address 55R2-LoopBack0isis enableR2-LoopBack0return3. R3的配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R3R3acl number 3000R3-acl-adv-3000rule 0 permit ip destination 0R3-acl-adv-3000quitR3acl number 3001R3-acl-adv-3001rule 0 permit ip destination 0R3-acl-adv-3001quitR3qos cql 1 queue 1 queue-length 100R3qos cql 1 queue 1 serving 30000R3qos cql 1 queue 2 queue-length 100R3qos cql 1 queue 2 serving 15000R3qos cql 1 protocol ip acl 3000 queue 1R3qos cql 1 protocol ip acl 3001 queue 2R3isisR3-isisnetwork-entity 49.0001.0030.0300.3003.00R3-isisis-level Level-2R3-isissilent-interface Ethernet0/1R3-isisquitR3interface Ethernet0/0R3-Ethernet0/0ip address 52R3-Ethernet0/0isis enableR3-Ethernet0/0qos cq cql 1R3-Ethernet0/0qos lr cir 160000 cbs 80000 ebs 0R3-Ethernet0/0quitR3interface Ethernet0/1R3-Ethernet0/1ip address R3-Ethernet0/1isis enableR3-Ethernet0/1quitR3interface LoopBack0R3-LoopBack0ip address 55R3-LoopBack0isis enableR3-LoopBack0return第4章 WFQ队列配置指导4.1 组网及业务描述 图4-1 WFQ队列实验组网图l 如图PC机和服务器通过广域网连接,PC1和PC2从服务器上下载文件l 在RT3的E0/1口上对进入的数据打上优先级,在路由器R1的E0/0接口 上配置WFQ。4.2 配置流程图修改报文的优先级在接口应用WFQ队列图4-2 CQ队列配置流程4.3 配置步骤(1) 修改报文优先级在R3上配置,修改报文的优先级。(2) 在接口上应用WFQ在R1的E0/0接口上配置WFQ。4.4 结果验证1. 两台PC同时下载。display qos wfq interface Ethernet 0/0Interface: Ethernet0/0Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (Weighted Fair queuing : Size/Length/Discards) 86/64/0 Hashed by IP Precedence Hashed queues : 2/3/256 (Active/Max active/Total)查看PC1、PC2的下载速率,发现PC2的速率约为PC1的1/3。(1+1)/(1+1)+(5+1)=25%(5+1)/(1+1)+(5+1)=75%因为PC1的标记为EF,而PC2的标记为AF11。图4-3 PC1的下载状态图图4-4 PC2的下载状态图修改报文的优先级,验证不同的优先级而导致的不同情形。如PC1的数据不变,而PC2改为AF43,会得到6:5的速率关系。4.5 配置参考1. R1配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R1R1isisR1-isisnetwork-entity 49.0001.0010.0100.1001.00R1-isisis-level Level-2R1-isissilent-interface Ethernet0/0R1-isisquitR1interface Ethernet0/0R1-Ethernet0/0ip address R1-Ethernet0/0isis enableR1-Ethernet0/0qos lr cir 200000R1-Ethernet0/0qos wfqR1-Ethernet0/0quitR1interface Ethernet0/1R1-Ethernet0/1ip address 52R1-Ethernet0/1isis enableR1-Ethernet0/1quitR1interface LoopBack0R1-LoopBack0ip address 55 R1-LoopBack0isis enableR1-LoopBack0return2. R2的配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R2R2isisR2-isisnetwork-entity 49.0001.0020.0200.2002.00R2-isisis-level Level-2R2-isisquitR2interface Ethernet0/0R2-Ethernet0/0ip address 52R2-Ethernet0/0isis enableR2-Ethernet0/0quitR2interface Ethernet0/1R2-Ethernet0/1ip address 52R2-Ethernet0/1isis enableR2-Ethernet0/1quitR2interface LoopBack0R2-LoopBack0ip address 55R2-LoopBack0isis enableR2-LoopBack0return3. R3的配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname R3R3isisR3-isisnetwork-entity 49.0001.0030.0300.3003.00R3-isisis-level Level-2R3-isissilent-interface Ethernet0/1R3-isisquitR3acl number 3000R3-acl-adv-3000rule 0 permit ip destination 0R3-acl-adv-3000quitR3acl number 3001R3-acl-adv-3001rule 0 permit ip destination 0R3-acl-adv-3001quitR3traffic classifier c1R3-classifier-c1if-match acl 3000R3-classifier-c1quitR3traffic classifier c2R3-classifier-c2if-match acl 3001 R3-classifier-c2quitR3traffic behavior b1R3-behavior-b1remark dscp efR3-behavior-b1quitR3traffic behavior b2R3-behavior-b2remark dscp af11R3-behavior-b2quitR3qos policy ftpuserR3-qospolicy-ftpuserclassifier c1 behavior b1R3-qospolicy-ftpuserclassifier c2 behavior b2R3-qospol

温馨提示

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

最新文档

评论

0/150

提交评论