Hillstone SA 多层QoS举例
发布:刘苏平 | 发布时间: 2008年10月13日需求描述
用户带宽总量为600M,内部使用最高峰可达5000 台PC。通过QoS 配置,实现以下需求:
♦ 在网络链路使用率达85%时,将每个用户使用的最大带宽限制到100k;当网络链路空闲时,不做限制。系统中P2P 的流量不能超过200M。
♦ 流量的智能化分配:当用户上网时,如果仅用P2P 软件下载资源,系统将全部流量分配给P2P,如BT;此后,如果用户同时开始浏览网页,则优先保证网页浏览的应用需求,并且使P2P 应用始终都在下载资源,只是P2P 下载获得的流量会从早期的占有所有带宽变为只占用少量带宽。
组网图请参照下图:

第一层应用QoS 配置步骤
第一层应用QoS 限制P2P 流量不超过200M。
第一步:在策略规则中标记P2P 流量,分配QoS 标签为16:
hostname(config)# servgroup p2p
hostname(config-svc-group)# service bt
hostname(config-svc-group)# service emule
hostname(config-svc-group)# service xunlei
hostname(config-svc-group)# service vaga
hostname(config-svc-group)# service pplive
hostname(config-svc-group)# service kugoo
hostname(config-svc-group)# exit
hostname(config)# policy from trust to untrust
hostname(config-policy)# rule id 1
Rule id 1 is created
hostname(config-policy-rule)# action permit
hostname(config-policy-rule)# policy-qos-tag 16
hostname(config-policy-rule)# src-addr any
hostname(config-policy-rule)# dst-addr any
hostname(config-policy-rule)# service p2p
hostname(config-policy-rule)# exit
hostname(config-policy)# rule id 2
Rule id 2 is created
hostname(config-policy-rule)# action permit
hostname(config-policy-rule)# src-addr any
hostname(config-policy-rule)# dst-addr any
hostname(config-policy-rule)# service any
hostname(config-policy-rule)# exit
hostname(config-policy)# exit
第二步:配置QoS Profile 对P2P 流量做限制:
hostname(config)# class-map match-p2p
hostname(config-class-map)# match policy-qos-tag 16
hostname(config-class-map)# exit
hostname(config)# qos-profile p2p-limit
hostname(config-qos-profile)# class match-p2p
hostname(config-qos-prof-cmap)# police 200000 conform-action transmit exceed-action drop
hostname(config-qos-prof-cmap)# exit
hostname(config-qos-profile)# exit
第三步:绑定P2P 限流QoS Profile 到广域网入接口:
hostname(config)# interface ethernet0/0
hostname(config-if-eth0/0)# qos-profile 1st-level input p2p-limit
hostname(config-if-eth0/0)# exit
hostname(config)#
第二层IP 限流配置步骤
第一步:配置IP QoS 的优先级,使网页浏览(HTTP)优先级高于P2P 应用:
hostname(config)# class-map http
hostname(config-class-map)# match application http
hostname(config-class-map)# exit
hostname(config)# qos-profile ip-priority
hostname(config-qos-profile)# class http
hostname(config-qos-prof-cmap)# set ip-qos-priority 1
hostname(config-qos-profile)# class match-p2p
hostname(config-qos-prof-cmap)# set ip-qos-priority 5
hostname(config-qos-prof-cmap)# exit
hostname(config-qos-profile)# exit
hostname(config)#
第二步:将优先级QoS Profile 绑定到接口:
hostname(config)# interface ethernet0/1
hostname(config-if-eth0/1)# qos-profile 2nd-level input ip-priority
hostname(config-if-eth0/1)# exit
hostname(config)# interface ethernet0/2
hostname(config-if-eth0/2)# qos-profile 2nd-level input ip-priority
hostname(config-if-eth0/2)# exit
hostname(config)# interface ethernet0/3
hostname(config-if-eth0/3)# qos-profile 2nd-level input ip-priority
hostname(config-if-eth0/3)# exit
hostname(config)#
第二步:配置IP 限流:
hostname(config)# class-map ip-range
hostname(config-class-map)# match ip-range 10.200.1.0 10.200.3.255
hostname(config-class-map)# exit
hostname(config)# qos-profile ip-qos-limit
hostname(config-qos-profile)# class ip-range
hostname(config-qos-prof-cmap)# ip-qos per-ip max-bandwidth 100
hostname(config-qos-prof-cmap)# exit
hostname(config-qos-profile)# exit
hostname(config)# interface ethernet0/0
hostname(config-if-eth0/0)# qos-profile 2nd-level output ip-qos-limit
hostname(config-if-eth0/0)# qos-profile 2nd-level input ip-qos-limit
hostname(config-if-eth0/0)# exit
hostname(config)#
第三步:配置设备的弹性QoS 功能:
hostname(config)# flex-qos low-water-mark 75 high-water-mark 85
原创文章如转载,请注明:
转载自醉生梦死的博客
原文地址:http://www.liusuping.com/post/hillstone-mulit-qos.html
- 相关文章:
Hillstone SA IP QoS 优先级举例 (2008-10-13 19:19:5)
Hillstone SA 基于IP 的QoS举例 (2008-10-13 19:9:0)
Hillstone SA QoS低延迟队列(LLQ)举例 (2008-10-13 19:2:12)
Hillstone SA QoS最小带宽保证举例 (2008-10-13 18:48:49)
Hillstone SA 基于应用的QoS举例 (2008-10-13 18:44:34)
Hillstone SA QoS管制与整形举例 (2008-10-13 18:38:15)
Hillstone SA QoS分类与标记举例 (2008-10-13 17:13:38)
Hillstone SA QoS匹配优先级配置举例 (2008-10-13 16:42:43)
Hillstone SA QoS介绍 (2008-10-13 16:19:21)
hillstone SA PPPoE配置 (2008-10-13 16:12:26)
发表评论
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。






