Linux Netfilter discussions
 help / color / mirror / Atom feed
* Fair queuing with htb
@ 2010-12-23  1:26 Grégoire Leroy
  2010-12-23  6:01 ` Julien Vehent
  0 siblings, 1 reply; 11+ messages in thread
From: Grégoire Leroy @ 2010-12-23  1:26 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: Text/Plain, Size: 1503 bytes --]

Hello,

I try to make fair queuing with htb for the http protocol but my filters seem 
doesn't work.

The packets are marked by Squid (tcp_outgoing_mark, a feature of the latest 
version of squid enables this).

I have verified in the iptables logs that the packet are really marked. Here 
an example :

Dec 22 22:05:05 batman kernel: [1494086.818746] IN= OUT=eth0 SRC=172.17.0.8 
DST=172.17.0.10 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=65025 DF PROTO=TCP 
SPT=40407 DPT=80 WINDOW=5840 RES=0x00 SYN URGP=0 MARK=0x1

It seems work inasmuch as we can see "MARK=0x1".

Below I paste my script. The relevant point is the filters : indeed, whatever 
the way I configure the class 1:20 and 1:10, it changes nothing.

Have I done a misconfiguration ?

I precise my server uses Debian Squeeze i386, and libnetfilter-conntrack3 is 
installed.

#!/bin/bash
INT="eth0"
BAND="12000kbit"
RATE="63kbit"

tc qdisc del dev $INT root
tc qdisc add dev $INT root handle 1: htb default 30

tc class add dev $INT parent 1: classid 1:1 htb rate 100mbit burst 15k 
tc class add dev $INT parent 1:1 classid 1:10 htb rate 63kbit ceil 1200kbit 
burst 15k 
tc class add dev $INT parent 1:1 classid 1:30 htb rate 88mbit burst 15k 
tc class add dev $INT parent 1:1 classid 1:20 htb rate $RATE ceil $RATE burst 
15k 

tc filter add dev $INT parent 1:0 protocol ip handle 0x1 fw flowid 1:10
tc filter add dev $INT protocol ip handle 0x55 fw flowid 1:20

Thanks for your help,
Grégoire Leroy


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-01-10 11:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23  1:26 Fair queuing with htb Grégoire Leroy
2010-12-23  6:01 ` Julien Vehent
2010-12-23 12:30   ` Grégoire Leroy
2010-12-25  0:09     ` Andrew Beverley
2010-12-25  1:08       ` Grégoire Leroy
2010-12-25  2:41         ` Antoine Souques
     [not found]         ` <4D155860.6090507@via.ecp.fr>
2010-12-25  3:51           ` Grégoire Leroy
2010-12-25 12:29             ` Amos Jeffries
2010-12-25 20:40               ` Grégoire Leroy
2010-12-25 22:46             ` Andrew Beverley
2011-01-10 11:55               ` Grégoire Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox