Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] Re: HTB 3.13 please help
@ 2003-01-23  0:19 mjoachimiak
  2003-01-25  2:12 ` mjoachimiak
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mjoachimiak @ 2003-01-23  0:19 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 4966 bytes --]

I've attached outputs for eth0 and eth1.
I was trying to get this script running. I've added one class for my NATed
BOX, and it helped. Shaping was stable almost one day but then i added "prio
0" to eth0 filters and prio 0 for eth1 filters it has braken. So i removed
every "prio 0" and reboot the box but it didnt helped :(.
I've noticed that when the traffic is not much (14 hosts from 50 are up)
tc/htb works very well.
If you want new version of my script say a word.
----- Original Message ----- 
From: "devik" <devik@cdi.cz>
To: <mjoachimiak@poczta.onet.pl>
Sent: Thursday, July 22, 2004 3:48 PM
Subject: Re: HTB 3.13 please help


> I need
> tc -s -d class show dev xxx
> output during that non-working period. 3.6 is older than 3.13.
>
> -------------------------------
>     Martin Devera aka devik
> Linux kernel QoS/HTB maintainer
>   http://luxik.cdi.cz/~devik/
>
> On Wed, 21 Jul 2004 mjoachimiak@poczta.onet.pl wrote:
>
> > Thanks for your reply. I've recent put my problem on lartc list. I'm
using
> > htb 3.13 in 2-4-25smp.
> > I wonder if upgrade to 3.6 will help? Could you be so kind and take a
look
> > at it. I'll be grateful.
> > If you have no time for me i'll understand and try to resolve it for
myself.
> > Thanks.
> >
> > Hello everybody!
> > Since week i dig lists and www and can't find solution for my problem.
> > I'm using HTB 3.13 kernel 2-4-25 smp iptables 1.2.9.
> > I've got situation like this:
> >
> > LAN------Linux Box(routing only)------- Linux Box
> > (HTB)--------------Hardware Router(say:HD)------Internet
> > When I start HTB it takes about 5 min. to start working and it works...
> > within this 5min starting i can't ping HD and after about 5min I start
> > pinging. It works like this for cuple of hours, then something strange
is
> > happening. Ping stops, www doesn't work but radio (36kbps) (from
clients)
> > works. There is no ping at all for about 1min and it starts pinging for
> > about 2-3min and it stops for 1-2min and so on.....
> > When I stop HTB ping starts. It's look like HTB is filled to much(sorry
for
> > my english :/)
> > All my children classes rate doesn't exceeds root classes. I have 50
classes
> > on 900kbit-10kbit(for default class) - downstream and 800-10kbit(for
> > default)  up.
> > I shape bandwidth matching ip. r2q is set to 1 . no erros during doing
shape
> > script.
> > I'm attaching this script
> > in ip1 is  file where are written ip's for C classes.
> >
> > I'm including my script.
> > ---------------------------------------------------cut
> >
here -----------------------------------------------------------------------
> > ------------
> > #!/bin/bash
> > #x=$[100/20]
> > #echo "$1" > /skrytpy/status
> > rxmax=900 #WAN max transfer -down (physically it is 960kbit/960kbit)
> > kbit=kbit
> > rxmaxluser=250
> > txmax=800 #WAN max transfer - up
> > txmaxluser=100
> > #counting users
> > # ip1 file is like this:
> > # 11 #Somebody
> > # 23 #Somebody II
> > #EOF
> > licznik=0
> > for   x in $(awk '{ print $1 }' /skrytpy/ip1); do
> > licznik=$[$licznik+1]
> > done
> >
> >
> > #Server
> > licznik=$[$licznik+1]
> > #plus router
> > licznik=$[$licznik+1]
> >
> > echo number of users to $licznik
> > #counting rate
> > rx1=$[$rxmax-10]
> > tx1=$[$txmax-10] # dla klasy domyslnej
> > rxmin=$[$rx1/$licznik]
> > txmin=$[$tx1/$licznik]
> > echo rx $rxmin tx $txmin
> > #echo $rxmin
> > #root classes
> > #rx
> > tc qdisc del root dev eth1
> > tc qdisc add dev eth1 root handle 1:0 htb r2q 1 default 2
> > tc class add dev eth1 parent 1:0 classid 1:1 htb rate $rxmax$kbit ceil
> > $rxmax$kbit
> > #tx
> > tc qdisc del root dev eth0
> > tc qdisc add dev eth0 root handle 2:0 htb r2q 1 default 4
> > tc class add dev eth0 parent 2:0 classid 2:1 htb rate $txmax$kbit ceil
> > $txmax$kbit
> > #r="$rxmax$kbit"
> > #default classes
> > #rx
> > tc class add dev eth1 parent 1:1 classid 1:2 htb rate 10kbit ceil 10kbit
> > #tx
> > tc class add dev eth0 parent 2:1 classid 2:4 htb rate 10kbit ceil 10kbit

> > #siec 1.0
> > siec=1
> > for ip in $(awk '{ print $1 }' /skrytpy/ip1); do
> > echo -n "$ip "
> > #rx
> > tc class add dev eth1 parent 1:1 classid 1:$ip htb rate $rxmin$kbit ceil
> > $rxmaxluser$kbit
> > tc filter add dev eth1 protocol ip parent 1:0 u32 match ip dst
> > 192.168.$siec.$ip flowid 1:$ip
> > tc qdisc add dev eth1 parent 1:$ip handle $ip:0 sfq perturb 10
> > #tx
> > #marking packets
> > iptables -t mangle -A MYSHAPER-OUT -p tcp -s 192.168.$siec.$ip -j
> > MARK --set-mark $ip
> > #tc
> > tc class add dev eth0 parent 2:1 classid 2:$ip htb rate $txmin$kbit ceil
> > $txmaxluser$kbit
> > #filtering by mark
> > tc filter add dev eth0 protocol ip preference 1 parent 2:0 handle $ip fw
> > flowid 2:$ip
> > tc qdisc add dev eth0 parent 2:$ip handle $ip:1 sfq perturb 10
> > done
> > echo ""
> >
> > --------------------------------------------------------------------cut
> > here ------------------------------------------------------------------
> >
> >
> >
>

[-- Attachment #2: eth1_tcclass.txt --]
[-- Type: text/plain, Size: 13406 bytes --]

#this is tc class -s -d show dev eth1
class htb 1:11 parent 1:1 leaf 11: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:22 parent 1:1 leaf 22: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:55 parent 1:1 leaf 55: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:99 parent 1:1 leaf 99: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:33 parent 1:1 leaf 33: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:44 parent 1:1 leaf 44: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:189 parent 1:1 leaf 189: prio 0 quantum 2176 rate 17Kbit ceil 128Kbit burst 1620b/8 mpu 0b cburst 1762b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 88149

class htb 1:1 root rate 900Kbit ceil 900Kbit burst 2751b/8 mpu 0b cburst 2751b/8 mpu 0b level 7
 Sent 1187353 bytes 1867 pkts (dropped 0, overlimits 0)
 rate 2505bps 13pps
 lended: 806 borrowed: 0 giants: 0
 tokens: 19229 ctokens: 19229

class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:23 parent 1:1 leaf 23: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:32 parent 1:1 leaf 32: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:54 parent 1:1 leaf 54: prio 0 quantum 2176 rate 17Kbit ceil 64Kbit burst 1620b/8 mpu 0b cburst 1680b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 168099

class htb 1:2 parent 1:1 prio 0 quantum 1280 rate 10Kbit ceil 10Kbit burst 1611b/8 mpu 0b cburst 1611b/8 mpu 0b level 0
 Sent 4186 bytes 54 pkts (dropped 0, overlimits 0)
 rate 1bps
 lended: 54 borrowed: 0 giants: 0
 tokens: 1006080 ctokens: 1006080

class htb 1:20 parent 1:1 leaf 20: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:64 parent 1:1 leaf 64: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:31 parent 1:1 leaf 31: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 814 bytes 14 pkts (dropped 0, overlimits 0)
 rate 4bps
 lended: 14 borrowed: 0 giants: 0
 tokens: 561714 ctokens: 47924

class htb 1:57 parent 1:1 leaf 57: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:12 parent 1:1 leaf 12: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 63905 bytes 148 pkts (dropped 0, overlimits 0)
 rate 499bps 1pps
 lended: 130 borrowed: 18 giants: 0
 tokens: 288000 ctokens: 27239

class htb 1:30 parent 1:1 leaf 30: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:56 parent 1:1 leaf 56: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:131 parent 1:1 leaf 131: prio 0 quantum 2176 rate 17Kbit ceil 400Kbit burst 1620b/8 mpu 0b cburst 2111b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 33792

class htb 1:3 parent 1:1 leaf 3: prio 0 quantum 2176 rate 17Kbit ceil 200Kbit burst 1620b/8 mpu 0b cburst 1855b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 59392

class htb 1:15 parent 1:1 leaf 15: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 25529 bytes 286 pkts (dropped 0, overlimits 0)
 rate 367bps 4pps
 lended: 286 borrowed: 0 giants: 0
 tokens: 592189 ctokens: 47924

class htb 1:26 parent 1:1 leaf 26: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:37 parent 1:1 leaf 37: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:40 parent 1:1 leaf 40: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 2373 bytes 22 pkts (dropped 0, overlimits 0)
 rate 8bps
 lended: 22 borrowed: 0 giants: 0
 tokens: 553522 ctokens: 47924

class htb 1:150 parent 1:1 leaf 150: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:27 parent 1:1 leaf 27: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 4967 bytes 59 pkts (dropped 0, overlimits 0)
 rate 52bps
 lended: 59 borrowed: 0 giants: 0
 tokens: 592189 ctokens: 47924

class htb 1:36 parent 1:1 leaf 36: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:41 parent 1:1 leaf 41: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:50 parent 1:1 leaf 50: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:151 parent 1:1 leaf 151: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:137 parent 1:1 leaf 137: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:140 parent 1:1 leaf 140: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 3994 bytes 49 pkts (dropped 0, overlimits 0)
 rate 32bps
 lended: 49 borrowed: 0 giants: 0
 tokens: 583153 ctokens: 47309

class htb 1:17 parent 1:1 leaf 17: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:24 parent 1:1 leaf 24: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:35 parent 1:1 leaf 35: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:42 parent 1:1 leaf 42: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:152 parent 1:1 leaf 152: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 1169 bytes 16 pkts (dropped 0, overlimits 0)
 rate 5bps
 lended: 16 borrowed: 0 giants: 0
 tokens: 529550 ctokens: 47924

class htb 1:53 parent 1:1 leaf 53: prio 0 quantum 2176 rate 17Kbit ceil 128Kbit burst 1620b/8 mpu 0b cburst 1762b/8 mpu 0b level 0
 Sent 1130 bytes 15 pkts (dropped 0, overlimits 0)
 rate 11bps
 lended: 15 borrowed: 0 giants: 0
 tokens: 563397 ctokens: 82150

class htb 1:25 parent 1:1 leaf 25: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 895 bytes 13 pkts (dropped 0, overlimits 0)
 rate 27bps
 lended: 13 borrowed: 0 giants: 0
 tokens: 556047 ctokens: 45466

class htb 1:34 parent 1:1 leaf 34: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:61 parent 1:1 leaf 61: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:8 parent 1:1 leaf 8: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 1078349 bytes 1190 pkts (dropped 0, overlimits 0)
 rate 2268bps 8pps
 lended: 402 borrowed: 788 giants: 0
 tokens: 592189 ctokens: 47924

class htb 1:80 parent 1:1 leaf 80: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:9 parent 1:1 leaf 9: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:81 parent 1:1 leaf 81: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:28 parent 1:1 leaf 28: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:39 parent 1:1 leaf 39: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:82 parent 1:1 leaf 82: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:138 parent 1:1 leaf 138: prio 0 quantum 2176 rate 17Kbit ceil 400Kbit burst 1620b/8 mpu 0b cburst 2111b/8 mpu 0b level 0
 Sent 42 bytes 1 pkts (dropped 0, overlimits 0)
 lended: 1 borrowed: 0 giants: 0
 tokens: 595200 ctokens: 33153

class htb 1:59 parent 1:1 leaf 59: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

class htb 1:58 parent 1:1 leaf 58: prio 0 quantum 2176 rate 17Kbit ceil 250Kbit burst 1620b/8 mpu 0b cburst 1919b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 610258 ctokens: 49152

[-- Attachment #3: eth0_tcclass.txt --]
[-- Type: text/plain, Size: 13617 bytes --]

#this is tc show class -s -d dev eth0
class htb 2:11 parent 2:1 leaf 11: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:22 parent 2:1 leaf 22: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:55 parent 2:1 leaf 55: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 1380 bytes 10 pkts (dropped 0, overlimits 0)
 rate 10bps
 lended: 10 borrowed: 0 giants: 0
 tokens: 670293 ctokens: 107520

class htb 2:99 parent 2:1 leaf 99: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:33 parent 2:1 leaf 33: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:44 parent 2:1 leaf 44: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:189 parent 2:1 leaf 189: prio 0 quantum 1920 rate 15Kbit ceil 64Kbit burst 1618b/8 mpu 0b cburst 1680b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 168099

class htb 2:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst 2623b/8 mpu 0b level 7
 Sent 731542 bytes 1555 pkts (dropped 0, overlimits 0)
 rate 12334bps 24pps
 lended: 614 borrowed: 0 giants: 0
 tokens: -3198 ctokens: -3198

class htb 2:10 parent 2:1 leaf 10: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:23 parent 2:1 leaf 23: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:32 parent 2:1 leaf 32: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:54 parent 2:1 leaf 54: prio 0 quantum 1920 rate 15Kbit ceil 20Kbit burst 1618b/8 mpu 0b cburst 1624b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 519999

class htb 2:20 parent 2:1 leaf 20: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:64 parent 2:1 leaf 64: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:31 parent 2:1 leaf 31: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:57 parent 2:1 leaf 57: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:12 parent 2:1 leaf 12: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:30 parent 2:1 leaf 30: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 275 bytes 5 pkts (dropped 0, overlimits 0)
 rate 3bps
 lended: 5 borrowed: 0 giants: 0
 tokens: 670293 ctokens: 107520

burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 275 bytes 5 pkts (dropped 0, overlimits 0)
 rate 3bps
 lended: 5 borrowed: 0 giants: 0
 tokens: 670293 ctokens: 107520

class htb 2:56 parent 2:1 leaf 56: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:131 parent 2:1 leaf 131: prio 0 quantum 1920 rate 15Kbit ceil 256Kbit burst 1618b/8 mpu 0b cburst 1926b/8 mpu 0b level 0
 Sent 486 bytes 9 pkts (dropped 0, overlimits 0)
 rate 5bps
 lended: 9 borrowed: 0 giants: 0
 tokens: 670293 ctokens: 46975

class htb 2:3 parent 2:1 leaf 3: prio 0 quantum 1920 rate 15Kbit ceil 256Kbit burst 1618b/8 mpu 0b cburst 1926b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 48174

class htb 2:4 parent 2:1 prio 0 quantum 1280 rate 10Kbit ceil 10Kbit burst 1611b/8 mpu 0b cburst 1611b/8 mpu 0b level 0
 Sent 125966 bytes 920 pkts (dropped 0, overlimits 0)
 rate 1158bps 5pps backlog 530p
 lended: 390 borrowed: 0 giants: 0
 tokens: -1267200 ctokens: -1267200

class htb 2:15 parent 2:1 leaf 15: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 29386 bytes 291 pkts (dropped 0, overlimits 0)
 rate 389bps 4pps
 lended: 285 borrowed: 6 giants: 0
 tokens: 45653 ctokens: 13824

class htb 2:26 parent 2:1 leaf 26: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:37 parent 2:1 leaf 37: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:40 parent 2:1 leaf 40: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:150 parent 2:1 leaf 150: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:27 parent 2:1 leaf 27: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 3084 bytes 50 pkts (dropped 0, overlimits 0)
 rate 25bps
 lended: 50 borrowed: 0 giants: 0
 tokens: 666881 ctokens: 107008

class htb 2:36 parent 2:1 leaf 36: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:41 parent 2:1 leaf 41: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:50 parent 2:1 leaf 50: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:151 parent 2:1 leaf 151: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:137 parent 2:1 leaf 137: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:140 parent 2:1 leaf 140: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 645613 bytes 757 pkts (dropped 0, overlimits 0)
 rate 86Kbit 12pps backlog 26p
 lended: 123 borrowed: 608 giants: 0
 tokens: -858183 ctokens: -190976

class htb 2:17 parent 2:1 leaf 17: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:24 parent 2:1 leaf 24: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:35 parent 2:1 leaf 35: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:42 parent 2:1 leaf 42: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:152 parent 2:1 leaf 152: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:53 parent 2:1 leaf 53: prio 0 quantum 1920 rate 15Kbit ceil 64Kbit burst 1618b/8 mpu 0b cburst 1680b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 168099

class htb 2:25 parent 2:1 leaf 25: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 408 bytes 7 pkts (dropped 0, overlimits 0)
 rate 4bps
 lended: 7 borrowed: 0 giants: 0
 tokens: 584961 ctokens: 94720

class htb 2:34 parent 2:1 leaf 34: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:61 parent 2:1 leaf 61: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:8 parent 2:1 leaf 8: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:80 parent 2:1 leaf 80: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:9 parent 2:1 leaf 9: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:81 parent 2:1 leaf 81: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 6230 bytes 62 pkts (dropped 0, overlimits 0)
 rate 108bps
 lended: 62 borrowed: 0 giants: 0
 tokens: 670293 ctokens: 107520

class htb 2:28 parent 2:1 leaf 28: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:39 parent 2:1 leaf 39: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:82 parent 2:1 leaf 82: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:138 parent 2:1 leaf 138: prio 0 quantum 1920 rate 15Kbit ceil 256Kbit burst 1618b/8 mpu 0b cburst 1926b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 48174

class htb 2:59 parent 2:1 leaf 59: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:58 parent 2:1 leaf 58: prio 0 quantum 1920 rate 15Kbit ceil 100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Re: HTB 3.13 please help
  2003-01-23  0:19 [LARTC] Re: HTB 3.13 please help mjoachimiak
@ 2003-01-25  2:12 ` mjoachimiak
  2004-07-25  9:26 ` devik
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mjoachimiak @ 2003-01-25  2:12 UTC (permalink / raw)
  To: lartc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 6978 bytes --]

Yes I'm using smp kernel.
I thought that i make some error that i canot see so i decided to write my
classes using tcng this time.
Currently i'm shaping only outgoing traffic to my local network(using tcng)
and it seems to work (it work one day without errors).
Today i'm going to configure upload too.
The difference i could see at once is that there is no connection loss when
i'm starting htb.
----- Original Message ----- 
From: "devik" <devik@cdi.cz>
To: <mjoachimiak@poczta.onet.pl>
Cc: "lartc" <lartc@mailman.ds9a.nl>
Sent: Sunday, July 25, 2004 10:26 AM
Subject: Re: [LARTC] Re: HTB 3.13 please help


> From the stats is seems that no data are queued - as if nobody
> is sending them. You are using smp kernel, is your box SMP ?
> I haven't seen many smp+htb boxes thus there might be possibility
> of a bug...
> devik
>
> On Thu, 23 Jan 2003 mjoachimiak@poczta.onet.pl wrote:
>
> > I've attached outputs for eth0 and eth1.
> > I was trying to get this script running. I've added one class for my
NATed
> > BOX, and it helped. Shaping was stable almost one day but then i added
"prio
> > 0" to eth0 filters and prio 0 for eth1 filters it has braken. So i
removed
> > every "prio 0" and reboot the box but it didnt helped :(.
> > I've noticed that when the traffic is not much (14 hosts from 50 are up)
> > tc/htb works very well.
> > If you want new version of my script say a word.
> > ----- Original Message -----
> > From: "devik" <devik@cdi.cz>
> > To: <mjoachimiak@poczta.onet.pl>
> > Sent: Thursday, July 22, 2004 3:48 PM
> > Subject: Re: HTB 3.13 please help
> >
> >
> > > I need
> > > tc -s -d class show dev xxx
> > > output during that non-working period. 3.6 is older than 3.13.
> > >
> > > -------------------------------
> > >     Martin Devera aka devik
> > > Linux kernel QoS/HTB maintainer
> > >   http://luxik.cdi.cz/~devik/
> > >
> > > On Wed, 21 Jul 2004 mjoachimiak@poczta.onet.pl wrote:
> > >
> > > > Thanks for your reply. I've recent put my problem on lartc list. I'm
> > using
> > > > htb 3.13 in 2-4-25smp.
> > > > I wonder if upgrade to 3.6 will help? Could you be so kind and take
a
> > look
> > > > at it. I'll be grateful.
> > > > If you have no time for me i'll understand and try to resolve it for
> > myself.
> > > > Thanks.
> > > >
> > > > Hello everybody!
> > > > Since week i dig lists and www and can't find solution for my
problem.
> > > > I'm using HTB 3.13 kernel 2-4-25 smp iptables 1.2.9.
> > > > I've got situation like this:
> > > >
> > > > LAN------Linux Box(routing only)------- Linux Box
> > > > (HTB)--------------Hardware Router(say:HD)------Internet
> > > > When I start HTB it takes about 5 min. to start working and it
works...
> > > > within this 5min starting i can't ping HD and after about 5min I
start
> > > > pinging. It works like this for cuple of hours, then something
strange
> > is
> > > > happening. Ping stops, www doesn't work but radio (36kbps) (from
> > clients)
> > > > works. There is no ping at all for about 1min and it starts pinging
for
> > > > about 2-3min and it stops for 1-2min and so on.....
> > > > When I stop HTB ping starts. It's look like HTB is filled to
much(sorry
> > for
> > > > my english :/)
> > > > All my children classes rate doesn't exceeds root classes. I have 50
> > classes
> > > > on 900kbit-10kbit(for default class) - downstream and 800-10kbit(for
> > > > default)  up.
> > > > I shape bandwidth matching ip. r2q is set to 1 . no erros during
doing
> > shape
> > > > script.
> > > > I'm attaching this script
> > > > in ip1 is  file where are written ip's for C classes.
> > > >
> > > > I'm including my script.
> > > > ---------------------------------------------------cut
> > > >
> >
here -----------------------------------------------------------------------
> > > > ------------
> > > > #!/bin/bash
> > > > #x=$[100/20]
> > > > #echo "$1" > /skrytpy/status
> > > > rxmax0 #WAN max transfer -down (physically it is 960kbit/960kbit)
> > > > kbit=kbit
> > > > rxmaxluser%0
> > > > txmax€0 #WAN max transfer - up
> > > > txmaxluser\x100
> > > > #counting users
> > > > # ip1 file is like this:
> > > > # 11 #Somebody
> > > > # 23 #Somebody II
> > > > #EOF
> > > > licznik=0
> > > > for   x in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > > licznik=$[$licznik+1]
> > > > done
> > > >
> > > >
> > > > #Server
> > > > licznik=$[$licznik+1]
> > > > #plus router
> > > > licznik=$[$licznik+1]
> > > >
> > > > echo number of users to $licznik
> > > > #counting rate
> > > > rx1=$[$rxmax-10]
> > > > tx1=$[$txmax-10] # dla klasy domyslnej
> > > > rxmin=$[$rx1/$licznik]
> > > > txmin=$[$tx1/$licznik]
> > > > echo rx $rxmin tx $txmin
> > > > #echo $rxmin
> > > > #root classes
> > > > #rx
> > > > tc qdisc del root dev eth1
> > > > tc qdisc add dev eth1 root handle 1:0 htb r2q 1 default 2
> > > > tc class add dev eth1 parent 1:0 classid 1:1 htb rate $rxmax$kbit
ceil
> > > > $rxmax$kbit
> > > > #tx
> > > > tc qdisc del root dev eth0
> > > > tc qdisc add dev eth0 root handle 2:0 htb r2q 1 default 4
> > > > tc class add dev eth0 parent 2:0 classid 2:1 htb rate $txmax$kbit
ceil
> > > > $txmax$kbit
> > > > #r="$rxmax$kbit"
> > > > #default classes
> > > > #rx
> > > > tc class add dev eth1 parent 1:1 classid 1:2 htb rate 10kbit ceil
10kbit
> > > > #tx
> > > > tc class add dev eth0 parent 2:1 classid 2:4 htb rate 10kbit ceil
10kbit
> >
> > > > #siec 1.0
> > > > siec=1
> > > > for ip in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > > echo -n "$ip "
> > > > #rx
> > > > tc class add dev eth1 parent 1:1 classid 1:$ip htb rate $rxmin$kbit
ceil
> > > > $rxmaxluser$kbit
> > > > tc filter add dev eth1 protocol ip parent 1:0 u32 match ip dst
> > > > 192.168.$siec.$ip flowid 1:$ip
> > > > tc qdisc add dev eth1 parent 1:$ip handle $ip:0 sfq perturb 10
> > > > #tx
> > > > #marking packets
> > > > iptables -t mangle -A MYSHAPER-OUT -p tcp -s 192.168.$siec.$ip -j
> > > > MARK --set-mark $ip
> > > > #tc
> > > > tc class add dev eth0 parent 2:1 classid 2:$ip htb rate $txmin$kbit
ceil
> > > > $txmaxluser$kbit
> > > > #filtering by mark
> > > > tc filter add dev eth0 protocol ip preference 1 parent 2:0 handle
$ip fw
> > > > flowid 2:$ip
> > > > tc qdisc add dev eth0 parent 2:$ip handle $ip:1 sfq perturb 10
> > > > done
> > > > echo ""
> > > >
> > >
> --------------------------------------------------------------------cut
> > > >
here ------------------------------------------------------------------
> > > >
> > > >
> > > >
> > >
> >
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Re: HTB 3.13 please help
  2003-01-23  0:19 [LARTC] Re: HTB 3.13 please help mjoachimiak
  2003-01-25  2:12 ` mjoachimiak
