Queue tree and shaping

Hi there,

I have a mikrotik 2011, with 10 interfaces and a wireless interface.

I want to give my wireless users 5 mbps, and I want to give my wired users 5 mbps, however, the total bandwidth on the uplink is 5 mbps. So in simplicity you can say they share this bandwidth of 5 mbps.

I tried making two networks for each users separately however, I was able to get the queue tree done for upload, since i just applied it on the uplink interface, but I can not get this shaping to work on the local side, since my traffic ends on two points ( wlan interface and wired_bridge ). I can shape 5 for each, but then that gives me 10 mbps in total, and thats not what I need.

So I was thinking, mangle. Is it possible to have one network, one dhcp, two interfaces ( wlan and wired_bridged ( which holds the ether2-10 ) ) and mark packets based on their point of entry.

So I want to mark all packets that come in from wlan interface with mark “red” and all traffic that comes from wired_bridged mark “blue”. This way I could make a parent queue tree with two leafs, blue and red and all would be done.

How would I go around doing that bolded question? :slight_smile:

thanks,
Regards,

nobody? :slight_smile: BUMP

Hi,

My knowledge on this is basic at best, but yes you can.

With the mangle you can make marks based on each interface.

So create a mangle, (I dont know the Terminal code) but this should do it:
For Wlan to Broadband:- Chain=prerouting In.Interface=wlan Action=mark packet “Wlan Mark out”
For Bridge to Brodaband:- Chain=prerouting In.Interface=wired bridged Action=mark packet “Wired Mark out”

For Broadband to Wlan:- Chain=prerouting In.Interface=(Whatever your broadband interface is) Out.interface=Wlan Action=mark packet “Wlan Mark in”
For Broadband to Bridge:- Chain=prerouting In.Interface=(Whatever your broadband interface is) Out.interface=wired bridge Action=mark packet “Wired Mark in”

This should mark all packets for
Wlan → inbound and outbound
Wired Bridge → inbound and outbound
You can now create ques to manage it.