QOS shaping problem

hi

I switched to MT 2weeks before from different routingOS and…

I’ve got one huge problem with shaping on my node. I am newbie in MT and I am lost. I have been trying for some time to shape traffic but my results…? poor…

So my configuration is following:
machine is PC 1800Duron

  • 2 bridged 2.4 radio cards (zcom xi626) with WEP. In past I have changed topology from one omni to 2sector antennas
  • 5.5GHz Atheros based CM9 card as backhaul
  • 5.5GHz Atheros based CM9 card as AP - omni antenna WPApre-shared
  • 5.5GHz Atheros based CM9 card as sector antenna WPApre-shared

my problem is following.

shape traffic like this equally between all users all the time:

I want to separatly shape each interface

1sector download+upload maxlim 4Mbit
--------download max 3.5Mbit
------------ local traffic (samba,ftp) min prio, max 2Mbit
------------ internet traffic (web,mail) mid prio, max 3.5Mbit
------------ realtime traffic (ping, voip, games) max prio, max 2.5Mbit
--------upload max 3.5Mbit
------------ local traffic (samba,ftp) min prio, max 2Mbit
------------ internet traffic (web,mail) mid prio, max 3.5Mbit
------------ realtime traffic (ping, voip, games) max prio, max 2.5Mbit

2sector download+upload maxlim 4Mbit
--------download max 3.5Mbit
------------ local traffic (samba,ftp) min prio, max 2Mbit
------------ internet traffic (web,mail) mid prio, max 3.5Mbit
------------ realtime traffic (ping, voip, games) max prio, max 2.5Mbit
--------upload max 3.5Mbit
------------ local traffic (samba,ftp) min prio, max 2Mbit
------------ internet traffic (web,mail) mid prio, max 3.5Mbit
------------ realtime traffic (ping, voip, games) max prio, max 2.5Mbit

… and so

I tried simple queues, queue trees , but I never achieved result thet I expected.

i am mangling traffic like this:

example od upload mangling of one 2.4GHz sector named mesto

2 chain=prerouting in-interface=mesto protocol=icmp tos=min-delay action=mark-packet new-packet-mark=mesto_up_icmp passthrough=no
3 chain=prerouting in-interface=mesto src-address=192.168.1.6 action=mark-packet new-packet-mark=mesto_game_up passthrough=no
4 ;;; UP local samba
chain=prerouting in-interface=mesto src-address=192.168.0.0/16 protocol=tcp src-port=137-139 action=mark-packet new-packet-mark=mesto_local_up passthrough=no
5 chain=prerouting in-interface=mesto src-address=192.168.0.0/16 protocol=udp src-port=137-139 action=mark-packet new-packet-mark=mesto_local_up passthrough=no
6 chain=prerouting in-interface=mesto src-address=192.168.0.0/16 protocol=tcp src-port=445 action=mark-packet new-packet-mark=mesto_local_up passthrough=no
7 chain=prerouting in-interface=mesto src-address=192.168.0.0/16 protocol=tcp dst-port=137-139 action=mark-packet new-packet-mark=mesto_local_up passthrough=no
8 chain=prerouting in-interface=mesto src-address=192.168.0.0/16 protocol=udp dst-port=137-139 action=mark-packet new-packet-mark=mesto_local_up passthrough=no
9 chain=prerouting in-interface=mesto src-address=192.168.0.0/16 protocol=tcp dst-port=445 action=mark-packet new-packet-mark=mesto_local_up passthrough=no
10 ;;; UP ostatne konexie
chain=prerouting in-interface=mesto dst-address=!192.168.0.0/16 action=mark-packet new-packet-mark=mesto_inet_up passthrough=no
11 ;;; UP markujeme ostatne konexie
chain=prerouting in-interface=mesto action=mark-packet new-packet-mark=mesto_up passthrough=no

if you have any suggestion,
please write :slight_smile:

thx
kubiik