Add CE counters when using --udp-l4s, both client and server
A means to measure network responsiveness and throughput
Brought to you by:
rjmcmahon
rjmcmahon@rpi5-34:/usr/local/src/iperf2-code $ sudo src/iperf -c 10.19.85.66%eth1 --udp-l4s -i 1 -e -b 0
------------------------------------------------------------
Client connecting to 10.19.85.66, UDP L4S port 5001 with pid 28281 via eth1 (1/0 flows/load)
TOS defaults to 0x0 (dscp=0,ecn=0) (Nagle on)
Sending 1470 byte datagrams, IPG target: 0.00 us (kalman adjust)
UDP buffer size: 4.00 MByte (default)
------------------------------------------------------------
[ 1] local 10.19.85.56%eth1 port 57914 connected with 10.19.85.66 port 5001 (l4s) on 2025-05-01 19:31:18.358 (PDT)
[ ID] Interval Transfer Bandwidth CE Write/Err/Timeo PPS
[ 1] 0.00-1.00 sec 1.21 MBytes 10.1 Mbits/sec 0 863/0/0 863 pps
[ 1] 1.00-2.00 sec 3.36 MBytes 28.2 Mbits/sec 434 2400/0/0 2400 pps
[ 1] 2.00-3.00 sec 5.03 MBytes 42.2 Mbits/sec 1279 3589/0/0 3589 pps
[ 1] 3.00-4.00 sec 3.22 MBytes 27.0 Mbits/sec 2171 2294/0/0 2294 pps
[ 1] 4.00-5.00 sec 3.74 MBytes 31.4 Mbits/sec 486 2668/0/0 2668 pps
[ 1] 5.00-6.00 sec 3.56 MBytes 29.9 Mbits/sec 559 2540/0/0 2540 pps
[ 1] 6.00-7.00 sec 3.47 MBytes 29.1 Mbits/sec 423 2477/0/0 2477 pps
[ 1] 7.00-8.00 sec 3.82 MBytes 32.1 Mbits/sec 697 2728/0/0 2728 pps
[ 1] 8.00-9.00 sec 3.48 MBytes 29.2 Mbits/sec 519 2481/0/0 2481 pps
[ 1] 9.00-10.00 sec 3.66 MBytes 30.7 Mbits/sec 401 2611/0/0 2611 pps
[ 1] 0.00-10.00 sec 34.6 MBytes 29.0 Mbits/sec 6969 24653/0/0 2241 pps
[ 1] Sent 24654 datagrams
rjmcmahon@rpi5-35:/usr/local/src/iperf2-code $ sudo iperf -s -u -i 1 -e -B 10.19.85.66%eth1
------------------------------------------------------------
Server listening on UDP port 5001 with pid 22741
Binding to local address 10.19.85.66 and iface eth1
Read buffer size: 131072 Byte
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 1] local 10.19.85.66%eth1 port 5001 connected with 10.19.85.56 port 57914 (l4s) (peer 2.2.2-master) on 2025-05-01 19:31:18.359 (PDT)
[ ID] Interval Transfer Bandwidth Jitter Lost/Total CE Latency avg/min/max/stdev PPS Read/Timeo/NA NetPwr
[ 1] 0.00-1.00 sec 1.21 MBytes 10.1 Mbits/sec 0.024 ms 0/863 (0%) 0 0.256/0.219/0.466/0.021 ms 863 pps 863/0/0 4935
[ 1] 1.00-2.00 sec 3.36 MBytes 28.2 Mbits/sec 0.030 ms 0/2397 (0%) 436 0.664/0.222/2.842/0.784 ms 2397 pps 2397/0/0 5306
[ 1] 2.00-3.00 sec 3.89 MBytes 32.6 Mbits/sec 0.300 ms 0/2773 (0%) 1279 37.334/0.227/244.994/67.914 ms 2773 pps 2773/0/0 109
[ 1] 3.00-4.00 sec 4.10 MBytes 34.4 Mbits/sec 0.015 ms 185/3113 (6%) 2169 106.011/0.230/296.173/110.986 ms 2928 pps 2928/0/0 40.60
[ 1] 4.00-5.00 sec 3.73 MBytes 31.3 Mbits/sec 0.030 ms 0/2661 (0%) 487 0.658/0.223/2.550/0.723 ms 2661 pps 2661/0/0 5945
[ 1] 5.00-6.00 sec 3.57 MBytes 30.0 Mbits/sec 0.018 ms 0/2547 (0%) 558 0.692/0.221/2.546/0.757 ms 2547 pps 2547/0/0 5410
[ 1] 6.00-7.00 sec 3.47 MBytes 29.1 Mbits/sec 0.020 ms 0/2477 (0%) 423 0.591/0.220/2.546/0.700 ms 2477 pps 2477/0/0 6165
[ 1] 7.00-8.00 sec 3.82 MBytes 32.0 Mbits/sec 0.029 ms 0/2722 (0%) 698 0.804/0.219/2.549/0.846 ms 2722 pps 2722/0/0 4977
[ 1] 8.00-9.00 sec 3.49 MBytes 29.2 Mbits/sec 0.001 ms 0/2487 (0%) 518 0.651/0.218/2.547/0.730 ms 2487 pps 2487/0/0 5614
[ 1] 9.00-10.00 sec 3.66 MBytes 30.7 Mbits/sec 0.030 ms 0/2610 (0%) 401 0.596/0.219/2.516/0.657 ms 2610 pps 2610/0/0 6436
[ 1] 0.00-10.00 sec 34.3 MBytes 28.8 Mbits/sec 0.045 ms 185/24653 (0.75%) 6969 17.412/0.218/296.173/56.539 ms 2224 pps 24469/0/0 207