@ 2004-07-25  9:26 ` devik
  2004-07-28 13:19 ` mjoachimiak
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: devik @ 2004-07-25  9:26 UTC (permalink / raw)
  To: lartc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 5843 bytes --]

From the stats is seems that no data are queued - as if nobody
is sending them. You are using smp kernel, is your box SMP ?
I haven't seen many smp+htb boxes thus there might be possibility
of a bug...
devik

On Thu, 23 Jan 2003 mjoachimiak@poczta.onet.pl wrote:

> I've attached outputs for eth0 and eth1.
> I was trying to get this script running. I've added one class for my NATed
> BOX, and it helped. Shaping was stable almost one day but then i added "prio
> 0" to eth0 filters and prio 0 for eth1 filters it has braken. So i removed
> every "prio 0" and reboot the box but it didnt helped :(.
> I've noticed that when the traffic is not much (14 hosts from 50 are up)
> tc/htb works very well.
> If you want new version of my script say a word.
> ----- Original Message -----
> From: "devik" <devik@cdi.cz>
> To: <mjoachimiak@poczta.onet.pl>
> Sent: Thursday, July 22, 2004 3:48 PM
> Subject: Re: HTB 3.13 please help
>
>
> > I need
> > tc -s -d class show dev xxx
> > output during that non-working period. 3.6 is older than 3.13.
> >
> > -------------------------------
> >     Martin Devera aka devik
> > Linux kernel QoS/HTB maintainer
> >   http://luxik.cdi.cz/~devik/
> >
> > On Wed, 21 Jul 2004 mjoachimiak@poczta.onet.pl wrote:
> >
> > > Thanks for your reply. I've recent put my problem on lartc list. I'm
> using
> > > htb 3.13 in 2-4-25smp.
> > > I wonder if upgrade to 3.6 will help? Could you be so kind and take a
> look
> > > at it. I'll be grateful.
> > > If you have no time for me i'll understand and try to resolve it for
> myself.
> > > Thanks.
> > >
> > > Hello everybody!
> > > Since week i dig lists and www and can't find solution for my problem.
> > > I'm using HTB 3.13 kernel 2-4-25 smp iptables 1.2.9.
> > > I've got situation like this:
> > >
> > > LAN------Linux Box(routing only)------- Linux Box
> > > (HTB)--------------Hardware Router(say:HD)------Internet
> > > When I start HTB it takes about 5 min. to start working and it works...
> > > within this 5min starting i can't ping HD and after about 5min I start
> > > pinging. It works like this for cuple of hours, then something strange
> is
> > > happening. Ping stops, www doesn't work but radio (36kbps) (from
> clients)
> > > works. There is no ping at all for about 1min and it starts pinging for
> > > about 2-3min and it stops for 1-2min and so on.....
> > > When I stop HTB ping starts. It's look like HTB is filled to much(sorry
> for
> > > my english :/)
> > > All my children classes rate doesn't exceeds root classes. I have 50
> classes
> > > on 900kbit-10kbit(for default class) - downstream and 800-10kbit(for
> > > default)  up.
> > > I shape bandwidth matching ip. r2q is set to 1 . no erros during doing
> shape
> > > script.
> > > I'm attaching this script
> > > in ip1 is  file where are written ip's for C classes.
> > >
> > > I'm including my script.
> > > ---------------------------------------------------cut
> > >
> here -----------------------------------------------------------------------
> > > ------------
> > > #!/bin/bash
> > > #x=$[100/20]
> > > #echo "$1" > /skrytpy/status
> > > rxmax0 #WAN max transfer -down (physically it is 960kbit/960kbit)
> > > kbit=kbit
> > > rxmaxluser%0
> > > txmax€0 #WAN max transfer - up
> > > txmaxluser\x100
> > > #counting users
> > > # ip1 file is like this:
> > > # 11 #Somebody
> > > # 23 #Somebody II
> > > #EOF
> > > licznik=0
> > > for   x in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > licznik=$[$licznik+1]
> > > done
> > >
> > >
> > > #Server
> > > licznik=$[$licznik+1]
> > > #plus router
> > > licznik=$[$licznik+1]
> > >
> > > echo number of users to $licznik
> > > #counting rate
> > > rx1=$[$rxmax-10]
> > > tx1=$[$txmax-10] # dla klasy domyslnej
> > > rxmin=$[$rx1/$licznik]
> > > txmin=$[$tx1/$licznik]
> > > echo rx $rxmin tx $txmin
> > > #echo $rxmin
> > > #root classes
> > > #rx
> > > tc qdisc del root dev eth1
> > > tc qdisc add dev eth1 root handle 1:0 htb r2q 1 default 2
> > > tc class add dev eth1 parent 1:0 classid 1:1 htb rate $rxmax$kbit ceil
> > > $rxmax$kbit
> > > #tx
> > > tc qdisc del root dev eth0
> > > tc qdisc add dev eth0 root handle 2:0 htb r2q 1 default 4
> > > tc class add dev eth0 parent 2:0 classid 2:1 htb rate $txmax$kbit ceil
> > > $txmax$kbit
> > > #r="$rxmax$kbit"
> > > #default classes
> > > #rx
> > > tc class add dev eth1 parent 1:1 classid 1:2 htb rate 10kbit ceil 10kbit
> > > #tx
> > > tc class add dev eth0 parent 2:1 classid 2:4 htb rate 10kbit ceil 10kbit
>
> > > #siec 1.0
> > > siec=1
> > > for ip in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > echo -n "$ip "
> > > #rx
> > > tc class add dev eth1 parent 1:1 classid 1:$ip htb rate $rxmin$kbit ceil
> > > $rxmaxluser$kbit
> > > tc filter add dev eth1 protocol ip parent 1:0 u32 match ip dst
> > > 192.168.$siec.$ip flowid 1:$ip
> > > tc qdisc add dev eth1 parent 1:$ip handle $ip:0 sfq perturb 10
> > > #tx
> > > #marking packets
> > > iptables -t mangle -A MYSHAPER-OUT -p tcp -s 192.168.$siec.$ip -j
> > > MARK --set-mark $ip
> > > #tc
> > > tc class add dev eth0 parent 2:1 classid 2:$ip htb rate $txmin$kbit ceil
> > > $txmaxluser$kbit
> > > #filtering by mark
> > > tc filter add dev eth0 protocol ip preference 1 parent 2:0 handle $ip fw
> > > flowid 2:$ip
> > > tc qdisc add dev eth0 parent 2:$ip handle $ip:1 sfq perturb 10
> > > done
> > > echo ""
> > >
> > > --------------------------------------------------------------------cut
> > > here ------------------------------------------------------------------
> > >
> > >
> > >
> >
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Re: HTB 3.13 please help
  2003-01-23  0:19 [LARTC] Re: HTB 3.13 please help mjoachimiak
  2003-01-25  2:12 ` mjoachimiak
  2004-07-25  9:26 ` devik
