TCP very slow

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TCP very slow

586 Views
ryan_pearson
Contributor III

I had converted the lwip_udpecho example into a project that could receive packets and send back responses on the FRDMK66F dev board.

I then did the same thing with lwip_tcpecho example. The TCP is many magnitudes slower than the UDP project. Something that the UDP project does under 1 second would take the TCP project over 10 seconds. I'm using winsock2 send and recv functions.

I expected TCP to be slower, but not to this degree. Has anyone seen this issue and have a solution to make TCP run at a more reasonable speed?

0 Kudos
Reply
1 Reply

571 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @ryan_pearson :

 

If you expect TCP to be slow, please set TCP WND as low as possible.

 

Regards

Daniel

0 Kudos
Reply