:local i 0
:local txrx 0
:local iface "wlan1"
:if ([:len [/interface find name=$iface]] > 0) do={
:while ([/interface get [find name=$iface] running]=true) do={
:if ($i<10) do={
:set i ($i+1)
:delay 1
/interface monitor-traffic $iface once do={
:set txrx ($txrx+$("tx-bits-per-second")+$("rx-bits-per-second"))
}
:log info ($i . " - txrx: " . $txrx)
} else {
:if ($txrx=0) do={
:log warning "Resetting interface"
/interface disable [/interface find name=$iface]
/interface enable [/interface find name=$iface]
}
stop
}
}
}
# variable for intervals
:local i 0
# variable for traffic
:local txrx 0
# name of the wireless interface
:local iface "wlan1"
# check if interface exists, otherwise don't continue
:if ([:len [/interface find name=$iface]] > 0) do={
# check if connection is running, otherwise don't continue
:while ([/interface get [find name=$iface] running]=true) do={
# we will do 10 snapshots of the network traffic
:if ($i<10) do={
# each time we do a snapshot, we increment the counter
:set i ($i+1)
# snapshots are done in 1 second intervals
:delay 1
# take traffic snapshot and increment txrx variable by current bps
# to validate TX only replace line with :set txrx ($txrx+$("tx-bits-per-second"))
/interface monitor-traffic $iface once do={
:set txrx ($txrx+$("tx-bits-per-second")+$("rx-bits-per-second"))
}
# print information in the log window, this line can be removed to keep the logs clean
:log info ($i . " - txrx: " . $txrx)
# execute this part of script after 10 snapshots
} else {
# if the sum of all 10 traffic snapshots is 0 then disable and enable interface
:if ($txrx=0) do={
:log warning "Resetting interface"
/interface disable [/interface find name=$iface]
/interface enable [/interface find name=$iface]
}
# stop the script
stop
}
}
}
We are testing 5.23rc1For everyone with this problem. Try latest 5.23rc1 with fix
http://www.mikrotik.com/download/share/ ... .23rc1.zip
No changes (about freezing) in changelog. The only way. Testing and testingToday they have released 5.23 (2013-Jan-29 14:07), anyone knows if they have fixed it? should I upgrade from the release I got last week?
Today i had an very similar issue. In my case setting the adaptive-noise-immunity=none solved it.new error found:
AP is 411AH, mimo, nv2, N-only
11 clients connected. one client stopped, but still connected.
even mac telnet not works.
this client had same link uptime as AP (all others was re-connected since reboot already).
client does not respond, but after remove (kick off) he joined again, and data flowed again.
he has torrent client, so traffic is continious to/from him -> must not be timeout or something.
maybe buffer overrun somewhere in nv2?
his traffic on eth (so on wireless since reboot, ~6.5days):
tx (to client): 33gig 79.2 million packets
rx (from client): 15gig 55.5 million packets
maybe useful info.
ps: AP is 5.22, all clients are 5.18
Try upgrade AP and all clients to 5.23. Then see if problem persistnew error found:
ps: AP is 5.22, all clients are 5.18
the changelog was missing the nv2 improvement entry. We have fixed it.can you explain why? there is no wireless fix (noticed) in 5.23
Uldis, have the same wireless fix 6.0rc8? For our clients which using older 6.0rcthe changelog was missing the nv2 improvement entry. We have fixed it.can you explain why? there is no wireless fix (noticed) in 5.23
You need to install v5.23 on the AP and on the Clients.
The idea was to use the blue warning log entries for debugging purposes. If all 10 log enries indicate 0 traffic, then the interface is restarted, which is also confirmed with a blue log entry. Changing ':log warning' into ':log info' results in a standard log entry. However, when the script is launched every 20 seconds I would remove that line completely, so that the logs remain clean.:#log warning ($i . " - txrx: " . $txrx)
The AP what's usually locks up make me this screen:
Please compare the used cpu in top left with profiler. If process IDLE is using up all the resource, how to kill it?
(ok, i know what does idle means, but where the bug is?)
Sent 3 supouts. Problem did not show up with 20MHz Channel and did not show up with TDMA-Period Size=2.For those who experience the Nv2 lockups:
Please make sure that the AP and the client uses v5.24 and do the following steps, those will help to detect the problem and to find a fix for it:
1. Wait till the nv2 stops working
2. Make support first output file on the AP
3. When it finishes making, make a seconds support output file (without changing
any configuration to the router)
4. Remove the wireless clients from the registration table
5. When wireless client connects back to the AP make a support output file on the client
6. Send all 3 files to support@mikrotik.com
Can you help with this problem?i had same problem. 6x p2p links sxt on both sides, misc configs: 802.11/nv2/20-40MHz, newest ros 5.24 and bios,
distance 200-1500m and my sxt lockups (very often at max traffic, max mbits/packets, 3-29mbit,).
i watch that lockup are less at low traffic. disable/enable wlan when interface lockups "repairing/starts" traffics.
mikrotik do somthing with this bug!
For those who experience the Nv2 lockups:
Please make sure that the AP and the client uses v5.24 and do the following steps, those will help to detect the problem and to find a fix for it:
1. Wait till the nv2 stops working
2. Make support first output file on the AP
3. When it finishes making, make a seconds support output file (without changing any configuration to the router)
4. Remove the wireless clients from the registration table
5. When wireless client connects back to the AP make a support output file on the client
6. Send all 3 files to support@mikrotik.com