4 ms·
This is an article from 2011, 6 years ago. Has there been any progress on implementing RFC 4436 on Linux in general or Android specifically in the interim? htt
by epistasis 9y ago
This is an article from 2011, 6 years ago. Has there been any progress on implementing RFC 4436 on Linux in general or Android specifically in the interim?
http://www.ietf.org/rfc/rfc4436.txt http://www.ietf.org/rfc/rfc4436.txt
- bobsam 9y agoNo, but it is still quite fast. On chromeOS network bring up is extremely fast. We are talking 1-3 seconds from cold boot to your emails have been synchronized. My Ubuntu is almost as fast, if we subtract the 4 seconds the ugly bios screen adds. No idea about Android, but did you read the end of the article?
- rektide 9y agoMy NetworkManager still takes multiple seconds to connect to wifi, and that's definitely the same pathetic DHCP behavior. wpa_supplicant is super fast. Modern Ubuntu (17.04) is still stuck in this ancient, lethargic world.
- tbrock 9y agoIt's better but definitely not "extremely fast". The mac from 6 years ago does it in 300ms which is still 3-10x faster than what you suggest is the norm for your setup. The difference between 300ms and 3 seconds is the tipping point for being annoyed when you cannot connect to the first page you visit.
- bobsam 9y agoYou misunderstood my numbers :) Search "chromebook boot time" on YouTube. Checkout the comparisons between a $200 chromebook from 2013 and a $2000 MBP...
- feld 9y agoChromeOS is not a real OS. It's an embedded appliance/cloud OS as a gateway to the web and Google services. Anyone can make a machine boot fast if it has nothing to load.
- mistat 9y agoJust because it's not bloated doesn't make it any less of an OS then any other minimal Linux installation, it is itself built on the Linux kernel - it is just highly optimised for a very select set of software and hardware requirements.
- popman 9y agoIt's gentoo based. Just because its DE is basically just chrome doesn't make it any less of an OS. Hell, you can even run another OS in a chroot on it. You'll get similar performance if you put your OS on an SSD, and select services that minimize your boot time.
- feld 9y agoCan I join it to my AD infrastructure? Can I access network shares (NFS/SMB) ? I could list off a million "Can I...?" questions but the fact remains that it's a Google Chrome appliance. The detail that hidden underneath is a Linux/Gentoo base is irrelevant. This is no different than your PS4 which runs Orbis, a stripped down OS based on FreeBSD. It's not a real OS targeted for users who want a complete OS computing experience. It's an appliance with a single purpose built upon parts of an existing OS.
- finnn 9y agoAre you saying that 1-3 seconds includes boot time? Like, time form pressing the power button to email syncing?
- bobsam 9y agoEdit: yes, but it depends very much on hardware. My old arm chromebook was very fast to boot but the Intel ones seem to boot slower: https://youtu.be/rsTyiMTYq9M https://youtu.be/rsTyiMTYq9M
- phh 9y agoTL;DR: ChromeOS uses this rfc, Android, dhcpcd, isc-dhcp-client doesn't (Note: I have no clue about systemd-networkd) Ok, so the article covers ARP discover, but actually it's not the only issue. The author mentions a 10s timeout because his DHCP is not authoritative. But in my opinion, that's not the real problem (though I admit it is better if his setup has it). The author's device should not ask for an unrelated IP in the first place. If it doesn't do so, and asks for the correct IP address, you save 1.5 RTT. This is because at the time of that article, dhcpcd had one lease file per interface. In my opinion, between RFC4436, and per-ssid interface, having a per-ssid lease makes a MUCH bigger user-facing change than RFC4436. RFC4436 worst 1-percent gain is 1s, per-ssid lease worst 1-percent is gain 10s. I suggested a fix to dhcpcd's author: have one lease file per { interface + ssid }. This has been merged in dhcpcd in February 2015 (sorry, it looks like mailing-list archives is down). So the bad feeling of > 10s connection time should be gone when using dhcpcd. I've also suggested him to implement rfc4436, but got no answer at the time. Considering the friendly answer I had for my previous patch, I guess it just got lost. As far as I can tell, as of today, mainline dhcpcd still doesn't implement it. ChromeOS uses a patched dhcpcd, which includes RFC4436: https://chromium-review.googlesource.com/c/22643/ https://chromium-review.googlesource.com/c/22643/ https://chromium-review.googlesource.com/c/23906/ https://chromium-review.googlesource.com/c/23906/ isc-dhcp-client, aka dhclient, doesn't seem to include either the ssid-based lease, or the RFC4436. Android used to use dhcpcd until Android 6, but a very old version. I published an updated version of dhcpcd for rooted Android: https://forum.xda-developers.com/android/software/wifi-dhcp-accelerator-t3023534 https://forum.xda-developers.com/android/software/wifi-dhcp-... I pushed to Android's gerrit the changes that were merged to dhcpcd (it had to be rewritten, because Android's dhcpcd is really old). The result of this, is that for Android 6, Google decided to rewrite their own DHCP implementation (mostly because the integration with dhcpcd made a state machine more complex than rewriting a DHCP client). This led to a java dhcp client which doesn't save leases, had flaws which could make an android device reboot, and which doesn't support RFC4436. At least, there is no longer any authoritative problem, since the device will always send a DISCOVER. As far as I know, this still is the current status of Android. Android Things, which is basically Android... Well, they are using yet another google-written dhcp client. ( https://android.googlesource.com/platform/system/connectivity/dhcp_client/ https://android.googlesource.com/platform/system/connectivit... ) This supports leases (I couldn't tell based on the sources whether it was interface or ssid-based), but no RFC4436.