PQ:优先级队列
conf t
priority-list 1 protocol ip high tcp telnet int fas 0/0 priority-group 1 end ---------------------------------------------WRR:加权循环
mls qos
int fas 0/1 wrr-queue cos-map 1 0 1 2 wrr-queue cos-map 2 3 wrr-queue cos-map 3 4 5 wrr-queue cos-map 4 6 7wrr-queue bandwidth 50 1 25 25
endshow mls qos int fas 0/1 queuing
//调整每个队列能够容纳的包 show mls qos int fas 0/1 buffersconf t
int fas 0/1 wrr-queue queue-limit 50 40 30 10 endshow mls qos int fas 0/1 buffers
--------------------------------------------------- CBWFQ:基于类别的加权公平队列 0队列是系统队列PQ 1-16队列为定制队列CQconf t
queue-list 1 protocol ip 0 tcp telnet acc 100 per icmp any any queue-list 1 protocol ip 1 list 100 =>telnet放入0队列,icmp流量放入1队列 show int s 0/0 -------------------- EXAMPLE:acc 100 per tcp any any eq 23
acc 101 per tcp any any eq 21class-map match-all fenlei1
match access-group 100 class-map match-all fenlei2 match access-group 101policy-map ccnp
class fenlei1 bandwidth 128 queue-limit 50 class fenlei2 bandwidth 256 queue-limit 90 class-default fair-queue 16 endconf t
ip cef int s 1/0 service-policy output ccnp endsh policy-map int s 1/0