Jitter update needs to reset and go to zero on no packet events
A means to measure network responsiveness and throughput
Brought to you by:
rjmcmahon
While trying to quantify some of the issues I’m seeing with the new firewall rules, I noticed that when iperf stops receiving any UDP traffic, the Jitter field continues to show the results from the last interval that did have traffic. I’m not entirely sure the definition of “jitter” but it looks a little odd to me. I think I would expect any interval that received no packets to be showing zeroes for all fields.
# iperf -s -p 40000 -i 2 -u
------------------------------------------------------------
Server listening on UDP port 40000
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 1] local 10.19.86.250 port 40000 connected with 10.75.220.139 port 39817
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 1] 0.00-2.00 sec 4.31 KBytes 17.6 Kbits/sec 65.948 ms 0/3 (0%)
[ 1] 0.00-2.00 sec 1 datagrams received out-of-order
[ 1] 2.00-4.00 sec 0.000 Bytes 0.000 bits/sec 65.948 ms 0/0 (-nan%)
[ 1] 4.00-6.00 sec 0.000 Bytes 0.000 bits/sec 65.948 ms 0/0 (-nan%)
[ 1] 6.00-8.00 sec 0.000 Bytes 0.000 bits/sec 65.948 ms 0/0 (-nan%)
[ 1] 8.00-10.00 sec 0.000 Bytes 0.000 bits/sec 65.948 ms 0/0 (-nan%)
Fix is here