[solved] Hotspot traffic speed after login

Hi,

I setup a basic hotspot but when a user is logged, his traffic downs to 2,6kbs (fast.com). If I disable the hotspot the traffic of the client is 20Mbps. Do you know where it could come from ?
The setup is basic, a dhcp on ether2-master, client are connecting with wifi (unifi AP) which have static ip addresses. I made binding of thoses static ip for the hotspot. As in the mikrotik wiki I setup with a rate limit tx/rx to 512000/512000. But if I remove this rate limit, I got no more traffic speed.

Here is mikrotik configuration :
Networks :

[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                              
 0   ;;; defconf
     192.168.88.1/24    192.168.88.0    ether2-master                          
 1 D 192.168.1.135/24   192.168.1.0     ether1

DNS :

[admin@MikroTik] > ip dns print
                      servers: 192.168.88.1
              dynamic-servers: 192.168.1.254,192.168.1.255
        allow-remote-requests: yes
          max-udp-packet-size: 4096
         query-server-timeout: 2s
          query-total-timeout: 10s
       max-concurrent-queries: 100
  max-concurrent-tcp-sessions: 20
                   cache-size: 2048KiB
                cache-max-ttl: 1w
                   cache-used: 468KiB

Pools

[admin@MikroTik] > ip pool print
 # NAME                                         RANGES                         
 0 dhcp                                         192.168.88.31-192.168.88.254   
 1 vpn                                          192.168.89.2-192.168.89.255

DHCP

[admin@MikroTik] > ip dhcp-server print
Flags: X - disabled, I - invalid 
 #   NAME     INTERFACE     RELAY           ADDRESS-POOL     LEASE-TIME ADD-ARP
 0   defconf  ether2-master                 dhcp             10m

Hotspot

[admin@MikroTik] > ip hotspot print
Flags: X - disabled, I - invalid, S - HTTPS 
 #   NAME         INTERFACE       ADDRESS-POOL       PROFILE       IDLE-TIMEOUT
 0 X hotspot1     ether2-master   dhcp               hsprof1       5m

Hotpsot Profile

[admin@MikroTik] > ip hotspot profile print
Flags: * - default 
 0 * name="default" hotspot-address=0.0.0.0 dns-name="" 
     html-directory=flash/hotspot html-directory-override="" rate-limit="" 
     http-proxy=0.0.0.0:0 smtp-server=0.0.0.0 login-by=mac,http-chap 
     mac-auth-mode=mac-as-username mac-auth-password="" split-user-domain=no 
     use-radius=no 

 1   name="hsprof1" hotspot-address=192.168.88.1 dns-name="lerelais.sml" 
     html-directory=flash/hotspot html-directory-override="" 
     rate-limit="512000/512000" http-proxy=0.0.0.0:0 smtp-server=0.0.0.0 
     login-by=cookie,http-chap http-cookie-lifetime=3d split-user-domain=no 
     use-radius=no

Hotspot User

[admin@MikroTik] > ip hotspot user print   
Flags: * - default, X - disabled, D - dynamic 
 #   SERVER           NAME         ADDRESS         PROFILE         UPTIME      
 0 * ;;; counters and limits for trial users
                      default-t...                                 0s          
 1                    admin                        test            14m17s

Hotspot User Profile
I just give the profile 1, in 0 it’s the default profile (the final one I would like to use, but I have script associated)

 1   name="test" address-pool=dhcp idle-timeout=none keepalive-timeout=2m 
     status-autorefresh=1m shared-users=1000 add-mac-cookie=yes 
     mac-cookie-timeout=3d rate-limit="512000/512000" address-list="" 
     transparent-proxy=no

Hotspot binding

[admin@MikroTik] > ip hotspot ip-binding print  
Flags: X - disabled, P - bypassed, B - blocked 
 #   MAC-ADDRESS       ADDRESS                         TO-ADDRESS      SERVER                                                                                                                 
 0 P 78:0C:B8:6D:E8:72 192.168.88.22                   192.168.88.22   hotspot1                                                                                                               
 1 P 44:D9:E7:F2:22:11 192.168.88.12                   192.168.88.12   hotspot1                                                                                                               
 2 P 80:2A:A8:C0:24:3C 192.168.88.11                   192.168.88.11   hotspot1                                                                                                               
 3 P 80:2A:A8:19:C9:21 192.168.88.13                   192.168.88.13   hotspot1                                                                                                               
 4 P B8:27:EB:C4:EB:67 192.168.88.21                   192.168.88.21   hotspot1

192.168.88.1x are the unifi AP and 2x are a raspi and my laptop to not be blocked :wink:

Thank you for your help.

When you setup speed limit via Hotspot attributes it usually creates a simple queue.

Check queues / simple

Thank you, but queue is empty.

[admin@MikroTik] /queue simple> print 
Flags: X - disabled, I - invalid, D - dynamic

I also try without rate limit and I had the same behaviors. Connected client are limited to 2.6kbs.

I reset the router and configure it from scratch. I setup first a hostpot following the mikrotik tutorial :
http://wiki.mikrotik.com/wiki/Manual:IP/Hotspot

I tested with several clients and they could log in and traffic speed was what I expected. So I customize the hotspot following the nexudus tutorial because the coworking space use nexudus to track user check in and out :
http://docs.nexudus.com:8090/display/NSKE/Mikrotik

We tried again and it works fine.

So I do not know why but it works this way. This is certainly something I did wrong during hotspot setup but that is not removed when you remove the hotspot. Because I also tried to remove the hotspot and setup a new one following the mikrotik tutorial and traffic was limited to 2.6Kbps. The reset removed everything I did wrong.

Hope it helps people.