my realtime network receiving time differs a lot, anyone can help?

Posted by sguox002 on Stack Overflow See other posts from Stack Overflow or by sguox002
Published on 2010-05-06T02:10:12Z Indexed on 2010/05/06 2:18 UTC
Read the original article Hit count: 303

I wrote a program using tcpip sockets to send commands to a device and receive the data from the device. The data size would be around 200kB to 600KB. The computer is directly connected to the device using a 100MB network. I found that the sending packets always arrive at the computer at 100MB/s speed (I have debugging information on the unit and I also verified this using some network monitoring software), but the receiving time differs a lot from 40ms to 250ms, even if the size is the same (I have a receiving buffer about 700K and the receiving window of 8092 bytes and changing the window size does not change anything). The phenomena differs also on different computers, but on the same computer the problem is very stable. For example, receiving 300k bytes on computer a would be 40ms, but it may cost 200ms on another computer. I have disabled firewall, antivirus, all other network protocol except the TCP/IP. Any experts on this can give me some hints?

© Stack Overflow or respective owner

Related posts about network-programming

Related posts about network