I'm hoping someone can clarify something rather fundamental regarding TTL as I'm getting conflicting answers.
Imagine a simple scenario where we have 2 nodes and a gateway in a straight line such that node 1 is within range of the gateway and node 2 is within range of node 1 but out of range of the gateway. Node 1 is set to be a relay. Node 2 is not a relay.
So something like this:
[Gateway] - - - - - - - - - - - - - - - - - - [node 1 (relay)] - - - - - - - - - - - - - - - - - - [node 2]
Messages from node 1 will go directly to the gateway. Messages from node 2 must be relayed via node 1.
My question is simple: what is the minimum TTL setting for messages originating at node 1 and messages originating at node 2?
Node 1: My expectation is that since Node 1 is a single "hop" from the gateway, TTL should be set to 1. However, some references seem to imply it should be set to zero.
Node 2: Node 2 must use node 1 as a relay. Given that it is one "hop" from node 2 to node 1, and another "hop" from node 1 to the gateway, I would expect TTL to be 2. However, some references imply that a relay will only relay a message if TTL is greater than or equal to 2, so the message must have a TTL of 2 when it arrives at node 1, implying that it must start with TTL equal to 3.
What is the correct answer?