C

cafbit

cafbit.com · Personal blog · on HN since 2011

cafbit is a programmer's blog on networking and systems topics, including DHCP behavior, Rust async I/O, SCTP, and mobile battery use.

What HN saysHN commenters mostly link its Rapid DHCP post explaining why Macs get on the network fast, and note debate over whether that behavior is wise.
27HN people shared it
14linked it in comments
15stories submitted
775story points
4 years agolast shared
2011people per year2026

Most-shared posts

  1. 1
    Rapid DHCP: Or, how do Macs get on the network so fast?
    11 people · 436 points · first shared 2011 · 180 comments on HN
  2. 2
  3. 3
    Tokio internals: Understanding Rust's async I/O framework
    4 people · 119 points · first shared 2017 · 64 comments on HN
  4. 4
    The Lost Art of Threaded Discussions (2009)
    2 people · 10 points · first shared 2011 · 3 comments on HN
  5. 5
    Battery cost of periodic mobile network use
    2 people · 2 points · first shared 2014 · discussion on HN
  6. 6
  7. 7
    Using Google Hangouts for collaborative telepresence
    1 people · 3 points · first shared 2012 · discussion on HN
  8. 8
  9. 9
    Recent Android "Package file is invalid" errors
    1 people · 2 points · first shared 2013 · discussion on HN
  10. 10
    Valance64: Control your Windows PC from you Commodore 64
    1 people · 2 points · first shared 2012 · 1 comments on HN
  11. 11
    Rapid dhcp redux
    1 people · first shared 2014
  12. 12
    Nest learning thermostat
    1 people · first shared 2015
  13. 13
    Migrating legacy documents from word
    1 people · first shared 2022

What HN people wrote when they linked it

fragmede · 2014-07-23
Which MBP do you have? It's fast on Apple products because they 'cheat', and re-use the last-given DHCP address. http://cafbit.com/entry/rapid_dhcp_or_how_do (and the follow up, http://cafbit.com/entry/rapid_dhcp_redux)
fpgeek · 2014-06-09
You may have been lucky, but I'd suggest looking at http://cafbit.com/entry/rapid_dhcp_or_how_do There's been plenty of debate about whether this rapid DHCP behavior is desirable (e.g. Is the improvement in user experience worth the potential for conflicts and/or other issues on networks not expecting this?), but, either way, I don't see how that behavior can be fairly characterized as polite.
wmf · 2014-04-01
Related classic blog post: how do Macs get on the network so fast? http://cafbit.com/entry/rapid_dhcp_or_how_do
hmottestad · 2013-10-09
Recommend you have a look at how Apple does DHCP negotiations. http://cafbit.com/entry/rapid_dhcp_or_how_do
beej71 · 2011-06-05
> Also, a decent newsreader is still ahead of all modern browser-based software by a mile when it comes to following many discussion threads. For me, nothing today compares with trn. You're far from the only one who feels this way. I'm not quite sure why it is, but I think it's because trn's tree is basically drawn "orthogonally" (if I might use that word), with siblings stacked vertically, and children moving off to the right. A "normal" newsreader uses the standard indented list, which gives the whole thread a "meandering set of diagonals" shape, and has a less strong visual connection between siblings (which is an important connection, because they're all replying to the same parent.) So I was just looking for a screenshot of trn for people who didn't know what it looked like, and I found this blog entry talking about exactly this (with screenshot): http://cafbit.com/entry/the_lost_art_of_threaded
simmons · 2022-09-25
Word Writer 4 and an Okidata Okimate 20 printer, here. Some years ago I wrote a quick-and-dirty program to convert the files to HTML [1]... only to be absolutely horrified at how awful my writing was as a teenager. ;) [1] https://cafbit.com/post/migrating_legacy_documents_from_word/
thealistra · 2021-10-04
hornetblack · 2018-10-04
It's been posted here multiple times: https://cafbit.com/post/rapid_dhcp_or_how_do/
ce4 · 2018-05-13
Especially, mobile devices like laptops, smartphones etc will then have to send probe requests constantly, even if youre away from home... informing any eavesdropper around of essid and probably also bssid. Most OSes do this anyway to speed up the connection process (try to attach to last n networks and see what sticks). Can be abused to learn about past locations of that device by asking one of the wifi location api databases (iOS, win, google/android): https://www.mylnikov.org/archives/1170 Edit: couldnt find good links about rapid wifi connecting procedures but here's an older article about Apple's rapid dhcp mechanism: https://cafbit.com/post/rapid_dhcp_or_how_do/
bfirsh · 2017-01-22
This reminded me of this explanation of how MacBooks (and presumably other devices) manage to reconnect to Wifi so quickly after waking from sleep: http://cafbit.com/entry/rapid_dhcp_or_how_do
hug · 2016-09-13
Your article doesn't mention it: Have you tried using a statically assigned IP address? (Poor etiquette inside the DHCP range, but maybe if you just snarf the IP you've already leased..) I ask this because OS X's DHCP stack is known to exhibit some strange and unfriendly behaviours: http://cafbit.com/entry/rapid_dhcp_or_how_do
justincormack · 2014-12-23
See 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
sounds · 2013-10-09
Apple "cheats" on that regard, getting your wifi back up after sleep. http://cafbit.com/entry/rapid_dhcp_or_how_do http://news.ycombinator.com/item?id=2755461 <-- good discussion
newman314 · 2013-05-11
However, Apple devices do do "optimization" to get on the network quickly. If you previously associated with a SSID, it'll get reconnected much faster. See http://cafbit.com/entry/rapid_dhcp_or_how_do

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close