Community discussions

MikroTik App
 
User avatar
kiler129
Member
Member
Topic Author
Posts: 354
Joined: Tue Mar 31, 2015 4:32 pm
Location: IL, USA
Contact:

UDP traffic on bonded interface is invisible on hAP ac (bug?)

Sun Mar 06, 2016 1:48 am

Hi!

Today I experimented with link bonding between Linux box (2x10/100 cards) and MikroTik (hAP ac). I successfully configured it:

MikroTik side:
[grzegorz@MedTik] > /interface bonding print
Flags: X - disabled, R - running
 0  R name="asclepius-bond" mtu=1500 mac-address=XX:XX:XX:XX:XX:XX arp=enabled slaves=ether4-ascbin,ether3-ascusb mode=balance-rr
      primary=none link-monitoring=mii arp-interval=100ms arp-ip-targets="" mii-interval=100ms down-delay=0ms up-delay=0ms
      lacp-rate=30secs transmit-hash-policy=layer-2 min-links=0
[grzegorz@MedTik] >
Linux side:
# There are separate configurations for both cards due to upstart problems

auto bond0
iface bond0 inet dhcp
	bond-slaves enp7s0 enx9cebe80489d6
	bond-mode 0
	bond-miimon 100

auto enp7s0
iface enp7s0 inet manual
	bond-master bond0

auto enx9cebe80489d6
iface enx9cebe80489d6 inet manual
	bond-master bond0
Next I did a UDP bandwidth test using netcat+pv on laptop and on server - they reported expected speed, both card were used. However when I looked into Interfaces List tab inside Winbox I noticed strange thing - data transferred between laptop & server are only visible on interface connected to laptop. Bonded interface and physical ones are showing 0bps :?
It's worth to mention traffic is visible as ~900Mb/s in torch running at bonding interface, however there's no way to tell what's the real bandwidth (in this case laptop is 1Gb while bonded interface is capable of ~200Mb).
Screenshot 2016-03-05 17.41.35.png
In my configuration ether2 is an master port for bridge which consists of ether2 (which is obvious) and ether5. Than ether2 along with bonded interface & wlan's are added to bridge.
[grzegorz@MedTik] > /interface bridge print
Flags: X - disabled, R - running
 0  R name="bridge-local-intranet" mtu=auto actual-mtu=1500 l2mtu=1598 arp=enabled mac-address=XX:XX:XX:XX:XX:XX protocol-mode=rstp
      priority=0x8000 auto-mac=no admin-mac=XX:XX:XX:XX:XX:XX max-message-age=20s forward-delay=15s transmit-hold-count=6
      ageing-time=5m
[grzegorz@MedTik] > /interface bridge port print
Flags: X - disabled, I - inactive, D - dynamic
 #    INTERFACE                                        BRIDGE                                        PRIORITY  PATH-COST    HORIZON
 0    ether2-ext                                       bridge-local-intranet                             0x80         10       none
 1    wlan24                                           bridge-local-intranet                             0x80         10       none
 2    wlan5                                            bridge-local-intranet                             0x80         10       none
 3    asclepius-bond                                   bridge-local-intranet                             0x80         10       none
[grzegorz@MedTik] >
This scenario is only replicable with UDP - using TCP bandwidth is correctly displayed everywhere.
After a while I think this problem may be related to http://forum.mikrotik.com/viewtopic.php?f=13&t=102152
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: abokennan, Bing [Bot], garibaldo, Google [Bot], mquan1984 and 121 guests