p2p simple queue

i want to setup something very simple.
during office hours i want all the p2p programs to download/upload to a minimum speed.
On night time and on the weekends the p2p traffic can go up to a maximum. here is what i did:

[admin@MikroTik] > queue simple print
Flags: X - disabled, I - invalid, D - dynamic
0 name=“queue1” dst-address=0.0.0.0/0 interface=all parent=none priority=8
queue=default/default limit-at=10000/10000 max-limit=200000/200000
total-queue=default time=9h-21h24m,mon,tue,wed,thu,fri p2p=all-p2p

unfortunatelly it only works to the max-limit.
no matter if i am using p2p between the time i set up (currently 9:00-21:00) or outside it (night time or week-ends), the router keeps on stoping the traffic on max-limit=200000 and NOT on limit-at:=10000.

as i red in the manual, limit-at means that the router will give at least the limit-at speed and if there is spare bandwidth it will share it outside the time and days marked in time limit.

if o got this all wrong here is what i want:
during office time and days i want all p2p to download/upload to a maximum speed, and only in night time and week ends p2p can use all the avaliable bandwidth

i hope my question is clear…

limit-at, is minimun bw , so if you want to cap to a max speed (without a minimun bw) you have to use only max-limit, try this queue:

add name="Peer to Peer" target-addresses=0.0.0.0/0 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=8 queue=default/default limit-at=0/0 max-limit=200000/200000 total-queue=default time=9h-21h,mon,tue,wed,thu,fri p2p=all-p2p

This queue will limit to 200K max from 9:00 to 21:00 from monday to friday, and from 21:00 to 9:00 and weekens it will be unlimited.

i totally agree on what it is SUPPOSE to do.. but it DOES NOT :frowning:

here are both queues (the 1st is mine and it is disabled, i was testing the 2nd one you sent)

[admin@MikroTik] queue simple> print
Flags: X - disabled, I - invalid, D - dynamic
0 X name=“p2p_daytime” target-addresses=0.0.0.0/0 dst-address=0.0.0.0/0 interface=all parent=none
priority=8 queue=default/default limit-at=0/0 max-limit=54000/54000 total-queue=default
time=9h-17h,mon,tue,wed,thu,fri p2p=all-p2p

1 name=“peer2peer” target-addresses=0.0.0.0/0 dst-address=0.0.0.0/0 interface=all parent=none
priority=8 queue=default/default limit-at=0/0 max-limit=200000/200000 total-queue=default
time=9h-21h,mon p2p=all-p2p

well, they DONT do what they are suppose to do,
the 2nd one is suppose to stop at 17:00, well the time is 17:47 and it keeps on stoping p2p traffic up to te max-limit (200000)
i am watching the graphical interface and ican see the icon in front of the queue getting red, and the speed remains under 200.000

any ideas ??? i think it is something very very silly, but…

The second one is from 9 to 21…

my mistake, u r right… i was just playing with it, trying to find out what is wrong

but my point remains the same… it does not work, it keeps on blocking p2p even AFTER thefor the responseves time limit…

P.S. thanks 4 the responses…

:unamused: Do you have set correct date and time in the mk?

I SOLVED IT

it is propably a bug… :smiley:

as soon as i upgraded from version 2.9.6 to version 2.9.8 it works like a charm…
it does exactly what i want. it limits the p2p traffic to the max limit between office times and days. As soon as the time passes, the rule stops working and the p2p programs get all the bandwidth…

thanks again for the help , the rule that it worked is this:

add name=“Peer to Peer” target-addresses=0.0.0.0/0 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=8 queue=default/default limit-at=0/0 max-limit=200000/200000 total-queue=default time=9h-21h,mon,tue,wed,thu,fri p2p=all-p2p


here is the printout:

[admin@MikroTik] > queue simple print
Flags: X - disabled, I - invalid, D - dynamic
0 name=“p2p” target-addresses=0.0.0.0/0 dst-address=0.0.0.0/0 interface=all parent=none
direction=both priority=8 queue=default/default limit-at=0/0 max-limit=20000/50000
total-queue=default time=9h-21h,mon,tue,wed,thu,fri p2p=all-p2p