Quality of service
U
SER
G
UIDE
278
set qos-ext class DATA2 policy my-policy
set qos-ext class DATA2 bandwidth percent 50
set qos-ext class DATA2 filter set ipp 0
set qos-ext on
It is possible to display the marks associated with the classes using:
show qos-ext class mark
root@Imola>
show qos-ext class mark
class RT has mark 100
class DATA1 has mark 200
class DATA2 has mark 300
It is possible to display the QoS status by:
show qos-ext status
root@Imola>
show qos-ext status
class htb 1:1 root rate 500000bit ceil 500000bit burst 1661b cburst 1661b
class htb RT parent 1:1 prio 1 rate 300000bit ceil 300000bit burst 1636b cburst
class htb DATA1 parent 1:1 prio 2 rate 75000bit ceil 450000bit burst 1608b cbur
class htb DATA2 parent 1:1 prio 2 rate 75000bit ceil 450000bit burst 1608b cbur
filter parent 1: protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle 0x64 classid RT
filter parent 1: protocol ip pref 2 fw
filter parent 1: protocol ip pref 2 fw handle 0x12c classid DATA2
filter parent 1: protocol ip pref 2 fw handle 0xc8 classid DATA1
In order to display statistics the command is:
show qos-ext statistics
root@Imola>
show qos statistics
class htb 1:1 root rate 500000bit ceil 500000bit burst 1661b/8 mpu 0b overhead
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 27230 ctokens: 27230
class htb RT parent 1:1 prio 1 quantum 3750 rate 300000bit ceil 300000bit burst
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 44700 ctokens: 44700
class htb DATA1 parent 1:1 prio 2 quantum 1000 rate 75000bit ceil 450000bit bur
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 175745 ctokens: 30146
class htb DATA2 parent 1:1 prio 2 quantum 1000 rate 75000bit ceil 450000bit bur
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 175745 ctokens: 30146