
我已閱讀超級用戶部落格文章這裡有關 Windows 如何使用 NCSI 檢查是否存在 Internet 連線。 Mac 世界裡有類似的東西嗎?
編輯:我剛剛找到下面的帖子遊絲線 洛倫佐 (lorenzo) 在 google 上發布 2012 年 11 月 15 日凌晨 4:08
"The Apple algorithm has drawbacks too. To wit:
1. It biases in favour of IPv4 by trying the A record first.
2. By always preferring the fastest protocol, even on a perfect dual-stack
network it will use IPv6 only ~50% of the time (unless IPv4 is degraded).
3. It imposes twice the connection load on server operators.
4. It's non-deterministic, which some websites don't like as they tie your
cookies to your IP address."
我只是還沒有找到該演算法的更多細節,例如他們使用的 url/dns。我的谷歌搜尋產生了很多不相關的資訊 - 誰能給我指出正確的方向?
答案1
在我的 10.8.3 OSX Macbook Pro 上沒有運行任何程式的情況下,啟動 WiFi 連線後(實際上是在 0.077 秒後),程式立即applepushservicedm
嘗試連線到33-courier.push.apple.com
連接埠5223
。
該 IP 位址隸屬於美國,活躍於加州庫比蒂諾,該計畫是蘋果推播通知服務,因此這可能僅適用於 10.8。
幾秒鐘後,我向 1.courier-push-apple.com.akadns.net 發出了 iCloud 的 DNS 請求。
這一切都在前 5 秒內完成,減去標準 DHCP、mDNS、NETBIOS、DNS 註冊、NTP 和經常發生的各種廢話。