ZIgbee: channelling considerations when installing your zigbee network

Tags: #<Tag:0x00007f6173ed0950>

There’s been a lot of discussion about Zigbee channel selection, with some saying it matters and some saying it doesn’t

In today’s increasingly crowded 2.4GHz environment, “it does matter” - and to add to the confusion, Zigbee channels overlap the wifi band, but use a different channel numbering

Zigbee channel 11 is approximately on top of Wifi channel 1, whilst Zigbee channel 25 is approximately a match for Wifi channel 13

It’s worth reading https://www.control4.com/docs/product/zigbee/best-practices/english/latest/zigbee-best-practices-rev-d.pdf

There’s also a good explanation of the issues at Metageek: https://support.metageek.com/hc/en-us/articles/203845040-ZigBee-and-WiFi-Coexistence

Zigbee coordinators tend to default to channel 11 - which is about the worst possible channel to use because most wifi routers tend to default to channel 1

Ideally, grab an android phone or something similar and use something like “Wifi Analyser” to work out what the strongest Wifi channels in your vicinity are, then set your zigbee channelling as far as possible from them, using advice from the two items above.

WIfi interference to your Zigbee network will result in paring taking minutes instead of seconds, devices getting disconnected and poor communications across the mesh

Unlike Wifi, Zigbee is not frequency agile - meaning that once you’ve set up a mesh on one channel, rechanneling requires manually resetting every single device on the mesh, instead of just changing the router channel.

