Forte Systems - Iosif Peterfi wrote:> But here is my script: > > >If this is really all of your script, you are missing the filter rules which match your traffic and put it in your classes... Cheers, Andreas
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 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Forte Systems - Iosif Peterfi wrote:> 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.HFSC doesn''t update statistics of upper classes because I didn''t want to walk up the entire heirarchy for each packet just for statistics. Regards Patrick
Forte Systems - Iosif Peterfi
2005-May-30 18:11 UTC
RE: FW: HFSC + ESFQ - class statistics
Andreas: Of course there are filter rules, but they are irelevant here. Thanks for the feedback Patrick. I tought so, but i wanted to make sure there''s nothing wrong with my configuration. -----Original Message----- From: Patrick McHardy [mailto:kaber@trash.net] Sent: Monday, May 30, 2005 12:41 AM To: Forte Systems - Iosif Peterfi Cc: lartc@mailman.ds9a.nl Subject: Re: [LARTC] FW: HFSC + ESFQ - class statistics Forte Systems - Iosif Peterfi wrote:> 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.HFSC doesn''t update statistics of upper classes because I didn''t want to walk up the entire heirarchy for each packet just for statistics. Regards Patrick -- 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/