BT Mesh secure beacon propagation speed during IV update

I have a question about propagation speed of the secure network beacon over a bluetooth mesh networks.

Last year we installed a mesh network consisting of 1750 light fixture each with a NRF52840 bluetooth mesh node. These lights are dimmable, and arranged in a total of 60+ groups. There is an edge device with a nrf52840 dongle that controls the dimming setting of all the groups, this one transmits somewhere between 20.000 and 100.000 messages per day. This is a higly dynamic installation where our lights compensate for fluctuations in natural daylight, so the dim levels throughout the facility fluctuate all the time.

This has been running flawless for many months, however the transmitting node is close to reaching the sequence limit and it will start the IV update procedure. This will involve propagating a secure network beacon throughout the network signaling the update procedure state should be entered. Once this has been done, as I understand it, one of the nodes in the network will increment its IV and switch to normal mode. This node will transmit a secure beacon with the incremented IV and "normal mode", triggering immediate increment of the IV index by all the nodes receiving that secure beacon.

I was wondering, how soon will those nodes also start relaying the secure network beacon? And will they be competing with surrounding nodes transmitting the old IV index beacon? As I understood each node strives towards making sure there is a beacon approximately every 10 seconds, so if it does not see one for more than that, it will transmit it's own. Will a node that has already increased its IV index, see an old beacon and transmit the new beacon faster to make sure it will "win"?  Or is it a matter of change which nodes win, irrespective if they have an old or new beacon, and will it just be a matter of luck before all nodes have finally seen the new beacon?

  • Hi tmennink,

    Please know that I will support you with this. I will look up on this and return with information soon.

    Hieu

  • Hi tmennink,

    Please be informed that I am still on the case. I got some feedback from our engineers, and will update you soon.

    Hieu

  • Hi, ok. FYI, the firmware is build on the NRF Connect SDK 1.9.2

  • Hi, I've accidently clicked verify answer, not knowing this would close the case. The case is still open, how can I undo the verify?

  • Hi tmennink,

    My sincerest apology for the long wait. I have not had the productivity necessary.

    Your accidental answer verification has been undone.

    I will now answer your questions with reference to the Mesh Profile Specification v1.0.1.

    I was wondering, how soon will those nodes also start relaying the secure network beacon?

    From Section 3.10.5, page 130:

    A node that is in Normal Operation state that receives and accepts a Secure Network beacon with the IV Update Flag set to 1 (indicating the IV Update in Progress state) should transition to the IV Update in Progress state as soon as possible.

    And will they be competing with surrounding nodes transmitting the old IV index beacon? As I understood each node strives towards making sure there is a beacon approximately every 10 seconds, so if it does not see one for more than that, it will transmit it's own. Will a node that has already increased its IV index, see an old beacon and transmit the new beacon faster to make sure it will "win"?  Or is it a matter of change which nodes win, irrespective if they have an old or new beacon, and will it just be a matter of luck before all nodes have finally seen the new beacon?

    Firstly, it is not that a node that strives to transmit a Secure Network Beacon (SNB) every 10 seconds. The network as a whole strives to have a beacon approximately every 10 seconds based on calculation. Thus, the calculation might result in a much larger time between when two consecutive time a node transmitting a SNB (a computed Beacon Interval). 

    From Section 3.9.3.1, page 123:

    The expected behavior is that each node receives one beacon for a given subnet approximately every 10 seconds.
    ...
    If the computed Beacon Interval is less than 10 seconds, it should be set to 10 seconds. If the computed Beacon Interval is greater than 600 seconds, it should be set to 600 seconds.

    Secondly, there is no issue with competition. Even if coincidentally two or more nodes on far ends of the network start the IV update procedure at the same time, they will strive for the same thing, and won't conflict.

    When a node, which has updated its IV Index, receives the IV Update SNB with the same IV Index, it will simply not change anything. 

    If you wish to know the details of the spec, here are the relevant sections:

    3.9.3: Secure Network Beacon
    3.9.3.1: Secure Network Beacon Behavior
    3.10.5: IV Update procedure
    3.10.5.1: IV Update procedure test
    3.10.6: IV Index recovery procedure

    Once again, I apologize for the late answer. Please don't hesitate to let me know if anything is still unclear.

    Best regards,

    Hieu

Related