[If you ever wondered why 2.4GHz Wifi has 13 channels when only 3 are actually ‘usable’, it’s because the ‘original’ Wifi was 1.6Mb/s Rangelan/Wavelan(the original 802.11 standard) and the 14 channels did work without interfering with each other

  • all wifi channels are “usable”, but the “non-interfering” ones can operate in close proximity without slowing each other down
  • the ACTUAL set of non-interfering wifi channels depends on the modulation method used and the bandwidth limit set (802.11n limited to 6Mb/s uses far less bandwidth than Rangelan as one example). The “standard set” are based on ‘worst case scenarios’ and should always give usable results
  • it’s perfectly possible to operate adjacent wifi networks on the same channel, but they end up sharing the theoretical maximum bandwith (ie, it’s divided by the number of access points ‘within earshot’ of each other)
  • ch14 is japan only and there’s another ham-only channel which people needn’t worry about.
  • only 1-11 are “legally usable” in North America, but hams can use 12-14, so don’t assume they’ll be vacant
  • ‘license-busting’ illegal firmware loads in wifi chipsets may be using other frequencies between 2.2 and 2.8GHz. These don’t concern us for this purpose…
3 Likes

Good post!

For those using zigbee2mqtt the default channel is definitely 11. To change this, add the following into your configuration.yaml:

advanced:
    channel: 15

For the avoidance of doubt, the warning about re-pairing is also relevant for zigbee2mqtt:

The bands are so narrow that there is supposed to be not much interference. I am a Wi-Fi engineer so I chose to avoid Zigbee & smart home Wi-Fi devices because of the 2.4 GHz crowding & interference.
UI use Z-Wave which is in a totally different band.

In the US there are only 3 non-overlapping Wi-Fi channels, 1, 6, 11. My closest neighbor has an “IT smart” family member set his Wi-Fi up on channel 7, interfering with both 6 & 11. That just leaves me with Channel 1 for my 2 APs. I decided to only put the 2.4 GHz channel on one of them.

1 Like

That statement shows some absolutely fundamental ignorance of Code Division Multiple Access/Collision Avoidance systems and the way Wifi works (Hint: this is a field I’ve spent several decades working with, long before Wifi was a “thing”)

You CAN operate 2 different wifi networks on the same channel physically side by side if you wish. The effect will be about a halving of theoretical speed

The idea of using “non overlapping channels” is simply a rule of thumb to try and achieve best unencumbered throughput - and in fact the best set of channels actually varies depending on the modulation methods used (they actually always overlap, see further down)

  • 3 non-overlapping assumes 802.11b
  • If you use 802.11g or 802.11n 20MHz and have 13 channels available then you can achieve 4 non-overlapping channels.
  • 802.11n 40MHz only gives 2 non-overlapping channels
  • 802.11n 80MHz wipes out the entire 2.4GHz band (nobody uses this one)

There’s a reasonable amount of explanaton about this on Wikipedia: https://en.wikipedia.org/wiki/List_of_WLAN_channels

What that means is that if someone’s operating on channel 7 that doesn’t “lockout” adjacent channels:

It simply slows channel 11 down a little and behaves more or less the same as if it was operating on channel 6 if you try to run something else nearby (ie: you’ll start seeing major slowdowns, particularly if your station(computer) is equidistant (attentuation-wise) from the Access Points

In terms of “co channel interference”, if the signal strength of the adjacent access points is more than ~45dB below your desired access point, for all practical purposes “it doesn’t exist”

The fun part is that whilst we talk about overlapping channels as if 802.11b is still in use, the last 802.11b-only chipsets were made more than 17 years ago - and there are such nasty side effects of using 802.11b that the very first thing I advise is DISABLING IT (if any station using an access point uses 802.11b then ALL stations must use 802.11b and they ALL run at the speed of the slowest 802.11b device).

802.11g has been out of production for more than a decade too.

After assessing the prevalance of 802.11b stations in various large-scale academic networks (hundreds to thousands of APs) I disabled that back in 2015 as it hadn’t been seen for several years

More recently I’ve been disabling 802.11g (and 802.11a - its 5GHz brother) - in the main academic network I administer (1500 access points) there were a grand total of 3 802.11g stations - two of which were ancient USB sticks and the other was a 16 year old laptop computer which was plugged into ethernet anyway

The images below give a better representation of the spectrum shoulders of 802.11g/n channelling. OFDM gives much flatter and sharper shoulder cutoffs until you get down to about -30dB where they start spreading out into sideband lobes - as you can see, a zigbee channel is going to see interference from the sideband lobes even when sited “between” the “non overlapping channels” - which in reality aren’t non-overlapping, just minimally slowing each other down.

This is why I recommend that it really does pay to find out which channels are operating around you, then channel your zigbee (and your own wifi) accordingly. Your network will run much more happily

Of course for best wifi results, you’re better off using 5GHz wherever possible.

Unless you are in Japan, Zigbee channel 25 is furthest from 2.4GHz WiFi. Here’s a flash from the past…

WIfi Channel 14 is only usable for 802.11b in Japan - it’s specifically off limits for the other modulation schemes. That said, it is usable in other countries if you have a ham license (along with wifi 15)

if you use Wifi channel 12/13 for your wifi like I do here in Europe it’s smack on top of zigbee channel 25. Wifi 12/13 may be used in the USA by hams so there’s no guarantee they’re vacant

1 Like

Many enterprise systems especially in dense deployments restrict channel bonding. Although the newer standards permit bonding it is not required or used everywhere in real world enterprise installations. Many home systems have configuration settings too.

I support an active system of over 4000 access points. What is your non-theoretical experience?

Campus systems supporting ~35,000 users.
No bonding in sight nor would I recommend it

The biggest gain in a managed network is to turn off the majority of 2GHz radios and steer people onto 5GHz where we drop one AP per office and allow them to run up to 1200Mb/s - you can’t so that in a domestic environment as you don’t have any control over the channelling, power levels or transmitter density so the result is everyone in an apartment building has their 2GHz radio running at full power, usually on channel 1 and the gripes about how rotten the throughput is

2GHz is wild west territory out in suburbia and zigbee has to dance amongst the gaps. Having to re-pair everytime you rechannel means you really do need to try and get it right first time. The fact that it defaults to channel 11 is the worst of all worlds

1 Like

So the channel overlap I stated is correct. I am aware of only one Wi-Fi vendor that tried to have their APs all on one channel.

The 4 channel scheme you stated is using a slight overlap.

I work in a residential University environment so we use bonding in some areas for additional speed.

Zigbee defaults to channel 11? I do not use Zigbee but my test stick supports it. I decded on Z-Wave to avoid the dancing.

Zigbee defaults to channel 11?

Every coordinator out there seems to start out on this channel - which clashes with WIfi channel 1 - which is the default for most wifi installations unless “more advanced” home routers are used which rechannel themselves based on interference - these will pick 6/7 or 11/13 depending on what part of the world they’re in)

The result is that a “out of the box” zigbee installation is likely to have througput/connectivity problems until rechannelled

I decided on Z-Wave to avoid the dancing.

This discussion isn’t about Z-wave, 433MHz or the pros and cons of other methods.

It’s for people who’ve got Zigbee, to make best use of the available channeling and to understand why they may be having problems.