[2.4.1.157] heavy mDNS traffic, Airplay, etc

Been trying to chase down issues I'm having with the Airplay integration and it got me down pretty deep into the mDNS rabbit hole.

Long story short I have two HE hubs (one C7, one C8P) on the same LAN, hub meshed over a handful of devices. Both are wired to an unmanaged switch. I have Bonjour restarts turned off on both. I was having trouble with the Airplay integration on the C7 not seeing my Homepod Mini any more, so I installed it on the C8 Pro to see if there would be a difference. To my surprise, there is; the C8 Pro is able to see more Airplay devices, including the Homepod mini.

Had a look at activity monitor on the old iMac (same LAN) and saw this:

Ok, the iMac has been up for 77 days, but still... seems like a huge amount of traffic. So I fire up Wireshark to take a closer look at mDNS traffic:

The sudden drop in activity (around 14,000) corresponds to the moment where I shut down the C8 Pro (I can't really shut down the C7 during the day).

Running a capture shows that the two hubs are by far the most active on mDNS and the C8 Pro has twice the packet rate of the C7 (!).

Looking at the packet stream, I see tons of "cache flush" messages coming from both hubs, many (most?) being "Retransmitted response":

Does any of this look normal? I'm a little out of my comfort zone with this mDNS stuff.

see also this thread

@gopher.ny @jtp10181

Does it change anything if you disable/remove the Airplay integration?
Is that the app where you have to install some extra library via the app for it to work?

Wondering if whatever extra software it adds on is what is causing the extra traffic.

1 Like

Yes, it is. I've just disabled it. Thank you for the suggestion. If I don't see a difference, I'll try removing it altogether (and I'll have to deal with a bunch of broken rules with Speak actions, since child devices can't be swapped...)

Feel your pain...not fun if you have to re-do everything. :frowning: Hopefully not...

1 Like

Checking that.
We use jmdns library for mDNS handling, mostly on default settings. Will see if there's any way to reduce the chatter.

2 Likes

Did not make a difference.

Thanks. Turning the hub(s) off sure makes a difference (I have a whole household of Bonjour devices...). When both are off, the traffic gets much lower.

I also tried

  • shutting down the HA vm running on the iMac
  • restarting mDNSResponder
  • rebooting the router (had been up for three months straight)

After the router rebooted there was a large traffic spike, but then things went back to "normal" (chatty).