Community discussions

MikroTik App
 
jowi007
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Thu Oct 13, 2005 11:07 am

Apply different speed for customers day and night

Sun Feb 11, 2007 2:22 am

Hi


i am using simple queue for my pppoe users
i want to give some users special time of faster internet

will these queue do the job ?

18 name="Joseph Day" target-addresses=10.10.10.238/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both
priority=8 queue=default-small/default-small limit-at=32000/128000 max-limit=32000/128000 total-queue=default-small
time=16h1s-2h,sun,mon,tue,wed,thu,fri,sat

19 name="Joseph NIght" target-addresses=10.10.10.238/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both
priority=8 queue=default-small/default-small limit-at=64000/256000 max-limit=64000/256000 total-queue=default-small
time=2h1s-15h59m59s,sun,mon,tue,wed,thu,fri,sat


thx
 
ashisheitl
Member Candidate
Member Candidate
Posts: 115
Joined: Fri Dec 01, 2006 10:33 am

Sun Feb 11, 2007 5:29 am

U need to create 2 Queue for the same target address and allote diff. speed.

Write a script and configure a scheduler for queue. The script will automatically enable and Disable the queue.

Example.

[admin@LAN Server] queue simple> pr
Flags: X - disabled, I - invalid, D - dynamic
0 name="day" target-addresses=10.10.10.2/32 dst-address=0.0.0.0/0
interface=LAN parent=none direction=both priority=8
queue=default-small/default-small limit-at=32000/64000
max-limit=64000/128000 total-queue=default-small

1 X name="night" target-addresses=10.10.10.2/32 dst-address=0.0.0.0/0
interface=LAN parent=none direction=both priority=8
queue=default-small/default-small limit-at=128000/256
max-limit=256000/512000 total-queue=default-small
[admin@LAN Server] queue simple>

Script
-----------
[admin@LAN Server] system script> pr
0 name="day" owner="admin"
policy=ftp,reboot,read,write,policy,test,winbox,password
last-started=feb/11/2007 09:14:03 run-count=2
source=/queue simple enable day; /queue simple disable night

1 name="night" owner="admin"
policy=ftp,reboot,read,write,policy,test,winbox,password run-count=0
source=/queue simple enable night; /queue simple disable day
[admin@LAN Server] system script>

Schedular for the Queue
----------------------------

[admin@LAN Server] system scheduler> pr
Flags: X - disabled
# NAME ON-EVENT START-DATE START-TIME INTERVAL RUN-COUNT
0 DAY day feb/11/2007 06:00:00 1d 0
1 NIGHT night feb/11/2007 18:00:00 1d 0
[admin@LAN Server] system scheduler>

Try this , it will help u to solve your problem

ASHISH.
 
jowi007
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Thu Oct 13, 2005 11:07 am

Sun Feb 11, 2007 10:13 am

thx i will try it and let you know the result
 
jowi007
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Thu Oct 13, 2005 11:07 am

Sun Feb 11, 2007 11:15 pm

i think this will be better
i can make faster browsing for all normal user
they will browse for 64/256 speed and abusers will be downgraded to lower speed the 32/128 will this configuration work ?


name="Joseph Day" target-addresses=10.10.10.238/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both
priority=8 queue=default-small/default-small limit-at=32000/128000 max-limit=32000/128000 burst-limit=64000/256000
burst-threshold=32000/128000 burst-time=10s/1m total-queue=default-small
 
User avatar
ashish
Long time Member
Long time Member
Posts: 546
Joined: Mon Feb 12, 2007 5:50 am
Location: Virginia, USA.

Mon Feb 12, 2007 2:01 pm

No It is NOT a solution for your REQUIREMENT.

Just try what i have sent u.
 
ManyX
Member Candidate
Member Candidate
Posts: 111
Joined: Sat Jan 07, 2006 12:48 pm
Location: PolanD

Tue Feb 13, 2007 10:36 am

I use freeradius to authenticate my user on MT pppoe server my write in freeradius look like this
#-----------------------------------------------------------------------------
# Mr Been
"bsanocki34" User-Password == "ksjs73hj", Calling-Station-Id == "00:11:11:03:4B:91
Framed-IP-Address = 192.168.10.98,
Framed-IP-Netmask = 255.255.255.255,
Rate-Limit = "48k/128k"
#------------------------------------------------------------------------------

And now I want give Mr Been higher transfer in night (from 10:00pm to 10:00am)
How cna I do that.
some idea??
 
User avatar
ashish
Long time Member
Long time Member
Posts: 546
Joined: Mon Feb 12, 2007 5:50 am
Location: Virginia, USA.

Tue Feb 13, 2007 2:58 pm

Sorry BOSS,
NO idea abou FREE RADIUS.
 
User avatar
plam40
newbie
Posts: 29
Joined: Tue Feb 21, 2006 1:27 pm
Location: Greece

Tue Feb 13, 2007 3:16 pm

About the Free Radius Qestion :

Hey boy what's the difference if you authenticate users using radius or what ever ? Every user has it own IP even if it is dynamic you can still create a static PPPoE interface for every user you need to give different B/W . Well and from that point you need just to add some queues for that person ;)

If you still dont get that I will post a small example

Who is online

Users browsing this forum: BenceLK, Kanzler, TeWe and 196 guests