(Too?) many MDNS / Bonjour messages
See original GitHub issueCurrent Behavior
I’m seeing a LOT of MDNS messages on my network coming from Homebridge and the cameras registered via Homebridge, see the excerpt of a Wireshark log below. I get that whole shebang basically every second or two.
Expected Behavior
I have a few “native” HomeKit devices on my network and they send MDNS/Bonjour messages every now and then. Now, it may be I am misjudging things here but the whole MDNS traffic from Homebridge amounts to tens and up to hundreds of kilobytes which seems a bit excessive.
Steps to Reproduce (for bugs)
Create a Homebridge server with a bunch of cameras (e.g. through homebridge-camera-ffmpeg)
Versions
- Homebridge:
0.4.50
- Node:
v10.15.3
- OS: Raspbian GNU/Linux 9 (stretch)
Configuration
Wireshark Log
- 192.168.2.90 is my HomeBridge RasPi
No. Time Source Destination Protocol Length Info
341 15.571861 192.168.2.168 224.0.0.251 MDNS 427 Standard query 0x0000 PTR _companion-link._tcp.local, "QM" question PTR _hap._tcp.local, "QM" question TXT Doorbridge-A02B._hap._tcp.local, "QM" question PTR Stube._companion-link._tcp.local PTR Schlafzimmer._companion-link._tcp.local PTR Normens MacBook._companion-link._tcp.local PTR Küche._companion-link._tcp.local PTR Stube (2)._companion-link._tcp.local PTR Doorbridge-A02B._hap._tcp.local PTR Zelt-607D._hap._tcp.local PTR Aussen 2-DE75._hap._tcp.local TXT OPT
342 15.576622 fe80::1c53:b1d0:9d10:ea7d ff02::fb MDNS 447 Standard query 0x0000 PTR _companion-link._tcp.local, "QM" question PTR _hap._tcp.local, "QM" question TXT Doorbridge-A02B._hap._tcp.local, "QM" question PTR Stube._companion-link._tcp.local PTR Schlafzimmer._companion-link._tcp.local PTR Normens MacBook._companion-link._tcp.local PTR Küche._companion-link._tcp.local PTR Stube (2)._companion-link._tcp.local PTR Doorbridge-A02B._hap._tcp.local PTR Zelt-607D._hap._tcp.local PTR Aussen 2-DE75._hap._tcp.local TXT OPT
343 15.669840 192.168.2.141 224.0.0.251 MDNS 290 Standard query response 0x0000 PTR ArloBabyCA._hap._tcp.local TXT, cache flush SRV, cache flush 0 0 5051 arlo-babycam.local A, cache flush 192.168.2.141 AAAA, cache flush fe80::a02:8eff:fe2b:5816 NSEC, cache flush ArloBabyCA._hap._tcp.local NSEC, cache flush arlo-babycam.local
344 15.673388 fe80::a02:8eff:fe2b:5816 ff02::fb MDNS 310 Standard query response 0x0000 PTR ArloBabyCA._hap._tcp.local TXT, cache flush SRV, cache flush 0 0 5051 arlo-babycam.local A, cache flush 192.168.2.141 AAAA, cache flush fe80::a02:8eff:fe2b:5816 NSEC, cache flush ArloBabyCA._hap._tcp.local NSEC, cache flush arlo-babycam.local
345 16.080765 192.168.2.90 224.0.0.251 MDNS 413 Standard query response 0x0000 PTR Studioeingang-3B72._hap._tcp.local SRV 0 0 44987 24_CF_81_91_76_31.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
346 16.085163 192.168.2.90 224.0.0.251 MDNS 402 Standard query response 0x0000 PTR Homebridge-03B9._hap._tcp.local SRV 0 0 51826 CF_23_3D_B3_CD_3B.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
347 16.182284 192.168.2.168 224.0.0.251 MDNS 333 Standard query 0x0000 TXT Studioeingang-3B72._hap._tcp.local, "QU" question TXT Homebridge-03B9._hap._tcp.local, "QU" question TXT TXT OPT
348 16.186334 fe80::1c53:b1d0:9d10:ea7d ff02::fb MDNS 353 Standard query 0x0000 TXT Studioeingang-3B72._hap._tcp.local, "QU" question TXT Homebridge-03B9._hap._tcp.local, "QU" question TXT TXT OPT
349 16.284603 192.168.2.168 224.0.0.251 MDNS 310 Standard query 0x0000 TXT Zelt-607D._hap._tcp.local, "QM" question TXT Aussen 2-DE75._hap._tcp.local, "QM" question TXT TXT OPT
350 16.288579 fe80::1c53:b1d0:9d10:ea7d ff02::fb MDNS 330 Standard query 0x0000 TXT Zelt-607D._hap._tcp.local, "QM" question TXT Aussen 2-DE75._hap._tcp.local, "QM" question TXT TXT OPT
351 17.104431 192.168.2.90 224.0.0.251 MDNS 389 Standard query response 0x0000 PTR Booth 1-2598._hap._tcp.local SRV 0 0 41699 0A_CC_38_2B_87_D8.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
352 17.109079 192.168.2.90 224.0.0.251 MDNS 401 Standard query response 0x0000 PTR Futternapf-D626._hap._tcp.local SRV 0 0 39477 69_42_73_C9_8D_54.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
353 17.206886 192.168.2.90 224.0.0.251 MDNS 393 Standard query response 0x0000 PTR Aussen 1-6371._hap._tcp.local SRV 0 0 32861 FC_17_1F_2C_A1_DD.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
354 17.210991 192.168.2.168 224.0.0.251 MDNS 333 Standard query 0x0000 TXT Studioeingang-3B72._hap._tcp.local, "QM" question TXT Homebridge-03B9._hap._tcp.local, "QM" question TXT TXT OPT
355 17.215258 fe80::1c53:b1d0:9d10:ea7d ff02::fb MDNS 353 Standard query 0x0000 TXT Studioeingang-3B72._hap._tcp.local, "QM" question TXT Homebridge-03B9._hap._tcp.local, "QM" question TXT TXT OPT
356 17.410255 192.168.2.168 224.0.0.251 MDNS 208 Standard query 0x0000 TXT Aussen 1-6371._hap._tcp.local, "QU" question TXT OPT
357 17.413356 fe80::1c53:b1d0:9d10:ea7d ff02::fb MDNS 228 Standard query 0x0000 TXT Aussen 1-6371._hap._tcp.local, "QU" question TXT OPT
358 18.128597 192.168.2.90 224.0.0.251 MDNS 409 Standard query response 0x0000 PTR Haupteingang-BB5F._hap._tcp.local SRV 0 0 44787 89_D5_21_A9_36_E1.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
359 18.132766 192.168.2.90 224.0.0.251 MDNS 377 Standard query response 0x0000 PTR Zelt-607D._hap._tcp.local SRV 0 0 34303 93_5A_2F_7F_79_99.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
360 18.136921 192.168.2.90 224.0.0.251 MDNS 393 Standard query response 0x0000 PTR Aussen 2-DE75._hap._tcp.local SRV 0 0 43519 6D_2B_F8_BD_87_F6.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
361 18.332626 192.168.2.157 224.0.0.251 MDNS 364 Standard query 0x0000 PTR _companion-link._tcp.local, "QU" question PTR _hap._tcp.local, "QU" question PTR _homekit._tcp.local, "QU" question TXT 5F5B3E5E-D0BB-571D-84A1-75D40A371330._homekit._tcp.local, "QU" question TXT 5CCDD30A-633B-5BC9-98E6-39244A6F763C._homekit._tcp.local, "QU" question TXT EDC59D0D-6A88-5867-A3C8-983D9C1C7887._homekit._tcp.local, "QU" question PTR _raop._tcp.local, "QU" question PTR _airplay._tcp.local, "QU" question TXT 34087236-8B5F-50FA-8F73-C05AEC78E760._homekit._tcp.local, "QU" question PTR _sleep-proxy._udp.local, "QU" question OPT
362 18.336928 fe80::14b9:2d75:da16:89a1 ff02::fb MDNS 384 Standard query 0x0000 PTR _companion-link._tcp.local, "QU" question PTR _hap._tcp.local, "QU" question PTR _homekit._tcp.local, "QU" question TXT 5F5B3E5E-D0BB-571D-84A1-75D40A371330._homekit._tcp.local, "QU" question TXT 5CCDD30A-633B-5BC9-98E6-39244A6F763C._homekit._tcp.local, "QU" question TXT EDC59D0D-6A88-5867-A3C8-983D9C1C7887._homekit._tcp.local, "QU" question PTR _raop._tcp.local, "QU" question PTR _airplay._tcp.local, "QU" question TXT 34087236-8B5F-50FA-8F73-C05AEC78E760._homekit._tcp.local, "QU" question PTR _sleep-proxy._udp.local, "QU" question OPT
363 18.436126 192.168.2.90 224.0.0.251 MDNS 405 Standard query response 0x0000 PTR Homebridge2-8B3C._hap._tcp.local SRV 0 0 51626 0E_18_66_31_B1_7B.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
364 18.438842 192.168.2.168 224.0.0.251 MDNS 208 Standard query 0x0000 TXT Aussen 1-6371._hap._tcp.local, "QM" question TXT OPT
365 18.441563 fe80::1c53:b1d0:9d10:ea7d ff02::fb MDNS 228 Standard query 0x0000 TXT Aussen 1-6371._hap._tcp.local, "QM" question TXT OPT
366 18.448373 192.168.2.168 224.0.0.251 MDNS 731 Standard query 0x0000 PTR _companion-link._tcp.local, "QM" question PTR _hap._tcp.local, "QM" question TXT Doorbridge-A02B._hap._tcp.local, "QM" question TXT Zelt-607D._hap._tcp.local, "QM" question TXT Aussen 2-DE75._hap._tcp.local, "QM" question PTR Stube._companion-link._tcp.local PTR Schlafzimmer._companion-link._tcp.local PTR Normens MacBook._companion-link._tcp.local PTR Küche._companion-link._tcp.local PTR Stube (2)._companion-link._tcp.local PTR Doorbridge-A02B._hap._tcp.local PTR Zelt-607D._hap._tcp.local PTR Aussen 2-DE75._hap._tcp.local PTR ArloBabyCA._hap._tcp.local PTR Studioeingang-3B72._hap._tcp.local PTR Homebridge-03B9._hap._tcp.local PTR Aussen 1-6371._hap._tcp.local TXT TXT TXT OPT
367 18.455156 fe80::1c53:b1d0:9d10:ea7d ff02::fb MDNS 751 Standard query 0x0000 PTR _companion-link._tcp.local, "QM" question PTR _hap._tcp.local, "QM" question TXT Doorbridge-A02B._hap._tcp.local, "QM" question TXT Zelt-607D._hap._tcp.local, "QM" question TXT Aussen 2-DE75._hap._tcp.local, "QM" question PTR Stube._companion-link._tcp.local PTR Schlafzimmer._companion-link._tcp.local PTR Normens MacBook._companion-link._tcp.local PTR Küche._companion-link._tcp.local PTR Stube (2)._companion-link._tcp.local PTR Doorbridge-A02B._hap._tcp.local PTR Zelt-607D._hap._tcp.local PTR Aussen 2-DE75._hap._tcp.local PTR ArloBabyCA._hap._tcp.local PTR Studioeingang-3B72._hap._tcp.local PTR Homebridge-03B9._hap._tcp.local PTR Aussen 1-6371._hap._tcp.local TXT TXT TXT OPT
368 18.538222 192.168.2.90 224.0.0.251 MDNS 401 Standard query response 0x0000 PTR Main Booth-E27C._hap._tcp.local SRV 0 0 38647 0A_C8_72_85_65_E6.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
369 18.584988 192.168.2.186 192.168.2.157 MDNS 413 Standard query response 0x0000 PTR Normens MacBook._companion-link._tcp.local SRV, cache flush 0 0 62132 Normens-MacBook.local TXT, cache flush TXT AAAA, cache flush fe80::813:9e8a:fc09:f02e A, cache flush 192.168.2.186
370 18.640093 192.168.2.157 224.0.0.251 MDNS 392 Standard query 0x0000 TXT Homebridge2-8B3C._hap._tcp.local, "QU" question TXT B8782E13E79B@Studio TV._raop._tcp.local, "QU" question TXT Studio TV (2)._airplay._tcp.local, "QU" question TXT Main Booth-E27C._hap._tcp.local, "QU" question TXT TXT OPT
371 18.644726 fe80::14b9:2d75:da16:89a1 ff02::fb MDNS 412 Standard query 0x0000 TXT Homebridge2-8B3C._hap._tcp.local, "QU" question TXT B8782E13E79B@Studio TV._raop._tcp.local, "QU" question TXT Studio TV (2)._airplay._tcp.local, "QU" question TXT Main Booth-E27C._hap._tcp.local, "QU" question TXT TXT OPT
372 19.152649 192.168.2.90 224.0.0.251 MDNS 413 Standard query response 0x0000 PTR Studioeingang-3B72._hap._tcp.local SRV 0 0 44987 24_CF_81_91_76_31.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
373 19.157524 192.168.2.90 224.0.0.251 MDNS 402 Standard query response 0x0000 PTR Homebridge-03B9._hap._tcp.local SRV 0 0 51826 CF_23_3D_B3_CD_3B.local TXT A 192.168.2.90 AAAA fe80::864a:bdaf:289d:68b5
374 19.256091 192.168.2.157 224.0.0.251 MDNS 333 Standard query 0x0000 TXT Studioeingang-3B72._hap._tcp.local, "QU" question TXT Homebridge-03B9._hap._tcp.local, "QU" question TXT TXT OPT
375 19.259958 fe80::14b9:2d75:da16:89a1 ff02::fb MDNS 353 Standard query 0x0000 TXT Studioeingang-3B72._hap._tcp.local, "QU" question TXT Homebridge-03B9._hap._tcp.local, "QU" question TXT TXT OPT
376 19.361253 192.168.2.157 224.0.0.251 MDNS 906 Standard query 0x0000 PTR _companion-link._tcp.local, "QM" question PTR _hap._tcp.local, "QM" question PTR _homekit._tcp.local, "QM" question PTR _sleep-proxy._udp.local, "QM" question TXT Homebridge2-8B3C._hap._tcp.local, "QM" question TXT Main Booth-E27C._hap._tcp.local, "QM" question PTR Stube._companion-link._tcp.local PTR Küche._companion-link._tcp.local PTR Schlafzimmer._companion-link._tcp.local PTR Stube (2)._companion-link._tcp.local PTR Normens MacBook._companion-link._tcp.local PTR Homebridge2-8B3C._hap._tcp.local PTR ArloBabyCA._hap._tcp.local PTR Main Booth-E27C._hap._tcp.local PTR Studioeingang-3B72._hap._tcp.local PTR Homebridge-03B9._hap._tcp.local PTR 5F5B3E5E-D0BB-571D-84A1-75D40A371330._homekit._tcp.local PTR 34087236-8B5F-50FA-8F73-C05AEC78E760._homekit._tcp.local PTR EDC59D0D-6A88-5867-A3C8-983D9C1C7887._homekit._tcp.local PTR 5CCDD30A-633B-5BC9-98E6-39244A6F763C._homekit._tcp.local PTR 70-35-60-63.1 Stube._sleep-proxy._udp.local PTR 50-35-10-70.1 Studio._sleep-proxy._udp.local TXT TXT OPT
377 19.373587 fe80::14b9:2d75:da16:89a1 ff02::fb MDNS 926 Standard query 0x0000 PTR _companion-link._tcp.local, "QM" question PTR _hap._tcp.local, "QM" question PTR _homekit._tcp.local, "QM" question PTR _sleep-proxy._udp.local, "QM" question TXT Homebridge2-8B3C._hap._tcp.local, "QM" question TXT Main Booth-E27C._hap._tcp.local, "QM" question PTR Stube._companion-link._tcp.local PTR Küche._companion-link._tcp.local PTR Schlafzimmer._companion-link._tcp.local PTR Stube (2)._companion-link._tcp.local PTR Normens MacBook._companion-link._tcp.local PTR Homebridge2-8B3C._hap._tcp.local PTR ArloBabyCA._hap._tcp.local PTR Main Booth-E27C._hap._tcp.local PTR Studioeingang-3B72._hap._tcp.local PTR Homebridge-03B9._hap._tcp.local PTR 5F5B3E5E-D0BB-571D-84A1-75D40A371330._homekit._tcp.local PTR 34087236-8B5F-50FA-8F73-C05AEC78E760._homekit._tcp.local PTR EDC59D0D-6A88-5867-A3C8-983D9C1C7887._homekit._tcp.local PTR 5CCDD30A-633B-5BC9-98E6-39244A6F763C._homekit._tcp.local PTR 70-35-60-63.1 Stube._sleep-proxy._udp.local PTR 50-35-10-70.1 Studio._sleep-proxy._udp.local TXT TXT OPT
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
(Too?) many MDNS / Bonjour messages · Issue #2429 - GitHub
I have a few "native" HomeKit devices on my network and they send MDNS/Bonjour messages every now and then. Now, it may be...
Read more >bonjour (mdns) only works on wi-fi - Apple Community
Let me explain. As long as my iMac is connected to my home wifi network, the name resolution for local hostnames (. local)...
Read more >Troubleshoot and Understand mDNS Gateway on Wireless ...
This document describes the implementation of the Bonjour protocol on the wireless controller.It is to understand the workflow & guide to troubleshoot.
Read more >Multicasting Apple's Bonjour Protocol - Packet Pushers
Simply put, Bonjour is Apple's attempt at a network service discovery protocol that utilizes multicast for its communication. Let's get started ...
Read more >mdns — User Guide
Tutorial. Before we begin go to the internet and get you a bonjour browser so that you can ALL the service discovery. Multicast...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When you are using Wireshark, keep in mind that you only see traffic visible to that network interface and broadcast traffic. If 2 other devices are talking to each other you will not see them.
Read this chapter from the Wireshark manual for a better explanation https://wiki.wireshark.org/CaptureSetup/Ethernet#Switched_Ethernet
That is why this appears odd.
Looking at the traffic itself, you homebridge instance is answering MDNS query’s from various devices. Which is normal
Closing as this is not an issue
Well from what I see (also above) its the single homebridge devices as well? I’m not an expert in reading network traffic though, I’ll fully admit that.
Pretty much all of the “._hap._tcp.local” devices are Homebridge camera devices running on one RasPi, except the two “Homebridge(2)” ones, which are the home bridge instances themselves and the “Arlo” one which is a native HomeKit camera.
Edit: Scratch that, it’s iOS devices. iPads and iPhones.