Part Number: EVMK2H
Hello community,
Im working on a project with TI-RTOS and EVMK2H. I created TCP client sockets with using NDK Tcp Stack. I have a question about this stack.
TCP using 3-way handshake(SYN, SYNACK, ACK). SYN packets have to be seq=0, SYNACK packets have to be seq=0 ack=1, ACK packets have to be seq=1 ack=1.
In my case, rarely ACK packets have invalid seq&ack numbers while SYN & SYNACK packets has valid seq&ack. So, connection has never established, because EVMK2H sent SYN packet with(seq=2973524992) TCP Server tries to establish with SYNACK (seq=341319682, ack=2973524993) but NDK-TCP stack replies with ACK(Seq=139587585, Ack=4140089672).
This 3-way handshake is not normal:
--->SYN(seq=A)
<---SYNACK(seq=B, ack=A+1)
--->ACK(C not A+1, D not B+1)
How can i handle this problem?
Best Regards,
Srt