Community discussions

MikroTik App
 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Time Format

Sat Jun 10, 2006 1:20 am

Why when i put time limit at my simple Qs the rules dont work?
For example: start time=17:30:00(5 and 30 afternoon)/End time=00:00:00 (midnight)
Is my understanding of this format correct or not?and if it is correct why the rules dont work when i put that time in its place?
Thanks in advance.
zaherhamiyah@hotmail.com
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Re: Time Format

Sat Jun 10, 2006 7:31 am

Why when i put time limit at my simple Qs the rules dont work?
For example: start time=17:30:00(5 and 30 afternoon)/End time=00:00:00 (midnight)
Is my understanding of this format correct or not?and if it is correct why the rules dont work when i put that time in its place?
Thanks in advance.
zaherhamiyah@hotmail.com
Have you set the time correcty on the MT? if youre using RBXXX, you must set a NTP client...

Regards
 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Sat Jun 10, 2006 12:52 pm

Dear i think this has nothing to do with NTP Client Or Server.
I am talking about the Time we set in Simple Queue to make it Working during that time from start to end.But the problem is that it didn't work as mentioned above.
 
Beccara
Long time Member
Long time Member
Posts: 606
Joined: Fri Apr 08, 2005 3:13 am

Sat Jun 10, 2006 2:47 pm

The rules might not work because the router has the wrong time?
 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Sat Jun 10, 2006 3:27 pm

[xxxx@DeltaNet] system ntp server> print
enabled: no
broadcast: no
multicast: no
manycast: no

[xxxx@DeltaNet] system ntp client> print
enabled: no
mode: unicast
primary-ntp: 0.0.0.0
secondary-ntp: 0.0.0.0
status: stopped

these are the conf of my NTP
but again i think this has nothing to do with NTP
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Sat Jun 10, 2006 4:33 pm

[xxxx@DeltaNet] system ntp server> print
enabled: no
broadcast: no
multicast: no
manycast: no

[xxxx@DeltaNet] system ntp client> print
enabled: no
mode: unicast
primary-ntp: 0.0.0.0
secondary-ntp: 0.0.0.0
status: stopped

these are the conf of my NTP
but again i think this has nothing to do with NTP
If you know that the clock time is not the problem, why are you asking here?
 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Sat Jun 10, 2006 4:58 pm

Ohhhhhh God !!!!!!!!!!!
can u plz read the first post and then try to help me ?plz
 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Sat Jun 10, 2006 5:06 pm

name="zaher" target-addresses=192.168.0.4/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both
priority=8 queue=default-small/default-small limit-at=0/0 max-limit=24000/80000 total-queue=default-small
time=17h-1h30m,sun,mon,tue,wed,thu,fri,sat

This is a sample conf of my simple Q.
My question was about the time format time=17h-1h30m
i see 00:00:00(start time) and 00:00:00 (end time).
My request is some body explain this issue.
Coz i thought that 00:00:00 means HH:MM:SS and by applying this rule i found that i was wrong.
Thanks
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Sat Jun 10, 2006 7:07 pm

name="zaher" target-addresses=192.168.0.4/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both
priority=8 queue=default-small/default-small limit-at=0/0 max-limit=24000/80000 total-queue=default-small
time=17h-1h30m,sun,mon,tue,wed,thu,fri,sat

This is a sample conf of my simple Q.
My question was about the time format time=17h-1h30m
i see 00:00:00(start time) and 00:00:00 (end time).
My request is some body explain this issue.
Coz i thought that 00:00:00 means HH:MM:SS and by applying this rule i found that i was wrong.
Thanks
The clock time is 24hs format, BUT if you have a wrong time in you're clock it will not WORK...
 
joeri91942
Frequent Visitor
Frequent Visitor
Posts: 88
Joined: Thu Mar 31, 2005 12:31 pm
Location: Sundsvall, Sweden

Sat Jun 10, 2006 11:49 pm

How about if you tried to read the manual or maybe just tried to look at the console and read what it says?... ok, the manual is less then readable on this subject but winbox gives a hint when the second field is "1d 00:00:00"

The time field for simple queues is starttime-duration,weekdays to use!

A time field 17:30:00-00:00:00 tells the router to start this queue at 17:30:00 and use it for exactly 0 seconds! :-)

/Jörgen
 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Sun Jun 11, 2006 12:24 am

How about if you tried to read the manual or maybe just tried to look at the console and read what it says?... ok, the manual is less then readable on this subject but winbox gives a hint when the second field is "1d 00:00:00"

The time field for simple queues is starttime-duration,weekdays to use!
Yes that what i thought , and thanks for your nice try.But the problem according to your explanation is not solved,why is that coz i tried it before and the answer is negative.And again why?coz when i apply the rule the counters dont work and when i disable it the counters work again.This is an example:
2 name="customer's name" target-addresses=192.168.0.11/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both
priority=8 queue=default-small/default-small limit-at=0/0 max-limit=24000/80000 total-queue=default-small
time=17h-10h,sun,mon,tue,wed,thu,fri,sat

And this from the console help:
queue simple> add time=
At which time and day of week to allow this queue

Time ::= Start-End,Day
Start -- time interval
End -- time interval
Day ::= sun|mon|tue|wed|thu|fri|sat[,Day*]

The help inside console says start-End not start-duration
and if u look at time=17h-10h the logic says that the rule must operate from 5 PM till 10 AM in the next morning.And my local and server's time is 00:20 AM so it must work but in reality it dont work??????
Any clue about this?
i hope i explained the problem well.
NO BODY is PERFECT
 
joeri91942
Frequent Visitor
Frequent Visitor
Posts: 88
Joined: Thu Mar 31, 2005 12:31 pm
Location: Sundsvall, Sweden

Sun Jun 11, 2006 10:50 am

Opps, my bad!

This is strange, now I have never used simple queues, I just looked at it to see if I could give you some help

Winbox in my case gives a strong hint that it should be start-duration (since it default shows 1d 00:00:00 in the end field), however when I try that it doesn't work....

When I instead used the starttime-endtime it works for me..
add name="queue1" target-addresses=192.168.2.30/32 dst-address=0.0.0.0/0 \
    interface=all parent=none direction=both priority=8 queue=default/default \
    limit-at=0/0 max-limit=0/64000 total-queue=default \
    time=9h-9h40m,sun,mon,tue,wed,thu,fri,sat disabled=no
This queue made it hard for me to surf.... as it should since I only get 64K :-)

However.... I can't seem to see the amount of traffic in the SSH-terminal, it's only visible in winbox. Or I might not have found the proper comands yet.

Are you sure your problem lies with the time format and not with some other setting? If you create a most basic simple queue in winbox (just the target IP and the time field) do you see the counters change?

/Jörgen

/Jörgen
 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Sun Jun 11, 2006 1:08 pm

Are you sure your problem lies with the time format and not with some other setting? If you create a most basic simple queue in winbox (just the target IP and the time field) do you see the counters change?
And that's my friend why they call it Simple Queue to make our lives more complicated :lol:
This problem is so Weird.
:shock:
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Sun Jun 11, 2006 9:20 pm

I think what someone else was trying to get at is that are you sure your local clock (/sys clock) has the right time?

I really can't help much, but one question relating to this...how does the queue (or the router for that matter) know what day of the week it is? I'm not seeing anywhere in the router a day that associates to the current date? I wonder if this is a hidden setting that only works if your ntp client is configured and running?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Mon Jun 12, 2006 9:47 am

it is a known problem that if you adjust DTS settings for the clock, then rules do not see these changes. either set rules with this in mind, or don't use DST

Who is online

Users browsing this forum: EnglishInfix and 15 guests