Mangle - Pre- Postrouting and forward

Hi Everyone,

I have questions relating to mangle, packet marking and queues.

  1. There are the options of using the prerouting, postrouting and forward chains.
  2. A packet can only have one mark at a time, but can I change the mark for example, give it a mark in prerouting, then change it in Forward and finally change it again in postrouting?
  3. Finally can I apply limits or balancing between each of these points of the packet flow [In laymans terms ad a queue tree in between each of the three chains eg.

Prerouting chain (mark packet {First Mark} ) --> Apply Load balancing on {First Mark} [PCQ] using queues

Forward chain (Remark Packet {Second mark} ) --> Set Priority to packets based on type, HTTP, SSH, P2P etc with second mark using queues

Post routing (mark Packet {third mark} ) --> Apply any third type of limit if necessary

My Questions are:-

  1. Is the above possible? I just need to know whether my concept and understanding of mangle and packet marking is sound.
  2. What is the best way to balance the total bandwidth say 5Mbit/s between 10 clients and then set priority to certain services (HTTP, SSH etc)


    RouterOS - RouterOS - MikroTik Documentation

http://forum.mikrotik.com/t/new-packet-flow-diagram/66252/1

you can see here.

It is no usual but one can set up 2 tier queues and that is possible.