Bandwith Limitation

Hi to all,
I have internet interface of routeros connected at internet at 20 Mbps in download.
In another interface I have my lan.
I would to devide equally the bandwith at users but limiting total bandwith at 10 Mbps and not 20.
In which way is it possible ?
Certainly with queues but I had some difficults.
Can you help me?

what difficulties do you have? =)

in general, you should create PCQ queue with Rate=0 and max-limit=10M

Can you add routeros command?

http://wiki.mikrotik.com/wiki/Manual:Queues_-_PCQ_Examples

just set pcq-rate=0 and max-limit=10M

Then I created two pcq queues in this way:

/queue type add name=“PCQ_download” kind=pcq pcq-rate=0 pcq-classifier=dst-address pcq-limit=10M
/queue type add name=“PCQ_upload” kind=pcq pcq-rate=0 pcq-classifier=src-address pcq-limit=512K

then I added queues tree:

/queue tree add parent=global-in queue=PCQ_download packet-mark=all
/queue tree add parent=global-out queue=PCQ_upload packet-mark=all

But this is only if you mark packet with mangle.
I dont’ want to use mangle.
Can you help me?

then create simple queue with those queue types

p.s. you may use packet-mark=no-mark

Then now I have :

/queue type add name=“PCQ_download” kind=pcq pcq-rate=0 pcq-classifier=dst-address pcq-limit=10M
/queue type add name=“PCQ_upload” kind=pcq pcq-rate=0 pcq-classifier=src-address pcq-limit=512K

/queue simple add queue=PCQ_Download/PCQ_Upload target-addresses=10.0.0.0/8

I specified 10.0.0.0/8 because my lan have this address plane.
It’s all correct?

There is a way to verify that queue is running and bandwith is divided equally to lan users?

see queue stats =)

also, add max-limit=10M to queue definion =)

What is difference beetween pcq-limit parameter and max-limit ? I specified only max-limit…

There are some packet dropped in the queue… what it means?

all answers to basic questions are here: http://wiki.mikrotik.com/wiki/Manual:Queue

for example, ‘pcq-limit’ is number of packets :wink: