From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Diego_Andr=E9s_Asenjo_Gonzalez?= Date: Wed, 01 Mar 2006 17:39:22 +0000 Subject: Re: [LARTC] Htb queueing problem Message-Id: <4405DC4A.40902@gmail.com> List-Id: References: <44043A85.6080302@gmail.com> In-Reply-To: <44043A85.6080302@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi and thanks for replying! > > As I select everything I don't know if this is enough - also I think=20 > you need to select classify in netfilter the section. I also select almost everything in the netfilter section, including MARK=20 and CLASSIFY. I simplified the script mantaining the most important part=20 (the "outgoing" traffic). I am now using the iptables MARK way, and=20 still did not get any shape: #!/bin/bash TC=3D/sbin/tc IPT=3D/sbin/iptables # Flush tc qdiscs: $TC qdisc del dev eth1 root >/dev/null 2>&1 # Create root qdiscs: $TC qdisc add dev eth1 root handle 2: htb default 1000 # Create root class (1:1 2:1) : $TC class add dev eth1 parent 2: classid 2:1 htb rate 3584kbit ceil=20 3584kbit burst 0 prio 1 # Create default class (1:1000 2:1000) : $TC class add dev eth1 parent 2:1 classid 2:1000 htb rate 3300kbit ceil=20 3350kbit burst 0 prio 5 # Create classes (1/2:2 tel_pereira) : $TC class add dev eth1 parent 2:1 classid 2:2 htb rate 64kbit ceil=20 72kbit burst 8kbit prio 1 quantum 1536 # Create filters (100/200 + 2) $TC filter add dev eth1 protocol ip parent 2:0 prio 1 handle 0x44 fw=20 flowid 2:2 # Flushing iptables rules: $IPT -F -t mangle $IPT -A FORWARD -t mangle -p udp -s 172.16.0.185/32 -i eth1 --sport=20 10000:10100 -d 172.16.1.0/24 -j MARK --set-mark 0x44 The statistics remains the same: bridge:~# iptables -L -t mangle -v Chain FORWARD (policy ACCEPT 76M packets, 34G bytes) pkts bytes target prot opt in out source =20 destination 1123 67380 MARK udp -- any any 172.16.0.185 =20 172.16.1.0/24 udp spts:10000:10100 MARK set 0x44 There are iptables marks ... bridge:~# tc -s cl sh dev eth1 class htb 2:2 parent 2:1 prio 1 rate 64Kbit ceil 72Kbit burst 1023b=20 cburst 1691b Sent 0 bytes 0 pkts (dropped 0, overlimits 0) lended: 0 borrowed: 0 giants: 0 tokens: 128000 ctokens: 187999 But nothing is queued through the specified class :s, there is no=20 shaping at all. I'm going insane, =BFCould it be a bug? =BFA package error? Thanks for your help! _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc