<?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>Mesh TTL clarification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72634/mesh-ttl-clarification</link><description>What is the drawback of setting the TTL on mesh packet to a high number? 
 I am assuming that a node will not relay the same message twice? I.e. it sees a packet for the first time with a TTL of 5 and relays it out. It could then potentially see it again</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Mar 2021 21:08:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72634/mesh-ttl-clarification" /><item><title>RE: Mesh TTL clarification</title><link>https://devzone.nordicsemi.com/thread/299564?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 21:08:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30748641-b72b-4de4-8323-fee2317a1170</guid><dc:creator>ftjandra</dc:creator><description>&lt;p&gt;Thanks for the&amp;nbsp;help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh TTL clarification</title><link>https://devzone.nordicsemi.com/thread/299513?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 14:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2e6422d-b0de-44f2-a0ad-f21a56dc9e73</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The message cache size is configurable.&lt;/p&gt;
&lt;p&gt;In the old nRF5 SDK for Mesh, the setting MSG_CACHE_ENTRY_COUNT in nrf_mesh_config_core.h has a default value of 32.&lt;/p&gt;
&lt;p&gt;In the new nRF Connect SDK, the setting is CONFIG_BT_MESH_MSG_CACHE_SIZE, and the default value varies from example to example, but typically 10 or 30.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh TTL clarification</title><link>https://devzone.nordicsemi.com/thread/299363?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 00:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24cfad8e-5942-48bd-bcd1-3b740b50ebe2</guid><dc:creator>ftjandra</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;How big is the message cache, how many &amp;#39;past&amp;#39; messages does it store?&lt;/p&gt;
&lt;p&gt;Ah, makes sense about the scenario where you don&amp;#39;t want a packet to traverse the entire network if you know that the recipient is close by.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh TTL clarification</title><link>https://devzone.nordicsemi.com/thread/299264?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 12:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16ef5e40-715f-492e-b194-720cb16cd6bb</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are correct that a Bluetooth mesh nodes will only handle packets once. If they receive a packet several times, only the first time will count, and subsequent receptions will get discarded. It does however rely on the original packet still being saved in the (limited) rolling log of received packets.&lt;/p&gt;
&lt;p&gt;You are also correct that these packets normally will die out quickly, due to the &amp;quot;only handle once&amp;quot; mechanisms.&lt;/p&gt;
&lt;p&gt;For the example of 20 nodes all seeing each other, please note that depending on radio usage there might still be nodes that need to get the message relayed from time to time. But in any case I would not expect any packet to deplete a TTL of 100 in that exact scenario.&lt;/p&gt;
&lt;p&gt;Depending on your network topology, you may have a situation where you know that a packet will need to travel very short compared to the full extent of the network. In that situation, it is wise to set TTL low, as the packet will then not propagate to far parts of the network, reducing network congestion in those far-away parts.&lt;/p&gt;
&lt;p&gt;From what I understand there may be a small theoretical possibility that a packet moves around in the network - getting relayed several times by the same node - e.g. if network traffic is so high and the network so big that messages can leave the message cache of a node before the (lower TTL) same message reaches the node again. (And thereby the node thinks it is an unseen message.) Therefore it might still be a good idea to set the TTL to a reasonably low setting.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>