iperf如何计算吞吐量和抖动?

我读过iperf基本上试图尽可能快地发送尽可能多的信息,以尽可能快地报告达到的吞吐量。 这个工具在确定两台机器之间的链接数据量时特别有用。

是否可以通过发送常规数据来收集相同的结果,如不testing数据?

我想要做的是这个; 在后台收发数据(吞吐量和抖动)。

所以任何人都可以告诉我iperf如何计算这两个值?

是否有可能通过发送常规数据来收集相同的结果,如不testing数据?

我不这么认为,至less不使用iperf。 如果您可以使用pcap / tcpdump / wireshark捕获真实数据,那么您应该可以使用wireshark来确定抖动。

我怀疑iperf使用RFC 3550中为RTP协议定义的公式计算抖动。 你可能需要深入了解源代码。

If Si is the RTP timestamp from packet i, and Ri is the time of arrival in RTP timestamp units for packet i, then for two packets i and j, D may be expressed as D(i,j) = (Rj - Ri) - (Sj - Si) = (Rj - Sj) - (Ri - Si) The interarrival jitter SHOULD be calculated continuously as each data packet i is received from source SSRC_n, using this difference D for that packet and the previous packet i-1 in order of arrival (not necessarily in sequence), according to the formula J(i) = J(i-1) + (|D(i-1,i)| - J(i-1))/16 Whenever a reception report is issued, the current value of J is sampled. The jitter calculation MUST conform to the formula specified here in order to allow profile-independent monitors to make valid interpretations of reports coming from different implementations.