Community discussions

MikroTik App
 
sergeda
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Sep 20, 2006 6:03 am

Equally sharing bandwigh queue and hotspot dynamic queue?

Wed Aug 15, 2007 12:55 pm

Hi everyone.
I am trying to use queue tree to equally share bandwigh between users on hotspot. My setup is:

[admin@MikroTik] > ip firewall mangle print
0 chain=forward src-address=10.1.1.0/24 action=mark-connection new-connection-mark=all-user-con passthrough=yes

1 chain=forward connection-mark=all-user-con action=mark-packet new-packet-mark=user-packets passthrough=yes

[admin@MikroTik] > queue tree print
0 name="Download" parent=Internal packet-mark="" limit-at=0 queue=default priority=8 max-limit=524288 burst-limit=0
burst-threshold=0 burst-time=0s

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

[admin@MikroTik] > queue type print
5 name="pcq-download" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000

[admin@MikroTik] > queue simple print
0 D name="<hotspot1>" dst-address=0.0.0.0/0 interface=Internal parent=none direction=both priority=8
queue=hotspot-default/hotspot-default limit-at=0/0 max-limit=0/0 total-queue=default-small

The problem is router doesn't share bandwigh equally and if I look at download rate of my Download queue and dynamic hotspot queue they are diferent. The hotspot queue is always bigger. Also if I look at hotspot/hosts the sum of data rates of hosts is bigger then my Download queue. Why is this so? What should I do to make my tree queue rules work with hotspot?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Equally sharing bandwigh queue and hotspot dynamic queue?

Wed Aug 15, 2007 1:01 pm

Do you have multiple HotSpot dynamic queues at queue simple or only one ?
 
sergeda
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Sep 20, 2006 6:03 am

Re: Equally sharing bandwigh queue and hotspot dynamic queue?

Wed Aug 15, 2007 2:20 pm

I have only one queue.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Equally sharing bandwigh queue and hotspot dynamic queue?

Wed Aug 15, 2007 4:13 pm

Transofrm you 'queue tree' entries into 'queue simple', and place them before the HotSpot, however I think that with interface (not virtual interface like global-in/out) it should work.