Relative Content

Tag Archive for trafficshaping

Traffic shaping on ingress traffic (tc qdiscs)

I have TCP data being transferred from a vagrant vm to the host. The interface on the host shows up as vboxnet0. On the host, I am trying to achieve an effect similar to what one would have when they are connected to a slow link. So, to do that, I created HTB qdisc on the host (vboxnet0) and attached netem to it to simulate delays. I quickly realized that these qdiscs act on egress traffic rather than ingress traffic. This does not produce the intended effect on the queue (I am measuring the build-up and release of packets in the queue due to certain link conditions).