Wireless Show Netwo...
 
Notifications
Clear all

Wireless Show Network

21 Posts
8 Users
0 Reactions
9,139 Views
Posts: 672
(@pixelpuppy)
Honorable Member
Joined: 12 years ago
kenoman742 wrote:...The 8 pixel sticks also run well on multicast and that will continue to be my plan as most opinions on multiple forums claim they work best on multicast.

That's fine as long as you know that Multicast is transmitted at a lower data rate (and slower interval) than what Unicast data will be. If the pixel sticks truly do run better on multicast then my guess is its because Multicast over WiFi forces the slower transmission rate and timing intervals and maybe the tiny pixel sticks struggle at higher transmission rates? Otherwise I can't think of any technical reason why pixel sticks would work better on multicast. I would love to hear an alternate technical explanation if anyone else knows why.


Reply
MartinMueller2003
Posts: 7603
(@martinmueller2003)
Illustrious Member
Joined: 14 years ago

This is a good explanation, but the ack that is generated in response to receiving a unicast PDU has little to do with the L2 ack (that releases the AP transmitter to send to another client). The unicast ack looks very much like a normal PDU to the wireless layer. That means the unicast ACK needs to request air time, be granted air time and then send the IP layer ack back to the originator. None of those Ask/Grant steps happen in a common wired (CAT5/6) network. It is those extra steps and the shared bandwidth that causes jitter and lag on the WiFi network and it is why the use of multicast on the WiFi network is very often the method of choice. There are long discussions about how to force an AP to set the broadcast channel to the highest data rate available and you need to take steps to ensure there are no legacy (aka slow) devices on the show network. These and about two dozen more details need to be addressed when setting up a show WiFi network.


Reply
Posts: 672
(@pixelpuppy)
Honorable Member
Joined: 12 years ago
MartinMueller2003 wrote:the ack that is generated in response to receiving a unicast PDU has little to do with the L2 ack (that releases the AP transmitter to send to another client). The unicast ack looks very much like a normal PDU to the wireless layer. That means the unicast ACK needs to request air time, be granted air time and then send the IP layer ack back to the originator.

I disagree with that conclusion in the context of WiFi-imposed Unicast ack'ing. It sounds like you are describing a TCP ack which I agree "has little to do with the L2 ack". It seems like you are assuming that all Unicast traffic is sent via TCP which would require a TCP ack and include all the overhead you are mentioning. But that is not what's happening in this case. E1.31 Unicast is sent as UDP packets and, like Multicast (which is always UDP), does NOT require a TCP ack packet so it does not have the additional L3 overhead you are describing. A MAC-layer WiFi Unicast Ack is NOT an IP layer ack that goes back to the originator. It is a MAC-layer message that is sent only over-the-air between the client and the AP and it occurs on the order of MICRO-seconds (vs milli-seconds for IP ack packets end-to-end)

None of those Ask/Grant steps happen in a common wired (CAT5/6) network.

Those IP acks (what you described) do happen in wired networks IF you are using TCP, just like they do on Wireless networks when you use TCP. But E1.31 uses UDP which does not use IP acks on either wired or wireless networks. WiFi-enforced Unicast acks (which happen very quickly at the MAC-layer) should not be confused with TCP-enforced acks (which take much more time at the Network-layer)

It is those extra steps and the shared bandwidth that causes jitter and lag on the WiFi network and it is why the use of multicast on the WiFi network is very often the method of choice.

Did you read the IETF abstract I posted? It contradicts what you just stated. The IETF abstract clearly states that Multicast over WiFi is a well- known problem to the IETF and there is an active working group that is continually trying to tweak and enhance the 802.11 standards to "fix" all the issues with WiFi Multicast. Its quite clear from their reports that Multicast on the WiFi network is NOT the method of choice. Even in cases where you do want to send the same data to multiple clients (true multicast purpose) its still often better (and faster) to use unicast over WiFi. This is why modern AP's have the ability to convert wired multicast to wireless unicast behind the scenes.