@ 2004-07-28 13:19 ` mjoachimiak
  2004-07-28 13:30 ` devik
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mjoachimiak @ 2004-07-28 13:19 UTC (permalink / raw)
  To: lartc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 10006 bytes --]

//Just to not forget eth0 is WAN and eth1 is LAN . The box is NATing my lan.
I configured tcng to shape both download and upload
and i got connection loss again.
Maybe it is my script fault or it is something bad with packets marking .
this is how i mark outgoing packets
iptables -t mangle -A MYSHAPER-OUT -p tcp -s 192.168.1.23 -j MARK --set-mark
$ip

and this part of my script which is intented to shape upload:
dev eth0 {
    egress {
    class (<$default>) if 1;
    htb ( r2q 1 ) {
    class ( rate 800kbps, ceil 800kbps ) {

//192.168.1.0-----------------------------------------------------------
        $ruter = class ( rate 15kbps, ceil 250kbps  ) { sfq( perturb 10secs,
quantum 1500Bytes ); } ;
  fw {

class $ruter on (23);
//ruter---------------------------------------------------------------------
----


//--------------------- fw
    }//fw
    }//main class
    }//htb
    }//egress
    }//eth0(none):/skrytpy#

and these are a bit of `tc -s -d class show dev eth0` prints while
connection loss after running my tcng script :

