Page MenuHomeVyOS Platform

about set traffic-policy shaper with queue-type = random-detect
Needs testing, LowPublicFEATURE REQUEST

Description

Hi.
I want to test traffic shapper with queue-type = random-detect and small bandwidth. Command to set traffic is :
set traffic-policy shaper QOS bandwidth 100kbit
set traffic-policy shaper QOS default bandwidth 100%
set traffic-policy shaper QOS default burst 10
set traffic-policy shaper QOS default queue-type random-detect
set interfaces ethernet eth1 traffic-policy out QOS.

But I get an error. Error is :
[ traffic-policy shaper QOS ]
tc_red_eval_ewma() burst 1 is too small ? Try burst 2
RED: failed to calculate EWMA constant.
Command failed -:3
TC command failed. at /opt/vyatta/sbin/vyatta-qos.pl line 236.
qdisc add dev eth1 root handle 1: htb r2q 10 default 2
class add dev eth1 parent 1: classid 1:1 htb rate 100000
class add dev eth1 parent 1:1 classid 1:2 htb rate 100000 burst 10
qdisc add dev eth1 parent 1:2 red limit 12500 min 1041 max 3125 avpkt 1024 burst 1 probability 0.1 bandwidth 100000 ecn

traffic-policy failed (edited)

so, I change set traffic-policy shaper QOS default burst 20 , it's OK. But I show information in eth1 , it's not show qdics = red like an error (qdisc add dev eth1 parent 1:2 red limit 12500 min 1041 max 3125 avpkt 1024 burst 1 probability 0.1 bandwidth 100000 ecn)
vyos@vyos:~$ sudo /sbin/tc -s -d qdisc show dev eth1
qdisc htb 1: root refcnt 2 r2q 10 default 2 direct_packets_stat 0 ver 3.17 direct_qlen 1000
Sent 229806 bytes 3831 pkt (dropped 639, overlimits 7849 requeues 0)
backlog 0b 0p requeues 0
qdisc pfifo 8004: parent 1:2 limit 1000p
Sent 229806 bytes 3831 pkt (dropped 639, overlimits 0 requeues 0)
backlog 0b 0p requeues 0

How can I view information in eth1 like your script add in eth1. Tks.

P/s : if queue-type = drop-tail or fair-queue, information is right.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

syncer changed the task status from Open to Needs testing.Apr 17 2019, 7:37 PM
syncer assigned this task to zsdc.
syncer triaged this task as Low priority.
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.
Unknown Object (User) subscribed.Aug 20 2020, 6:01 PM
dmbaturin added a subscriber: zsdc.