-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
How to implement Jitter? #137
Comments
I think the problem could be solved if another parameter is introduced to set the distribution of the latency. The problem is related because the delay distribution is set to normal distribution by default (which is not always the best solution). If I like to set the jitter to an exact value a uniform distribution would make more sense. |
As you pointed out, the current implementation of |
You can now use |
Awesome! Thanks for your work. I took a look at the implementation of tc and the source code of the Linux kernel. It looks like the network latency is normally distributed per default. However, the normal distribution would be possible if there exists some normally distributed correlation data on the localhost (see here for more information). I wrote my own implementation, which had worked with the normal distribution, and just raised an exception if the needed correlation table was missing. Maybe you can add this feature in a future release (if someone needs it). |
Hi @thombashi
For an application, I need to implement a jitter. In the case that the mean delay is enough large we can work with the
delay-distro
command. For example:tcset eth0 --overwrite --delay 10ms --delay-distro 2ms
The result comes quite close to the selected delay-distro value which in this case represents the jitter value.
We face a problem if the mean delay is smaller than the jitter-value. In an example like the following the
delay-distro
approach isn't working successfully:tcset eth0 --overwrite --delay 1ms --delay-distro 5ms
I understand that the problem is originated because the delay value can't be negative and therefore the
delay-distro
action can't take place correctly (+/- delay-distro value can't be applied).Do you have an idea of how to solve the problem?
Especially the problem if the mean_delay is greater than the jitter value is a tough one...
Kind
severindellsperger
The text was updated successfully, but these errors were encountered: