Problems with tc filter and tc qdisc

From: Christoph Mause (mause@cs.bonn.edu)
Date: Fri Mar 03 2000 - 17:54:49 EST


Hi,
I am currently workling on a bandwidthmanager for linux.
To assign special dataflow a special rate I use the tc-tool.
but now I have a problem,
Once in a while it can happen that I need to delete filters or change
qdiscs.
But nothing I am trying to do works. I hope you can help me.

Heres a typical script my bandwidthmanager creates:

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

tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit
rate 200000bps allot 1514 cell 8 weight 3000Kbit prio 3
maxburst 200 avpkt 1500 bounded

tc qdisc add dev eth0 parent 1:1 handle 2: red limit 16000 min 4000 max
8000 avpkt 1500 burst 20 probability 0.02 bandwidth 200000bps

tc filter add dev eth0 parent 1:0 prio 3 protocol ip u32

tc filter add dev eth0 parent 1:0 prio 3 handle 1: u32 divisor 256

tc filter add dev eth0 parent 1:0 prio 3 u32 ht 1:6: match ip
src 192.168.0.30flowid 1:1

tc filter add dev eth0 parent 1:0 prio 3 handle ::1 u32 ht 800:: match
ip nofrag offset mask 0x0F00 shift 6 hashkey mask 0x00ff0000 at
8 link 1:

What happens now is that it could happen that the rate in class 1:1
changes.
The class is not a problem but the assigned queueing discipline to this
class.

Or it coult happen that I neew to remove the filter.

Can anyone help?

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



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:27 EST