FW: HFSC + ESFQ - class statistics

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

 

            First I want to point out that I’m not so familiar with HFSC, since there not so much info online.

            But here is my script:

 

        ${TC} class add dev ${LAN_IFACE} parent 1:0 classid 1:1 hfsc ls rate 100mbit ul rate 100mbit

 

        ${TC} class add dev ${LAN_IFACE} parent 1:1 classid 1:2 hfsc ls rate 90mbit ul rate 90mbit

        ${TC} class add dev ${LAN_IFACE} parent 1:1 classid 1:3 hfsc ls rate 690kbit ul rate 690kbit

 

        ${TC} class add dev ${LAN_IFACE} parent 1:3 classid 1:10 hfsc rt dmax 1ms rate 32kbit ls rate 690kbit #dns

        ${TC} class add dev ${LAN_IFACE} parent 1:3 classid 1:20 hfsc rt dmax 2ms rate 256kbit ls dmax 3ms rate 690kbit #http int

        ${TC} class add dev ${LAN_IFACE} parent 1:2 classid 1:25 hfsc rt dmax 100ms rate 10mbit ls dmax 100ms rate 80mbit #squid

        ${TC} class add dev ${LAN_IFACE} parent 1:2 classid 1:30 hfsc rt dmax 200ms rate 80kbit ls dmax 500ms rate 80kbit #wan

        ${TC} class add dev ${LAN_IFACE} parent 1:3 classid 1:40 hfsc rt dmax 20ms rate 32kbit ls dmax 500ms rate 690kbit #msn

        ${TC} class add dev ${LAN_IFACE} parent 1:3 classid 1:50 hfsc rt dmax 200ms rate 32kbit ls dmax 500ms rate 690kbit # http bulk

        ${TC} class add dev ${LAN_IFACE} parent 1:3 classid 1:60 hfsc rt dmax 500ms rate 32kbit ls dmax 3000ms rate 690kbit # the rest

 

        ${TC} qdisc add dev ${LAN_IFACE} parent 1:10 handle 10: esfq hash dst perturb 10

        ${TC} qdisc add dev ${LAN_IFACE} parent 1:20 handle 20: esfq hash dst  perturb 10

        ${TC} qdisc add dev ${LAN_IFACE} parent 1:25 handle 25: esfq hash dst  perturb 10

        ${TC} qdisc add dev ${LAN_IFACE} parent 1:30 handle 30: esfq hash dst  perturb 10

        ${TC} qdisc add dev ${LAN_IFACE} parent 1:40 handle 40: esfq hash dst  perturb 10

        ${TC} qdisc add dev ${LAN_IFACE} parent 1:50 handle 50: esfq hash dst  perturb 10

        ${TC} qdisc add dev ${LAN_IFACE} parent 1:60 handle 60: esfq hash dst  perturb 10

 

# tc -s -d class show dev eth1

class hfsc 1: root

 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 rate 0bit 0pps backlog 0b 0p requeues 0

 period 0 level 3

 

class hfsc 1:1 parent 1: ls m1 0bit d 0us m2 100000Kbit ul m1 0bit d 0us m2 100000Kbit

 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)

 rate 0bit 0pps backlog 0b 0p requeues 0

 period 25105 work 9541169 bytes level 2

………………………..

class hfsc 1:60 parent 1:3 leaf 60: rt m1 0bit d 500.0ms m2 32008bit ls m1 0bit d 3.0s m2 690000bit

 Sent 7651774 bytes 16422 pkt (dropped 0, overlimits 0 requeues 0)

 rate 0bit 0pps backlog 0b 0p requeues 0

 period 16413 work 7651774 bytes rtwork 1120698 bytes level 0

 

        The tc show command doesn’t create any sent/rate statistics for  1: / 1:1 / 1:2 / 1:3 – Everything is 0 except the period indicators. Sent bytes are shown in the period, but the rate is not shown. For the rest of the classes Sent bytes and packets are shown, but rate is not show here either.

        This bug is related to the kernel or iproute2 package?

       

 

Thanks

Iosif Peterfi

-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/
-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://linux.bitdefender.com/
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux