Hello,
I am using the TCP Echo example in CCS. I've noticed an issue while streaming data from my CC3220 to my PC where several (5-15) packets will be lost an retransmitted in a row. This occurrence coincides with the send function taking a long time to return (1 - 10 sec). Usually, the send function returns within 2 ms, even when there is fast retransmission. The data I am streaming comes in at a constant rate, so I lose data when the send function stalls like this.
Here is an image of the TCP throughput when this occurs:
I have tested this issue with multiple launchpads running the program at once on the same network to see if the problem increases with increased traffic. The issue occurs at the same frequency (about once every 20 min) with added launchpads, and the data rate is low enough (~0.2 Mbps per launchpad) that I do not believe that network congestion is the underlying problem. With multiple launchpads running the program, the dropped packets occur at the same time.
Do you have any insight as to why this problem may be occurring? Or is there a way to return from the send function when it takes a long time so that I can continue to buffer up the incoming data and try to resend?
Thanks,
Michelle