IMQ strange problem

Linux Advanced Routing and Traffic Control

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

 



Hi All,
Please to advice me. I become crazy because i cannot find where can be problem. Obviously i miss something, but what ?
I have Linux router for traffic control / ~400 users , 100 mbit bandwidth / . evereting was great until i try to implement IMQ for ingress shaping. Problem that i have is when i start follow iptables rule

iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0

without any TC started all traffic slow down and Linux increase system load average.


     internet                                           LAN
------------------| eth0  router    eth1 |---------------


CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
MemTotal: 1036332 k
Linux portal1 2.6.15.4 #1 SMP Sun Feb 12 13:02:52 EET 2006 i686 GNU/Linux
IMQ patch: linux-2.6.14-imq6.diff



/// traffic control rules for download and upload single IP

.............

DEV=eth1
DEV_UP=imq0

.................

.................

usleep 10
$TC class add dev $DEV parent 2:3 classid 2:b382 htb rate 2048kbit ceil 2048kbit prio 2 quantum 48000
$TC class add dev $DEV parent 3:1 classid 3:a382 htb rate 160kbit ceil 160kbit prio 1 quantum 16000
$TC class add dev $DEV parent 4:10 classid 4:d382 htb rate 2048kbit ceil 2048kbit prio 3 quantum 48000
usleep 10
$TC qdisc add dev $DEV parent 2:b382 handle b382: sfq perturb 10
$TC qdisc add dev $DEV parent 3:a382 handle a382: sfq perturb 10
$TC qdisc add dev $DEV parent 4:d382 handle d382: sfq perturb 10
usleep 10
$TC filter add dev $DEV parent 4: protocol ip u32 match ip dst 82.133.133.229/32 flowid 4:d382
usleep 10
$TC filter add dev $DEV parent 2: protocol ip u32 match ip dst 82.133.133.229/32 flowid 2:b382
usleep 10
$TC filter add dev $DEV parent 3: protocol ip u32 match ip dst 82.133.133.229/32 flowid 3:a382
echo -n " | upload speed 2048kbit "
$TC class add dev $DEV_UP parent 1:1 classid 1:a382 htb rate 2048kbit ceil 2048kbit prio 3
$TC qdisc add dev $DEV_UP parent 1:a382 handle a382: sfq
usleep 10
$TC filter add dev $DEV_UP protocol ip parent 1: u32 match ip src 82.103.109.229/32 flowid 1:a382

_______________________________________________
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