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
  • Hi,Maria,

            Thanks for your reply .

            If we use UDP socket on openthread network to broadcasting packet ,Can this method add acknowledged ? As far as I know ,TCP has the acknowledged characteristics ,and TCP is a point-to-point communication mode, It doesn't meet our needs . Do you know how to add acknowledged in UDP socket broadcasting .

            If we want to achieve our requirements, and need a low packet loss rate ,Do you have any good implementation methods?

            Best Regards,

            Hyman

Children
No Data
Related