Questions about data packet loss when using openthread and udp socket

Hello,

        We use nrf52840 to develop a data transmission device .We use ncs-2.2.0 ,IDE is VS Code .

        We use openthread to build a network ,We created a socket and use udp6 to send data .we need to send on one device, other devices can receive it ,so we set the socket addr as a broadcast address .

#define CONFIG_NET_CONFIG_PEER_IPV6_ADDR "ff03::1"

        The program runs correct ,We use two boards to test data transmission .

        The test method is as follows :Computer A sends data to (nrf52840 device  A) through uart,when received data , (nrf52840 device  A)  will broadcast the data through openthread .  when (nrf52840 device  B)  received the data through openthread ,it then send the data to Computer B. Each packet we send is 39 bytes ,and We send a packet every 100ms .

        We have tested that the uart works correct ,Uart did not lose packets .Thread will lose packets , About one packet will be lost for every 100 packets sent .

        I want to know whether the packet loss rate is normal ? What should I do to reduce the packet loss rate ?

        Looking forward to your reply ,Thanks a lot .

        Best Regards .

Parents Reply
  • Hello,

    Maria Gilje said:
    I have asked our Thread experts about this.

    Their response is that your amount of packet loss is expected when broadcasting is the transmission method. The reason for this is that broadcasting packets are not acknowledged.

    What should I do to reduce the packet loss rate ?

    Transmitting with acknowledgements will generally have a lower packet loss rate.

    Best Regards,
    Maria

Children
Related