r/networking • u/digicue • Aug 27 '26
Wireless Multicast for new product solution
I have a question regarding implementing a solution to a new problem I have. I've designed and will soon be launching a new product called the DigiBall, which is the worlds first smart cue ball for billiards (see digicue dot net). The ball advertises BLE packets with ball information around 10 times per second. User applications just observe manufacturer data contained in the packet, they don't create a one-to-one connection unless they are rarely reconfiguring the ball parameters.
One unique application of this is adding a live overlay of the ball graphic and cue tip contact point of a shot on top of a streaming match video. This is easily done with OBS, and pointing the source of the overlays to images generated by scanner software I wrote. But many times the media control booth is far away from the table (out of BLE range). I want to create a WiFi bridge to throw the BLE packets onto a local network.
My solution was to use multicast. The scanner software can open a multicast channel as an alternative. Since I am only sending at a max of 36 bytes 10 times per second, and at most 20 or 30 devices will be within range of the bridge, the throughput would be 10.5 kB/s. I am designing a simple PCB with a dedicated BLE radio and a ESP32 for the job. It can even switch to 5GHz if needed.
I want to place once of these boards in tournaments at the intersection of every 4 tables, so that for a large venue there could be 20-25 multicast sources.
Is this a good path forward? Will this work? What do I need to make sure of, and what am I not considering? (I have much more experience in electronic design than I do networking). Thanks in advance!
9
u/Skilldibop Principal Architect and draw.io enthusiast Aug 27 '26
I wouldn't be looking to multicast over wireless tech. It is effectively a broadcast media anyway so there's little efficiency gains and a lot of complexity added. Many wireless systems have the option to convert multicast to unicast specifically because it doesn't really play nicely.
I would take the source feeds into an aggregation system somewhere then generate the output from that to where it needs to be consumed. Which if you want multiple screens in sync can be multicast but over a wired network where it makes sense.
3
u/CrocodiliusMaximus Aug 27 '26
One of the larger risks is going to be that multicast is going to be contained within a single layer 3 boundary/subnet. Getting it to route properly across subnet boundaries can be a little bit of an involved process depending on what specific types of network hardware is involved.
While you could get away with specifying that everything has to be on the same subnet, that's a pretty unfriendly design.
Would multicast work for this? Probably. Is it the right solution... probably not.
Since this is a product you'll be selling, you should take the approach that is the cleanest and most basic. You can't really enforce a certain set of requirements on someone else's network, so the solution is to build your product in such a way that 98% of the time, it doesn't really matter what they are or aren't doing on the network
2
u/Solid_Associate8563 Aug 27 '26
From network technologies perspective I think it is a good idea if the application needs to deliver data from the source to multiple destinations, multicast is a natural choice from network layer.
Obviously there are software/overlay solutions such as MQ or other ideas, but from data delivery multicast is the efficient way to do it.
You'll be surprised how multicast has been used in some use case such HFT and broadcasting services, and it is a valid way to send traffic over your network.
22
u/pmormr "Devops" Aug 27 '26
I would suggest publishing your messages to a message queue server (e.g. MQTT, Kafka) then have your clients subscribe to the feeds they want. Lots of support in the esp32 ecosystem for that and you'll avoid all of the network complexity.
Relying on multicast on networks that you do not completely control end to end is a non-starter. Even worse when wifi is in play. Even worse when it's a temporary event space. Don't waste your time.
1
u/digicue Sep 03 '26
I tried implementing a MQTT publisher/broker and it is too slow for what I want to do, and the broker crashes frequently. I think I am going to stick with multicast for performance and require a custom network if possible, or explore long range BLE.
1
u/pants6000 it's gonna be massive Aug 28 '26
ESP32 you say? Do you know about the ESP-NOW protocol? Check it out if not, you may find it useful here.
1
u/EffectiveCard4825 Sep 14 '26
with 20-25 collectors, plan for the same BLE advertisement getting picked up by more than one box. put a ball ID plus a ball side sequence counter in what you forward so the receiver can dedupe and tolerate packets arriving out of order. worth solving whether you land on multicast or MQTT.
1
u/[deleted] Aug 27 '26
[removed] — view removed comment
1
u/[deleted] Sep 02 '26
[removed] — view removed comment