[LARTC] HFSC and default qdisc backlog

2006-03-22 Thread James Nelson



Thanks for all of 
your help Patrick!
 
Just so I'm 
clear.  If hfsc at the class level shows no overlimits and no packet 
dropps, then hfsc is not effecting my traffic any different (from a throughput 
perspective computational computer slowness aside) then if i had no traffic 
shapping in place? 
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] HFSC and default qdisc backlog

2006-03-21 Thread James Nelson
I don't understand the following:
 
[EMAIL PROTECTED]:~# tc -s class ls dev vlan1 && tc -s qdisc ls dev vlan1
class hfsc 1: root
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 2
 
class hfsc 1:1 parent 1: sc m1 0bit d 0us m2 22bit ul m1 0bit d 0us m2
22bit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 31304 work 7533852 bytes level 1
 
class hfsc 1:10 parent 1:1 sc m1 1024bit d 8.0ms m2 10bit ul m1 0bit d
0us m2 22bit
 Sent 6892869 bytes 33300 pkts (dropped 0, overlimits 0)
 period 32750 work 6892869 bytes rtwork 6725586 bytes level 0
 
class hfsc 1:20 parent 1:1 sc m1 4096bit d 100.0ms m2 75000bit ul m1 0bit d
0us m2 22bit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 0
 
class hfsc 1:30 parent 1:1 sc m1 8200bit d 200.0ms m2 3bit ul m1 0bit d
0us m2 22bit
 Sent 640821 bytes 636 pkts (dropped 0, overlimits 0)
 period 277 work 640821 bytes rtwork 199829 bytes level 0
 
class hfsc 1:40 parent 1:1 sc m1 8200bit d 300.0ms m2 15008bit ul m1 0bit d
0us m2 22bit
 Sent 162 bytes 3 pkts (dropped 0, overlimits 0)
 period 3 work 162 bytes rtwork 162 bytes level 0
 
qdisc hfsc 1: default 30
 Sent 7537524 bytes 33953 pkts (dropped 6, overlimits 4145)
 backlog 3p

 
Why is the qdisc backloged with dropped packets and overlimits when the
classes are not?  The txlen on the vlan1 device is 1000.  This is happening
with 256kbit up dsl with only one voip conversation utilizing the link
(90kbit codec).  The voice is occasionally gets choppy and I'm trying to
figure out if it is due to the backlog or my setup etc?  What tools are
availabe to debug this stuff?  Thanks for all of your insight and a VERY
informative mailing list.

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


RE: [LARTC] hfsc and dropped packets

2006-03-13 Thread James Nelson
Thanks for the reply!  Setting the tx_queue_len fixed the drops which got
rid of the studder in voip! Thanks. 

-Original Message-
From: Patrick McHardy [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 13, 2006 6:03 PM
To: James Nelson
Cc: lartc@mailman.ds9a.nl
Subject: Re: [LARTC] hfsc and dropped packets

Patrick McHardy wrote:
> James Nelson wrote:
> 
>>[EMAIL PROTECTED]:/jmn# tc  class show dev vlan1  [...]
>>
>>Why is there dropped packets but nothing overlimits??
> 
> 
> Overlimits counts dequeue-attempts that were unsuccessful because of 
> qdisc limits. Drops usually occur when the inner qdisc is full during 
> enqueue, so they have quite opposite meanings.

BTW, in your case the drops most likely occur because HFSC's default pfifo
child qdiscs use the tx_queue_len of the device as their limit, which in
case of vlan devices is zero (in that case 1 is used).

So you can either increase the tx_queue_len of the vlan device or manually
add child qdiscs with bigger limits.

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] hfsc and dropped packets

2006-03-13 Thread James Nelson
Hi,
 
I'm trying to get a handle on hfsc.  Here is my configuration:

