I seem to have a problem with HTB
Hello,
I have compiled HTB into kernel 2.4.16 and set up simple traffic shaping just to figure how it works. My init script looks as follows:
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1: htb default 30 tceth0="tc class add dev eth1"
$tceth0 parent 1: classid 1:1 htb rate 128kbit burst 2k $tceth0 parent 1:1 classid 1:10 htb rate 128kbit burst 2k $tceth0 parent 1:1 classid 1:20 htb rate 64kbit ceil 96kbit burst 2k $tceth0 parent 1:1 classid 1:30 htb rate 1kbit ceil 96kbit burst 2k tcqdisc="tc qdisc add dev"
$tcqdisc eth1 parent 1:10 handle 10: sfq perturb 10 $tcqdisc eth1 parent 1:20 handle 20: sfq perturb 10 $tcqdisc eth1 parent 1:30 handle 30: sfq perturb 10 u32="tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32" $u32 match ip protocol 1 0xff flowid 1:10
$u32 match ip sport 22 0xffff flowid 1:10
$u32 match ip sport 119 0xffff flowid 1:10
$u32 match ip sport 80 0xffff flowid 1:20
$u32 match ip sport 110 0xffff flowid 1:20
- Pretty much the example script from Advanced Routing HowTo. I have Internet on eth0 and LAN via NAT on eth1.
The problem is that after appx. 6 hours or so the local network starts behaving strange - either it doesn't work at all or just packets from certain classes don't go through the NAT and get dropped. In syslog I have found following entries:
Dec 13 09:33:25 mail kernel: HTB delay 224640 > 5sec Dec 13 09:33:27 mail kernel: HTB delay 224474 > 5sec Dec 13 09:33:29 mail kernel: HTB delay 224272 > 5sec Dec 13 09:33:32 mail kernel: HTB delay 223977 > 5sec Dec 13 09:33:32 mail kernel: HTB delay 223973 > 5sec Dec 13 09:33:37 mail kernel: HTB delay 223473 > 5sec Dec 13 09:33:38 mail kernel: HTB delay 223377 > 5sec Dec 13 09:33:38 mail kernel: HTB delay 223373 > 5sec
There is many more of them, they start to appear just at the time when the network starts dying.
Any ideas what is wrong pretty please ;) ??
Regards,
Leszek
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 5 lines · Leszek Olszewski
behaving strange - either it doesn't work at all or just packets from certain classes don't go through the NAT and get dropped. In syslog I have found following entries:
Dec 13 09:33:25 mail kernel: HTB delay 224640 > 5sec
Try a newer HTB patch, it fixes this problem.
Regards,
bert
Signature · 8 lines
http://www.PowerDNS.com Versatile DNS Software & Services Trilab The Technology People Netherlabs BV / Rent-a-Nerd.nl - Nerd Available - 'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Hi Bert,
Quoted 3 lines
Quoted 1 line
Dec 13 09:33:25 mail kernel: HTB delay 224640 > 5secTry a newer HTB patch, it fixes this problem.
what is newer? I'm currently experiencing the same problem on a SMP box, kernel 2.4.13 patched with the 39085 bytes htb_2.4.14.diff, HZ set to 1024.
tc qdisc add dev eth0 root handle 1: htb default 3
tc class add dev eth0 parent 1: classid 1:1 htb rate 10Mbit burst 10kB tc qdisc add dev eth0 parent 1:1 sfq perturb 10
tc class add dev eth0 parent 1: classid 1:3 htb rate 90Mbit burst 90kB
Whenever the overlimit for 1:1 kicks in, "HTB delay > 5sec" messages appear and traffic stalls immediately. Any ideas?
Thanks, Stefan
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 12 lines · Stefan Rompf
Hi Bert,
Quoted 3 lines
Quoted 1 line
Dec 13 09:33:25 mail kernel: HTB delay 224640 > 5secTry a newer HTB patch, it fixes this problem.
what is newer? I'm currently experiencing the same problem on a SMP box, kernel 2.4.13 patched with the 39085 bytes htb_2.4.14.diff, HZ set to 1024.
tc qdisc add dev eth0 root handle 1: htb default 3
Quoted 8 lines
tc class add dev eth0 parent 1: classid 1:1 htb rate 10Mbit burst 10kB tc qdisc add dev eth0 parent 1:1 sfq perturb 10
tc class add dev eth0 parent 1: classid 1:3 htb rate 90Mbit burst 90kBWhenever the overlimit for 1:1 kicks in, "HTB delay > 5sec" messages appear and traffic stalls immediately. Any ideas?
Thanks, Stefan
Yes, I have the same question.
I downloaded the most current patch from Devik's site, patched the kernel, compiled it and again the same problem occurs. Even more, it occurs on a link with virtualy no traffic so there is no overlimit packets at all.
Any clue anyone?
Regards,
Leszek
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Quoted 1 line
Quoted 1 line
Try a newer HTB patch, it fixes this problem.
I haven't found any newer..
Quoted 2 lines
what is newer? I'm currently experiencing the same problem on a SMP
box,
Quoted 11 lines
kernel 2.4.13 patched with the 39085 bytes htb_2.4.14.diff, HZ set to 1024.
tc qdisc add dev eth0 root handle 1: htb default 3
tc class add dev eth0 parent 1: classid 1:1 htb rate 10Mbit burst 10kB tc qdisc add dev eth0 parent 1:1 sfq perturb 10
tc class add dev eth0 parent 1: classid 1:3 htb rate 90Mbit burst 90kBWhenever the overlimit for 1:1 kicks in, "HTB delay > 5sec" messages appear and traffic stalls immediately. Any ideas?
I used to have this problem too. I found out that the parent burst was set lower than its children burst. When I increased the parent burst, I didn't receive more of these messages...
I'm not 100% sure if I've done the right decision, but it solved the problem.
Sincerely Patrik
Quoted 3 lines · Patrik
Quoted 1 line
Quoted 1 line
Try a newer HTB patch, it fixes this problem.
I haven't found any newer..
Ok - Devik is a bit quiet right now, I think he is busy setting up his internet connection. When he's back he'll probably help out.
Regards,
bert.
Signature · 8 lines
http://www.PowerDNS.com Versatile DNS Software & Services Trilab The Technology People Netherlabs BV / Rent-a-Nerd.nl - Nerd Available - 'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
Yes yes yes .. it all falls at me. I've done big bugfix release but because my compiled kernels stopped to work I was nt ablr to test nre patch and thus I didn't released it yet.
For all, there is now hotfix at my page. devik
Quoted 37 lines · Leszek Olszewski
Quoted 12 lines · Stefan Rompf
Hi Bert,
Quoted 3 lines
Quoted 1 line
Dec 13 09:33:25 mail kernel: HTB delay 224640 > 5secTry a newer HTB patch, it fixes this problem.
what is newer? I'm currently experiencing the same problem on a SMP box, kernel 2.4.13 patched with the 39085 bytes htb_2.4.14.diff, HZ set to 1024.
tc qdisc add dev eth0 root handle 1: htb default 3
Quoted 8 lines
tc class add dev eth0 parent 1: classid 1:1 htb rate 10Mbit burst 10kB tc qdisc add dev eth0 parent 1:1 sfq perturb 10
tc class add dev eth0 parent 1: classid 1:3 htb rate 90Mbit burst 90kBWhenever the overlimit for 1:1 kicks in, "HTB delay > 5sec" messages appear and traffic stalls immediately. Any ideas?
Thanks, Stefan
Yes, I have the same question.
I downloaded the most current patch from Devik's site, patched the kernel, compiled it and again the same problem occurs. Even more, it occurs on a link with virtualy no traffic so there is no overlimit packets at all.
Any clue anyone?
Regards,
Leszek
Quoted 5 lines
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/