Help with Bandwidth management

Hello i need help with bandwidth management.
My setup is Adsl router set as bridge which is connected to adsl line and also few wi-fi clients connected to it , ip of this router is 192.168.0.2 , ip’s of wi-fi clients is in 192.168.0.0/24 range with gateway 192.168.0.1 .Adsl router’s lan port is connected to RB433 ether2 , ether2 ip is 192.168.0.1.There is a DHCP server setup on RB to give ip’s to wi-fi clients which are connected to adsl router, also there is a pppoe client (dsl line 256k/512k) setup on rb’s ether 2 .
RB’s ether3 is connected to lan with ip space 172.16.0.0/22.Also there is a pptp vpn server setup on RB and clients from lan (ether3) connects to it , they got tunnel ip adresses in 10.10.0.0/24 space. And i have NAT’ed 10.10.0.0/24 and 192.168.0.0/24 clients to pppoe-out.
setup.JPG
What i need to do is setup PCQ queue to share bandwidth between all clients (about 4-7 clients) so they have guarantied DN speed of 100k and max speed of 512k with ability to set individual limits for each client . Also i need to set priorities , so skype got priority 1, http priority 2 and p2p priority 3.

you cannot. Wifi clients in your schema have unlimited bandwitdh… so you can’t guarantee any type of services to the clients behind the rb433 because the wifi clients can, potentially, eat all the bandwitdh.

Wi-fi clients get internet from rb so all the internet trafic is routed through rb.

Ok.

To set priorities for ToS you should use simple queues. To set rules per client you should use PCQ trees.

You need read some documentation like the famous QoS Megis PDF file, it is very explanatory about that.
http://mum.mikrotik.com/presentations/CZ09/QoS_Megis.pdf

Too look the video in MUM here: http://www.tiktube.com/?video=247

After that you can set up your RB accordingly to your scenario.

In those examples Total download in queue tree uses lan as parent interface and Total upload tree uses wan as parent. For upload its fine , i can use pppoe-out as parent , but for download i don’t have single interface to link cause i have bunch of pptp server interfaces + 1-2 clients on ether2. Also pppoe-out going out through ether2 too.

Use as parent the phisical outgoing interfaces that you use for providing service to your clients. If you use more than one, so you need use more than one iface as parent, and then define the pcq trees accordingly. With mangle you can mark connections and mark the packets with precission with the use of multiple “selectors” at the moment of define the rule in the mangle. After that you can queue by the marks. It is VERY important UNDERSTAND the flow packet in the router to set up the rights queues rules.

If you see this scenario very complex, may help you place I.E. a rb450G between you rb433 and the clients ONLY for the queueing functions as described, in pure bridge mode.