I am investigating an Ethernet connection issue on our custom PCB with K66 MCU (LQFP package). The application is utilized with MQX, and RTCS from KSDK 1.3.0 by KDS 3.0.0. The application basically initialize the RTCS when boot-up, open and listen on two sockets. Once the host PC connect to the listen port, they start to exchange information. Most of time, the application runs pretty well. However, after certain time, the connection will be closed itself.
I had chance to observe the protocol from Wireshark, and found the issue always happened when the device application sent packets with raw sequence number zero. This cause the host side keep re-sending the acknowledgment and finally close the port.
I am not sure what cause this happened and not sure if the issue is in the application or RTCS. I did applied the RTCS 4.2.0.2 software patch and it didn't help. If you have any idea or recommendation, please let me know. Thanks your support.
Peter Shih
Hi Daniel:
Thanks your feedback. I read through your enclosed document regarding the re-transmission timeout, and implemented the "_TCP_rto_min = 250;" in the source code after RTCS initialization. However, it doesn't help. I am still seeing the sequence number been reset to zero.
I think the situation mentioned in the document is different with our issue. In our case, the TCP re-transmission and duplicate acknowledgement are cause by unexpected sequence number. I need to find out what cause the sequence number reset to zero in the RTCS. If you have any idea or suggestion, please let me know. Thanks! Appreciate your help.
Peter Shih