netlab icon indicating copy to clipboard operation
netlab copied to clipboard

netlab wrapper for tc

Open ipspace opened this issue 1 year ago • 2 comments

It would be nice to have a wrapper for some reasonably-simple tc CLI (comcast comes to mind) to introduce latency/jitter/delay/drops into topology links.

The wrapper should be similar to netlab capture (it can probably reuse 90% of the code) -- find the interface, execute external command to configure tc parameters

Any ideas for the CLI command we can use instead of tc @jbemmel @ssasso @ddutt @hellt

ipspace avatar Oct 17 '24 16:10 ipspace

netem - see https://containerlab.dev/manual/impairments/ (still tc command)

I once proposed to support declarative impairments (like a WAN link with 100ms latency) but this never made it into the tool afaik

Could be a plugin that adds the tc settings to link

jbemmel avatar Oct 17 '24 16:10 jbemmel

We could also set the link impairment parameters in the topology file ;)

ipspace avatar Oct 17 '24 17:10 ipspace

Implemented in #2626 and #2652

ipspace avatar Sep 04 '25 09:09 ipspace