Skip to contentSkip to conversation

assertion failed with HTB

LARTC frip 3 participants 3 messages May 24, 2002 – May 25, 2002

lore
Share & tools
lore

frip

author
#0 lore raw

Hello,

I've built my 2.4.17 with HTB in order to control outgoing traffic for p2p protocols.

Everything seems to be ok but I'm getting this error message in the /var/log/messages:

May 25 00:31:25 plomboire kernel: KERNEL: assertion (delay > 0 && delay

< 5000000) failed at sch_htb.c(416):htb_add_to_wait_tree

Here is my starting script:

tc=tc.htb
if=ppp0

$tc qdisc del dev $if root

$tc qdisc add dev $if root handle 1: htb default 12

AC="$tc class add dev $if parent"

# root class
$AC 1:   classid 1:1   htb rate 120kbit ceil 120kbit
# p2p class
$AC 1:1  classid 1:10  htb rate 30kbit  ceil 40kbit
# p2p edk class
$AC 1:10 classid 1:110 htb rate 20kbit  ceil 25kbit
# p2p dc class
$AC 1:10 classid 1:120 htb rate 20kbit ceil 25kbit
# default class
$AC 1:1  classid 1:12  htb rate 120kbit ceil 120kbit
# outgoing edk
$tc filter add dev $if protocol ip parent 1:0 prio 1 u32 match ip dport
4662 0xffff flowid 1:110
# outgoing dc
$tc filter add dev $if protocol ip parent 1:0 prio 1 u32 match ip dport
412 0xffff flowid 1:120

$tc qdisc add dev $if parent 1:110 handle 10: pfifo limit 5 $tc qdisc add dev $if parent 1:120 handle 20: pfifo limit 5 $tc qdisc add dev $if parent 1:12 handle 30: tbf rate 120kbit latency 50ms burst 1500

Any idea?

TIA!

Frip'
[email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Hallo!

Quoted 2 lines · frip
May 25 00:31:25 plomboire kernel: KERNEL: assertion (delay > 0 &&

delay < 5000000) failed at sch_htb.c(416):htb_add_to_wait_tree

Devik has released a Patch to hopefully get this fixed. Look for the mail with the subject "[LARTC] HTB: suspicious_delay quick patch and explanation" from 05.22.2002 by devik.

Greetings, Nils

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to frip

Also you should upgrade to HTB 3.5 before using that patch. devik

Quoted 10 lines · Nils Lichtenfeld

Hallo!

Quoted 2 lines · frip
May 25 00:31:25 plomboire kernel: KERNEL: assertion (delay > 0 &&

delay < 5000000) failed at sch_htb.c(416):htb_add_to_wait_tree

Devik has released a Patch to hopefully get this fixed. Look for the mail with the subject "[LARTC] HTB: suspicious_delay quick patch and explanation" from 05.22.2002 by devik.

Quoted 7 lines

Greetings, Nils

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/