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

Is ther support to add latency and jitter on the router #16

Open
anaveen222 opened this issue Jun 30, 2021 · 2 comments
Open

Is ther support to add latency and jitter on the router #16

anaveen222 opened this issue Jun 30, 2021 · 2 comments

Comments

@anaveen222
Copy link

Is ther support to add latency and jitter on the router
We might need this to change the inter arrival time .
And p.s working for viasat

@parkeraddison
Copy link
Member

Latency is supported and configurable via the .conditions[].latency field in the config file. Jitter isn't a configurable option yet.

However, you can get jitter by adding a value to the netem delay command in scripts/router/network-setup.sh. If you'd like to add 10ms of jitter you could edit the file like so:

tc qdisc add dev "$iface_ext" root netem delay "$to_inject$latency_unit"

becomes

tc qdisc add dev "$iface_ext" root netem delay "$to_inject$latency_unit" 10ms

Here's a great reference for figuring out what other changes you can make to the delay option

Hope this helps!

@charles-laubach
Copy link

charles-laubach commented Oct 13, 2021

@anaveen222 Just so you are aware, I am creating and maintaining a Viasat fork here. It moves away from tc netem so we have more control over the network emulation (it also allows us to natively support WSL2). Currently it supports two conditions: delay and deterministic loss. Where deterministic loss is tossing a packet from a connection exactly every X packets. Please reach out to me at my Viasat email address if you would like to collaborate further.

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