Bug in CBQ?

Christian Worm Mortensen (worm@dkik.dk)
Sun, 20 Jun 1999 00:20:11 +0200


Hi,

I have written my own queuing discipline for the Linux version 2.2 kernels.
I want to limit the bandwidth it can use. Unfortunatly the tbf queuing
discipline does not seem to support classes and the trafic shaper seems to
ignore attached queuing disciplines. So I have tried to use the cbq queuing
discipline and after some experimentation I found out that the following
seemed to work (my disciplin is called cwm):

====
tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit allot 1514 cell 8
avpkt 1000 mpu 64

tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate
64Kbit weight 6Kbit allot 1514 cell 8 avpkt 1000 mpu 64 prio 5 bounded
defmap ffff split 1:0

tc qdisc add dev eth0 parent 1:1 handle 2: cwm
===

But after some time (let's say half an hour to one hour) eth0 seems to stop
working... And there is the same problem if I do not attach my own
disciplin... If I remove the queuing disciplines it works again.

I use linux kernel 2.2.10 and iproute2 version 990417.

If this a known problem: Is there another way to accomplish what I want? If
it is not a known problem I can try to make a more detailed bug
report/search.

One of my resons for writting my own queuing disciplin is that I want to
understand how the trafic control works and the only usefull documentation I
have been able to find have dealt with the implemetation. Is there anyone
writing end-user documentation? And can I help with writing it? To me the
missing documentation seems to me to be a VERY big problem and I am
interrested in helping with writing it (yes - I can write texts with higher
quality than this letter :) ).

Christian

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu