There have been widespread reports of some network issues for users with a certain brand of consumer router, Chromecast / Chromecast enabled devices, and Pixels. I’ve been having sporadic WiFi issues for a few weeks to a month. I finally but 2 and 2 together. I have a number of Google devices in my house (a lot..perhaps too many 🙂 ).
- Google WiFi mesh router system
- 2 Chromecast audios
- 3 Chromecast dongles (2 1st gen, 1 2nd gen)
- 2 Android TV devices, Nexus Player running Android Oreo and a Xiaomi MiBox running Android 6
- 3 Google Homes, 2 normal, 1 mini
I also use a Google Pixel 2 XL as my main device. I have several test devices as well. A problem I’ve been having for a while now is when I wake my Pixel up I lose my WiFi connection. It happens very sporadically. It’s annoying. There are also times when my Nexus Player loses its WiFi connection. In both instances, the WiFi connection is re-established, but it makes things like streaming video or controlling streaming video (via Chromecast) a nuisance.
I’m also an Android developer by day and have ADB Logcat open at all times. I use a Nexus 6 running Android 7.1.1 as my primary test device. Periodically, I’ll see the following group of log statements printed in Logcat, for my Nexus 6.
I/DeviceScanner: [MDNS] Received response from "Cast Device 1" (-----------) with result "0 No change" I/DeviceScanner: [MDNS] Received response from "Cast Device 2" (-----------) with result "0 No change" I/DeviceScanner: [MDNS] Received response from "Cast Device 3" (-----------) with result "0 No change" I/DeviceScanner: [MDNS] Received response from "Cast Device 4" (-----------) with result "0 No change" I/DeviceScanner: [MDNS] Received response from "Cast Device 5" (-----------) with result "0 No change" I/DeviceScanner: [MDNS] Received response from "Cast Device 6" (-----------) with result "0 No change"
Note: I did mask my device names and MAC addresses in this snippet.
These are MDNS requests being logged by my Nexus 6 as they are received. I don’t have significant network experience or a deep understanding on how Chromecast really works at the network level. It appears, to me, that every 20 seconds or so, all of my Chromecast and Chromecast enabled devices send an MDNS packet announcing their presence on my network to devices that can utilize them, like Android phones and Google Home.
In fact, TP-Link, a router manufacturer, has come to the following conclusion:
This issue stems from these devices’ “Cast” feature, which sends MDNS multicast discovery packets in order to discover and keep a live connection with Google products such as Google Home. These packets normally sent in a 20-second interval. However, we have discovered that the devices will sometimes broadcast a large amount of these packets at a very high speed in a short amount of time. This occurs when the device is awakened from its “sleep” state, and could exceed more than 100,000 packets. The longer your device is in “sleep”, the larger this packet burst will be. This issue may eventually cause some of router’s primary features to shut down – including wireless connectivity.
So obviously there’s a problem here. Today I noticed, when I power on my Pixel 2 XL running Android 8.1 (w/ January security update), things get pretty crazy. My Nexus 6 seems to log over 1,000 MDNS responses in a 40 second timespan. With my limited networking knowledge, I don’t really know if anything is wrong, but it seems that something is out of wack. It also convenient that I tend to drop my WiFi connection, on my Pixel 2 XL at this time (when my Pixel is powered on from sleeping).
Running Wireshark on a computer verifies what I see in Logcat. A gargantuan amount of MDNS activity upon powering on my Pixel can be seen. It also stops when I put my Pixel back to sleep. Waking my Nexus 6 up doesn’t result in the same amount of MDNS activity.
Something is probably wrong here. I can’t identify it specifically, but this is just another data point.