All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] HTB + GRED (santa clauss plz help me out)
@ 2004-12-30 17:07 Antonios Chalkiopoulos
  2004-12-31 16:33 ` Andy Furniss
  2005-01-04 17:49 ` Antonios Chalkiopoulos
  0 siblings, 2 replies; 3+ messages in thread
From: Antonios Chalkiopoulos @ 2004-12-30 17:07 UTC (permalink / raw)
  To: lartc


I 've been trynig for a long time now to make HTB and GRED to work togethen. 
The problem beeing that GRED doesn't use handles (instead it uses DP:1 DP:2 
etc) i can not preperly filter traffic to them.

Tomas Graf suggested to use the tc_index index of u32 classifier

so dear Sant .. i am currently with the following scripts that works! 

But when i try to add an HTB before the GRED, everything goes to hell.


tc qdisc add dev $Dev handle 1:0 root dsmark indices 16 set_tc_index 
tc filter add dev $Dev parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 
2  pass_on
tc filter add dev $Dev parent 1:0 protocol ip prio 1 handle 10 tcindex
classid  1:1
tc filter add dev $Dev parent 1:0 protocol ip prio 1 handle 12 tcindex
classid  1:2
tc filter add dev $Dev parent 1:0 protocol ip prio 1 handle 14 tcindex
classid  1:3
tc qdisc add dev $Dev parent 1:0 gred setup DPs 3 default 30
tc qdisc change dev $Dev parent 1:0 gred limit 6000 min 800 max 1600 burst
12  avpkt 256 bandwidth 10Mbit DP 1probability 0.01
tc qdisc change dev $Dev parent 1:0 gred limit 6000 min 800 max 1600 burst
12  avpkt 256 bandwidth 10Mbit DP 2probability 0.01
tc qdisc change dev $Dev parent 1:0 gred limit 6000 min 800 max 1600 burst
12  avpkt 256 bandwidth 10Mbit DP 3probability 0.01

any ideas guys?

Would really apreciate it
Thanks alg0
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-04 17:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-30 17:07 [LARTC] HTB + GRED (santa clauss plz help me out) Antonios Chalkiopoulos
2004-12-31 16:33 ` Andy Furniss
2005-01-04 17:49 ` Antonios Chalkiopoulos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.