<html><head></head><body style="zoom: 0%;"><div dir="auto">Hi Sebastien,<br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->You make a good point. What I did was issue a warning if the tool found it was being CPU limited vs i/o limited. This indicates the i/o test likely is inaccurate from an i/o perspective, and the results are suspect. It does this crudely by comparing the cpu thread doing stats against the traffic threads doing i/o, which thread is waiting on the others. There is no attempt to assess the cpu load itself. So it's designed with a singular purpose of making sure i/o threads only block on syscalls of write and read.<!-- tmjah_g_1299e --><br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->I probably should revisit this both in design and implementation. Thanks for bringing it up and all input is truly appreciated. <!-- tmjah_g_1299e --><br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Bob<!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On Jan 12, 2023, at 12:14 AM, Sebastian Moeller <<a href="mailto:moeller0@gmx.de" target="_blank">moeller0@gmx.de</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">Hi Bob,<br><br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> On Jan 11, 2023, at 21:09, rjmcmahon <rjmcmahon@rjmcmahon.com> wrote:<br> <br> Iperf 2 is designed to measure network i/o. Note: It doesn't have to move large amounts of data. It can support data profiles that don't drive TCP's CCA as an example.<br> <br> Two things I've been asked for and avoided:<br> <br> 1) Integrate clock sync into iperf's test traffic<br></blockquote><br> [SM] This I understand, measurement conditions can be unsuited for tight time synchronization...<br><br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> 2) Measure and output CPU usages<br></blockquote><br> [SM] This one puzzles me, as far as I understand the only way to properly diagnose network issues is to rule out other things like CPU overload that can have symptoms similar to network issues. As an example, the cake qdisc will if CPU cycles become tight first increases its internal queueing and jitter (not consciously, it is just an observation that once cake does not get access to the CPU as timely as it wants, queuing latency and variability increases) and then later also shows reduced throughput, so similar things that can happen along an e2e network path for completely different reasons, e.g. lower level retransmissions or a variable rate link. So i would think that checking the CPU load at least coarse would be within the scope of network testing tools, no?<br><br>Regards<br> Sebastian<br><br><br><br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> I think both of these are outside the scope of a tool designed to test network i/o over sockets, rather these should be developed & validated independently of a network i/o tool.<br> <br> Clock error really isn't about amount/frequency of traffic but rather getting a periodic high-quality reference. I tend to use GPS pulse per second to lock the local system oscillator to. As David says, most every modern handheld computer has the GPS chips to do this already. So to me it seems more of a policy choice between data center operators and device mfgs and less of a technical issue.<br> <br> Bob<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Hello,<br> Yall can call me crazy if you want.. but... see below [RWG]<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> Hi Bib,<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"> On Jan 9, 2023, at 20:13, rjmcmahon via Starlink <starlink@lists.bufferbloat.net> wrote:<br><br> My biggest barrier is the lack of clock sync by the devices, i.e. very limited support for PTP in data centers and in end devices. This limits the ability to measure one way delays (OWD) and most assume that OWD is 1/2 and RTT which typically is a mistake. We know this intuitively with airplane flight times or even car commute times where the one way time is not 1/2 a round trip time. Google maps & directions provide a time estimate for the one way link. It doesn't compute a round trip and divide by two.<br><br> For those that can get clock sync working, the iperf 2 --trip-times options is useful.<br></blockquote> [SM] +1; and yet even with unsynchronized clocks one can try to measure how latency changes under load and that can be done per direction. Sure this is far inferior to real reliably measured OWDs, but if life/the internet deals you lemons....<br></blockquote> [RWG] iperf2/iperf3, etc are already moving large amounts of data<br> back and forth, for that matter any rate test, why not abuse some of<br> that data and add the fundemental NTP clock sync data and<br> bidirectionally pass each others concept of "current time". IIRC (its<br> been 25 years since I worked on NTP at this level) you *should* be<br> able to get a fairly accurate clock delta between each end, and then<br> use that info and time stamps in the data stream to compute OWD's.<br> You need to put 4 time stamps in the packet, and with that you can<br> compute "offset".<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"><br> --trip-times<br> enable the measurement of end to end write to read latencies (client and server clocks must be synchronized)<br></blockquote></blockquote> [RWG] --clock-skew<br> enable the measurement of the wall clock difference between sender and receiver<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;"> [SM] Sweet!<br> Regards<br> Sebastian<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"><br> Bob<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #e9b96e; padding-left: 1ex;"> I have many kvetches about the new latency under load tests being<br> designed and distributed over the past year. I am delighted! that they<br> are happening, but most really need third party evaluation, and<br> calibration, and a solid explanation of what network pathologies they<br> do and don't cover. Also a RED team attitude towards them, as well as<br> thinking hard about what you are not measuring (operations research).<br> I actually rather love the new cloudflare speedtest, because it tests<br> a single TCP connection, rather than dozens, and at the same time folk<br> are complaining that it doesn't find the actual "speed!". yet... the<br> test itself more closely emulates a user experience than <a href="http://speedtest.net">speedtest.net</a><br> does. I am personally pretty convinced that the fewer numbers of flows<br> that a web page opens improves the likelihood of a good user<br> experience, but lack data on it.<br> To try to tackle the evaluation and calibration part, I've reached out<br> to all the new test designers in the hope that we could get together<br> and produce a report of what each new test is actually doing. I've<br> tweeted, linked in, emailed, and spammed every measurement list I know<br> of, and only to some response, please reach out to other test designer<br> folks and have them join the rpm email list?<br> My principal kvetches in the new tests so far are:<br> 0) None of the tests last long enough.<br> Ideally there should be a mode where they at least run to "time of<br> first loss", or periodically, just run longer than the<br> industry-stupid^H^H^H^H^H^Hstandard 20 seconds. There be dragons<br> there! It's really bad science to optimize the internet for 20<br> seconds. It's like optimizing a car, to handle well, for just 20<br> seconds.<br> 1) Not testing up + down + ping at the same time<br> None of the new tests actually test the same thing that the infamous<br> rrul test does - all the others still test up, then down, and ping. It<br> was/remains my hope that the simpler parts of the flent test suite -<br> such as the tcp_up_squarewave tests, the rrul test, and the rtt_fair<br> tests would provide calibration to the test designers.<br> we've got zillions of flent results in the archive published here:<br> <a href="https://blog.cerowrt.org/post/found_in_flent">https://blog.cerowrt.org/post/found_in_flent</a>/<br> ps. Misinformation about iperf 2 impacts my ability to do this.<br></blockquote><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #e9b96e; padding-left: 1ex;"> The new tests have all added up + ping and down + ping, but not up +<br> down + ping. Why??<br> The behaviors of what happens in that case are really non-intuitive, I<br> know, but... it's just one more phase to add to any one of those new<br> tests. I'd be deliriously happy if someone(s) new to the field<br> started doing that, even optionally, and boggled at how it defeated<br> their assumptions.<br> Among other things that would show...<br> It's the home router industry's dirty secret than darn few "gigabit"<br> home routers can actually forward in both directions at a gigabit. I'd<br> like to smash that perception thoroughly, but given our starting point<br> is a gigabit router was a "gigabit switch" - and historically been<br> something that couldn't even forward at 200Mbit - we have a long way<br> to go there.<br> Only in the past year have non-x86 home routers appeared that could<br> actually do a gbit in both directions.<br> 2) Few are actually testing within-stream latency<br> Apple's rpm project is making a stab in that direction. It looks<br> highly likely, that with a little more work, crusader and<br> go-responsiveness can finally start sampling the tcp RTT, loss and<br> markings, more directly. As for the rest... sampling TCP_INFO on<br> windows, and Linux, at least, always appeared simple to me, but I'm<br> discovering how hard it is by delving deep into the rust behind<br> crusader.<br> the goresponsiveness thing is also IMHO running WAY too many streams<br> at the same time, I guess motivated by an attempt to have the test<br> complete quickly?<br> B) To try and tackle the validation problem:ps. Misinformation about iperf 2 impacts my ability to do this.<br></blockquote><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #e9b96e; padding-left: 1ex;"> In the <a href="http://libreqos.io">libreqos.io</a> project we've established a testbed where tests can<br> be plunked through various ISP plan network emulations. It's here:<br> <a href="https://payne.taht.net">https://payne.taht.net</a> (run bandwidth test for what's currently hooked<br> up)<br> We could rather use an AS number and at least a ipv4/24 and ipv6/48 to<br> leverage with that, so I don't have to nat the various emulations.<br> (and funding, anyone got funding?) Or, as the code is GPLv2 licensed,<br> to see more test designers setup a testbed like this to calibrate<br> their own stuff.<br> Presently we're able to test:<br> flent<br> netperf<br> iperf2<br> iperf3<br> speedtest-cli<br> crusader<br> the broadband forum udp based test:<br> <a href="https://github.com/BroadbandForum/obudpst">https://github.com/BroadbandForum/obudpst</a><br> trexx<br> There's also a virtual machine setup that we can remotely drive a web<br> browser from (but I didn't want to nat the results to the world) to<br> test other web services.<br><hr><br> Rpm mailing list<br> Rpm@lists.bufferbloat.net<br> <a href="https://lists.bufferbloat.net/listinfo/rpm">https://lists.bufferbloat.net/listinfo/rpm</a><br></blockquote><hr><br> Starlink mailing list<br> Starlink@lists.bufferbloat.net<br> <a href="https://lists.bufferbloat.net/listinfo/starlink">https://lists.bufferbloat.net/listinfo/starlink</a><br></blockquote><hr><br> Starlink mailing list<br> Starlink@lists.bufferbloat.net<br> <a href="https://lists.bufferbloat.net/listinfo/starlink">https://lists.bufferbloat.net/listinfo/starlink</a><br></blockquote></blockquote></blockquote><br></pre></blockquote></div></body></html>