Hello,
I configured a 750G to do some bandwidth limitation. Just a small overview over our scenario:
I want the 750G to limit several other routers, that are connected behind it, to limit their bandwidth. I have a 100mbit internet connection and I want to share that among these routers. Router 1 to 10 should get 10mbit, Router 11-15 1mbit.
I followed a instruction I found a few weeks ago and what I did so far is:
Setting up pcq queue types for the speeds (10mbit down, 1mbit up; 1mbit down, 0,1mbit up), setting up queue trees (total download and a subtree entry for 10mbit down, 1mbit down, total upload and a subtree entry for 1mbit up, 0,1mbit up)
After that I used address lists to mark the traffic in firewall / mangle.
The big question now is: Is each Router from 1 to 10 limited to 10mbit or do they have to share 10mbit alltogether?
I’m still not sure about that, I hope someone can help me out,
cheers
I’ll add two more informations:
First, it seems like I found the answer for the “big question”. I re-read the tutorial and obviously the 10mbit clients have to share the 10mbit pcq rate, not everyone getting each 10mbit. The reason is the way I use the marking in mangle: I have address lists as sources, one list for each bandwidth. That’s obviously wrong.
Second: That pops up the next question, how can I get what I want?
Since I read, that I should keep the queue trees and mangle as short as possible, I planed to use address lists. I don’t actually have to use them, but it’d be a lot easier. What I really want is bandwidth limitation per LAN IP. My LAN IP range from 192.168.0.1 to 192.168.0.255 is going to be used like the following: 192.168.0.1 up to 192.169.0.10 no limit, .11 up to .50 10mbit limit, .51 to .75 5mbit limit. I’m not actually using 255 clients (minus broadcast and router, so 253) in that network, I just want to prepare the list this way. I need to limit upload and download as well.
That looks about right for what you’re trying to do, as long as your queue types are configured correctly (you aren’t showing those).
Maybe an example helps. Let’s assume a WAN interface named WAN and a LAN interface named LAN. LAN carries 192.168.1.1/24. 192.168.1.0/25 should get 1m down and 512k up, and 192.168.1.128/25 should get 2m down and 768k up.
Note that there are several ways to do this. The below makes sense to me. I don’t use connection marks in simple situations like this - there’s no benefit.
If you fill out limit-at and max-limit you can use priorities. In that case both types would be guaranteed up to 50m, and based on priority (not set in the example) would get to go to max-limit before the other type. That allows you to prefer certain routers when you’re oversubscribed.
just to reassure:
your sample config gives 1mbit each and everyone out of 192.168.1.0/25? and 2mbit each in 192.168.1.128/25?
If that is the case, then I don’t know, what I did wrong. The only difference I see is that I use address-lists instead of dst-address in mangle.
No one who can acknowledge my interpretation of fewis post?
Edit:
I think I found my mistake: I used src-address-list in /ip firewall mangle instead of dst-address-list. Might that be the reason why my badwidth-limitation didn’t really work?
Yes, my example is for per user rate limits due to the PCQ configuration. I don’t know what you did wrong. You didn’t post your address lists so it’s impossible to day. Ore importantly: is it working now?
The settings in queue types that have set instead of add commands are just that, default settings for queues used for other purposes. I’m not sure if hotspot queues are there by default or only when you have configured and active Hotspots. Do you run Hotspots while trying to overlay PCQ? If so none of this will work and you will have to try an entirely different approach.
That example is of another router actually, but I still think that was not the problem. As I mentioned earlier, I think mixing src-address-list and dst-address-list in the mangle rule was the problem. My test-setup was working fine after changing that.