Gotcha. Thanks. I already had "tc.lrp".

Now it seems to barf on anything related to a "qdisc". Am i missing a module yet? S. Mohan referred to an "imq" but I cannot find it. The documentation at lartc.org is pretty greek to me... here is output after running "wshaper.htb" with -x: (Note "Illegal Rate")

barricade: -root-
# ./wshaper.htb start
+ DOWNLINK=640
+ UPLINK=600
+ DEV=eth0
+ NOPRIOHOSTSRC=
+ NOPRIOHOSTDST=
+ NOPRIOPORTSRC=
+ NOPRIOPORTDST=
+ [ start = status ]
+ tc qdisc del dev eth0 root
+ tc qdisc del dev eth0 ingress
+ [ start = stop ]
+ tc qdisc add dev eth0 root handle 1: htb default 20
+ tc class add dev eth0 parent 1: classid 1:1 htb rate 600kbit burst 6k
+ tc class add dev eth0 parent 1:1 classid 1:10 htb rate 600kbit burst 6k prio 1
+ tc class add dev eth0 parent 1:1 classid 1:20 htb rate $[9*600/10]kbit burst 6
k prio 2
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
default number of class to which unclassified packets are sent {1}
dcache whether to use dequeue cache; it limits fairness but makes
possible to use HTB on very fast devices
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}

... class add ... htb rate R1 burst B1 [prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [gated]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed}
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size {1600}
prio priority of leaf; lower are served first {0}
inject distance to parent we inject bandwidth to {100}
+ tc class add dev eth0 parent 1:1 classid 1:30 htb rate $[8*600/10]kbit burst 6
k prio 2
Illegal "rate"
Usage: ... qdisc add ... htb [default N] [r2q N]
default number of class to which unclassified packets are sent {1}
dcache whether to use dequeue cache; it limits fairness but makes
possible to use HTB on very fast devices
r2q DRR quantums are computed as rate in Bps/r2q {10}
debug string of 16 numbers each 0-3 {0}

... class add ... htb rate R1 burst B1 [prio P] [slot S] [pslot PS]
[ceil R2] [cburst B2] [gated]
rate rate allocated to this class (class can still borrow)
burst max bytes burst which can be accumulated during idle period {computed}
ceil definite upper class rate (no borrows) {rate}
cburst burst but for ceil {computed}
mtu max packet size {1600}
prio priority of leaf; lower are served first {0}
inject distance to parent we inject bandwidth to {100}
+ tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
RTNETLINK answers: Invalid argument
+ tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
RTNETLINK answers: Invalid argument
+ tc qdisc add dev eth0 parent 1:30 handle 30: sfq perturb 10
RTNETLINK answers: Invalid argument
+ tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0x
ff flowid 1:10
+ tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip protocol 1
0xff flowid 1:10
+ tc filter add dev eth0 parent 1: protocol ip prio 10 u32 match ip protocol 6 0
xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 0xff at 3
3 flowid 1:10
+ tc filter add dev eth0 parent 1: protocol ip prio 18 u32 match ip dst 0.0.0.0/
0 flowid 1:20
+ tc qdisc add dev eth0 handle ffff: ingress
+ tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip src 0.0.0
.0/0 police rate 640kbit burst 10k drop flowid :1

--------
And here is my "lsmod"

barricade: -root-
# lsmod
Module Pages Used by
sch_csz 3436 0 (unused)
sch_cbq 11608 0
sch_teql 3180 0 (unused)
sch_dsmark 3608 0 (unused)
sch_gred 4288 0 (unused)
cls_u32 4256 3
cls_tcindex 3812 0 (unused)
cls_route 3876 0 (unused)
cls_fw 2108 0 (unused)
sch_prio 2144 0 (unused)
sch_ingress 1276 1
sch_htb 12032 1
ip_nat_irc 2400 0 (unused)
ip_nat_ftp 3008 0 (unused)
ip_conntrack_irc 3104 1
ip_conntrack_ftp 3840 1
tulip 37024 1
3c59x 24752 2
ide-probe-mod 7520 0
ide-disk 6560 1
ide-mod 50948 1 [ide-probe-mod ide-disk]

Jacques Nilo wrote:

Le Lundi 30 D�cembre 2002 19:03, Bryan T. Schmidt a �crit :

Howdy...

I finally got to installing wondershaper ... I cannot figure out what
kernel modules I need, and can't find the jnilos/netsched directory
(where? leaf.sourceforge.net?).
Mind clarifying a bit?

To find a given module and its possible depencies you should look through the Bering kernel module.dep file available here:
http://leaf.sourceforge.net/devel/jnilo/bering/latest/modules/2.4.18/

Bering 1.0-stable is provided with a 2.4.18 kernel patched for htb2 support.
Available here:
http://leaf.sf.net/devel/jnilo/bering/latest/modules/2.4.18/kernel/net/sched/sch_htb.o
Then you need the corresponding tc.lrp
http://leaf.sourceforge.net/devel/jnilo/bering/latest/packages/tc.lrp

Jacques



--


Bryan T. Schmidt
Systems/Network Administrator
Profitool Inc.

[EMAIL PROTECTED]





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to