TCP very slow

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

TCP very slow

1,045 次查看
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 项奖励
回复
1 回复

1,030 次查看
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 项奖励
回复