简体   繁体   English

lwIP回显服务器错误发送数据

[英]lwIP echo server error sending data

I am working with the ethernet communication under echo server lwIP. 我正在使用回显服务器lwIP下的以太网通信。 I would like to capture samples from DMA to the HOST by ethernet. 我想通过以太网捕获从DMA到HOST的样本。 The system captures samples via UART. 系统通过UART捕获样本。

I am not able to make lwIP to send more than 2 packages higher than 1500 bytes without waiting for ACK. 我无法使lwIP发送超过1500字节的2个以上的包而没有等待ACK。 My application sends packet continuously to the client. 我的应用程序将数据包连续发送到客户端。 Client receives the packet without any delay but it sends the ACK after 200ms (see attached wireshark capture image). 客户端没有任何延迟地接收到数据包,但它在200毫秒后发送ACK(请参阅附带的Wireshark捕获图像)。 LWIP get stuck always waiting for ACK packet before it sends the next packet. LWIP在发送下一个数据包之前总是等待ACK数据包。 My lwIP could only send no more than 2 TCP segment and then wait for ACK. 我的lwIP只能发送不超过2个TCP段,然后等待ACK。 The network delay will cause performance to get down. 网络延迟将导致性能下降。

Is there any configuration which makes the LWIP to send packet without waiting for the ACK packet? 是否有任何配置可以使LWIP在不等待ACK数据包的情况下发送数据包? Do you have any suggestion? 你有什么建议吗?

在此处输入图片说明

If you don't want to wait how about using UDP instead of TCP? 如果您不想等待,使用UDP代替TCP怎么办? TCP is a stream protocol and is going to ensure that everything arrives and is in-order (so long as there aren't errors). TCP是一种流协议,它将确保一切都按顺序到达(只要没有错误)。 echo usually makes me think of a situation where you don't care about ordering, only whether a particular packet makes it or not and how long it took. echo通常使我想到一种情况,您不关心订购,只关心特定的数据包是否发出订单以及花费了多长时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM