I want to send data-arrays with ethernet from my cobra board to the pc. The time between two Socket.Send{…} is 5-8 msec if my packet is between 1-1470 Bytes. Is there a way to increase the speed for the send function? It would be great if i can send in every msec.
Thanks for your answer.
I think that larger packets are not the solution. the time between the packets should be less to react quickly to events at the cobra-side.
Run Wireshark on the PC and inspect the packets. Make sure they are not padded up to the MTU size or there isn’t a delay between transmissions. Experiment with different buffer sizes… Maybe there is a sweet spot?
The fact that a 1 byte to 1470 bytes takes the same time tells me something is buffering up to the MTU size before sending. Can you convince it to send earlier?
Im sending with UDP. So the Nagle algorithm cant be the problem.
1 byte to 1470 bytes doesnt take the same time. But 1 byte takes about 3ms and 1470 about 7ms. 3ms is because of the overhead and I cant make it faster, can I?
I think I have to live with it.