Rapid DHCP: Or, how do Macs get on the network so fast?
41–50 of 191 posts
Re: Rapid DHCP: Or, how do Macs get on the network so fast?
#42> This network recognition technique allows the Mac to very rapidly discover if it is connected to a known network. If the network is recognized (and presumably if the Mac knows that the DHCP lease is still active), it immediately and presumptuously configures its IP interface with the address it knows is good for this network. Ok, seriously? That isn't a bug in an implementation somewhere, but in fact a feature that…
Re: Rapid DHCP: Or, how do Macs get on the network so fast?
#43Re: Rapid DHCP: Or, how do Macs get on the network so fast?
#44> This network recognition technique allows the Mac to very rapidly discover if it is connected to a known network. If the network is recognized (and presumably if the Mac knows that the DHCP lease is still active), it immediately and presumptuously configures its IP interface with the address it knows is good for this network. Ok, seriously? That isn't a bug in an implementation somewhere, but in fact a feature that…
Sorry, but nobody cares what the people in your room think.
Re: Rapid DHCP: Or, how do Macs get on the network so fast?
#45Anecdotally, my mac is absolutely horrible at connecting to my wifi. I often have to try multiple times and some times I give up, have to walk over to the router and restart it before I can get on. Probably an issue with the router ultimately, but I don't have this problem with other devices.
Moving to a router that allowed them to be configured with different SSIDs resolved all my issues.
Re: Rapid DHCP: Or, how do Macs get on the network so fast?
#46Re: Rapid DHCP: Or, how do Macs get on the network so fast?
#47This implementation by the Mac feels wrong. I mean it appears to work, but it seems like a violation of the protocol and can result in problems on the network. Maybe security issues (?). I'm not an expert in any of these things, but I'd love to hear a network protocol/security experts take on this.
This certainly smells fishy, the client is relying on ARP to assume its OK to reclaim that IP address before it actually gets the authoritative answer from the DHCP server. IP networking does not require that computers submit to dhcp, so depending on how you look at it, it probably doesn't run afoul of the spec. I'd have to get a more detailed packet capture and reference some RFCs, but given DHCP isn't manditory, I…
If the ARP comes back with the cached MAC address for that network, the Mac continues using the valid DHCP lease it was given. It sends a DHCP request to renew that lease, and I assume would reconfigure the interface if the request fails and discovery has to start over.
From my recollection of the DHCP RFC, if a server hands you a lease for one week, you're allowed to use that address for a week, even if you go offline for 3 days in the middle. In practice, this may not be the case.
Re: Rapid DHCP: Or, how do Macs get on the network so fast?
#48Earlier quoted context omitted.
If your DHCP server is handing out leased addresses to other clients you might have bigger problems to worry about. For example if you expect a lot of churn on the network you should be using much shorter leases times.
How is this the DHCP server's fault? DHCP is designed to reassign unused leases to new clients if the subnet is all leased out.
Re: Rapid DHCP: Or, how do Macs get on the network so fast?
#49It's annoying. I wonder if this rapid DHCP implementation has anything to do with that.