本文介绍了对TCP数据包感到困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序充当服务器并将文件中的字节发送到客户端应用程序。无论我在哪里尝试几乎所有机器,计算出的速度大约是每秒170k。在客户端机器上,数据包大小始终为1460,即使
我设置了SendBufferSize,将Buffersize设置为10000.我觉得无论带宽如何,我总是会被这个速度困住。我一直在测试网络机器和远程测试机器。我知道设置Buffersize
和发送,接收 大小与速度有很大关系,但是当我可以发送的最大值是1460时,这有什么关系呢?如果我做错了什么或者为了达到更高的速度我还需要做更多的工作,请告诉我。我想象
只能以每秒100-200kb的速度发送到网络PC。

解决方案

I have an application which acts as a server and send bytes from a file to client applications. No matter where I try on almost all machines the calculated speed is around 170k per second. On the client machines the packet size is always 1460, even though I have set my SendBufferSize, Recieve Buffersize to 10000. I feel as if I'm always going to be trapped with this speed regardless of Bandwidth. I have been testing out on Network machines and remotely distance ones. I understand that setting the Buffersize and the Send, receive size has a lot to do with the speed but what does that matter when the maximum I can send is 1460? Please Let me know if I'm Doing anything wrong or if there is more I need to do in order to reach higher speed. I cant imagine sending to a network PC at only 100-200kb per second.

解决方案


这篇关于对TCP数据包感到困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 19:01
查看更多