per session bandwidth limit

hello to all mikrotik genius
I want to do the following thing with my mikrotik. Can anyone help me to do it.

i am running mikrotik router 3.13. some of my user consumes 2 mbps to 5 mbps bandwidth. i want these clients will get not more than 512 kbps per download session. so is it possible with mikrotik to limit download session. as much i know somebody is doing this with juniper.


Thanks
MMI

I am not sure what are you asking. If you want users to have traffic shaping assigned on connect you can setup radius for that, or setup simple queue and static ip addresses…

are you using NAT?

yes i am using nat

oh, sorry, NAT doesn’t play any role =)

you just need to create a queue with type=pcq, classifier=all, rate=512k, parent=global-in - that will limit each connection to 512k. then create a queue with parent=global-out, and limit here each user’s total bandwidth to 2M, 4M, 5M - whatever you want

have just re-read your post… maybe, I have misunderstood you, and things are much more simplier?.. what is ‘download session’?

also see http://wiki.mikrotik.com/wiki/PCQ

'm facing a similar problem. I’ve 1500 PppoE clients - they are assigned different bandwidth limits (256k , 512k) through profile. But while they accesses a specific server suppose 123.49.46.xxx I need to change their speed 1M per PppoE user - but except this server their speed will remain as per their profile speed (256k or 512 k or whatever is being assigned).

Any idea ?

And the other thing is - client “A” is assigned speed 5M, if he tries to download/upload to a remote server his single download/upload will consume-up this whole 5M. So, what I would like is that - if “A” goes for a single download/upload he will not be able to use-up more than 512k and now if a goes for 10 individual download/upload - then “A” will be able to use up 512k*10=5M

Any idea ?

through profile - means, simple queue is created per user?.. didn’t you think of switching to queue tree + pcq? 1500 simple queues is extremely high load for one router…

please read: http://forum.mikrotik.com/t/per-session-bandwidth-limit/32684/5