<?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>Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105797/configuration-of-openthread-regarding-backoffs</link><description>Hi, 
 we have found OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_ENABLE in the code base and it is defined as 1. Therefore we would assume that the openthread stack is automatically applying some backoff in case of missing replies from some router. In our case</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Dec 2023 08:43:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105797/configuration-of-openthread-regarding-backoffs" /><item><title>RE: Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/thread/458458?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 08:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af808c99-b04c-41a2-827e-c32fb3dc2a10</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Happy to help!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did some more digging and it looks like I might&amp;#39;ve referred to the wrong retry parameter config. I also found&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;MLE_MAX_TRANSMISSION_COUNT&amp;nbsp; in the Thread specification, which is set to 3&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="https://github.com/openthread/openthread/blob/main/src/core/thread/mle.hpp#L770"&gt;https://github.com/openthread/openthread/blob/main/src/core/thread/mle.hpp#L770&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Nonetheless, if that also is 3 then the information is not wrong, but if you want to change it then the first parameter might not be the correct one&lt;/p&gt;
&lt;p&gt;Other than that,&amp;nbsp; let me know if anything else is left unanswered! If everything is fine, I&amp;#39;ll mark the case as verified answer :)&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/thread/458162?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 15:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47ae9c82-637c-4063-acc5-71470a05cd03</guid><dc:creator>Simon_89</dc:creator><description>&lt;p&gt;Thanks a lot, this then answers everything!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/thread/458118?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 13:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24177e8e-2d07-46ad-81a9-b324fbdce31a</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, 3 retries are default if the pack is not ACKed. From&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;nrf5_sdk_for_thread_and_zigbee_v4.2.0_af27f76\external\openthread\include\config\mac.h it is stated&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;pre class="ui-code" data-mode="text"&gt;* @def OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_DIRECT
 *
 * The default maximum number of retries allowed after a transmission failure for direct transmissions.
 *
 * Equivalent to macMaxFrameRetries, default value is 3.
 *
 */
#ifndef OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_DIRECT
#define OPENTHREAD_CONFIG_MAC_DEFAULT_MAX_FRAME_RETRIES_DIRECT 3
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/thread/458079?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 12:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22eaeee4-5a6a-4143-b8da-d19806862230</guid><dc:creator>Simon_89</dc:creator><description>&lt;p&gt;It seems that the backoff is visible in the parent request workflow.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The open question is still, if it is correct that we typically get the parent requests in triplets?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/thread/458054?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 11:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19ac7fd0-d9f8-424a-ad94-279b4f9b33ac</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Aha, does this mean that your questions have been answered or are there anything left unclear regarding this topic?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/thread/458000?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 07:50:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deb0ce21-b9d2-4e98-8d26-db13d6b2426d</guid><dc:creator>Daniel B</dc:creator><description>&lt;p&gt;Turns out that the parent requests do exhibit an exponential backoff, the backoff is between groups of three (3) parent requests which get sent in short succession. As seen here&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1701244217462v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/thread/457877?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 13:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12fdceb4-c245-4a3b-896b-66baa658d68e</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve heard with some of my colleagues regarding this and I have some more input to supply you&lt;/p&gt;
[quote user="Simon_89"]Yes, we were looking at the sniffs using Wireshark. To which workflows&amp;nbsp;should the backoffs be applied?[/quote]
&lt;p&gt;The backoff should be applied to the&amp;nbsp;&lt;em&gt;Parent request&lt;/em&gt; workflow you mention.&lt;/p&gt;
&lt;p&gt;You should also be able to test the backoff by putting a device in SED and then turning off every router in the network that the device is connected to&lt;/p&gt;
&lt;p&gt;Could you also supply the pcap and any necessary network keys for a sniffer trace where you see the issue present if the issue still persists?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/thread/457260?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 07:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8764757-5a10-478e-8bee-b9d96a1a537c</guid><dc:creator>Simon_89</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for the reply! Yes, we were looking at the sniffs using Wireshark. To which workflows&amp;nbsp;should the backoffs be applied?&lt;/p&gt;
&lt;p&gt;- Discovery requests (when no commissioned network in memory) using the joiner module&lt;/p&gt;
&lt;p&gt;- Parent requests (when commissioned network is not available anymore) after setting threadEnable()&lt;/p&gt;
&lt;p&gt;- other possibilities?&lt;/p&gt;
&lt;p&gt;We are using nRF2 SDK for Thread and Zigbee 4.2, so some older OpenThread. If I recall correctly, it&amp;#39;s Thread 1.1&lt;/p&gt;
&lt;p&gt;Best,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of OpenThread regarding backoffs</title><link>https://devzone.nordicsemi.com/thread/456470?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 14:37:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eab94c80-ad12-46f2-b627-c5510b5f3814</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Based in the definition of said config in&amp;nbsp;&lt;a href="https://github.com/openthread/openthread/blob/6e7ed5cb554876f83c5ae496ccfd4818228540a5/src/core/config/mle.h#L128"&gt;https://github.com/openthread/openthread/blob/6e7ed5cb554876f83c5ae496ccfd4818228540a5/src/core/config/mle.h#L128&lt;/a&gt;&amp;nbsp;it looks like the backoff feature should be automatically included in the Openthread stack and I agree with you w.r.t what you think the configuration should do.&lt;/p&gt;
&lt;p&gt;If I would guess as to why you don&amp;#39;t see this backoff interval increase (up to a maximum of 20 minutes as defined by&amp;nbsp;OPENTHREAD_CONFIG_MLE_ATTACH_BACKOFF_MAXIMUM_INTERVAL) it would be that you don&amp;#39;t have any missing packs.&lt;/p&gt;
&lt;p&gt;Did you also investigate a sniffer trace to check if you actually have any missing replies? If not, could you check and verify that?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>