刚写了Priority与Bandwidth的区别,趁热打铁,把police vs bandwidth也拿来来晒晒。
 
乍一看这两者后面带的都是带宽,其实区别还是很明显的,先把QOS的列出:
 
classification and marking          match and set
congestion management               bandwidth and queue-limit
congestion avoidance                random detect
policing and shaping                police and shape
link efficiency                     compression
signaling                           rsvp
 
如果把以上方法综合起来:
1、classification and marking
2、police
3、congestion avoidance
4、congestion management   
5、shaping
6、link efficiency
 
这样police与bandwidth所处的位置就很明显示了,两者不是一个类型的QOS工具,前者在做限速,后者在CBWFQ之类的队列中应用,限定每类别数据的带宽及队列大小,给其做排序转发,Bandwidth在这儿并不是严格地限速,无拥塞时它完全可以占满带宽,而police必须严格端守
 
一般我们在ISP端入口做police,在用户端出口做shaping