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

Synchronised sampling #83

Open
balazskreith opened this issue May 11, 2022 · 0 comments
Open

Synchronised sampling #83

balazskreith opened this issue May 11, 2022 · 0 comments

Comments

@balazskreith
Copy link
Member

balazskreith commented May 11, 2022

Description

Clients sampling and sending samples async by default behavior.
A feature request is to inform the connected clients when to sample. In this case matched tracks from clients can be more aligned in terms if received bytes, packets, etc.
The feature would look like a config option for websocket source, where it could be setup what is the sampling period. the observer would calculate the sampling period and each time it receives a sample from a client it would send back as a feedback message what is the next sampling time and sequence number. The client should sample at the time the observer requested and assign the sequence number the observer gave.

Background

Though sampling in a normal cases should be async and back channel communication should be as low as possible, there are situation like testing environment where this feature could make sense.
In testing environment where the network conditions have to be sampled in a 500ms - 3s accuracy and evaluate the results this can make sense as measurements from synchronized samples are more accurate to sum.

Solution

As a control message feedback, the observer could send the next sampling time as an abs timestamp.

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

1 participant