Artificial intelligent assistant

How does iperf calculate throughput and jitter? I've read that `iperf` basically tries to send as much information down a connection as quickly as possible reporting on the throughput achieved. This tool is especially useful in determining the volume of data that links between two machines can supply. Is it possible to gather the same results by sending regular data, as in not testing data? What I'm trying to do is this; sending data in the foreground while in the back ground gather statistics (throughput and jitter). So can anyone tell me how `iperf` calculates these two values ?

I found this formula defined in RFC 3550 for the RTP (Real Time Protocol). It's the same method used to calculate the Jitter in RTC:

let's say `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)`

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy c58bee466e4fca3774b49ec266b0383f