POV-Ray : Newsgroups : povray.unix : [OT] Linux help -- tc-htb : Re: [OT] Linux help -- tc-htb Server Time
8 Jul 2024 18:05:49 EDT (-0400)
  Re: [OT] Linux help -- tc-htb  
From: Micha Riser
Date: 15 May 2003 19:03:11
Message: <3ec41cae@news.povray.org>
Peter Popov wrote:

(Dunno if we should really discusse ot things in this group...)

> Can anyone with more experience in traffic shaping on Linux help me? I
> have a few problems with tc-htb and I can't solve them and the docs
> are really sparse (the lartc-howto doesn't help much :( )

I don't have the time to look at your things right now but I can post what i
use:

./tc qdisc del dev eth0 root

./tc qdisc add dev eth0 root handle 1:0 htb default 12
./tc class add dev eth0 parent 1:0 classid 1:1 htb rate 240kbit ceil 240kbit
./tc class add dev eth0 parent 1:1 classid 1:10 htb rate 40kbit ceil 240kbit
prio 0
./tc class add dev eth0 parent 1:1 classid 1:12 htb rate 130kbit ceil
240kbit prio 2
./tc class add dev eth0 parent 1:1 classid 1:13 htb rate 70kbit ceil 220kbit
prio 3

./tc filter add dev eth0 parent 1:0 prio 0 protocol ip handle 10 fw flowid
1:10
./tc filter add dev eth0 parent 1:0 prio 0 protocol ip handle 13 fw flowid
1:13

and I use the iptables mangle to mark certain packets so that they come in
the appropriate class.. small packets/ACKs in 1:10, normal traffic in 1:12
and bulk traffic in 1:13.

I'm really happy with the way it is working.

Hope this helps you a bit further.

- Micha

-- 
POV-Ray Objects Collection: http://objects.povworld.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.