Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flent netperf replacement? #39

Open
dtaht opened this issue Apr 7, 2023 · 5 comments
Open

flent netperf replacement? #39

dtaht opened this issue Apr 7, 2023 · 5 comments

Comments

@dtaht
Copy link

dtaht commented Apr 7, 2023

this almost seems to have the subset of netperf features https://github.com/tohojo/flent

can it sample the stats like tcp_info?

@wdebruij
Copy link
Collaborator

wdebruij commented Apr 9, 2023

Neper does not call getsockopt TCP_INFO, but reporting and aggregating those stats sounds like a useful extension.

Which specific fields of struct tcp_info are you interested in?

@dtaht
Copy link
Author

dtaht commented Apr 27, 2023

the way measurement labs does it is it just grabs all of them and post-processes. More fields are added with nearly every kernel release, although i think that has slowed down a lot. I care about ecn_seen, rtt, loss, retransmits, primarily.

@wdebruij
Copy link
Collaborator

Got it. That sounds like a useful addition. No promises when we'll get to it, but I'll add it to the list.

@rjmcmahon
Copy link

iperf 2 uses the following

stats->cwnd = tcp_info_buf.tcpi_snd_cwnd * tcp_info_buf.tcpi_snd_mss / 1024;
stats->rtt = tcp_info_buf.tcpi_rtt;
stats->rttvar = tcp_info_buf.tcpi_rttvar;
stats->retry_tot = tcp_info_buf.tcpi_total_retrans;
stats->mss_negotiated = tcp_info_buf.tcpi_snd_mss;

@wdebruij
Copy link
Collaborator

Thanks, Bob! We'll aim for at least feature parity. This is on our radar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants