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

Fix netem when destination IP filter is defined #52

Closed
alexei-led opened this issue Oct 26, 2017 · 3 comments
Closed

Fix netem when destination IP filter is defined #52

alexei-led opened this issue Oct 26, 2017 · 3 comments

Comments

@alexei-led
Copy link
Owner

Thanks to Alexey Krutilko

This need to be implemented inside Pumba netem command

The right sequence of commands to implement should be:

  1. tc qdisc add dev eth0 root handle 1: prio - start new queue disc but no classes yet
    2.tc qdisc add dev eth0 parent 1:2 handle 30: netem delay 150ms - add 3 classes, 1:2 default class, all traffic goes through it with delay of 150ms
  2. tc qdisc add dev eth0 parent 1:3 handle 20: netem delay 500ms - no new classes created, but delay is specified for 1:3, traffic still goes through 1:2
  3. tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst 172.17.0.3 flowid 1:3 - add destination filter by IP and now all traffic to this IP will go through class 1:3
@T-Eberle
Copy link

T-Eberle commented Nov 14, 2017

+1
Is this the reason why the IP filter doesn't work properly? A delay, for example, still impacts the traffic on all IPs.
Love the feature though!

@alexei-led
Copy link
Owner Author

Fixed in 0.4.7

@T-Eberle
Copy link

Works like a charm. Thx!

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

No branches or pull requests

2 participants