java:如何获取我的带宽
是否有一个库可以让我通过 RIA 计算带宽?
Is there a library that lets me compute my bandwidth from a RIA?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
是否有一个库可以让我通过 RIA 计算带宽?
Is there a library that lets me compute my bandwidth from a RIA?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
您可以通过计时从某处下载大文件所需的时间来估计下载速度。然后,您的速度将由
下载文件的大小/所用时间
给出。You can estimate your download speed by timing how long it takes to download a large file from somewhere. Your speed would then be given by the
size of the file downloaded / time taken
.带宽到哪里去了?从您的计算机到路由器,可能约为 100 Mb 或 1 Gb。从您的计算机到 ISP,很可能在 1 Mb 到 10 Mb 之间。从您的计算机到互联网上的某个随机站点。实际上可能少于 ISP 提供的流量,具体取决于站点使用的连接类型以及流量。我的观点是,“带宽”只能通过下载一些内容并测量发生这种情况的速度来测量。互联网上的带宽测试站点假定您的家庭连接速度比他们下载的站点慢。这是一个很好的假设,但如果您从另一个互联网连接比速度测试站点更快的地方尝试它,您会看到不正确的结果。
Bandwidth to where? From your computer to the router, Probably about 100 Mb or 1 Gb. From your computer to the ISP, most likely anywhere from 1 Mb to 10 Mb. From your computer to some random site on the internet. Could actually be less than what you ISP provides, depending on what type of connection the site is on, and how much traffic they have. My point is, the "bandwidth" can only be measured by downloading some content and measuring the speed at which this occurs. The bandwidth testing sites on the internet assume that your home connection is slower than the site they are downloading from. Which is a good assumption, but if you tried it from another place with a faster internet connection than the speed testing site, you would see incorrect results.