Bandwidth/traffic shaping

Right now I have a PCQ setup to distribute the bandwidth evenly among my T1 users. However, at times of heavy usage, there is still quite a bit of lag on the routerboard.

Is there a way to set a maximum bandwidth for each IP address AND use PCQ at the same time? What I’m hoping to do is something similar to this (which is how the NetEqualizer works):

(Using a T1 for this example)

  1. Limit an individual IP address to, say, 2/3 of the total bandwidth, or about 1Mbps.
  2. Enforce PCQs as the total bandwidth approaches capacity of 1.5Mbps.

Basically, I want to be more pro-active in limiting bandwidth usage for an individual. I believe adding a cap for an individual IP address will help tremendously with this, rather than just using a PCQ.

Any thoughts on this, or how to accomplish it?

usermanager or script…

Can you go into a bit more detail?

Also, I want this to be a global setting that won’t require a unique configuration for each user. Users come and go on our network all the time, and I’d rather have this work as a global setting for each unique IP address (hence the PCQ).

Right now we’re just using PCQ to evenly distribute the bandwidth – we just want to add a cap to each IP as well.

Hmmm after re-readin your post i beleive i mite have been wrong, yet again you still can use usermanager to limit a certian user to a certian bandwidth shape, But i beleive we better forget that…

Hmmmm Please looks at the scripts section of the mikrotik wikie, there are some scripts there that mite help you such as the day and night script, you mite beable to edit to fit your usage..

http://wiki.mikrotik.com/wiki/Category:Scripting Mikrotik scripting page


http://wiki.mikrotik.com/wiki/Limit_Different_Bandwidth_In_Day_and_Night Day and night..



See if that dosent help… After i read your post correctly it became a little more difficult, so looks like scripting is the way to go for your delema, Possibly simple queue’s and burst is a second way to go.. Also look into load balancing in wikie, possibly impiment that into your network. Let me know how it goes.. -Jordan

Any other thoughts on this? I can’t imagine it’s impossible to use PCQ AND a cap for bandwidth for each IP. I know both are possible by themselves… together?

Here’s some detail about how the netequalizer does it: http://www.netequalizer.com/neteqsetupdemo.php

The netequalizer strategy seems to be a lot like what’s Comcast is doing/advertising.

/queue type
add name=“pcq-download-test” kind=pcq pcq-rate=1024000 pcq-limit=60 pcq-classifier=dst-address pcq-total-limit=5000

/ queue tree
add name=“pcq-download-test” parent=ether1 packet-mark=“whateverpacketmark” queue=pcq-download-test max-limit=1536000

Everything you want to do can be done with a single PCQ.

The first command creates a PCQ that limits each IP to 1Mbps.
The second command limits all the IP’s combined to 1.5Mbps

If no one else is using than your user can get a full 1mbps. If there is contention than he will get a fair share of what is available.

Are you using this on the upload or download of your link?