作者:Bob
网上常看很多人问QoS服务策略中的priority与bandwidth的区别是什么?结果在网上看到最多的是《比较QoS服务策略的bandwidth及priority 命令》这篇文章,经查找,源文是http://www.cisco.com/en/US/tech/tk543/tk757/technologies_tech_note09186a0080103eae.shtml
可能是翻译工具直接翻译的吧。也没有经过修改,翻译得简直是。。。。。反正我是看了一半就放弃了。当时也没有搞清楚两者到底有什么区别。最后还是看了原文,虽然没的看全,但大致了解了他们的区别,拿出来与大家一同分享,不对的地方还请指正。
从应用上讲,priority更适合应用到语音,视频或实时性比较的业务流量上。原因在于它的严格优先,如果在一个policy map上同时有priorty和bandwidth class时,那么设为priority的class流量会被优先发送出去。
另一个重要区别(请看下面这张表)就在当发生拥塞时,priority只保证指定的带宽,假设指定priority的带宽为100kbps,发生拥塞时priority的实际流量是150kbps,那么,50kbps的包流量会被丢弃。也就是说发生拥塞时,priority的能发送的流量只有100kbps。但如果没有拥塞的话,发送流量可能会超过100kbps的。对于bandwidth来说,无论拥塞与否,流量都有可能超过100kbps,不过发生拥塞时,至少可以保证100kbps的带宽,多余的流量会与其它流量一定争夺未被指定的带宽。
This table describes when a bandwidth class and a priority class can use excess bandwidth:
Command | Congestion | Non-Congestion |
---|---|---|
bandwidth Command | Allowed to exceed the allocated rate. | Allowed to exceed the allocated rate. |
priority Command | Cisco IOS meters the packets and applies a traffic measurement system via a token bucket. Matching packets are policed to the configured bps rate, and any excess packets are discarded. | The class can exceed its configured bandwidth. |