tc qdisc add dev eth0 root handle 1: htb default 2 tc class add dev eth0 parent 1: classid 1:1 htb rate 5kbps ceil 5kbps burst 2k tc class add dev eth0 parent 1: classid 1:2 htb rate 10mbps ceil 10mbps burst 2k tc filter add dev eth0 protocol ip fw and use iptables to mark every packet 0x10001,but up to 200KB/s. # tc -s -d qdisc qdisc htb 1: dev eth0 r2q 10 default 2 dcache 0 deq_util 1/1000000 deq_rate 10 trials_per_deq 0 dcache_hits 0 Sent 1213554 bytes 13996 pkts (dropped 0, overlimits 3924) # tc -s -d class show dev eth0 class htb 1:1 root prio 0 rate 40Kbit ceil 40Kbit burst 2Kb/8 mpu 0b cburst 2Kb Sent 209473 bytes 3364 pkts (dropped 0, overlimits 3367) rate 73bps 1pps lended: 3364 borrowed: 0 giants: 0 injects: 0 tokens: 316161 ctokens: 316161 class htb 1:2 root prio 0 rate 80Mbit ceil 80Mbit burst 2Kb/8 mpu 0b cburst 2Kb Sent 1011846 bytes 10712 pkts (dropped 0, overlimits 151) rate 258bps 1pps lended: 10712 borrowed: 0 giants: 0 injects: 0 tokens: 155 ctokens: 155 why? PII400 + 64M + 2.4.16 -----Original Message----- From: lartc-admin@xxxxxxxxxxxxxxx [mailto:lartc-admin@xxxxxxxxxxxxxxx] On Behalf Of bert hubert Sent: 2001年12月11日 17:21 To: lartc@xxxxxxxxxxxxxxx Subject: Re: [LARTC] HTB problem On Tue, Dec 11, 2001 at 10:46:08AM +0800, yangrunhua wrote: > tc class add dev eth1 parent 1: classid 1:1 htb rate 10kbps ceil 10kbps > burst 2k > why the client run into 1:1 can keep 430 KB/s ? Show your entire configuration, please. Regards, bert hubert -- http://www.PowerDNS.com Versatile DNS Software & Services Trilab The Technology People Netherlabs BV / Rent-a-Nerd.nl - Nerd Available - 'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/