There are long discussions about how to force an AP to set the broadcast channel to the highest data rate available and you need to take steps to ensure there are no legacy (aka slow) devices on the show network. These and about two dozen more details need to be addressed when setting up a show WiFi network.

This I agree with. Yes there are definitely ways to tweak, improve, enhance multicast performance over WiFi - BECAUSE IT IS INHERENTLY PROBLEMATIC. By default it does not perform better and most people don't go in their AP's tweaking and twiddling all those funny-named parameters like Beacon Interval, DTIM, MC2UC, etc. Likewise, most people don't force their AP to only use the highest data rate because it may cause them to lose connectivity for the clients that are further away (higher data rates require higher RSSI)

I would like to state again that I am talking about Multicast over WiFi in general and not specifically regarding ESPixelSticks. They may run better with Multicast but its not due to Mulitcast performing better over WiFi. Its well documented by the Internet Engineering Task Force that multicast does not perform well over WiFi so there is some other reason that would make pixel sticks perform better when using multicast (handling the slower data rate better is my guess).


Reply
jchuchla
Posts: 8691
(@jchuchla)
Illustrious Member
Joined: 15 years ago

I have to respectfully disagree with pixelpuppy here on a lot of points. I've spent many many hours trying to get a unicast wifi network working to an acceptable level of performance, and was never able to achieve a system that had an acceptable level of performance over time when using unicast.
Before reading on here, you will likely want to get some context and read the wiki article I wrote on this topic: https://www.diychristmas.org/wiki/index.php?title=Streaming_ACN_over_WiFi

There's a lot of true statements in his arguments, but a lot of it is irrelevant when data timeliness is more important than data integrity. The solutions I've given prioritize timeliness over data integrity. With the assumption that it doesn't matter how accurate the data is if it arrives late. I consider any lag to be unacceptable. And I consider some degree of missed data to be acceptable. These two statements form the basis of my arguments here.
I'm well aware of the layer 2 acks, but I've also observed and measured that it does in fact make a significant impact. Pixellpuppy's comments above summarily dismiss the significance of this. The ACKs themselves are largely insignificant, but a failure to ack, triggers a retry. And the retries can quickly burn you. If it misses the first time, it rarely will succeed the 2nd or 3rd time. I've seen where a receiver with bad reception could often force 15 retries per packet. (15 before abort is the setting on the nanostation firmware). And the stations that are most likely to miss packets and require retries have already negotiated a low data rate with the AP, so each one of those retries are happening at the slow rate chewing up a ton of cycles. The nanostations give good metrics tools to be able to see how this adds up quickly to force a complete buffer flush in a fairly short time. While that's going on, the entire show is in an extreme laggy state that's nothing close to usable. If it were possible to maintain good signal and good negotiated data rates on all stations at all times, his theory would hold true. But I've found that it's next to impossible to achieve and maintain that situation. Especially in WiFi dense suburban neighborhoods, and when receivers can often be snow covered. I was able to have a unicast setup working very well one day and then all of a sudden become completely unstable and laggy. Often when it would start snowing, or when there were a lot of cars watching the show (and the wifi airspace suddenly becomes much more crowded).
The comment about multicast requiring the lowest data rate is true. But that "lowest" rate can be controlled. Sure it's a workaround, but a necessary one if you want a stable, performant e1.31 show network. I've given the recommendation to intentionally prohibit power save devices from the network. That lifts the fixed 1mbps restriction. Then it's up to the AP to determine the lowest common denominator of all connected stations. Though on some APs like the nanostations, you can override that low threshold, which I've explained how to do before. I have mine running stable at 24mbps rather than the default 1mbps.
The IETF article quoted is very old. I've read that before, and while the arguments are sound, I don't think it really holds water for the purposes of this discussion given the fact that we have a very specific, timing critical use case. We're not talking about generic data that's less time critical. This isn't the mainstream use case for wifi. We shouldn't expect it to work by default, and given that workarounds do exist to make it work well, go ahead and use them.


Reply
Posts: 672
(@pixelpuppy)
Honorable Member
Joined: 12 years ago

Hi Jon, I was hoping you would chime in because I know you have a lot of experience with this. Thanks for the detailed explanation. :v:

