Re: HTB + IMQ + IPtables marking.

Linux Advanced Routing and Traffic Control

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

 



I tried your way for the whole day.
but still with the same result.

Maybe i'll try just like Andy Furmis said.
set some limit to SFQ.

Regards,
Rio Martin.


On Thursday 19 May 2005 06:07, Krystian Antoni wrote:
> 1.
>  lines:
> /usr/sbin/iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 1
> /usr/sbin/iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 1
> /usr/sbin/iptables -t mangle -A PREROUTING -i eth0 -d 202.x.1.0/24 -j MARK
> --set-mark 10
> /usr/sbin/iptables -t mangle -A PREROUTING -i eth0 -d 202.x.2.0/24 -j MARK
> --set-mark 20
>  should be in this order:
> /usr/sbin/iptables -t mangle -A PREROUTING -i eth0 -d 202.x.1.0/24 -j MARK
> --set-mark 10
> /usr/sbin/iptables -t mangle -A PREROUTING -i eth0 -d 202.x.2.0/24 -j MARK
> --set-mark 20
> /usr/sbin/iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 1
> /usr/sbin/iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 1
>  3. performance fix
> /sbin/tc class add dev imq1 parent 2: classid 2:1 htb rate 768Kbit
> doesnt have CEIL defined? it has to have it defined so your modem wont
> queue packets, making your latency go to meet the sky :-) set it to 90-95%
> of the bandwidth your modem can do
>  /sbin/tc class add dev imq1 parent 2: classid 2:1 htb rate 768Kbit ceil
> 1000kbit
>  4. performance fix
> put some leaf qdisc like SFQ.
> /sbin/tc qdisc add sfq parent id 2:20 handle 20 : sfq perturb 10
>  5. performance fix
> in the classes 2:10 and 2:20 you're using only 256kbit of RATE. change it
> so their sum is the rate of their parent.
_______________________________________________
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