Thanks for your help, problem solved!
Looks like the problem lies in the multicast_snooping
setting of my router. following is the description at the end of this article OpenWrt document about udp multicast
With IGMP snooping, multicast forwarding is disabled for bridges. One pure bridge solution is to disable multicast_snooping.
I followed the instructions, added the following in /etc/rc.local
,
echo "0" > /sys/devices/virtual/net/br-lan/bridge/multicast_snooping
After reboot, the bulb can respond broadcast normally now even after long times, the advertisement broadcast interval of the bulb was monitored to be 1 hour.
However, I still feel very confused since another device using SSDP(WD MyCloud) in my lan works pretty well through all the time. I didn’t find any useful information in the kernel or system log about udp packet drop.
Issue resummary
Problem Description
- Color bulb can response to broadcast search request only within a few minutes after:
- power off and power on the bulb. (hardware power switch, always works)
- close and reopen the ‘geek mode’. (not always works)
- reboot the router. (always works)
Color bulb Info
- bought at 2016.09.28 @ mi.com
- firmware version: 1.3.1_42
Router Info(I am using a third-party compiled firmware)
- Device Type: NETGEAR WNDR4300 V1
- Firmware Version: OpenWrt Chaos Calmer 15.05.01-gy408-G18fix9 gargoyle / LuCI for-15.05 branch (git-16.081.39589-0207cb7)
- Kernel Version: 3.18.23
System Log (I reproduced this problem during the log time)
Mon Oct 3 10:30:00 2016 kern.info kernel: [ 2984.490000] sh (24161): drop_caches: 3
Mon Oct 3 10:30:59 2016 daemon.info hostapd: wlan0: STA 64:76:ba:aa:14:20 WPA: group key handshake completed (RSN)
Mon Oct 3 10:30:59 2016 daemon.info hostapd: wlan0: STA b4:0b:44:0d:49:69 WPA: group key handshake completed (RSN)
Mon Oct 3 10:30:59 2016 daemon.info hostapd: wlan0: STA f0:db:f8:21:25:6d WPA: group key handshake completed (RSN)
Mon Oct 3 10:31:01 2016 kern.info kernel: [ 3044.670000] sh (25008): drop_caches: 3
Mon Oct 3 10:32:01 2016 kern.info kernel: [ 3104.730000] sh (25516): drop_caches: 3
Mon Oct 3 10:33:00 2016 kern.info kernel: [ 3164.130000] sh (25859): drop_caches: 3
Mon Oct 3 10:34:00 2016 kern.info kernel: [ 3224.010000] sh (26531): drop_caches: 3
Mon Oct 3 10:35:00 2016 kern.info kernel: [ 3284.170000] sh (27038): drop_caches: 3
Mon Oct 3 10:36:00 2016 kern.info kernel: [ 3344.260000] sh (27545): drop_caches: 3
Mon Oct 3 10:37:00 2016 kern.info kernel: [ 3404.360000] sh (28052): drop_caches: 3
Mon Oct 3 10:38:01 2016 kern.info kernel: [ 3464.510000] sh (28727): drop_caches: 3
Mon Oct 3 10:39:01 2016 kern.info kernel: [ 3524.990000] sh (29738): drop_caches: 3
Mon Oct 3 10:40:00 2016 kern.info kernel: [ 3584.050000] sh (31086): drop_caches: 3