Linked by Thom Holwerda on Wed 13th Jul 2011 14:09 UTC
Internet & Networking "One of life's minor annoyances is having to wait on my devices to connect to the network after I wake them from sleep. All too often, I'll open the lid on my EeePC netbook, enter a web address, and get the dreaded 'This webpage is not available' message because the machine is still working on connecting to my Wi-Fi network. On some occasions, I have to twiddle my thumbs for as long as 10-15 seconds before the network is ready to be used. The frustrating thing is that I know it doesn't have to be this way. I know this because I have a Mac. When I open the lid of my MacBook Pro, it connects to the network nearly instantaneously. In fact, no matter how fast I am, the network comes up before I can even try to load a web page. My curiosity got the better of me, and I set out to investigate how Macs are able to connect to the network so quickly, and how the network connect time in other operating systems could be improved." Yes, I'd love to have Windows and Linux reconnect as fast as Macs do. Alas, "Method to quickly reconnect to a wireless or wired network", as well as its completely different "Method to quickly reconnect to a wireless or wired network on a mobile device" are probably patented, so Windows and Linux can't reconnect too fast out of fear of violating a software patent. In case you haven't noticed: I'm joking. Sort of.
Thread beginning with comment 480749
To read all comments associated with this story, please click here.
something doesn't seem right
by broken_symlink on Wed 13th Jul 2011 15:27 UTC
broken_symlink
Member since:
2005-07-06

If I understood the article correctly, the galaxy tab was connecting to a new network it hadn't connected to before, while the mac was connecting to a known network. Because the galaxy tab had to do a dhcp discover, while the mac didn't. Right?

Reply Score: 4

Laurence Member since:
2007-03-26

If I understood the article correctly, the galaxy tab was connecting to a new network it hadn't connected to before, while the mac was connecting to a known network. Because the galaxy tab had to do a dhcp discover, while the mac didn't. Right?

Pretty much

Reply Parent Score: 2

ChrisIrwin Member since:
2008-12-09

That can't be directly determined from the information given (currently -- he seems to be updating the page a bit), but to me it looks like both devices had probably previously connected to this network, it just wasn't the last network used. I'm assuming based on the following evidence, and the fact that the situation you suggest would hopefully be obviously uneven and flawed to the fellow doing this testing.

- Android connects, assumes it is using the last address (192.168.1.17) on the last network and tries twice to continue as such (with a ~4 second timeout) before starting from scratch.

- OS X connects, does arp queries to see if the router/dhcp server corresponds with any of the previously used (three?) addresses (192.168.2.56, 192.168.4.25, 192.168.1.29). It got a response for one of them, started normal operation with that address while also double-checking that it can actually reclaim that address in the background.

Worst-case scenario for OSX is that none of the networks is recognized and it starts from scratch. An alternative bad-case is a recognized network but the address could be reassigned (there were universities having issues with this), in which case it requests a new address and any packets sent in the interim need to be resent (it may or may not cause some arp pollution issues?). So in other words, the apple process worst-case scenario is a regular DHCP process, but it has the ability to take shortcuts if certain (probably common) criteria are met.

Back to android, the worst-case is stalling for ten seconds due to timeouts before fetching a new address. There is a shortcut only if you're connecting to the last network only, and causing horrible delays otherwise.

This is of course just my interpretation of his data, but I think that describes the behaviour illustrated.

Reply Parent Score: 2

broken_symlink Member since:
2005-07-06

I don't know, because he says,

"If the network was not recognized, I assume the Mac would know to begin the DHCP discovery phase, instead of sending blind requests for a former IP address as the Galaxy Tab does."

Reply Parent Score: 2

mtzmtulivu Member since:
2006-11-14


- Android connects, assumes it is using the last address (192.168.1.17) on the last network and tries twice to continue as such (with a ~4 second timeout) before starting from scratch.

The delay he is experiencing on his phone is partly due to a misconfigured dhcp server.

A dhcp server can be configured to operate in two modes, "authoritative" and "non authoritative".

If the server was in "authoritative" mode, it would have immediately take charge of the request and told his android phone its now on a different network and it will be up to his phone to make dhcp discover request or to use the response it got from the authoritative server to notice what network is in and if the ip address it got previous is still active or not and if not.

His dhcp server is configured to be "non authoritative" and that is why it keeps quiets when it sees dhcp requests targeting another network and this silence causes his phones hang around waiting for a response wasting time before giving up and making dhcp requests.

His misconfigured dhcp server is partly to blame for the delay he is seeing

Reply Parent Score: 4