class htb 2:f parent 2:1 leaf 10: prio 0 quantum 1875 rate 1875bps ceil
15000bps burst 1617b/8 mpu 0b cburst 1749b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 706914 ctokens: 95572

class htb 2:1e parent 2:1 leaf 1f: prio 0 quantum 1875 rate 1875bps ceil
15000bps burst 1617b/8 mpu 0b cburst 1749b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 706914 ctokens: 95572

class htb 2:2d parent 2:1 leaf 2e: prio 0 quantum 1875 rate 1875bps ceil
15000bps burst 1617b/8 mpu 0b cburst 1749b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 706914 ctokens: 95572


> that is interesting. let me know then. other test might be to
> reboot with maxcpus=1 to mitigate smp related bugs.
>
> On Sat, 25 Jan 2003 mjoachimiak@poczta.onet.pl wrote:
>
> > Yes I'm using smp kernel.
> > I thought that i make some error that i canot see so i decided to write
my
> > classes using tcng this time.
> > Currently i'm shaping only outgoing traffic to my local network(using
tcng)
> > and it seems to work (it work one day without errors).
> > Today i'm going to configure upload too.
> > The difference i could see at once is that there is no connection loss
when
> > i'm starting htb.
> > ----- Original Message -----
> > From: "devik" <devik@cdi.cz>
> > To: <mjoachimiak@poczta.onet.pl>
> > Cc: "lartc" <lartc@mailman.ds9a.nl>
> > Sent: Sunday, July 25, 2004 10:26 AM
> > Subject: Re: [LARTC] Re: HTB 3.13 please help
> >
> >
> > > From the stats is seems that no data are queued - as if nobody
> > > is sending them. You are using smp kernel, is your box SMP ?
> > > I haven't seen many smp+htb boxes thus there might be possibility
> > > of a bug...
> > > devik
> > >
> > > On Thu, 23 Jan 2003 mjoachimiak@poczta.onet.pl wrote:
> > >
> > > > I've attached outputs for eth0 and eth1.
> > > > I was trying to get this script running. I've added one class for my
> > NATed
> > > > BOX, and it helped. Shaping was stable almost one day but then i
added
> > "prio
> > > > 0" to eth0 filters and prio 0 for eth1 filters it has braken. So i
> > removed
> > > > every "prio 0" and reboot the box but it didnt helped :(.
> > > > I've noticed that when the traffic is not much (14 hosts from 50 are
up)
> > > > tc/htb works very well.
> > > > If you want new version of my script say a word.
> > > > ----- Original Message -----
> > > > From: "devik" <devik@cdi.cz>
> > > > To: <mjoachimiak@poczta.onet.pl>
> > > > Sent: Thursday, July 22, 2004 3:48 PM
> > > > Subject: Re: HTB 3.13 please help
> > > >
> > > >
> > > > > I need
> > > > > tc -s -d class show dev xxx
> > > > > output during that non-working period. 3.6 is older than 3.13.
> > > > >
> > > > > -------------------------------
> > > > >     Martin Devera aka devik
> > > > > Linux kernel QoS/HTB maintainer
> > > > >   http://luxik.cdi.cz/~devik/
> > > > >
> > > > > On Wed, 21 Jul 2004 mjoachimiak@poczta.onet.pl wrote:
> > > > >
> > > > > > Thanks for your reply. I've recent put my problem on lartc list.
I'm
> > > > using
> > > > > > htb 3.13 in 2-4-25smp.
> > > > > > I wonder if upgrade to 3.6 will help? Could you be so kind and
take
> > a
> > > > look
> > > > > > at it. I'll be grateful.
> > > > > > If you have no time for me i'll understand and try to resolve it
for
> > > > myself.
> > > > > > Thanks.
> > > > > >
> > > > > > Hello everybody!
> > > > > > Since week i dig lists and www and can't find solution for my
> > problem.
> > > > > > I'm using HTB 3.13 kernel 2-4-25 smp iptables 1.2.9.
> > > > > > I've got situation like this:
> > > > > >
> > > > > > LAN------Linux Box(routing only)------- Linux Box
> > > > > > (HTB)--------------Hardware Router(say:HD)------Internet
> > > > > > When I start HTB it takes about 5 min. to start working and it
> > works...
> > > > > > within this 5min starting i can't ping HD and after about 5min I
> > start
> > > > > > pinging. It works like this for cuple of hours, then something
> > strange
> > > > is
> > > > > > happening. Ping stops, www doesn't work but radio (36kbps) (from
> > > > clients)
> > > > > > works. There is no ping at all for about 1min and it starts
pinging
> > for
> > > > > > about 2-3min and it stops for 1-2min and so on.....
> > > > > > When I stop HTB ping starts. It's look like HTB is filled to
> > much(sorry
> > > > for
> > > > > > my english :/)
> > > > > > All my children classes rate doesn't exceeds root classes. I
have 50
> > > > classes
> > > > > > on 900kbit-10kbit(for default class) - downstream and
800-10kbit(for
> > > > > > default)  up.
> > > > > > I shape bandwidth matching ip. r2q is set to 1 . no erros during
> > doing
> > > > shape
> > > > > > script.
> > > > > > I'm attaching this script
> > > > > > in ip1 is  file where are written ip's for C classes.
> > > > > >
> > > > > > I'm including my script.
> > > > > > ---------------------------------------------------cut
> > > > > >
> > > >
> >
here -----------------------------------------------------------------------
> > > > > > ------------
> > > > > > #!/bin/bash
> > > > > > #x=$[100/20]
> > > > > > #echo "$1" > /skrytpy/status
> > > > > > rxmax0 #WAN max transfer -down (physically it is
960kbit/960kbit)
> > > > > > kbit=kbit
> > > > > > rxmaxluser%0
> > > > > > txmax€0 #WAN max transfer - up
> > > > > > txmaxluser\x100
> > > > > > #counting users
> > > > > > # ip1 file is like this:
> > > > > > # 11 #Somebody
> > > > > > # 23 #Somebody II
> > > > > > #EOF
> > > > > > licznik=0
> > > > > > for   x in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > > > > licznik=$[$licznik+1]
> > > > > > done
> > > > > >
> > > > > >
> > > > > > #Server
> > > > > > licznik=$[$licznik+1]
> > > > > > #plus router
> > > > > > licznik=$[$licznik+1]
> > > > > >
> > > > > > echo number of users to $licznik
> > > > > > #counting rate
> > > > > > rx1=$[$rxmax-10]
> > > > > > tx1=$[$txmax-10] # dla klasy domyslnej
> > > > > > rxmin=$[$rx1/$licznik]
> > > > > > txmin=$[$tx1/$licznik]
> > > > > > echo rx $rxmin tx $txmin
> > > > > > #echo $rxmin
> > > > > > #root classes
> > > > > > #rx
> > > > > > tc qdisc del root dev eth1
> > > > > > tc qdisc add dev eth1 root handle 1:0 htb r2q 1 default 2
> > > > > > tc class add dev eth1 parent 1:0 classid 1:1 htb rate
$rxmax$kbit
> > ceil
> > > > > > $rxmax$kbit
> > > > > > #tx
> > > > > > tc qdisc del root dev eth0
> > > > > > tc qdisc add dev eth0 root handle 2:0 htb r2q 1 default 4
> > > > > > tc class add dev eth0 parent 2:0 classid 2:1 htb rate
$txmax$kbit
> > ceil
> > > > > > $txmax$kbit
> > > > > > #r="$rxmax$kbit"
> > > > > > #default classes
> > > > > > #rx
> > > > > > tc class add dev eth1 parent 1:1 classid 1:2 htb rate 10kbit
ceil
> > 10kbit
> > > > > > #tx
> > > > > > tc class add dev eth0 parent 2:1 classid 2:4 htb rate 10kbit
ceil
> > 10kbit
> > > >
> > > > > > #siec 1.0
> > > > > > siec=1
> > > > > > for ip in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > > > > echo -n "$ip "
> > > > > > #rx
> > > > > > tc class add dev eth1 parent 1:1 classid 1:$ip htb rate
$rxmin$kbit
> > ceil
> > > > > > $rxmaxluser$kbit
> > > > > > tc filter add dev eth1 protocol ip parent 1:0 u32 match ip dst
> > > > > > 192.168.$siec.$ip flowid 1:$ip
> > > > > > tc qdisc add dev eth1 parent 1:$ip handle $ip:0 sfq perturb 10
> > > > > > #tx
> > > > > > #marking packets
> > > > > > iptables -t mangle -A MYSHAPER-OUT -p tcp -s
192.168.$siec.$ip -j
> > > > > > MARK --set-mark $ip
> > > > > > #tc
> > > > > > tc class add dev eth0 parent 2:1 classid 2:$ip htb rate
$txmin$kbit
> > ceil
> > > > > > $txmaxluser$kbit
> > > > > > #filtering by mark
> > > > > > tc filter add dev eth0 protocol ip preference 1 parent 2:0
handle
> > $ip fw
> > > > > > flowid 2:$ip
> > > > > > tc qdisc add dev eth0 parent 2:$ip handle $ip:1 sfq perturb 10
> > > > > > done
> > > > > > echo ""
> > > > > >
> > > > >
> >
> --------------------------------------------------------------------cut
> > > > > >
> > here ------------------------------------------------------------------
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > > _______________________________________________
> > > LARTC mailing list / LARTC@mailman.ds9a.nl
> > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> >
> >
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Re: HTB 3.13 please help
  2003-01-23  0:19 [LARTC] Re: HTB 3.13 please help mjoachimiak
                   ` (2 preceding siblings ...)
  2004-07-28 13:19 ` mjoachimiak