I tried (and apparently failed) to make the disclaimer that I was speaking about WiFi in general and not specifically about how we use it here. You make a good point about this application not being typical of how WiFi is normally used and that certainly changes the objectives and what methods perform best for each scenario. I want to highlght your point that this is not "normal". If this particular use case does in fact run better with Multicast, it does not automatically follow that Multicast is inherently better for all WiFi connections. Multicast over WiFi does in fact have inherent problems, but some of them can be made to work better in this particular environment (not by default, though). It may be better in this use case because timing is more critical than accuracy...AND because many people may not have very good signal quality out in their yard which could mean lots of re-transmissions (noting that successful link-layer acks should not be a cause of significant delay - "largely insignificant" as you said)

We agree timing is important in this use case and the facts I stated (which I think you also agree) are that a successful L2 ack is very quick and should not be confused with much slower TCP ack'ing. However, you make an excellent point that it degrades quickly if the signal quality is not good and there are re-transmissions. Poor signal quality definitely changes the equation and multiple re-transmissions will make things progressively worse. That is a very good point that I did not mean to summarily dismiss. I personally focus on having a good signal throughout the yard so I don't have re-transmission congestion issues. (note: I do not have to deal with snow-covered receivers)

The IETF article is a few years old but the facts are still true. And I think you are agreeing with most of my other points like Multicast using the slowest speed (although it can be helped with special AP configuration which I did mention). But if people don't make those special tweaks and adjustments then Multicast is slower than Unicast (unless there is a high number of re-transmission - which should be fixed separately IMHO). We agree that this application is a special case and not the mainstream use. And we shouldn't expect it to work by default. However I think its fair to say that most people have their WiFi configured with mostly default settings so I don't agree with blanket statements (which you did not make) that Multicast over WiFi is always better and Unicast over WiFi always creates more traffic. Those conditions *can* happen and *may* be true under certain conditions, but its certainly not the normal behaviour and that is what I was trying to describe. You acknowledged that we shouldn't expect it to work by default and workarounds are needed to make it work for this use case.

