计算带宽的公式 [英] Formula to calculate Bandwidth

查看:101
本文介绍了计算带宽的公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我创建了一个Java代码,使用不同的端口在程序之间传输文件.

I have created a java code in which i transfer files between programs using different ports.

一切都很好.

文件上传以及在端口之间下载.

Files get uploaded as well as downloaded between ports.

现在我需要做的是找到文件传输的带宽.

Now what i need to do is to find the bandwidth for the file transfer .

任何人都可以建议我一个公式来查找带宽,因为这是我刚接触网络以来的事情.

Can anyone suggest me a formula to find the bandwidth since im new to network.

我有速度和花费的总时间的详细信息.

I have the details of speed and total time taken.

请给我一个公式.

谢谢.

此致

Siva.

推荐答案

带宽定义为随时间变化的数据量.因此,只需将发送的数据总量(也许以KB为单位)除以花费的时间(以秒为单位),就可以得出KB/秒.如果您要与另一个带宽数字基准进行比较,则您 可能希望将其转换为相同的基本单位.

Bandwidth is defined as amount of data over time.  So just take the total amount of data sent, perhaps in KB and divide by the time it took in seconds, and this will give you KB/Sec.  If you are comparing to another bandwidth number baseline, you might want to convert it to the same base units.

Paul


这篇关于计算带宽的公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