Hold-Queue Out limit (HQL)
aggressive droping when the hold-queue out limit (HQO)is reached
Serial1/0 is up, line protocol is up
Hardware is M4T
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, crc 16, loopback not set
Keepalive set (10 sec)
Restart-Delay is 0 secs
Last input 00:00:50, output 00:00:02, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: weighted fair 默認的WFQ
Output queue: 0/1000/64/0 (size/max total/threshold/drops) 64 CDT HQL 1000
Conversations 0/1/256 (active/max active/max total) 總共flow的個數
Reserved Conversations 0/0 (allocated/max allocated)
Available Bandwidth 1158 kilobits/sec
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1 packets input, 332 bytes, 0 no buffer
Received 1 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
3 packets output, 646 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 output buffer failures, 0 output buffers swapped out
2 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up
Current fair queue configuration:
threshold queues queues queues queues
Serial1/0 128 1024 37 8 1
Serial1/1 64 256 0 8 1
Serial1/2 64 256 0 8 1
Serial1/3 64 256 0 8 1
default Set priority queue for unspecified datagrams
interface Establish priorities for packets from a named interface 基於接口(入口)
protocol priority queueing by protocol 基於協議
queue-limit Set queue limits for priority queues 限制優先級隊列的大小
access-list 110 permit ip any host 192.168.1.100
priority-list 1 protocol ip high list 110
priority-list 1 protocol ip medium tcp smtp
priority-list 1 protocol ip normal udp ntp
priority-list 1 protocol ip low tcp www
priority-list 1 queue-limit 40 20 20 20 (20 40 60 80默認)
priority-group 1
Current DLCI priority queue configuration:
Current priority queue configuration:
1 high protocol ip list 110
1 medium protocol ip tcp port smtp
1 normal protocol ip udp port ntp
1 low protocol ip tcp port www
1 high limit 40
1 medium limit 20
1 normal limit 20
1 low limit 20
Serial1/0 is up, line protocol is up
Queueing strategy: priority-list 1
Output queue (queue priority: size/max/drops):
high: 0/40/0, medium: 0/20/0, normal: 0/20/0, low: 0/20/0
default Set custom queue for unspecified datagrams
interface Establish priorities for packets from a named interface 基於接口
lowest-custom Set lowest number of queue to be treated as custom 默認0是先執行 我們在這可以設置
protocol priority queueing by protocol 基於協議
queue Configure parameters for a particular queue 對queue配置響應的參數
stun Establish priorities for stun packets
access-list 110 permit ip any any precedence critical
queue-list 1 interface Ethernet0/0 2
queue-list 1 protocol ip 3 tcp www
queue-list 1 protocol ip 3 list 110
queue-list 1 queue 2 limit 3000
queue-list 1 queue 3 limit 3000
no ip address
serial restart-delay 0
custom-queue-list 1
Current custom queue configuration:
1 2 interface Ethernet0/0
1 3 protocol ip tcp port www
1 3 protocol ip list 110
1 2 limit 3000
1 3 limit 3000
R2(config)#queue-list 1 lowest-custom 2 隊列0 1 是優先級最高的相當於PQ+CQ
R1(config-if)#ip rtp
R1(config-if)#ip rtp pr
R1(config-if)#ip rtp priority ?
<2000-65535> Lower bound of UDP destination port
R1(config-if)#ip rtp priority 16384 16383 ?
<0-2000> Maximum allowed bandwidth in kbps
bandwidth remaining percent 實際可用的帶寬百分比(總帶寬的百分比*0.75*Y%)
用NBAR抓的流量 用NBAR抓流量是比較簡單的,可以根據特定的協議去抓
我們還可以用ACL抓流量
match protocol http
policy-map CBWFQ
class VTOP
bandwidth percent 50
class WWW
bandwidth percent 20
class class-default
bandwidth percent 30
R2(config-if)#max-reserved-bandwidth 100
serial restart-delay 0
max-reserved-bandwidth 100
service-policy output CBWFQ
hold-queue 2000 out
fair-queue
R1(config)#int s1/0
R1(config-if)#ip rtp
R1(config-if)#ip rtp pr
R1(config-if)#ip rtp priority ?
<2000-65535> Lower bound of UDP destination port
R1(config-if)#ip rtp priority 16384 16383 ?
<0-2000> Maximum allowed bandwidth in kbps
實際帶寬=全部帶寬*75%-帶寬RTP(爲語音預留的帶寬)
class VTOP
priority percent 50 強制優先