Edit: I would like to ask your thoughts about Multicast only being sent out during each beacon interval - which is 100ms by default. Do you change your beacon interval (most people don't but you might) or are you satisfied with 100ms timing intervals? I refrain from saying "frame rate" in this context because two 50ms frames can get buffered and both frames get sent out at the next 100ms interval - so technically you may still be getting all the frames (assuming no packet loss) but you're getting two frames every 100ms instead of 1 frame every 50ms

Edit2: More and more of the AP's coming out now support things like MIMO, Multiple Spatial Streams, and Beam Steering - which are all drastically limited when multicast is used. So if you have one of these newer AP's you won't be able to take full advantage of these enhancements when using multicast. Love to hear your thoughts on this too.

Thanks for the inspiring discussion, as always :thup:


Reply
jchuchla
Posts: 8691
(@jchuchla)
Illustrious Member
Joined: 15 years ago

You'd be amazed on how much the snow plays hell on 2.4G reception. I try to keep my receivers so they aren't on the ground where they get blanketed with snow, but a wet sticky snow will cover everything no matter how far off the ground things are. At least for some period of time. Snow in the air will also significantly attenuate the signal.

pixelpuppy wrote:
Edit: I would like to ask your thoughts about Multicast only being sent out during each beacon interval - which is 100ms by default. Do you change your beacon interval (most people don't but you might) or are you satisfied with 100ms timing intervals? I refrain from saying "frame rate" in this context because two 50ms frames can get buffered and both frames get sent out at the next 100ms interval - so technically you may still be getting all the frames (assuming no packet loss) but you're getting two frames every 100ms instead of 1 frame every 50ms

I played around with this but I had a hard time actually measuring the results. My show runs at 50ms, I leave the beacon interval at 100ms, and the DTIM at 1. That way, there's two sequence frames per beacon, but the updates are sent on every beacon interval rather than some multiple of it. I've tried faster beacon intervals, but anything lower than 100ms produced erratic results. I figured there were no benefits to any values that were between the multiples of the sequence rate. (50, 100, 150...) I figured that 90 would be no better than 100. I shouldn't see a change till I get to 50. But what i saw was anything below 100 caused the whole system to become very unstable. That could be an ESP limit too though.
Last year I had close to 20 universes over wifi spread across almost 40 pixelsticks. Most of my universes are received by more than one pixelstick. And most of my universes are full universes, or very close to it. That's intentionally done to reduce the universe packet count. In my scenario, there's only a few universes that would be good candidates for unicast anyhow. I did play around with trying to reduce my sequence timing to 100ms, and there was a noticable difference between that and the 50ms timing. So even if the packets were being buffered to send one set of 20 universe packets, and then another set of 20 right after it, it was a lot better than only sending one set per beacon. And by better, I mean smoother on the light transitions during fades and such, which is why we increase the sequence frame rate anyhow. I suspect that the second frame worth of universe packets was closer to the halfway point between beacon intervals than it was to the beginning. The other thing that i'm unsure of is whether multicast packets are even buffered when there's no stations in power save mode. I read conflicting information when i was researching that topic. I know when there's any station in power save mode, all broadcast and multicast traffic will be buffered and will be transmitted in bulk at the top of each interval. But i couldn't find a definitive answer if that's still true when nothing's in power save state. And given that I couldn't accurately measure the actual data timing, I couldn't prove it.
Part of the reason i was having a hard time measuring the actual packet timing was because every time I'd connect my laptop to the AP, I'd get other unpredictable results. I assume it's because of all the other random background traffic a windows PC generates in it's normal course of operation. I didn't really have a WiFi packet capture tool that would sit there quiet and just silently listen and capture.

pixelpuppy wrote:
Edit2: More and more of the AP's coming out now support things like MIMO, Multiple Spatial Streams, and Beam Steering - which are all drastically limited when multicast is used. So if you have one of these newer AP's you won't be able to take full advantage of these enhancements when using multicast. Love to hear your thoughts on this too.

This is one of the reasons that I always direct people toward the simple yet tweakable nanostations. It doesn't use a lot of the more complex methods and is easier to control the behavior. All that newer and fancier stuff is great for general purpose internet traffic. But this use case is really all about "spray and pray". In other words, just send it out as strong and fast as possible, and if it gets there, great, if not, oh well, hopefully the next one gets there.
On an unrelated note, despite all the reading I've done on beamforming as it applies to WAPs, I still don't get how they're implementing it in practice. I totally understand the practical theory behind beamforming. I use the concepts almost daily while configuring line arrays and beamforming microphones. But in those applications, you have to form the beam. Well, the software does the work, but you need to tell it where you want the beam to go. In the WAP arrangement, I've never seen such a configuration interface where you tell it where you want the coverage to be. So how does it work? Does it somehow guess which direction and how far the stations are from the AP, and adjust its beams accordingly? If so, how does it find stations when they pop up in the null lobes? I'm just speculating, but I'd assume that this is all in the RF domain, so it really has no effect on the traffic pattern. It's just optimizing the RF range and pattern for the desired coverage area.


Reply
Posts: 672
(@pixelpuppy)
Honorable Member
Joined: 12 years ago
jchuchla wrote:You'd be amazed on how much the snow plays hell on 2.4G reception.

au contraire! I totally understand how snow plays hell on 2.4G RF. I've installed many outdoor AP's all over the country ... I just don't have deal with it in my yard at home in Texas. 😛

I played around with this but I had a hard time actually measuring he results. My show runs at 50ms, I leave the beacon interval at 100ms, and the DTIM at 1. That way, there's two sequence frames per beacon, but the updates are sent on every beacon interval rather than some multiple of it. I've tried faster beacon intervals, but anything lower than 100ms produced erratic results. I figured there were no benefits to any values that were between the multiples of the sequence rate. (50, 100, 150...) I figured that 90 would be no better than 100. I shouldn't see a change till I get to 50. But what i saw was anything below 100 caused the whole system to become very unstable.

I have also played with adjusting the beacon interval and, like you, saw very erratic results with anything less than 100ms. Higher values seem to work as expected but in my testing anything under 100ms was unusable and I never understood exactly why.

Most of my universes are received by more than one pixelstick. And most of my universes are full universes, or very close to it. That's intentionally done to reduce the universe packet count. In my scenario, there's only a few universes that would be good candidates for unicast anyhow.

That falls in line with my previous comments about using multicast only when sending the same universes to more than one pixel stick. I understand why you do it (I do it too) but most people don't.

The other thing that i'm unsure of is whether multicast packets are even buffered when there's no stations in power save mode. I read conflicting information when i was researching that topic. I know when there's any station in power save mode, all broadcast and multicast traffic will be buffered and will be transmitted in bulk at the top of each interval. But i couldn't find a definitive answer if that's still true when nothing's in power save state.

I have the same difficulty finding definitive details on this, but I believe it has to do with the fact that all multicast receivers need to be ready to receive the single multicast transmission all at the same time and the best (or easiest) way to insure their synchronized "readiness" is to do it on the known beacon intervals

On an unrelated note, despite all the reading I've done on beamforming as it applies to WAPs, I still don't get how they're implementing it in practice.......... Does it somehow guess which direction and how far the stations are from the AP, and adjust its beams accordingly? If so, how does it find stations when they pop up in the null lobes? I'm just speculating, but I'd assume that this is all in the RF domain, so it really has no effect on the traffic pattern. It's just optimizing the RF range and pattern for the desired coverage area.

Since you work with beamforming microphones, you also understand that beamforming works in reception as well as transmission. Undoubtedly each vendor implements it differently but in general I believe its intended to create a dynamically changing RF pattern that you don't necessarily configure. As I understand it, the AP will use beamforming techniques while listening for the clients to determine "where" they are and then use that same beam pattern when transmitting back to that client. It uses a unique pattern for each client. Its constantly monitoring and dynamically changing the pattern in order to support mobile clients and also optimize the signal to stationary clients. At least that's the goal as I understand it. Its definitely an interesting technology, but its yet another thing that is crippled when you use multicasting


Reply
dirknerkle
Posts: 10293
(@dirknerkle)
Illustrious Member
Joined: 18 years ago

I'll also mention that temperature can play a factor. Make sure any wireless gear you put outdoors can handle the temperature range you encounter. Here in Minnesnowda it can easily get -30F (-22C), and if your gear is only good down to 0°C (32F) you're not going to be a happy camper...

The ESP chip, for example, is okay down to -40C (same as -40F), but inexpensive power bucks, voltage regulators and other electronic components that you might use as part of the power circuit are often only certified down to 0°C.


Reply
Posts: 629
(@dkulp)
Honorable Member
Joined: 14 years ago

The entire multicast vs unicast on wifi debate....

It really comes down to test it and see what works. I've had folks I was trying to diagnose lag issues with that were using multicast and flipping to unicast caused all the lag to go away. Like wise, I've seen the reverse as well. There are so many variables that go into it. I generally recommend folks try the multicast setups first. With modern access points and such, it tends to work OK. However, I've seen a lot of issues with slightly older access points that causes all kinds of multicast issues. In those scenarios, unicast may work best.

Had one the other day that would "work for a while" on multicast, but then stop completely until everything was restarted. For some reason, it looks like the access point would just randomly forget the IGMP subscriptions and stop sending the multicast packets to the places that were waiting for it.


Reply
jchuchla
Posts: 8691
(@jchuchla)
Illustrious Member
Joined: 15 years ago
dkulp wrote:
Had one the other day that would "work for a while" on multicast, but then stop completely until everything was restarted. For some reason, it looks like the access point would just randomly forget the IGMP subscriptions and stop sending the multicast packets to the places that were waiting for it.

This behavior is indicative of a lack of a functional IGMP querier on the network. It’s the queriers job to periodically ask which clients are still alive and interested. One notable exception is the espixelstick firmware that sends gratuitous subscription requests periodically without being queried.

Sent from my iPhone using Tapatalk


Reply
Page 2 / 3
Share: