Skip to contentSkip to conversation

HTB is losing packets ?

LARTC Dumitrache Ionut 2 participants 5 messages Oct 28, 2004

lore
Share & tools
lore
#0 lore raw

Hello all,

I have using htb for last 10-12 months to manage the bandwidth share.
Until last month everything was ok, but now after a kernel upgrade (from 2.4.20 to 2.4.26 because a kernel bug that generate a oops) the Linux router is droping packets. It is weird because the "tc -s class ls dev eth1" (in the class I monitor) reports no packet drop, the "tc -s qdisc ls dev eth1" reports no packet drop (in the qdisc attached to class I monitor) and even the "ifconfig" reports no packet drop.
My htb configuration consist of more than 150 classes with rates from 1.5
kbps to 64 kbps and ceils from 8 kbps to 170 kbps. Every class have a sfq qdisc attached. The total bandwidth is 2 Mbps. All clases/qdisc are created using Stef Coene's QoS scripts. My hardware is a Dell PIV 2GHz with 512MB RAM and I use 2 eepro100 (Intel 82555 rev4) nics.
The same problem appear with 2.4.24, 2.6.8 kernels and with rtl8139 nics
and all cables and switch ports changed.

Thanks.

--
TIMnet webmail (webmail.tim.ro)

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

#1 lore raw

Well, similar things happened on a machine with 2.4.26, with about 300 classes (for 150 users with different cir/mir for metro/extern). I remade the classes and i applyed fw filters instead of u32, and now it works very well on 2.4.26.

Quoted 27 lines · Dumitrache Ionut

Hello all,

I have using htb for last 10-12 months to manage the bandwidth share.
Until last month everything was ok, but now after a kernel upgrade (from 2.4.20 to 2.4.26 because a kernel bug that generate a oops) the Linux router is droping packets. It is weird because the "tc -s class ls dev eth1" (in the class I monitor) reports no packet drop, the "tc -s qdisc ls dev eth1" reports no packet drop (in the qdisc attached to class I monitor) and even the "ifconfig" reports no packet drop.
My htb configuration consist of more than 150 classes with rates from 1.5
kbps to 64 kbps and ceils from 8 kbps to 170 kbps. Every class have a sfq qdisc attached. The total bandwidth is 2 Mbps. All clases/qdisc are created using Stef Coene's QoS scripts. My hardware is a Dell PIV 2GHz with 512MB RAM and I use 2 eepro100 (Intel 82555 rev4) nics.
The same problem appear with 2.4.24, 2.6.8 kernels and with rtl8139 nics
and all cables and switch ports changed.

Thanks.

--
TIMnet webmail (webmail.tim.ro)

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

Signature · 4 lines
Bla bla
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Dumitrache Ionut

I have more than 600 classes, 4 classes per each client (down/up for both metro/extern). I can't be sure if my problem got solved because i switched to fw or because the htb trees got a little changed, i can only say it works like a charm, for about 30mbit parent class, mipclasses, 1700 routes written by bgp. The system is load at 20% usually, and sometimes more when the rrdtool is doing his job. It is true the machine is an Intel 3G with dual thread hehe :)

Quoted 10 lines · Dumitrache Ionut

Hello,

Thanks for the quick response George. I will switch to fw filters. I
know, there are many advantages, but are the fw filters ok for massive classifing ? How many classes and how much bandwidth have you ?

Thanks again,
Ionut

Signature · 4 lines
Bla bla
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/