Community discussions

MikroTik App
 
andresgom
just joined
Topic Author
Posts: 6
Joined: Thu Aug 23, 2012 12:38 am

simple Queue doesn work

Thu May 08, 2014 1:26 am

Hi.

I have a RB1100AHx2 with RouertOS 522:

/system package> print
Flags: X - disabled
# NAME VERSION SCHEDULED
0 routeros-powerpc 5.22
1 system 5.22
2 X ipv6 5.22
3 routerboard 5.22
4 X wireless 5.22
5 hotspot 5.22
6 dhcp 5.22
7 mpls 5.22
8 routing 5.22
9 ppp 5.22
10 security 5.22
11 advanced-tools 5.22

I'm using a simple configuration for a hotspot. I use the subnet 192.168.16.0/21 for the DHCP server:
/ip dhcp-server network
add address= comment="hotspot network" dhcp-option="" \
dns-server="" gateway=192.168.16.1 ntp-server="" wins-server=""

MY hotspot config:
/ip hotspot profile
set [ find default=yes ] dns-name="" hotspot-address=0.0.0.0 html-directory=hotspot http-proxy=0.0.0.0:0 login-by=\
http-chap,https name=default rate-limit="" smtp-server=0.0.0.0 split-user-domain=no ssl-certificate=none use-radius=no
add dns-name="" hotspot-address=192.168.16.1 html-directory=EDR_CLAVE http-proxy=0.0.0.0:0 login-by=http-chap,https name=\
hsprof2 nas-port-type=wireless-802.11 radius-accounting=yes radius-default-domain="" radius-interim-update=received \
radius-location-id="" radius-location-name="" radius-mac-format=XX:XX:XX:XX:XX:XX rate-limit="" smtp-server=0.0.0.0 \
split-user-domain=no ssl-certificate=none use-radius=yes
/ip hotspot
add address-pool=hs-pool-7 addresses-per-mac=5 disabled=no idle-timeout=2h interface=HS_DIAMOND keepalive-timeout=none \
name=SALA_DIAMOND profile=hsprof2

/ip hotspot user profile
set [ find default=yes ] idle-timeout=30m keepalive-timeout=45m name=default shared-users=400 \
status-autorefresh=1m transparent-proxy=no



I want to admin my bandwidth by subnets... example: 4 Mbps for the users in subnet 192.168.16.0/27, other 4 Mbps for user in subnet 192.168.16.32/27, etc..... I have benn this (exactly the same) in a RB 1200, and It works fine. This is my simple queue configuration:


/queue simple
add burst-limit=5M/5M burst-threshold=3M/3M burst-time=10s/10s direction=both disabled=no interface=all limit-at=4M/4M \
max-limit=4M/4M name=DIAM1 packet-marks="" parent=none priority=8 queue=default-small/default-small target-addresses=\
192.168.16.0/27 total-queue=default-small
add burst-limit=5M/5M burst-threshold=3M/3M burst-time=10s/10s direction=both disabled=no interface=all limit-at=4M/4M \
max-limit=4M/4M name=DIAM2 packet-marks="" parent=none priority=8 queue=default-small/default-small target-addresses=\
192.168.16.32/27 total-queue=default-small
add burst-limit=5M/5M burst-threshold=3M/3M burst-time=10s/10s direction=both disabled=no interface=all limit-at=4M/4M \
max-limit=4M/4M name=DIAM3 packet-marks="" parent=none priority=8 queue=default-small/default-small target-addresses=\
192.168.16.64/27 total-queue=default-small
add burst-limit=5M/5M burst-threshold=3M/3M burst-time=10s/10s direction=both disabled=no interface=all limit-at=4M/4M \
max-limit=4M/4M name=DIAM4 packet-marks="" parent=none priority=8 queue=default-small/default-small target-addresses=\
192.168.16.96/27 total-queue=default-small

... etc



And when I see each queue, they aren't working, theys statistics are empty, the traffic controll isn't working, so the clients are using more bandwidth.

Finally, ... It's a router in production, do Its better if I don't reboot it.
What can I do? I think it is a simple configuration, but it doesn't work.

Regards

Andres
 
alexandria
newbie
Posts: 33
Joined: Mon Mar 11, 2013 7:28 am

Re: simple Queue doesn work

Tue Jun 17, 2014 12:28 pm

I don't know if this is correct. I'm just trying... The subnets that you're using is all the same,192.168.16.0/27 is the same with 192.168.16.32/27. whatever the speed you assigned to 192.168.16.0/27 will be implemented as well in 192.168.16.32/27.remove /27 or assigned a different subnet.
 
User avatar
dgnevans
Member
Member
Posts: 469
Joined: Fri Mar 08, 2013 11:24 am
Location: Zimbabwe
Contact:

Re: simple Queue doesn work

Tue Jun 17, 2014 1:02 pm

I have a simple setup just tackling it from a different angle.
What is the total bandwidth you have available?
I would use PCQ to control the bandwidth within each subnet.
below is a copy of my config for simple queues this has worked well for me in past. The top one "0" is probably not required for your setup this is just there to ensure that lan traffic between subnets is not controlled. You will notice the queue types are set to ones I have created because I want to limit each individual users or ip address to a maximum bandwidth. For your setup I think you can use "pcq-upload-default" & "pcq-download-default" then set your max-limit at your 4M/4M for each. Then your wan max limits set at the total max you have and the traget your whole subnet ie /24

0 name="LAN Traffic" target=172.17.0.0/16 dst=172.17.0.0/16 parent=none
packet-marks="" priority=8/8
queue=synchronous-default/synchronous-default limit-at=0/0
max-limit=0/0 burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default


6 name="BACKBONE" target=172.17.0.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

7 name="PAMUSHANA-MGR" target=172.17.6.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

8 name="HQ-WAN" target=172.17.8.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

9 name="KWALI-WAN" target=172.17.9.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

10 name="HQ-RES-WAN" target=172.17.10.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

11 name="PAM-WAN" target=172.17.16.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

12 name="PAM-RES-WAN" target=172.17.17.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

13 name="PAM-GUEST-WAN" target=172.17.18.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-512K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

14 name="PAM-Villa7-WAN" target=172.17.19.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-512K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

15 name="MIK-WAN" target=172.17.24.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

16 name="MIK-RES-WAN" target=172.17.26.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

17 name="HAK-WAN" target=172.17.25.0/24 parent=WAN packet-marks=""
priority=8/8 queue=PCQ-UP-96K/PCQ-DOWN-384K limit-at=0/0 max-limit=0/0
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default

18 name="WAN" target=172.17.0.0/16 parent=none packet-marks="" priority=8/8
queue=PCQ-UP-0/PCQ-DOWN-0 limit-at=3M/10M max-limit=3M/10M
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=synchronous-default