Community discussions

MUM Europe 2020
 
kevin_i_orourke
just joined
Topic Author
Posts: 21
Joined: Mon Aug 21, 2006 12:51 pm
Location: Kaduna, Nigeria

Per-user bandwidth limiting at different times of day

Fri Nov 24, 2006 12:25 pm

Our network has a mixture of different types of users, including wireless connections from the staff housing on campus.

At the moment some of the staff kids are on vacation from college and are clogging up our 128/64 kbit/s VSAT link during the day. During the night I don't care what they do.

Is it possible to configure our MikroTik to limit bandwidth usage on a per-user basis and to vary (or remove) the limit depending on the time of day?

Ideally I'd want to do this based on the profile the user belongs to, for example 'staff' users have unrestricted bandwidth at all times but 'residence' users are restricted to 5 kbit/s from 8-7 on weekdays.

I'm thinking I could do non-varying limits by using profile packet marks and limiting packets with those marks in the queues. Are profile packet marks applied before or after firewall mangle rules packet marks?

Kevin
 
freebird
Frequent Visitor
Frequent Visitor
Posts: 98
Joined: Sun Feb 20, 2005 1:16 pm

Fri Nov 24, 2006 3:59 pm

OT: You know that 5kbit are only 625byte/s ... even a GPRS connection is
faster?!! Do you think of 5kbit per user or do you want to share it among all?

seandsl
--
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24424
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Fri Nov 24, 2006 4:03 pm

Kevin, yes that is possible - simple queues have time setting, just make one queue for day and say that time will be 7:00-20:00, and for the rest of the time there will be no limit. if you wish to use this limit per user, not per all users - use PCQ. see manual

but yes, 5Kbits is very slow speed, i even wonder that anything works there. I remember something like 10 years ago when we had ISA modems, even they were 28Kbits and it was horribly slow.
 
kevin_i_orourke
just joined
Topic Author
Posts: 21
Joined: Mon Aug 21, 2006 12:51 pm
Location: Kaduna, Nigeria

Fri Nov 24, 2006 4:50 pm

OT: You know that 5kbit are only 625byte/s ... even a GPRS connection is
faster?!! Do you think of 5kbit per user or do you want to share it among all?
It is a little bit slow, just the first number that popped into my head. If they keep accessing the kind of sites (porn, mostly) that they are just now they'll be getting zero!

Kevin
 
User avatar
airstream
Member Candidate
Member Candidate
Posts: 188
Joined: Fri Feb 03, 2006 6:33 am
Location: New Zealand

Fri Nov 24, 2006 10:38 pm

How about 64Kbits, same performance as a 56k modem operation FLEX. Useable for internet but not hogging to the available bandwidth
Keep tryin' its bound to work!!
-----
-----
ROOT@COSMOS> Reality.sys corrupted -- Reboot Universe (Y/N)?
>_
 
kevin_i_orourke
just joined
Topic Author
Posts: 21
Joined: Mon Aug 21, 2006 12:51 pm
Location: Kaduna, Nigeria

Mon Nov 27, 2006 10:22 am

How about 64Kbits, same performance as a 56k modem operation FLEX. Useable for internet but not hogging to the available bandwidth
64Kbit/s is half of our bandwidth, so the per-user limit would need to be set lower than that. Or maybe I can just have all the 'residence' users sharing 32 Kbit/s between them.

Our problem is that we have too many users on a low-bandwidth, high-latency link.
 
kevin_i_orourke
just joined
Topic Author
Posts: 21
Joined: Mon Aug 21, 2006 12:51 pm
Location: Kaduna, Nigeria

Tue Nov 28, 2006 5:22 pm

OK, I've been looking through the manual and trying to get a better understanding of queues.

So I think I should be able to add a packet mark for each hotspot user profile, for example our staff quarters users (profile 'residence') would have their packets marked differently from staff in their offices (profile 'staff').

I could then set up a simple queues to handle 'residence' packets during working hours (Mon-Fri 0800-1800) with a bandwidth limit.

I'm not sure how this would affect our existing bandwidth-sharing queue tree:
 > /queue tree print
Flags: X - disabled, I - invalid 
 0   name="Download" parent=local packet-mark="" limit-at=0 queue=default 
     priority=8 max-limit=100000 burst-limit=0 burst-threshold=0 
     burst-time=0s 

 1   name="queue2" parent=Download packet-mark=users limit-at=0 
     queue=pcq-download priority=8 max-limit=0 burst-limit=0 
     burst-threshold=0 burst-time=0s 

 2   name="Upload" parent=public packet-mark="" limit-at=0 queue=default 
     priority=8 max-limit=60000 burst-limit=0 burst-threshold=0 burst-time=0s 

 3   name="queue4" parent=Upload packet-mark=users limit-at=0 queue=pcq-upload 
     priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
Also, will it do any good to restrict download (coming in over the satellite link) speeds at the router? Those packets are being sent by the far-end router, so I'm assuming I have no control over what rate they send them at or how they prioritise them (if at all). Dropping the packets in a queue will just lead to retries and possibly make the situation worse. Or am I misunderstanding how this works?

Who is online

Users browsing this forum: Bing [Bot], bmaddison, CZFan, jacuinde, lweidig, marcos512, MSN [Bot], smartnetworks and 70 guests