Duplicate uplinks during ACK retry

Hi all,

I’m seeing an issue where I’m getting duplicate uplink messages appearing in TTN (and to my MQTT subscription) when I have acknowledgements enabled. It doesn’t happen all the time, roughly 50% of messages are duplicated

image

You can see that the payload and fcnt are the same for several messages. What I suspect is happening is that the uplink is getting to the gateway, the gateway is sending the ACK back to the device to acknowledge receipt but the device is not receiving this and so decides to send it again. This is all totally understandable. What I don’t understand is why the network server isn’t seeing these messages as duplicates and doing it’s magic to remove them? Does the de-duplication only apply to messages sent at the same time and received by different gateways? I understand that use case but I’d still have thought that messages with the same payload and fcnt would also be de-duplicated.

If you look at the console you notice these messages are retransmissions, it clearly states ‘retry’. (and the cause is likely that the node does not receive the ack as you suggest.)
You might not want to see those duplicates, but other application developers might want to know a retry was received. So I am glad the backend lists both messages and enables me to choose how to handle them.

Btw, when sending confirmed uplinks keep in mind you are allowed only 10 ACKs per node per day. Sending a packet every 5 minutes is a clear breach of the fair access policy!

Thanks @kersing once again for answering my question. I have now realised that in my mqtt subscription received message I have the “is_retry” flag, so I can use this to dictate my handling logic, so for my current use case, all is good.

Thanks for the heads up on the fair access policy, rest assured, I’m not leaving ACKs turned on, I’m just in the process of testing and experimenting (and learning) so wanted to play around with all of the options available. The 5 min tx is also just whilst I’m testing as it means I’ve got a tighter feedback loop. I’ve also installed an outdoor gateway on the top of a 4 story building - so giving back too. :slight_smile:

image

Thanks again

Excellent, however that doesn’t mean you should be sending too often as you are still using a shared medium (radio waves). :slight_smile:

1 Like

Yep, understood. Thanks