Good evening, everybody! I have a simple question about shaping bursty www-traffic using htb. Sorry if such question sounded before. I have got a task to limit bulk www downloads but still to show good speed for small pages. I think it something like this: rate should be defined dynamically from maximum speed - 64 kbit/s to minimum speed - 12 kbit/s, average speed - 16 kbit/s. Question - how can I regulate this average parameter ? All I decided is tc class add dev $DEV parent 1:0 classid 1:122 htb rate 12kbit ceil 16kbit burst 64k prio 3 Is it what I meant ? But sometimes when I look the statistics of shaping I find that this class has negative tokens or ctokens values. Is it due to very low rate and big burst? Or maybe somebody has his own values for bursty www-traffic. Thanks in advance. Andrian _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello, Possible solution is make smaller burst parameters: tc class add dev $DEV parent 1:0 classid 1:122 htb rate 12kbit ceil 16kbit burst 1500 prio 3 In this case pages whith size more than 1500 bytes will limit outgoing speed.> Good evening, everybody! > > I have a simple question about shaping bursty www-traffic using > htb. Sorry if such question sounded before. > > I have got a task to limit bulk www downloads but still to show > good speed for small pages. > I think it something like this: rate should be defined dynamically > from > maximum speed - 64 kbit/s to minimum speed - 12 kbit/s, > average speed - 16 kbit/s. > > Question - how can I regulate this average parameter ? > > All I decided is > tc class add dev $DEV parent 1:0 classid 1:122 htb rate 12kbit ceil > 16kbit burst 64k prio 3 > > Is it what I meant ? > > But sometimes when I look the statistics of shaping I find that this > class has negative tokens or ctokens values. > Is it due to very low rate and big burst? > > Or maybe somebody has his own values for bursty www-traffic. > > Thanks in advance. > > Andrian > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/-- /bye ---------------------------------------------------------------------- Dmitry U.Labutcky System administrator of Swift Trace mail to: avl@strace.net Simferopol, Crimea, Ukraine phone: +380-652-516546 Yaltinskaya 20, office 502 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Monday 23 February 2004 21:05, pasika11@lviv.farlep.net wrote:> Good evening, everybody! > > I have a simple question about shaping bursty www-traffic using > htb. Sorry if such question sounded before. > > I have got a task to limit bulk www downloads but still to show > good speed for small pages. > I think it something like this: rate should be defined dynamically > from > maximum speed - 64 kbit/s to minimum speed - 12 kbit/s, > average speed - 16 kbit/s. > > Question - how can I regulate this average parameter ? > > All I decided is > tc class add dev $DEV parent 1:0 classid 1:122 htb rate 12kbit ceil > 16kbit burst 64k prio 3 > > Is it what I meant ? > > But sometimes when I look the statistics of shaping I find that this > class has negative tokens or ctokens values. > Is it due to very low rate and big burst?Yes. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/