Community discussions

MikroTik App
 
whatever
Member
Member
Topic Author
Posts: 351
Joined: Thu Jun 21, 2018 9:29 pm

hAP ac2 - 100 Mbit/s link slows down unrelated switch traffic

Sun Nov 07, 2021 12:54 pm

Hi there,

I am running something like this:
 ┌──────────┐       ┌──────────┐
 │          │ 1 Gb/s│          │
 │ Internet ├───────┤  RB4011  │
 │          │       │          │
 └──────────┘       └───────┬──┘
                            │
                            │ VLAN Trunk
                            │ 1 Gb/s
                            │
┌───────────────────────────┼──────────┐
│                           │          │
│        ┌──────────────────┼────────┐ │
│        │                  │        │ │
│        │              ┌───┴─────┐  │ │
│        │              │ ether1  │  │ │
│        │              └─────────┘  │ │
│        │                           │ │
│        │ ┌────────┐   ┌─────────┐  │ │100 Mb/s  ┌─────┐
│        │ │ wlan2g │   │ ether2  ├──┼─┼──────────┤ TV  │
│        │ └────────┘   └─────────┘  │ │          └─────┘
│        │                           │ │
│        │ ┌────────┐   ┌─────────┐  │ │
│        │ │ wlan5g │   │ ether3-5│  │ │
│        │ └───┬────┘   └─────────┘  │ │
│        │     │                     │ │
│        │     │         bridge-lan  │ │
│        │     │                     │ │
│        └─────┼─────────────────────┘ │
│              │                       │
│  hAP ac²     │                       │
│              │                       │
└──────────────┼───────────────────────┘
               │802.11ac
               │80 MHz 1S
        ┌──────┴───────┐
        │Android phone │
        └──────────────┘
The hAP ac² is only used as wifi AP and access switch, all layer 3 stuff is on RB4011.
When the 100 Mb/s link to the TV is up, download speed from Internet to my Android phone is limited to ~70 Mb/s. As soon as I unplug the TV cable on ether2, download speed jumps back to 200+ Mb/s. Gigabit links on the same port have no such effect.

Current firmware is 6.48.5 long-term, but the same issue exists with all the previous long-term releases. I suspect that something strange is happening inside the switch chip, does anybody know a fix or a workaround for this?


For reference, this is the bridge and switch chip config:
/interface bridge
add name=bridge-lan protocol-mode=none
/interface bridge port
add bridge=bridge-lan interface=ether1
add bridge=bridge-lan interface=ether2
add bridge=bridge-lan interface=ether3
add bridge=bridge-lan interface=ether4
add bridge=bridge-lan interface=ether5

/interface ethernet switch port
set 0 vlan-mode=secure
set 1 default-vlan-id=10 vlan-mode=secure
set 2 default-vlan-id=10 vlan-mode=secure
set 3 default-vlan-id=10 vlan-mode=secure
set 4 default-vlan-id=10 vlan-mode=secure
set 5 vlan-mode=secure
/interface ethernet switch vlan
add independent-learning=yes ports=ether1,ether2,ether3,ether4,ether5,switch1-cpu switch=switch1 vlan-id=10
add independent-learning=yes ports=ether1,switch1-cpu switch=switch1 vlan-id=99
add independent-learning=yes ports=ether1,switch1-cpu switch=switch1 vlan-id=20
Wifi interfaces are configured via capsman in local-forwarding mode:
# on hAP ac²
[...]
 3  R ;;; managed by CAPsMAN
      ;;; channel: 5260/20-Ceee/ac/DP(17dBm), SSID: XXX, local forwarding
[...]
/interface wireless cap
# 
set bridge=bridge-lan caps-man-addresses=192.168.XXX certificate=request discovery-interfaces=vlan-mgmt enabled=yes interfaces=\
    wlan2g,wlan5g lock-to-caps-man=yes static-virtual=yes

# Datapath on capsman@rb4011
/caps-man datapath
add client-to-client-forwarding=yes local-forwarding=yes name=private vlan-id=10 vlan-mode=use-tag
add client-to-client-forwarding=no local-forwarding=yes name=guest vlan-id=20 vlan-mode=use-tag
 
Kanta
just joined
Posts: 17
Joined: Tue May 15, 2018 7:54 pm

Re: hAP ac2 - 100 Mbit/s link slows down unrelated switch traffic  [SOLVED]

Tue Nov 09, 2021 2:05 am

Disable HW switching on the 100Mbit/s port, 100Mbit/s to 1Gbit/s port does not work properly on most 100/1000G RB-s like hap-ac2, rb2011 and such.
 
whatever
Member
Member
Topic Author
Posts: 351
Joined: Thu Jun 21, 2018 9:29 pm

Re: hAP ac2 - 100 Mbit/s link slows down unrelated switch traffic

Wed Nov 10, 2021 5:38 pm

So simple, but looks good.
/interface bridge
add name=bridge-lan protocol-mode=none
/interface bridge port
add bridge=bridge-lan interface=ether1
add bridge=bridge-lan hw=no interface=ether2
add bridge=bridge-lan interface=ether3
add bridge=bridge-lan interface=ether4
add bridge=bridge-lan interface=ether5
WiFi to internet bandwidth no longer drops. Thank you for the hint.

Who is online

Users browsing this forum: No registered users and 28 guests