@ 2004-07-28 13:30 ` devik
  2004-07-28 15:56 ` mjoachimiak
  2004-08-04 11:34 ` mjoachimiak
  5 siblings, 0 replies; 7+ messages in thread
From: devik @ 2004-07-28 13:30 UTC (permalink / raw)
  To: lartc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 10802 bytes --]

as you can see, NO packets are going thru. You have to look
to other classes as well as to ifconfig and tc -s qdisc show dev xxx
to see wherw packets are lost.


On Wed, 28 Jul 2004 mjoachimiak@poczta.onet.pl wrote:

> //Just to not forget eth0 is WAN and eth1 is LAN . The box is NATing my lan.
> I configured tcng to shape both download and upload
> and i got connection loss again.
> Maybe it is my script fault or it is something bad with packets marking .
> this is how i mark outgoing packets
> iptables -t mangle -A MYSHAPER-OUT -p tcp -s 192.168.1.23 -j MARK --set-mark
> $ip
>
> and this part of my script which is intented to shape upload:
> dev eth0 {
>     egress {
>     class (<$default>) if 1;
>     htb ( r2q 1 ) {
>     class ( rate 800kbps, ceil 800kbps ) {
>
> //192.168.1.0-----------------------------------------------------------
>         $ruter = class ( rate 15kbps, ceil 250kbps  ) { sfq( perturb 10secs,
> quantum 1500Bytes ); } ;
>   fw {
>
> class $ruter on (23);
> //ruter---------------------------------------------------------------------
> ----
>
>
> //--------------------- fw
>     }//fw
>     }//main class
>     }//htb
>     }//egress
>     }//eth0(none):/skrytpy#
>
> and these are a bit of `tc -s -d class show dev eth0` prints while
> connection loss after running my tcng script :
>
> class htb 2:f parent 2:1 leaf 10: prio 0 quantum 1875 rate 1875bps ceil
> 15000bps burst 1617b/8 mpu 0b cburst 1749b/8 mpu 0b level 0
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>  lended: 0 borrowed: 0 giants: 0
>  tokens: 706914 ctokens: 95572
>
> class htb 2:1e parent 2:1 leaf 1f: prio 0 quantum 1875 rate 1875bps ceil
> 15000bps burst 1617b/8 mpu 0b cburst 1749b/8 mpu 0b level 0
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>  lended: 0 borrowed: 0 giants: 0
>  tokens: 706914 ctokens: 95572
>
> class htb 2:2d parent 2:1 leaf 2e: prio 0 quantum 1875 rate 1875bps ceil
> 15000bps burst 1617b/8 mpu 0b cburst 1749b/8 mpu 0b level 0
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>  lended: 0 borrowed: 0 giants: 0
>  tokens: 706914 ctokens: 95572
>
>
> > that is interesting. let me know then. other test might be to
> > reboot with maxcpus=1 to mitigate smp related bugs.
> >
> > On Sat, 25 Jan 2003 mjoachimiak@poczta.onet.pl wrote:
> >
> > > Yes I'm using smp kernel.
> > > I thought that i make some error that i canot see so i decided to write
> my
> > > classes using tcng this time.
> > > Currently i'm shaping only outgoing traffic to my local network(using
> tcng)
> > > and it seems to work (it work one day without errors).
> > > Today i'm going to configure upload too.
> > > The difference i could see at once is that there is no connection loss
> when
> > > i'm starting htb.
> > > ----- Original Message -----
> > > From: "devik" <devik@cdi.cz>
> > > To: <mjoachimiak@poczta.onet.pl>
> > > Cc: "lartc" <lartc@mailman.ds9a.nl>
> > > Sent: Sunday, July 25, 2004 10:26 AM
> > > Subject: Re: [LARTC] Re: HTB 3.13 please help
> > >
> > >
> > > > From the stats is seems that no data are queued - as if nobody
> > > > is sending them. You are using smp kernel, is your box SMP ?
> > > > I haven't seen many smp+htb boxes thus there might be possibility
> > > > of a bug...
> > > > devik
> > > >
> > > > On Thu, 23 Jan 2003 mjoachimiak@poczta.onet.pl wrote:
> > > >
> > > > > I've attached outputs for eth0 and eth1.
> > > > > I was trying to get this script running. I've added one class for my
> > > NATed
> > > > > BOX, and it helped. Shaping was stable almost one day but then i
> added
> > > "prio
> > > > > 0" to eth0 filters and prio 0 for eth1 filters it has braken. So i
> > > removed
> > > > > every "prio 0" and reboot the box but it didnt helped :(.
> > > > > I've noticed that when the traffic is not much (14 hosts from 50 are
> up)
> > > > > tc/htb works very well.
> > > > > If you want new version of my script say a word.
> > > > > ----- Original Message -----
> > > > > From: "devik" <devik@cdi.cz>
> > > > > To: <mjoachimiak@poczta.onet.pl>
> > > > > Sent: Thursday, July 22, 2004 3:48 PM
> > > > > Subject: Re: HTB 3.13 please help
> > > > >
> > > > >
> > > > > > I need
> > > > > > tc -s -d class show dev xxx
> > > > > > output during that non-working period. 3.6 is older than 3.13.
> > > > > >
> > > > > > -------------------------------
> > > > > >     Martin Devera aka devik
> > > > > > Linux kernel QoS/HTB maintainer
> > > > > >   http://luxik.cdi.cz/~devik/
> > > > > >
> > > > > > On Wed, 21 Jul 2004 mjoachimiak@poczta.onet.pl wrote:
> > > > > >
> > > > > > > Thanks for your reply. I've recent put my problem on lartc list.
> I'm
> > > > > using
> > > > > > > htb 3.13 in 2-4-25smp.
> > > > > > > I wonder if upgrade to 3.6 will help? Could you be so kind and
> take
> > > a
> > > > > look
> > > > > > > at it. I'll be grateful.
> > > > > > > If you have no time for me i'll understand and try to resolve it
> for
> > > > > myself.
> > > > > > > Thanks.
> > > > > > >
> > > > > > > Hello everybody!
> > > > > > > Since week i dig lists and www and can't find solution for my
> > > problem.
> > > > > > > I'm using HTB 3.13 kernel 2-4-25 smp iptables 1.2.9.
> > > > > > > I've got situation like this:
> > > > > > >
> > > > > > > LAN------Linux Box(routing only)------- Linux Box
> > > > > > > (HTB)--------------Hardware Router(say:HD)------Internet
> > > > > > > When I start HTB it takes about 5 min. to start working and it
> > > works...
> > > > > > > within this 5min starting i can't ping HD and after about 5min I
> > > start
> > > > > > > pinging. It works like this for cuple of hours, then something
> > > strange
> > > > > is
> > > > > > > happening. Ping stops, www doesn't work but radio (36kbps) (from
> > > > > clients)
> > > > > > > works. There is no ping at all for about 1min and it starts
> pinging
> > > for
> > > > > > > about 2-3min and it stops for 1-2min and so on.....
> > > > > > > When I stop HTB ping starts. It's look like HTB is filled to
> > > much(sorry
> > > > > for
> > > > > > > my english :/)
> > > > > > > All my children classes rate doesn't exceeds root classes. I
> have 50
> > > > > classes
> > > > > > > on 900kbit-10kbit(for default class) - downstream and
> 800-10kbit(for
> > > > > > > default)  up.
> > > > > > > I shape bandwidth matching ip. r2q is set to 1 . no erros during
> > > doing
> > > > > shape
> > > > > > > script.
> > > > > > > I'm attaching this script
> > > > > > > in ip1 is  file where are written ip's for C classes.
> > > > > > >
> > > > > > > I'm including my script.
> > > > > > > ---------------------------------------------------cut
> > > > > > >
> > > > >
> > >
> here -----------------------------------------------------------------------
> > > > > > > ------------
> > > > > > > #!/bin/bash
> > > > > > > #x=$[100/20]
> > > > > > > #echo "$1" > /skrytpy/status
> > > > > > > rxmax0 #WAN max transfer -down (physically it is
> 960kbit/960kbit)
> > > > > > > kbit=kbit
> > > > > > > rxmaxluser%0
> > > > > > > txmax€0 #WAN max transfer - up
> > > > > > > txmaxluser\x100
> > > > > > > #counting users
> > > > > > > # ip1 file is like this:
> > > > > > > # 11 #Somebody
> > > > > > > # 23 #Somebody II
> > > > > > > #EOF
> > > > > > > licznik=0
> > > > > > > for   x in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > > > > > licznik=$[$licznik+1]
> > > > > > > done
> > > > > > >
> > > > > > >
> > > > > > > #Server
> > > > > > > licznik=$[$licznik+1]
> > > > > > > #plus router
> > > > > > > licznik=$[$licznik+1]
> > > > > > >
> > > > > > > echo number of users to $licznik
> > > > > > > #counting rate
> > > > > > > rx1=$[$rxmax-10]
> > > > > > > tx1=$[$txmax-10] # dla klasy domyslnej
> > > > > > > rxmin=$[$rx1/$licznik]
> > > > > > > txmin=$[$tx1/$licznik]
> > > > > > > echo rx $rxmin tx $txmin
> > > > > > > #echo $rxmin
> > > > > > > #root classes
> > > > > > > #rx
> > > > > > > tc qdisc del root dev eth1
> > > > > > > tc qdisc add dev eth1 root handle 1:0 htb r2q 1 default 2
> > > > > > > tc class add dev eth1 parent 1:0 classid 1:1 htb rate
> $rxmax$kbit
> > > ceil
> > > > > > > $rxmax$kbit
> > > > > > > #tx
> > > > > > > tc qdisc del root dev eth0
> > > > > > > tc qdisc add dev eth0 root handle 2:0 htb r2q 1 default 4
> > > > > > > tc class add dev eth0 parent 2:0 classid 2:1 htb rate
> $txmax$kbit
> > > ceil
> > > > > > > $txmax$kbit
> > > > > > > #r="$rxmax$kbit"
> > > > > > > #default classes
> > > > > > > #rx
> > > > > > > tc class add dev eth1 parent 1:1 classid 1:2 htb rate 10kbit
> ceil
> > > 10kbit
> > > > > > > #tx
> > > > > > > tc class add dev eth0 parent 2:1 classid 2:4 htb rate 10kbit
> ceil
> > > 10kbit
> > > > >
> > > > > > > #siec 1.0
> > > > > > > siec=1
> > > > > > > for ip in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > > > > > echo -n "$ip "
> > > > > > > #rx
> > > > > > > tc class add dev eth1 parent 1:1 classid 1:$ip htb rate
> $rxmin$kbit
> > > ceil
> > > > > > > $rxmaxluser$kbit
> > > > > > > tc filter add dev eth1 protocol ip parent 1:0 u32 match ip dst
> > > > > > > 192.168.$siec.$ip flowid 1:$ip
> > > > > > > tc qdisc add dev eth1 parent 1:$ip handle $ip:0 sfq perturb 10
> > > > > > > #tx
> > > > > > > #marking packets
> > > > > > > iptables -t mangle -A MYSHAPER-OUT -p tcp -s
> 192.168.$siec.$ip -j
> > > > > > > MARK --set-mark $ip
> > > > > > > #tc
> > > > > > > tc class add dev eth0 parent 2:1 classid 2:$ip htb rate
> $txmin$kbit
> > > ceil
> > > > > > > $txmaxluser$kbit
> > > > > > > #filtering by mark
> > > > > > > tc filter add dev eth0 protocol ip preference 1 parent 2:0
> handle
> > > $ip fw
> > > > > > > flowid 2:$ip
> > > > > > > tc qdisc add dev eth0 parent 2:$ip handle $ip:1 sfq perturb 10
> > > > > > > done
> > > > > > > echo ""
> > > > > > >
> > > > > >
> > >
> > --------------------------------------------------------------------cut
> > > > > > >
> > > here ------------------------------------------------------------------
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > > _______________________________________________
> > > > LARTC mailing list / LARTC@mailman.ds9a.nl
> > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> > >
> > > _______________________________________________
> > > LARTC mailing list / LARTC@mailman.ds9a.nl
> > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> > >
> > >
> >
>
>
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Re: HTB 3.13 please help
  2003-01-23  0:19 [LARTC] Re: HTB 3.13 please help mjoachimiak
                   ` (3 preceding siblings ...)
  2004-07-28 13:30 ` devik
@ 2004-07-28 15:56 ` mjoachimiak
  2004-08-04 11:34 ` mjoachimiak
  5 siblings, 0 replies; 7+ messages in thread
From: mjoachimiak @ 2004-07-28 15:56 UTC (permalink / raw)
  To: lartc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 13865 bytes --]

oops. I took bad classes (these clients where down so there was no traffic )
lately from tc -s -d class show dev eth0.
These are classes (part of) while there was no connection from clients.
BTW is it good tcng config with "fw". I mean if
 fw {
     class $classname on (2);
}
means "match packet to $classname if it's mark equals 2" ?

Is there any kind of sniffer or smth like that for tc? I mean to look in
realtime packet statistics. Smthing like iptraf maybe?

class htb 2:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst
2623b/8 mpu 0b level 7
 Sent 21958200 bytes 38721 pkts (dropped 0, overlimits 0)
 rate 47328bps 68pps
 lended: 22026 borrowed: 0 giants: 0
 tokens: 20609 ctokens: 20609

class htb 2:10 parent 2:1 leaf 10: prio 0 quantum 1920 rate 15Kbit ceil
100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 110592

class htb 2:23 parent 2:1 leaf 23: prio 0 quantum 1920 rate 15Kbit ceil
100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 2490197 bytes 3069 pkts (dropped 0, overlimits 0)
 rate 5157bps 5pps
 lended: 1015 borrowed: 2054 giants: 0
 tokens: -475203 ctokens: -30720

class htb 2:32 parent 2:1 leaf 32: prio 0 quantum 1920 rate 15Kbit ceil
100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 476682 bytes 1633 pkts (dropped 0, overlimits 0)
 rate 661bps 2pps
 lended: 745 borrowed: 888 giants: 0
 tokens: -235603 ctokens: 107520

class htb 2:54 parent 2:1 leaf 54: prio 0 quantum 1920 rate 15Kbit ceil
20Kbit burst 1618b/8 mpu 0b cburst 1624b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 690773 ctokens: 519999

class htb 2:20 parent 2:1 leaf 20: prio 0 quantum 1920 rate 15Kbit ceil
100Kbit burst 1618b/8 mpu 0b cburst 1727b/8 mpu 0b level 0
 Sent 108 bytes 2 pkts (dropped 0, overlimits 0)
 lended: 2 borrowed: 0 giants: 0
 tokens: 649813 ctokens: 104448

----- Original Message ----- 
From: "devik" <devik@cdi.cz>
To: <mjoachimiak@poczta.onet.pl>
Cc: "lartc" <lartc@mailman.ds9a.nl>
Sent: Wednesday, July 28, 2004 3:30 PM
Subject: Re: [LARTC] Re: HTB 3.13 please help


> as you can see, NO packets are going thru. You have to look
> to other classes as well as to ifconfig and tc -s qdisc show dev xxx
> to see wherw packets are lost.
>
>
> On Wed, 28 Jul 2004 mjoachimiak@poczta.onet.pl wrote:
>
> > //Just to not forget eth0 is WAN and eth1 is LAN . The box is NATing my
lan.
> > I configured tcng to shape both download and upload
> > and i got connection loss again.
> > Maybe it is my script fault or it is something bad with packets marking
.
> > this is how i mark outgoing packets
> > iptables -t mangle -A MYSHAPER-OUT -p tcp -s 192.168.1.23 -j
MARK --set-mark
> > $ip
> >
> > and this part of my script which is intented to shape upload:
> > dev eth0 {
> >     egress {
> >     class (<$default>) if 1;
> >     htb ( r2q 1 ) {
> >     class ( rate 800kbps, ceil 800kbps ) {
> >
> > //192.168.1.0-----------------------------------------------------------
> >         $ruter = class ( rate 15kbps, ceil 250kbps  ) { sfq( perturb
10secs,
> > quantum 1500Bytes ); } ;
> >   fw {
> >
> > class $ruter on (23);
> >
//ruter---------------------------------------------------------------------
> > ----
> >
> >
> > //--------------------- fw
> >     }//fw
> >     }//main class
> >     }//htb
> >     }//egress
> >     }//eth0(none):/skrytpy#
> >
> > and these are a bit of `tc -s -d class show dev eth0` prints while
> > connection loss after running my tcng script :
> >
> > class htb 2:f parent 2:1 leaf 10: prio 0 quantum 1875 rate 1875bps ceil
> > 15000bps burst 1617b/8 mpu 0b cburst 1749b/8 mpu 0b level 0
> >  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> >  lended: 0 borrowed: 0 giants: 0
> >  tokens: 706914 ctokens: 95572
> >
> > class htb 2:1e parent 2:1 leaf 1f: prio 0 quantum 1875 rate 1875bps ceil
> > 15000bps burst 1617b/8 mpu 0b cburst 1749b/8 mpu 0b level 0
> >  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> >  lended: 0 borrowed: 0 giants: 0
> >  tokens: 706914 ctokens: 95572
> >
> > class htb 2:2d parent 2:1 leaf 2e: prio 0 quantum 1875 rate 1875bps ceil
> > 15000bps burst 1617b/8 mpu 0b cburst 1749b/8 mpu 0b level 0
> >  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> >  lended: 0 borrowed: 0 giants: 0
> >  tokens: 706914 ctokens: 95572
> >
> >
> > > that is interesting. let me know then. other test might be to
> > > reboot with maxcpus=1 to mitigate smp related bugs.
> > >
> > > On Sat, 25 Jan 2003 mjoachimiak@poczta.onet.pl wrote:
> > >
> > > > Yes I'm using smp kernel.
> > > > I thought that i make some error that i canot see so i decided to
write
> > my
> > > > classes using tcng this time.
> > > > Currently i'm shaping only outgoing traffic to my local
network(using
> > tcng)
> > > > and it seems to work (it work one day without errors).
> > > > Today i'm going to configure upload too.
> > > > The difference i could see at once is that there is no connection
loss
> > when
> > > > i'm starting htb.
> > > > ----- Original Message -----
> > > > From: "devik" <devik@cdi.cz>
> > > > To: <mjoachimiak@poczta.onet.pl>
> > > > Cc: "lartc" <lartc@mailman.ds9a.nl>
> > > > Sent: Sunday, July 25, 2004 10:26 AM
> > > > Subject: Re: [LARTC] Re: HTB 3.13 please help
> > > >
> > > >
> > > > > From the stats is seems that no data are queued - as if nobody
> > > > > is sending them. You are using smp kernel, is your box SMP ?
> > > > > I haven't seen many smp+htb boxes thus there might be possibility
> > > > > of a bug...
> > > > > devik
> > > > >
> > > > > On Thu, 23 Jan 2003 mjoachimiak@poczta.onet.pl wrote:
> > > > >
> > > > > > I've attached outputs for eth0 and eth1.
> > > > > > I was trying to get this script running. I've added one class
for my
> > > > NATed
> > > > > > BOX, and it helped. Shaping was stable almost one day but then i
> > added
> > > > "prio
> > > > > > 0" to eth0 filters and prio 0 for eth1 filters it has braken. So
i
> > > > removed
> > > > > > every "prio 0" and reboot the box but it didnt helped :(.
> > > > > > I've noticed that when the traffic is not much (14 hosts from 50
are
> > up)
> > > > > > tc/htb works very well.
> > > > > > If you want new version of my script say a word.
> > > > > > ----- Original Message -----
> > > > > > From: "devik" <devik@cdi.cz>
> > > > > > To: <mjoachimiak@poczta.onet.pl>
> > > > > > Sent: Thursday, July 22, 2004 3:48 PM
> > > > > > Subject: Re: HTB 3.13 please help
> > > > > >
> > > > > >
> > > > > > > I need
> > > > > > > tc -s -d class show dev xxx
> > > > > > > output during that non-working period. 3.6 is older than 3.13.
> > > > > > >
> > > > > > > -------------------------------
> > > > > > >     Martin Devera aka devik
> > > > > > > Linux kernel QoS/HTB maintainer
> > > > > > >   http://luxik.cdi.cz/~devik/
> > > > > > >
> > > > > > > On Wed, 21 Jul 2004 mjoachimiak@poczta.onet.pl wrote:
> > > > > > >
> > > > > > > > Thanks for your reply. I've recent put my problem on lartc
list.
> > I'm
> > > > > > using
> > > > > > > > htb 3.13 in 2-4-25smp.
> > > > > > > > I wonder if upgrade to 3.6 will help? Could you be so kind
and
> > take
> > > > a
> > > > > > look
> > > > > > > > at it. I'll be grateful.
> > > > > > > > If you have no time for me i'll understand and try to
resolve it
> > for
> > > > > > myself.
> > > > > > > > Thanks.
> > > > > > > >
> > > > > > > > Hello everybody!
> > > > > > > > Since week i dig lists and www and can't find solution for
my
> > > > problem.
> > > > > > > > I'm using HTB 3.13 kernel 2-4-25 smp iptables 1.2.9.
> > > > > > > > I've got situation like this:
> > > > > > > >
> > > > > > > > LAN------Linux Box(routing only)------- Linux Box
> > > > > > > > (HTB)--------------Hardware Router(say:HD)------Internet
> > > > > > > > When I start HTB it takes about 5 min. to start working and
it
> > > > works...
> > > > > > > > within this 5min starting i can't ping HD and after about
5min I
> > > > start
> > > > > > > > pinging. It works like this for cuple of hours, then
something
> > > > strange
> > > > > > is
> > > > > > > > happening. Ping stops, www doesn't work but radio (36kbps)
(from
> > > > > > clients)
> > > > > > > > works. There is no ping at all for about 1min and it starts
> > pinging
> > > > for
> > > > > > > > about 2-3min and it stops for 1-2min and so on.....
> > > > > > > > When I stop HTB ping starts. It's look like HTB is filled to
> > > > much(sorry
> > > > > > for
> > > > > > > > my english :/)
> > > > > > > > All my children classes rate doesn't exceeds root classes. I
> > have 50
> > > > > > classes
> > > > > > > > on 900kbit-10kbit(for default class) - downstream and
> > 800-10kbit(for
> > > > > > > > default)  up.
> > > > > > > > I shape bandwidth matching ip. r2q is set to 1 . no erros
during
> > > > doing
> > > > > > shape
> > > > > > > > script.
> > > > > > > > I'm attaching this script
> > > > > > > > in ip1 is  file where are written ip's for C classes.
> > > > > > > >
> > > > > > > > I'm including my script.
> > > > > > > > ---------------------------------------------------cut
> > > > > > > >
> > > > > >
> > > >
> >
here -----------------------------------------------------------------------
> > > > > > > > ------------
> > > > > > > > #!/bin/bash
> > > > > > > > #x=$[100/20]
> > > > > > > > #echo "$1" > /skrytpy/status
> > > > > > > > rxmax0 #WAN max transfer -down (physically it is
> > 960kbit/960kbit)
> > > > > > > > kbit=kbit
> > > > > > > > rxmaxluser%0
> > > > > > > > txmax€0 #WAN max transfer - up
> > > > > > > > txmaxluser\x100
> > > > > > > > #counting users
> > > > > > > > # ip1 file is like this:
> > > > > > > > # 11 #Somebody
> > > > > > > > # 23 #Somebody II
> > > > > > > > #EOF
> > > > > > > > licznik=0
> > > > > > > > for   x in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > > > > > > licznik=$[$licznik+1]
> > > > > > > > done
> > > > > > > >
> > > > > > > >
> > > > > > > > #Server
> > > > > > > > licznik=$[$licznik+1]
> > > > > > > > #plus router
> > > > > > > > licznik=$[$licznik+1]
> > > > > > > >
> > > > > > > > echo number of users to $licznik
> > > > > > > > #counting rate
> > > > > > > > rx1=$[$rxmax-10]
> > > > > > > > tx1=$[$txmax-10] # dla klasy domyslnej
> > > > > > > > rxmin=$[$rx1/$licznik]
> > > > > > > > txmin=$[$tx1/$licznik]
> > > > > > > > echo rx $rxmin tx $txmin
> > > > > > > > #echo $rxmin
> > > > > > > > #root classes
> > > > > > > > #rx
> > > > > > > > tc qdisc del root dev eth1
> > > > > > > > tc qdisc add dev eth1 root handle 1:0 htb r2q 1 default 2
> > > > > > > > tc class add dev eth1 parent 1:0 classid 1:1 htb rate
> > $rxmax$kbit
> > > > ceil
> > > > > > > > $rxmax$kbit
> > > > > > > > #tx
> > > > > > > > tc qdisc del root dev eth0
> > > > > > > > tc qdisc add dev eth0 root handle 2:0 htb r2q 1 default 4
> > > > > > > > tc class add dev eth0 parent 2:0 classid 2:1 htb rate
> > $txmax$kbit
> > > > ceil
> > > > > > > > $txmax$kbit
> > > > > > > > #r="$rxmax$kbit"
> > > > > > > > #default classes
> > > > > > > > #rx
> > > > > > > > tc class add dev eth1 parent 1:1 classid 1:2 htb rate 10kbit
> > ceil
> > > > 10kbit
> > > > > > > > #tx
> > > > > > > > tc class add dev eth0 parent 2:1 classid 2:4 htb rate 10kbit
> > ceil
> > > > 10kbit
> > > > > >
> > > > > > > > #siec 1.0
> > > > > > > > siec=1
> > > > > > > > for ip in $(awk '{ print $1 }' /skrytpy/ip1); do
> > > > > > > > echo -n "$ip "
> > > > > > > > #rx
> > > > > > > > tc class add dev eth1 parent 1:1 classid 1:$ip htb rate
> > $rxmin$kbit
> > > > ceil
> > > > > > > > $rxmaxluser$kbit
> > > > > > > > tc filter add dev eth1 protocol ip parent 1:0 u32 match ip
dst
> > > > > > > > 192.168.$siec.$ip flowid 1:$ip
> > > > > > > > tc qdisc add dev eth1 parent 1:$ip handle $ip:0 sfq perturb
10
> > > > > > > > #tx
> > > > > > > > #marking packets
> > > > > > > > iptables -t mangle -A MYSHAPER-OUT -p tcp -s
> > 192.168.$siec.$ip -j
> > > > > > > > MARK --set-mark $ip
> > > > > > > > #tc
> > > > > > > > tc class add dev eth0 parent 2:1 classid 2:$ip htb rate
> > $txmin$kbit
> > > > ceil
> > > > > > > > $txmaxluser$kbit
> > > > > > > > #filtering by mark
> > > > > > > > tc filter add dev eth0 protocol ip preference 1 parent 2:0
> > handle
> > > > $ip fw
> > > > > > > > flowid 2:$ip
> > > > > > > > tc qdisc add dev eth0 parent 2:$ip handle $ip:1 sfq perturb
10
> > > > > > > > done
> > > > > > > > echo ""
> > > > > > > >
> > > > > > >
> > > >
> >
> --------------------------------------------------------------------cut
> > > > > > > >
> > > >
here ------------------------------------------------------------------
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > LARTC mailing list / LARTC@mailman.ds9a.nl
> > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://lartc.org/
> > > >
> > > > _______________________________________________
> > > > LARTC mailing list / LARTC@mailman.ds9a.nl
> > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://lartc.org/
> > > >
> > > >
> > >
> >
> >
> >
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Re: HTB 3.13 please help
  2003-01-23  0:19 [LARTC] Re: HTB 3.13 please help mjoachimiak
                   ` (4 preceding siblings ...)
  2004-07-28 15:56 ` mjoachimiak
@ 2004-08-04 11:34 ` mjoachimiak
  5 siblings, 0 replies; 7+ messages in thread
From: mjoachimiak @ 2004-08-04 11:34 UTC (permalink / raw)
  To: lartc

Hello Devik!
Thanks for your help. And many thanks to everybody from the group who has
been thinking on my problem.
It seems i resolved my problem - there is no connection loss while reseting
htb, but I'll be observing it's stability in a few days.
I have no words to write what a STUPID mistake it was.
As i suposed it was conected with packet marking.
I've been using this command to mark packets:
iptables -t mangle -A MYSHAPER-OUT -p tcp -s 192.168.0.2 -j MARK --set-mark
$mark

BUT when configuring tcng i looked at my marking script "what the heck??,
Internet is not only tcp! Isn't it?"
I removed "-p tcp" and now it works.

Yes it was really BAD and took me too much time ggrrrrrrr.
Good luck folks.

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-08-04 11:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-23  0:19 [LARTC] Re: HTB 3.13 please help mjoachimiak
2003-01-25  2:12 ` mjoachimiak
2004-07-25  9:26 ` devik
2004-07-28 13:19 ` mjoachimiak
2004-07-28 13:30 ` devik
2004-07-28 15:56 ` mjoachimiak
2004-08-04 11:34 ` mjoachimiak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox