-
Notifications
You must be signed in to change notification settings - Fork 856
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
[FR] Calculate mbpsSendRate and mbpsRecvRate for a Group #3011
Comments
This is a bit problem. Indeed there are instructions filling these fields:
but Actually I might be able to create a sensible interpretation for |
I think the simpler the better. A group should just show the rate of all its member links combined. Per-member rates can always be retrieved separately from each member. |
I though about it this week. I'm not sure I know every usages of group's mbpsSendRate but it could make sense to use the Min or the Max of members of this groups. I mean, if it's to limite RTX for example, so use the min mbpsSendRate of all links associated to this group to ensure that the worst link won't have too many RTX. If the usage of mbpsSendRate for groups is multiple, so why not get a minGroupMbpsSendRate and a maxGroupMbspSendRate and apply the right one depending on what we are asking for through readable methods: |
We need to think about usefulness of such statistical data. What you described is something likely to be calculated differently and have a different meaning depending on the group type. Having something like min/max is when you think about the broadcast type, but with backup type you usually have only one link transmitting the data, while others transmit only the minimum keepalive packets in order to remain in standby. For balancing groups - which are not yet implemented, but we have always had them in plans, so they should be also taken into account here - it could be something even different, although this is the only type where collective value for all links together might make sense. Also for the groups things look different here on the sender and the receiver. The worst case here is the broadcast-type group because only at the receiver side can you distinguish between the useful packets and the overhead packets; sender just sends and doesn't know whether the packet it has sent will be effectively unique or overhead. On the sender there exist the following possibilities for calculating anyhow interpreted sending rate:
The latter allows to use as a base of sent data the value that "would be" if the unique packets were sent only once, but include all overhead from retransmissions. For that, however, there are also no suitable fields in the stats structure and this value would have to be available only as an alternative. |
Calculate
mbpsSendRate
andmbpdRecvRate
statistics for a group.Update the docs, mainly API.statistics.md.
Dev Note
The group code fills in
perf->mbpsSendRate
andperf->mbpsRecvRate
(see here), butperf->byteSent
isn't updated anywhere. So those values stay zero.The text was updated successfully, but these errors were encountered: