tylertreat / comcast

Simulating shitty network connections so you can build better systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command does not effect incoming traffic

puneetpratik opened this issue · comments

./bin/comcast --latency=300 --target-bw=150 --default-bw=150 --packet-loss=3%

I see that the incoming traffic is having no effect.

More information? Linux, BSD, Mac, Windows? Version?

Sorry, I did not get any notification for your comment, thus the delay..

Linux ubuntu 4.4.0-22-generic #40-Ubuntu

Looks like when running on linux, only outgoing traffic is blocked, incoming traffic is still enabled:
comcast --packet-loss=100% --target-port=80 --target-addr=8.8.8.8

it looks like tc doesn't do a very good job at ingress shaping, I don't think this is likely to be fixable. Most of the functionality has to do with how the kernel actually sends packets, meaning you're better off to put this on the egress side of things.