<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>BT Mesh secure beacon propagation speed during IV update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99310/bt-mesh-secure-beacon-propagation-speed-during-iv-update</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 May 2023 12:40:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99310/bt-mesh-secure-beacon-propagation-speed-during-iv-update" /><item><title>RE: BT Mesh secure beacon propagation speed during IV update</title><link>https://devzone.nordicsemi.com/thread/428465?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 12:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d182ac-aaea-44ed-a2a1-540d7f5dd084</guid><dc:creator>tmennink</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The process is clear now. Although there also are some slight differences between different SDK versions, we have started the IV update process in our test network, and things should be finished by next week.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT Mesh secure beacon propagation speed during IV update</title><link>https://devzone.nordicsemi.com/thread/426009?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 23:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bc97135-5410-46e3-8e9d-35fed04abcbc</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tmennink,&lt;/p&gt;
[quote user="tmennink"]&lt;p&gt;Luckily there is the rule of no more than 600 seconds between beacon transmissions for any node, and this will eventually&amp;nbsp;force every node to send out a beacon. The only &amp;quot;bad&amp;quot; thing that can happen is, if you turn on the entire network all at once, all those nodes will reach their 10 minute limit at approximately the same time. This&amp;nbsp;might cause a large burst of beacons coming all at the same time.&lt;/p&gt;
&lt;p&gt;[...]&lt;/p&gt;
&lt;p&gt;But anyhow, it seems we don&amp;#39;t have to worry that an IV update gets stuck in a small part of the network, it will be forced to propagate everywhere. I expect this to happen over the course of about 4 hours&lt;/p&gt;[/quote]
&lt;p&gt;Yes,&amp;nbsp;I share the same conclusion as you.&amp;nbsp;If you calculate that it will be done in about 4 hours, then that would be all right. As noted in Section 3.10.5, still in the Mesh Profile Specification v1.0.1,&amp;nbsp;a node must go into IV Update In Progress at least 96 hours before&amp;nbsp;the sequence numbers are exhausted. The update thus will complete in time.&lt;/p&gt;
[quote user="tmennink"]What I was fearing, and what seems to be confirmed by the simulation, is that quite quickly a sort of oscillating pattern arises where only a handful of nodes are sending out beacons approximately every 10 seconds, while all other nodes never take a turn because the cadence of the beacons they receive from that handful of nodes will never trigger them to send out a beacon themselves.[/quote]
&lt;p&gt;Is there still a concern about this? Are you worried that the&amp;nbsp;update will not propagate across the network in a short enough time, or is it about something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT Mesh secure beacon propagation speed during IV update</title><link>https://devzone.nordicsemi.com/thread/425998?ContentTypeID=1</link><pubDate>Tue, 16 May 2023 20:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1950953-3960-40d0-8f3b-620fee5d3508</guid><dc:creator>tmennink</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your answer. Meanwhile I also did some research,&amp;nbsp;this is what I was able to find out:&lt;/p&gt;
&lt;p&gt;The zephyr code that handles the beacon timing is deterministic, it follows a couple of rules to determine if it should send a beacon itself or wait to receive one. It&amp;#39;s the Zephyr implementation of what you describe.&lt;/p&gt;
&lt;p&gt;What I was fearing, and what seems to be confirmed by the simulation, is that quite quickly a sort of oscillating pattern arises where only a handful of nodes are sending out beacons approximately every 10 seconds, while all other nodes never take a turn because the cadence of the beacons they receive from that handful of nodes will never trigger them to send out a beacon themselves. I&amp;#39;ve also seen this during testing with two dongles: The one that is the first to send out the first beacon, will continue to do so, the other one never sends a beacon. (for 600 seconds, that is).&lt;/p&gt;
&lt;p&gt;In&amp;nbsp;my simulations I see that without any extra rules,&amp;nbsp; it is possible that a node that went into IV update mode, sends out a beacon once, but this only propagates to a small group of nearby other nodes.&amp;nbsp;Luckily there is the rule of no more than 600 seconds between beacon transmissions for any node, and this will eventually&amp;nbsp;force every node to send out a beacon. The only &amp;quot;bad&amp;quot; thing that can happen is, if you turn on the entire network all at once, all those nodes will reach their 10 minute limit at approximately the same time. This&amp;nbsp;might cause a large burst of beacons coming all at the same time.&lt;/p&gt;
&lt;p&gt;This is the link to the line of code that is responsible for the node sending out a beacon or not.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blame/07c6af3b8c35c1e49186578ca61a25c76e2fb308/subsys/bluetooth/mesh/beacon.c#L111"&gt;github.com/.../beacon.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But anyhow, it seems we don&amp;#39;t have to worry that an IV update gets stuck in a small part of the network, it will be forced to propagate everywhere. I expect this to happen over the course of about 4 hours maximum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT Mesh secure beacon propagation speed during IV update</title><link>https://devzone.nordicsemi.com/thread/425735?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 23:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce245f24-6e82-442d-aec8-64498836f00c</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tmennink,&lt;/p&gt;
&lt;p&gt;My sincerest apology for the long wait. I have not had the productivity necessary.&lt;/p&gt;
&lt;p&gt;Your accidental answer verification has been undone.&lt;/p&gt;
&lt;p&gt;I will now answer your questions with reference to the Mesh Profile Specification v1.0.1.&lt;/p&gt;
[quote user=""]I was wondering, how&amp;nbsp;soon will those nodes also start relaying the secure network beacon?[/quote]
&lt;p&gt;From Section 3.10.5, page 130:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;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.&lt;/em&gt;&lt;/p&gt;
[quote user=""]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&amp;#39;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 &amp;quot;win&amp;quot;?&amp;nbsp; 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?[/quote]
&lt;p&gt;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 &lt;em&gt;computed Beacon Interval&lt;/em&gt;).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From Section 3.9.3.1, page 123:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;The expected behavior is that each node receives one beacon for a given subnet approximately every 10 seconds.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;...&lt;/em&gt;&lt;br /&gt;&lt;em&gt;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.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;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&amp;#39;t conflict.&lt;/p&gt;
&lt;p&gt;When a node, which has updated its IV Index,&amp;nbsp;receives the IV Update SNB with the same IV Index, it will simply not change anything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you wish to know the details of the spec, here are the&amp;nbsp;relevant sections:&lt;/p&gt;
&lt;p&gt;3.9.3: Secure Network Beacon&lt;br /&gt;3.9.3.1: Secure Network Beacon Behavior&lt;br /&gt;3.10.5: IV Update procedure&lt;br /&gt;3.10.5.1: IV Update procedure test&lt;br /&gt;3.10.6: IV Index recovery procedure&lt;/p&gt;
&lt;p&gt;Once again, I apologize for the late answer. Please don&amp;#39;t hesitate to let me know if anything is still unclear.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT Mesh secure beacon propagation speed during IV update</title><link>https://devzone.nordicsemi.com/thread/425710?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 18:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04fd514b-1874-4ac6-8875-78b2d0942e59</guid><dc:creator>tmennink</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;ve accidently clicked verify answer, not knowing this would close the case. The case is still open, how can I undo the verify?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT Mesh secure beacon propagation speed during IV update</title><link>https://devzone.nordicsemi.com/thread/424885?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 13:28:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc63199f-e05f-4a53-bc4d-d64a482227e1</guid><dc:creator>tmennink</dc:creator><description>&lt;p&gt;Hi, ok. FYI, the firmware is build on the NRF Connect SDK 1.9.2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT Mesh secure beacon propagation speed during IV update</title><link>https://devzone.nordicsemi.com/thread/424884?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 13:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f17bd843-3cdf-4705-b653-9afd09431ba6</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tmennink,&lt;/p&gt;
&lt;p&gt;Please be informed that I am still on the case. I got some feedback from our engineers, and will update you soon.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT Mesh secure beacon propagation speed during IV update</title><link>https://devzone.nordicsemi.com/thread/423631?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 21:13:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a24e797f-4a2e-48dc-b178-1902023060e4</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi tmennink,&lt;/p&gt;
&lt;p&gt;Please know that I will support you with this. I will look up on this and return with information soon.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>