[EMAIL PROTECTED]:/jmn# tc  class show dev vlan1
class hfsc 1: root
class hfsc 1:1 parent 1: ls m1 0bit d 0us m2 225000bit ul m1 0bit d 0us m2
225000bit
class hfsc 1:10 parent 1:1 rt m1 191000bit d 25.0ms m2 135000bit ls m1 0bit
d 0us m2 135000bit ul m1 0bit d 0us m2 225000bit
class hfsc 1:20 parent 1:1 rt m1 22008bit d 25.0ms m2 56008bit ls m1 0bit d
0us m2 56008bit ul m1 0bit d 0us m2 225000bit
class hfsc 1:30 parent 1:1 rt m1 11008bit d 25.0ms m2 22008bit ls m1 0bit d
0us m2 22008bit ul m1 0bit d 0us m2 225000bit
class hfsc 1:40 parent 1:1 rt m1 0bit d 25.0ms m2 11008bit ls m1 0bit d 0us
m2 11008bit ul m1 0bit d 0us m2 225000bit

And here is the stats right after I run the qos script with no load on the
link(adsl):
[EMAIL PROTECTED]:/jmn# tc -s class show dev vlan1
class hfsc 1: root
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 2

class hfsc 1:1 parent 1: ls m1 0bit d 0us m2 225000bit ul m1 0bit d 0us m2
225000bit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 349 work 42417 bytes level 1

class hfsc 1:10 parent 1:1 rt m1 191000bit d 25.0ms m2 135000bit ls m1 0bit
d 0us m2 135000bit ul m1 0bit d 0us m2 225000bit
 Sent 31297 bytes 304 pkts (dropped 18, overlimits 0)
 period 304 work 31297 bytes rtwork 30991 bytes level 0

class hfsc 1:20 parent 1:1 rt m1 22008bit d 25.0ms m2 56008bit ls m1 0bit d
0us m2 56008bit ul m1 0bit d 0us m2 225000bit
 Sent 7302 bytes 17 pkts (dropped 2, overlimits 0)
 period 17 work 7302 bytes rtwork 7010 bytes level 0

class hfsc 1:30 parent 1:1 rt m1 11008bit d 25.0ms m2 22008bit ls m1 0bit d
0us m2 22008bit ul m1 0bit d 0us m2 225000bit
 Sent 3818 bytes 28 pkts (dropped 0, overlimits 0)
 period 28 work 3818 bytes rtwork 3818 bytes level 0

class hfsc 1:40 parent 1:1 rt m1 0bit d 25.0ms m2 11008bit ls m1 0bit d 0us
m2 11008bit ul m1 0bit d 0us m2 225000bit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 period 0 level 0


Why is there dropped packets but nothing overlimits??

Thanks.


FYI Here is the relevant scipt commands I have dsl 1.5down and 256up.
+ tc qdisc del dev vlan1 root
+ tc qdisc add dev vlan1 root handle 1: hfsc default 30
+ tc class add dev vlan1 parent 1: classid 1:1 hfsc ls rate 225kbit ul rate
225kbit
+ tc class add dev vlan1 parent 1:1 classid 1:10 hfsc rt m1 191kbit d 25ms
m2 135kbit ls rate 135kbit ul rate 225kbit
+ tc class add dev vlan1 parent 1:1 classid 1:20 hfsc rt m1 22kbit d 25ms m2
56kbit ls rate 56kbit ul rate 225kbit
+ tc class add dev vlan1 parent 1:1 classid 1:30 hfsc rt m1 11kbit d 25ms m2
22kbit ls rate 22kbit ul rate 225kbit
+ tc class add dev vlan1 parent 1:1 classid 1:40 hfsc rt m1 0kbit d 25ms m2
11kbit ls rate 11kbit ul rate 225kbit
+ tc filter add dev vlan1 parent 1: prio 1 protocol ip handle 1 fw flowid
1:10
+ tc filter add dev vlan1 parent 1: prio 2 protocol ip handle 2 fw flowid
1:20
+ tc filter add dev vlan1 parent 1: prio 3 protocol ip handle 3 fw flowid
1:30
+ tc filter add dev vlan1 parent 1: prio 4 protocol ip handle 4 fw flowid
1:40

___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc