mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 02:51:07 +02:00
qos-scripts: fix RED burst calculation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6878 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
39093d7cdd
commit
24bc8c27dc
@ -88,7 +88,8 @@ END {
|
||||
if (min < avpkt) min = avpkt
|
||||
dqb = 8 * min;
|
||||
max = int(2.1*min)
|
||||
rburst = int((1.5*min + max) / (3 * avpkt))
|
||||
rburst = int((2*min + max) / (3 * avpkt))
|
||||
if (rburst < 2) rburst = 2
|
||||
print "red min " min " max " max " burst " rburst " avpkt " avpkt " limit " dqb " probability 0.04 ecn"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user