This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS NDK :udp packet loss in the simulator

Hi,

I m running CCS on simulator and using ndk_2_20_04_26. I am able to send and recieve udp packets through the simulator.

But i see that when the peer is sending 3 packets , only one packet is recieved (only the last packet is received) at the simulator.But all the three packets are captured in wireshark in the host PC . I am  using the function recvfrom. If i give a one second delay between sending the packets from the peer machine, this problem is not there and all packets are received.

The problem could be the overwriting of the buffer where the packets are received, before the packets are actually read. 

Any help ?

Thanks in advance

 

 

 

  • Hi,

    Keep in mind the simulator is a lot slower than actual hardware, therefore the incoming UDP traffic may not be serviced in time due to the processing time required by the protocol stack, causing a packet loss. Since UDP does not have handshake, data loss during transmission can be expected - if using TCP that would not occur due to packet retransmission. 

    Regards,

    Rafael

     

    is not supposed to run in the simulator, as it depends on establishing an active network connection and there are no conditions of properly it does not properly simulate network traffic.