2024年3月29日发(作者:)

LLQ配置

LLQ 把数据包放到优先队列中,这些队列的数据包会被优先转发,队列中的数据包没有转发

完之前不会转发其它类别的数据。

class-map match-any MAP1

match protocol http

match access-group 100

class-map match-any MAP2

match protocol telnet

match protocol ssh

class-map match-any MAP3

match ip precedence 5

match ip dscp ef

policy-map LLQ

class MAP1

bandwidth percent 30

queue-limit 128

class MAP2

bandwidth percent 20

class MAP3

priority percent 10

class class-default

fair-queue 256

random-detect

interface Serial0/0

service-policy output LLQ

R1#show policy-map int s0/0

Serial0/0

Service-policy output: LLQ

Class-map: MAP1 (match-any)

0 packets, 0 bytes

5 minute offered rate 0 bps, drop rate 0 bps

Match: protocol http

0 packets, 0 bytes

5 minute rate 0 bps

Match: access-group 100

0 packets, 0 bytes

5 minute rate 0 bps

Queueing

Output Queue: Conversation 265

Bandwidth 30 (%)

Bandwidth 463 (kbps)Max Threshold 128 (packets)

(pkts matched/bytes matched) 0/0

(depth/total drops/no-buffer drops) 0/0/0

Class-map: MAP2 (match-any)

0 packets, 0 bytes

5 minute offered rate 0 bps, drop rate 0 bps

Match: protocol telnet

0 packets, 0 bytes

5 minute rate 0 bps

Match: protocol ssh

0 packets, 0 bytes

5 minute rate 0 bps

Queueing

Output Queue: Conversation 266

Bandwidth 20 (%)

Bandwidth 308 (kbps)Max Threshold 64 (packets)

(pkts matched/bytes matched) 0/0

(depth/total drops/no-buffer drops) 0/0/0

Class-map: MAP3 (match-any)

0 packets, 0 bytes

5 minute offered rate 0 bps, drop rate 0 bps

Match: ip precedence 5

0 packets, 0 bytes

5 minute rate 0 bps

Match: ip dscp ef (46)

0 packets, 0 bytes

5 minute rate 0 bps

Queueing

Strict Priority

Output Queue: Conversation 264