MacOS – What can be done to make the Mountain Lion Mac drops connection to the Cisco router less often

airportmacoswifi

I have a Cisco wireless router WAG54G2 Annex A plus Cisco Extender RE1000. The router is upstairs and extender helps me strengthen the signal downstairs and have been having issues keeping a wireless connection going using my MacBook Pro with OSX Mountain Lion (10.8.2 since latest upgrade) for weeks now. Issues keeping connected to the local network and or to the internet. The phone company, also our ISP, has passed by and told us the telephone line is fine so that is not the issues. So is must be a routing issue locally and perhaps as well an issue with the ISP's router kicking us out. I am talking our local Thai ISP TOT. Here is part of the log on the issues getting connected. I am posting this using my iPhone's 3G connection and regular network connection when I can…

NB Someone with a similar issue opened a thread here Macbook Pro frequently experiences drops in WiFi connection with Linksys WAG120N

9/21/12 9:28:55.000 PM kernel[0]: en1: TKIP countermeasures enabled.
9/21/12 9:28:55.000 PM kernel[0]: en1: Group TKIP MIC failure reported!
9/21/12 9:29:05.000 PM kernel[0]: wlEvent: en1 en1 Link DOWN virtIf = 0
9/21/12 9:29:05.000 PM kernel[0]: wl0: Beacon Loss Event
9/21/12 9:29:05.000 PM kernel[0]: AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity).

Reason four. What is this reason? Just because my MBP does not communicate well enough with the router? Is there a way to make them communicate better?

9/21/12 9:29:33.896 PM sandboxd[4536]: ([4535]) mdworker(4535) deny mach-lookup com.apple.ls.boxd

Reading on this here: https://stackoverflow.com/questions/10820884/what-does-this-sandboxing-message-deny-mach-lookup-mean

9/21/12 9:29:34.000 PM kernel[0]: Sandbox: sandboxd(4536) deny mach-lookup com.apple.coresymbolicationd
9/21/12 9:29:56.000 PM kernel[0]: MacAuthEvent en1   Auth result for: 58:6d:8f:6a:d5:9a  MAC AUTH succeeded
9/21/12 9:29:56.000 PM kernel[0]: wlEvent: en1 en1 Link UP virtIf = 0
9/21/12 9:29:56.000 PM kernel[0]: AirPort: Link Up on en1
9/21/12 9:29:56.000 PM kernel[0]: en1: BSSID changed to 58:6d:8f:6a:d5:9a
9/21/12 9:29:56.000 PM kernel[0]: en1::IO80211Interface::postMessage bssid changed
9/21/12 9:29:56.000 PM kernel[0]: wl0: Roamed or switched channel, reason #4, bssid 58:6d:8f:6a:d5:9a

Here another reason #4, but on the bssid. No idea what this means yet..

I tried resetting the main Cisco Router, the extender and or both and reconnecting, but for the last hour or so I have been unable to reconnect.

Also get this error a lot:

9/21/12 9:34:31.000 PM kernel[0]: MacAuthEvent en1   Auth result for: 58:6d:8f:6a:d5:9a Auth request tx failed

Does anybody has any ideas how to trouble shoot this further so I can keep my connection going longer then an hour or two? Is there perhaps a ML issue or issue between Mountain Lion and my particular Cisco router?

FYI

When all is running:

ifconfig en1
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 00:26:bb:05:00:5b 
    inet6 fe80::226:bbff:fe05:5b%en1 prefixlen 64 scopeid 0x5 
    inet 192.168.1.110 netmask 0xffffff00 broadcast 192.168.1.255
    media: autoselect
    status: active

Update

Did some more testing. It seems that when I reset the main router and extender consequently I need to wait a bit before I reconnect with my Mac. That why they can both hook up and the MBP gets connected properly as well. So the initial commentator @duci9y was right on that.
The reason why the main router gets kicked of the network very often is another issue. I'd say an ISP issue. Looking into ways to troubleshoot this now.

Update II

Got kicked of the network (wifi) again and saw this:

9/22/12 10:24:56.000 AM kernel[0]: wlEvent: en1 en1 Link DOWN virtIf = 0
9/22/12 10:24:56.000 AM kernel[0]: wl0: Beacon Loss Event
9/22/12 10:24:56.000 AM kernel[0]: AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity).

So somehow I lose the connection due to inactivity? But I am online and doing stuff??

Update III

Deleted all known networks – read in an Apple thread that this could help and I go reconnected again

Update IV

I am using

ping route get default | awk '(/gateway/){print $2}'

to keep the connection allive. Found the suggestion here at the Apple forums.

Update V

Still lost my internet connection. Wifi did survive. I could no longer ping the main router. So perhaps this is again connected to the extender not being able to stay connected to the main router. After I briefly turned off wifi on my MBP and on again I got reconnected.

Update VI

Doing some tests without the extender now. Just to see that was the culprit for real.

Update VII

Was having an OK wifi connection for about an hour without the extender and then got briefly disconnected due to "inactivity" again:

9/22/12 12:44:36.000 PM kernel[0]: wlEvent: en1 en1 Link DOWN virtIf = 0
9/22/12 12:44:36.000 PM kernel[0]: wl0: Beacon Loss Event
9/22/12 12:44:36.000 PM kernel[0]: AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity).

Very odd as I was downloading stuff using uTorrent. Seems like the main router can no longer be found for a while. After a couple of minutes I get reconnected again most of the time, but it is really annoying. Makes me think it is not the extender, but the router kicking me and or the extender out every now and then..

Update VIII

Updated router to Firmware Version:V1.00.19 . Let's see if this improves the connectivity

Update IX

All seems to be doing better. Did have one issue getting kicked out this morning, but will keep on observing for now. Other input is always welcome!

Update X

Had several cut-offs this morning with and without Extender:

Sep 25 10:11:48 jaspersmbp kernel[0]: wlEvent: en1 en1 Link DOWN virtIf = 0
Sep 25 10:11:48 jaspersmbp kernel[0]: wl0: Beacon Loss Event
Sep 25 10:11:48 jaspersmbp kernel[0]: AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity).
Sep 25 10:11:48 jaspersmbp kernel[0]: en1: BSSID changed to 00:00:00:00:00:00
Sep 25 10:11:48 jaspersmbp kernel[0]: en1::IO80211Interface::postMessage bssid changed
Sep 25 10:11:49 jaspersmbp configd[16]: network changed: v4(en1-:192.168.1.100) DNS- Proxy- SMB

Maybe I should use a Windows system and or change my main router..

Best Answer

The beacon loss event is the key. Your wireless card lost contact with the router and gave up.

wl0: Beacon Loss Event

If you can, change your beaconing rate on the router to be faster (and slower - sometimes the opposite of the intuitive thing is the answer). Also you should run the Wi-Fi Diagnostics tool which resides in /System/Library/CoreServices and monitor the performance of your setup. This will let you see the signal and noise so you can pick a channel on the router that loses the beacon the least often. There is a lot of data here, but the most important number is the txRate. It is how well your radio can talk to the router radio. All other measures end up reflected here. If you have bad signal, or bad noise, this goes down. The higher you can get the transmit speed, the less likely you will lose the beacon.

It could be just that the Mac hardware doesn't like the beacon pattern of that router and in the end you pick up an Apple router (or another one) - but you should be able to try some more things and perhaps make this better.

Ignore the sandboxing errors - sandboxing would prevent all operation, all the time and not lead to an intermittent failure.