# Missing Packets on Application Data

**URL:** <https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302>\
**Category:** Uncategorized\
**Created:** [October 30, 2019, 10:40am UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302 "2019-10-30T10:40:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferfersan6](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ferfersan6/32/25844_2.png) [@ferfersan6](https://www.thethingsnetwork.org/forum/u/ferfersan6)\
**Post date:** [October 30, 2019, 10:40am UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/1 "2019-10-30T10:40:32Z")

</div>

Hi all!  
Since I started my application, I have had missing packets on the Application data interface, so I thought that the packets were really missed in the way node-gateway. The thing is that I noticed that in the gateway traffic interface, the message really reaches the Gateway. So, in summary, all packets are seen on the gateway traffic, but some of them doesn’t appear on the application data interface. What could be the reason? In the image below, you can see that packets 2278, 2280, 2282 and 2283 are not in the app data (right) but they appear on the gateway traffic (left).  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/1/f/1f57c6ac92326b2aa3c92f10f0947ad1ed9b9d4f.png)  
Thanks!.

---

<div class="post-metadata">

**Author:** ![ferfersan6](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ferfersan6/32/25844_2.png) [@ferfersan6](https://www.thethingsnetwork.org/forum/u/ferfersan6)\
**Post date:** [November 6, 2019, 10:56am UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/2 "2019-11-06T10:56:44Z")

</div>

Someone having same issues? The problem keeps there. Thanks!!

---

<div class="post-metadata">

**Author:** ![Farm21](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/farm21/32/35697_2.png) [@Farm21](https://www.thethingsnetwork.org/forum/u/Farm21)\
**Post date:** [November 6, 2019, 1:52pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/3 "2019-11-06T13:52:53Z")

</div>

> [@ferfersan6](#):
>
> application, I have had missing packets on the Application data interface, so I thought that the packets were really missed in the way node-gateway. The thing is that I noticed that in the gateway traffic interface, the message really reaches the Gateway. So, in summary, all packets are seen on the gateway traffic, but some of them doesn’t appear on the application data interface. What could be the reason? In the image below, you can see that packe

I have the exact same issue with my application, also when using the command-line interface to monitor the incoming data. Although all data appears to make its way to the http integration that I’ve configured. What could be going on?

---

<div class="post-metadata">

**Author:** ![ixem](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ixem/32/44213_2.png) [@ixem](https://www.thethingsnetwork.org/forum/u/ixem)\
**Post date:** [November 6, 2019, 5:21pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/4 "2019-11-06T17:21:13Z")

</div>

Hello everybody, we have the same issue on more then 150 devices.  
I can tell that this problem affects different gateways manufacturer and multiple device manufacturer.

The device are all using OTA.

We have tried to connect to the TTN MQTT broker (via command line) and we actually saw that data missing in the application pannel is not forwarded.

We noticed that this issue started about 10 days ago.

Hope someone can help us to understand what is going on.

Regards.

---

<div class="post-metadata">

**Author:** ![alexbn71](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/alexbn71/32/16965_2.png) [@alexbn71](https://www.thethingsnetwork.org/forum/u/alexbn71)\
**Post date:** [November 6, 2019, 8:13pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/5 "2019-11-06T20:13:32Z")

</div>

Same issue here! Lot of lost packets in web UI backend despite the packets are correctly sent/received between my nodes and the NS. It seems only an annoing problem related to the web UI.

Alex

---

<div class="post-metadata">

**Author:** ![MOS-FET](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mos-fet/32/35697_2.png) [@MOS-FET](https://www.thethingsnetwork.org/forum/u/MOS-FET)\
**Post date:** [November 6, 2019, 10:50pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/6 "2019-11-06T22:50:33Z")

</div>

I have the same issue with that topic. But I have activated the storage. And yes after refresh the page i see all the data. Even in “life” mode they are not seen. Also not forwarded to my node-red. Only in the storage of TTN backbend.  
I have the TTN indoor Gateway and I see the packages is received right. I use the ABP auth.

---

<div class="post-metadata">

**Author:** ![ferfersan6](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ferfersan6/32/25844_2.png) [@ferfersan6](https://www.thethingsnetwork.org/forum/u/ferfersan6)\
**Post date:** [November 7, 2019, 7:06am UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/7 "2019-11-07T07:06:45Z")

</div>

Well… So, is it a thing that TTN should fix or what? I’ll try the storage and see if I have all data there. Thank you all for the replies, I will keep the topic updated.

---

<div class="post-metadata">

**Author:** ![DeltaQ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deltaq/32/25844_2.png) [@DeltaQ](https://www.thethingsnetwork.org/forum/u/DeltaQ)\
**Post date:** [November 7, 2019, 7:30am UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/8 "2019-11-07T07:30:43Z")

</div>

I think it is. It looks like one node in an internal cluster could be eating messages…  
FYI, as indicated on [Dataloss in the backend?](https://www.thethingsnetwork.org/forum/t/dataloss-in-the-backend/31053), what we did to “solve” the issue is to add a Data Storage integration on the TTN Application and use the REST API on that storage instead of the MQTT interface.

---

<div class="post-metadata">

**Author:** ![ferfersan6](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ferfersan6/32/25844_2.png) [@ferfersan6](https://www.thethingsnetwork.org/forum/u/ferfersan6)\
**Post date:** [November 7, 2019, 7:47am UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/9 "2019-11-07T07:47:36Z")

</div>

Cool. Just tried to integrate the Data Storage and I have all packets there. Let’s see if they solve this.  
Thank you!!

---

<div class="post-metadata">

**Author:** ![ixem](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ixem/32/44213_2.png) [@ixem](https://www.thethingsnetwork.org/forum/u/ixem)\
**Post date:** [November 7, 2019, 3:24pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/10 "2019-11-07T15:24:54Z")

</div>

You are right, I enabled the Data Storage Integration and missing data get correctly stored.

But how could you fetch data in an application server? Using the MQTT API makes this operation very easy by subscribing to the correct topic. How can be this acchived using Data Storage? Should I poll the server using the web API once in a while? To me this do not seems a very nice solution. I hope this can be solved soon.

---

<div class="post-metadata">

**Author:** ![EFthings01](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/efthings01/32/47451_2.png) [@EFthings01](https://www.thethingsnetwork.org/forum/u/EFthings01)\
**Post date:** [November 7, 2019, 5:22pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/11 "2019-11-07T17:22:35Z")

</div>

Sounds nice! Just did a quick test with postman, but got only authentification error? Any hint?

---

<div class="post-metadata">

**Author:** ![DeltaQ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deltaq/32/25844_2.png) [@DeltaQ](https://www.thethingsnetwork.org/forum/u/DeltaQ)\
**Post date:** [November 7, 2019, 6:20pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/12 "2019-11-07T18:20:37Z")

</div>

Yes, we use influxdb / telegraf and have replaced the MQTT client with a scheduled REST request that queries for the history (with some overlap…) every few minutes. It’s no coincidence I put the word “solved” in quotes 😉

---

<div class="post-metadata">

**Author:** ![DeltaQ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/deltaq/32/25844_2.png) [@DeltaQ](https://www.thethingsnetwork.org/forum/u/DeltaQ)\
**Post date:** [November 7, 2019, 6:24pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/13 "2019-11-07T18:24:05Z")

</div>

You can find an authentication key in the application overview tab  
Then you’ll have to add it to your request as an Authorization header. Something like the following, IIRC:

“Authorization” = “key ttn-account-v2.blablabla-blabla”

---

<div class="post-metadata">

**Author:** ![MOS-FET](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mos-fet/32/35697_2.png) [@MOS-FET](https://www.thethingsnetwork.org/forum/u/MOS-FET)\
**Post date:** [November 12, 2019, 11:46am UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/14 "2019-11-12T11:46:09Z")

</div>

@DeltaQ yes I think also that’s not complete nice to schedule REST requests. But I will do this every 200ms because I want to catch the motion of an PIR Sensor. Here it is important to get each event nearly real time.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 12, 2019, 3:12pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/15 "2019-11-12T15:12:17Z")

</div>

LoRaWAN and near real time? You know there is no guarantee any transmission makes it to the network? Let alone all packets (events) sent by a node.

---

<div class="post-metadata">

**Author:** ![MOS-FET](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mos-fet/32/35697_2.png) [@MOS-FET](https://www.thethingsnetwork.org/forum/u/MOS-FET)\
**Post date:** [November 12, 2019, 5:39pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/16 "2019-11-12T17:39:59Z")

</div>

@kersing yes I know that issue of transmitting between node and Gateway. But I think the backend should forward each package that the gateway receives via node red or mqtt and not lost it!

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 12, 2019, 7:49pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/17 "2019-11-12T19:49:50Z")

</div>

Keep in mind the Semtech based forwarders use UDP which will result in some loss between gateway and back-end.  
For packets received by the back-end we all expect them to be delivered to the application, however experience learns this will not always be the case and because the community network does not have any service levels we can only accept the service we are getting.  
I hope the V3 back-end when finally deployed to the community network will result in less issues for all of us.  
In the mean time you could check the TTI offerings if you need reliability…

---

<div class="post-metadata">

**Author:** ![EFthings01](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/efthings01/32/47451_2.png) [@EFthings01](https://www.thethingsnetwork.org/forum/u/EFthings01)\
**Post date:** [November 12, 2019, 10:29pm UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/18 "2019-11-12T22:29:06Z")

</div>

We have monitored packet losses in TTN very thorowly during the last time (see [dataloss-in-the-backend](https://www.thethingsnetwork.org/forum/t/dataloss-in-the-backend/31053)) and the backend currently eats about 25% of our packets.

Regarding the original SPF things are really a bit funny. Semtech has implemented an uplink acknowledge, so the gateway really knows, if a packet was transmitted or not. It just does not use it. Kerlink has implemented a new forwarder they called common packet forwarder (CPF), that can retransfer unacknowledged packets. That helps, if a single packet was lost over UDP.

We found that loss rates are still high. If a packet is lost between gateway and backend, it ist not possible to distinguish if loss was caused by UDP or if the backend was just not listening for some times. So it may be an UDP issue, but also maybe caused by some other part of the system.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 13, 2019, 7:50am UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/19 "2019-11-13T07:50:47Z")

</div>

> [@EFthings01](#):
>
> We have monitored packet losses in TTN very thorowly

This seems to be a different case because the data is available in the database integration. So the back-end has received and processed the data, just not forwarded it to MQTT.

---

<div class="post-metadata">

**Author:** ![EFthings01](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/efthings01/32/47451_2.png) [@EFthings01](https://www.thethingsnetwork.org/forum/u/EFthings01)\
**Post date:** [November 13, 2019, 11:07am UTC](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302/20 "2019-11-13T11:07:35Z")

</div>

> [@ferfersan6](#):
>
> So, in summary, all packets are seen on the gateway traffic, but some of them doesn’t appear on the application data interface.

Precisely what we had: packets seen in the gateway traffic, but not in the device traffic.

[Next page](https://www.thethingsnetwork.org/forum/t/missing-packets-on-application-data/31302.md?page=2)
