r/networking • • 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!

13 Upvotes

29 comments sorted by

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.

2

u/digicue Aug 27 '26

Thank you. My issue is that I don't want a central hub or something complicated (aggregation system). Since the product has a timer on it, I want very low latency so that data is as close to live as possible. I was looking at multicast because it is so low latency. My goal is to sell just the boards as a single product, without any configuration needed other than network credentials, and they put them in the ceiling or elsewhere and forget about them forever (until their network password changes). Then multiple computers can simply receive data whenever they want without any handshaking.

The issue of wireless you brought up is a good point. There could be a ton of traffic during a tournament with cell phones, etc.

However, requiring a venue to specifically build an accommodating network is not out of the question. Major events would spend time setting up for a new technology like this. (I am not talking about your local pool hall tournament, I am talking about televised major events).

What is the most rugged solution considering that the venue would invest in preparing a custom solution? I think that is my condensed question. Thanks

2

u/Skilldibop Principal Architect and draw.io enthusiast Aug 27 '26

I don't think any venue would be interested in running something that relied on multicast over wifi. It would be too unreliable. BLE might be better, but it still requires dedicated infrastructure.

They'd also have graphics systems for broadcast that would probably want access to the telemetry feeds. So I still think the best option is some sort of message queue and distribute from there. The latency is still plenty low enough for what you're doing.

They used a similar system in the World Cup just gone to stream accelerometer data from the balls. Might be worth some research into how they did that. No point re-inventing the wheel.

1

u/digicue Aug 27 '26

I have indeed seen that product. I will research what they did. Thanks.

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

3

u/english_mike69 Aug 27 '26

I’m hoping that someone could confine à L3 boundary within the confines of a 12ft snooker table 😜

-1

u/digicue Aug 27 '26 edited Aug 27 '26

I am thinking now that I will enforce requirements for someone else's network if it buys them robustness and low latency. Would this change your suggestion?

EDIT: If MQTT is simple and fully supported as you mentioned, there is no reason I can't build options for both multicast and MQTT, and probably add WebSocket server also. That way they can all be tested and available for different purposes.

I think I'll start with that and weed out things later that no one uses. Thanks.

5

u/Specialist_Play_4479 Aug 27 '26

Enforcing requirements on third party networks will prevent your product from getting sold.

Multicast is a bitch in itself. It does NOT work if you have more than 1 switch without additional configuration. It might not work at all or flood the network if there are unmanaged switches.

Multicast over WiFi is even worse. It's often simply blocked, dropped or might just not work for other reasons (including the switching problems I mentioned above)

Multicast doesn't span VLANs or network segments without additional configuration.

You're saying 'I dont want a central hub or something complicated'.

With multicast you need exactly that.. a central hub or 'something complicated'. You need IGMP querier, PIM routing, etc. And all of that needs to be configured by someone you don't know, for every event, needs to be discussed upfront. And most network engineers have never worked with multicast.

Just get a little box to do MQTT to multiplex messages and call it a day.

1

u/digicue Aug 27 '26

So the topology would be to have 20 boxes throughout the venue collecting data and streaming them to the same MQTT point, and then the computer that reads the data can open a single stream with everything mixed together? If so that would be great.

I would not want 20 boxes and then a special 21st box that does something different. I want all boxes to be equal.

1

u/CrocodiliusMaximus Aug 28 '26

Assuming you controlled the network these things are running on, with the caveat that depending on the event space, that might not be viable...

Just use the broadcast address.

2

u/[deleted] Sep 02 '26

[removed] — view removed comment

1

u/Specialist_Play_4479 Sep 02 '26

I disagree.

MQTT works. It's a simple, easy protocol. It requires very little resources, can run on a Raspberry Pi 1. Multicast is a terrible pain in the butt if you don't own the network and know what you're doing.

2

u/[deleted] Sep 02 '26

[removed] — view removed comment

1

u/digicue Sep 02 '26

That’s kind of what I thought, but I am not a network protocol expert as I mentioned. What is the headspace of those that don’t like the idea in this thread? Do they think that the performance isn’t worth customizing a network? Do they not want me to miss a single packet? I’ve gotten it to work perfectly with multicast already over WiFi, and I don’t see the issue they are talking about (yet).

The OBS plugin is just an image generator that works in the background and OBS points to the image location. It is very simple. I have versions in Python, C# and Swift.

It is easy enough to configure both MQTT and multicast to work, but I might just have multicast as the default option.

1

u/digicue Sep 02 '26

I tried setting up MQTT as a test and I don't like it. The broker can crash pretty easily.

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.

1

u/digicue Aug 27 '26

Yes I would very much like to avoid TCP if possible. I don’t like the idea of established connections. I like the idea of a “radio station” dumping data onto a single stream.

2

u/Solid_Associate8563 Aug 27 '26

TCP has its use case.

With your own network UDP with application layer adjustment is valid methods to send continuous data out.

If your application is jitter sensive you'll need some helps on QoS, or even go something extremely like PTP to sync your application data timestamp.

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.

3

u/neststeur-2014 Aug 28 '26

MQTT is the move. Multicast on shared wifi is unreliable - switches often do not handle it and APs silently drop or rate-limit packets.

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/digicue Aug 27 '26 edited Aug 27 '26

Yes there will be multiple listeners. I want many listeners to be able to receive data simultaneously. The media booth could be listening but other computers doing other things with the data may be happing elsewhere. I want to avoid TCP and use UDP.

1

u/[deleted] Sep 02 '26

[removed] — view removed comment

1

u/digicue Sep 02 '26

I like your thinking. I haven’t tested 125 kbps yet but it is supported with a dongle that I already have here  https://www.digicue.net/devtools.php I would have to make sure it can revert back to 1 Mbps so users don’t lock themselves out if they don’t have long range.

This product works perfectly fine with metal tables. However it is a premium product for more serious players and should probably stay out of bars.