Potential UDP packets loss, how to debug?

2022-08-04 Thread Oleg
Hi all, I'm working with a custom stm32f767 based board and px4 project fork with nuttx-10.0.0+ and uploading data (~900KB) to the board using mavlink_ftp. If mavlink is over serial port everything is fine and long transfer going uninterruptedly, but if mavlink is over UDP link the ftp file trans

Re: Potential UDP packets loss, how to debug?

2022-08-04 Thread Alan Carvalho de Assis
Hi Oleg, Did you try to tune the configs? Try to increase the buffers size, etc. BR, Alan On 8/4/22, Oleg wrote: > Hi all, > > I'm working with a custom stm32f767 based board and px4 project fork with > nuttx-10.0.0+ and uploading data (~900KB) to the board using mavlink_ftp. > > If mavlink is

Re: Potential UDP packets loss, how to debug?

2022-08-04 Thread Petro Karashchenko
Hello Oleg, Can you try to test with "CONFIG_NET_UDP_WRITE_BUFFERS=y" vs "CONFIG_NET_UDP_WRITE_BUFFERS=n"? The transfer will definitely impact the speed, but at least we can have a idea if buffer allocation impacts the upload process or not. Best regards, Petro чт, 4 серп. 2022 р. о 15:51 Alan C

Re: Potential UDP packets loss, how to debug?

2022-08-04 Thread Gregory Nutt
Packet loss is normal UDP behavior (unless it is excessive).  If you use UDP, you application design must handle occasional packet loss gracefully. In order to debug this further, you will need to enable network statistics. 349 config NET_STATISTICS 350 bool "Collect network statistics"

Re: Potential UDP packets loss, how to debug?

2022-08-04 Thread Gregory Nutt
Packet loss is normal UDP behavior (unless it is excessive).  If you use UDP, you application design must handle occasional packet loss gracefully. Buffering issues is the most common cause of major packets losses.  That would make sense in you case because enabling DEBUG has the effect of slo

Re: Potential UDP packets loss, how to debug?

2022-08-04 Thread Petro Karashchenko
Hi, Yes, the packet lost on UDP is a normal situation, but... If the board is directly connected to the PC, then from my experience the probability to lose a UDP packet in the wire is pretty low. So only loss may be done in the stack and statistics should identify this easily. Best regards, Petro

Re: Potential UDP packets loss, how to debug?

2022-08-04 Thread Gregory Nutt
On 8/4/2022 7:40 AM, Petro Karashchenko wrote: Hi, Yes, the packet lost on UDP is a normal situation, but... If the board is directly connected to the PC, then from my experience the probability to lose a UDP packet in the wire is pretty low. So only loss may be done in the stack and statistics