News for hackers. Stuff that matters.
Re:Speedbump: TCP proxy for simulating variable, yet predict... by majke on Sunday July 31, 2022 @07:15AM (#32294797)
> which I don't think is possible to achieve with tc alone.

How you do it with tc:

- set up dedicated network namespacel, with veth configured well

- the veth on host should do forwarding and NAT/masquerade

- Add TC either on veth inside ns or veth on host, or both (depending on direction you want to add latency)

- then wait

- then change the tc parameters if you want the parameters to change

Now, the big problem with tc netem variable latency is that it does reorder packets, which is often undesirable.

So, if your project does _not_ effect in packet reorder, it could be useful. Having said that, it seems to focus on L7 layer which is slightly too high level for the stuff I 'm doing.

Anyway, nice tool.

There are no comments on this comment yet.