tohojo / flent

The FLExible Network Tester.
https://flent.org
Other
431 stars 77 forks source link

Perhaps add netperf UDP_STREAM tests? #249

Open tbaumann opened 2 years ago

tbaumann commented 2 years ago

Hi,

I'm using netperf UDP_STREAM tests for UDP throughput measurements. But parsing and analysing netperf outputs is quite a pain.

Flent seems like a nice tool to do the parsing and plotting for me. But I admit I haven't gotten very far understanding how to use it.

However, I do notice that you use UDP_RR tests but not UDP_STREAM. I wonder if stream throughput tests would be easy to add?

tohojo commented 2 years ago

I think it should be fairly straight-forward to support. There are a few places in the code we assume that we only ever see TCP_{STREAM,MAERTS} type tests, but fixing those is easy enough; and the output format looks like it's identical, so in that sense the rest should just work I think?

If you'd like to give it a shot, the way to go about it would be to create a new test definition in flent/tests - you can copy one of the TCP tests and adjust it to use UDP_* as the test type instead. And then just grep for TCP_STREAM in runners.py and fix up the logic around those to also handle the UDP variants. And then see if it works and fix any issues that arise, of course :)

tbaumann commented 2 years ago

Thanks for the orientation. I will poke around those ideas a bit. Sounds doable.