4 ms·
> A faster, lighter-weight internal DHCP client based on code from systemd-networkd has been added This is huge news. systemd-networkd's DHCP client, thanks t
by JoshTriplett 12y ago
> A faster, lighter-weight internal DHCP client based on code from systemd-networkd has been added
This is huge news. systemd-networkd's DHCP client, thanks to Tom Gundersen's work, can successfully get an address in milliseconds, rather than the many seconds required by dhclient. See https://plus.google.com/+TomGundersen/posts/eztZWbwmxM8 https://plus.google.com/+TomGundersen/posts/eztZWbwmxM8 for some of the details.
I eagerly await wireless networking support in systemd-networkd, but in the interim, this will drastically improve network setup time on the average Linux system.
- Jacqued 12y agoThat's great news indeed ! Thanks for the informative link. Does it now work wireless though ? From the link you shared : Using networkd together with wpa_supplicant on my laptop on my crappy home wifi, the time from link-sense to fully configured network is roughly 50ms
- XorNot 12y agoYeah I'm pretty excited by this. Its one of those small usability improvements that will make everything just feel nicer.
- hueving 12y agoThat post has some nice specs but didn't hint at what any of the fixes were. Why was it so slow to begin with?
- justincormack 12y agoSee this article for some of the optimisations that are possible [1] - not sure which systemd has implemented. [1] http://cafbit.com/entry/rapid_dhcp_or_how_do http://cafbit.com/entry/rapid_dhcp_or_how_do
- antihero 12y agoIs this the same thing as dhcpcd or something else?
- vezzy-fnord 12y agoThe author of dhcpcd (Roy Marples) also weighs in the discussion, saying that the former matches the same speed as long as ARP checking is disabled. So really, it seems to me that the only reason networkd's DHCP is fast is because it's bare bones (and also skips a few sections of RFC 1531, according to Jayson Vantuyl... which doesn't sound good). Only dealing with lease negotiation, if Gundersen's statement near the end is still true.
- pothibo 12y agoIIRC, Apple also does something similar (skipping a few sections of the standard) to acquire a lease faster. That's why Macs connect faster to the network. I'm not an expert on the implementation of mac/windows/linux so maybe someone who knows can chip in.
- dingaling 12y agoUpon reconnectionn to the network the Apple OSs immediately resume using their previous lease address on the network, whilst initiating DHCP in the background. Works OK in small domestic networks but can cause some issues in big uni and corporate nets with frequent address churn.
- sciurus 12y agoSee https://news.ycombinator.com/item?id=2755461 https://news.ycombinator.com/item?id=2755461
- digi_owl 12y agoDidn't they do something similar on iPhone, only to discover that it was a security risk because the damn thing would reveal to anyone within broadcast range what networks you frequented?
- digi_owl 12y agoGotta "love" the exchange between Kay Seivers and Ted Lemon in the comments of that post...