tc
TLDR
Add constant delay
SYNOPSIS
tc [OPTIONS] OBJECT COMMAND
DESCRIPTION
tc (traffic control) configures kernel packet scheduling, shaping, and filtering. It can simulate network conditions like latency, packet loss, and bandwidth limits for testing or quality of service management.
PARAMETERS
qdisc
Queuing discipline - manage packet queuingadd
Add a new traffic control policydelete
Remove traffic control policychange
Modify existing policyshow
Display current policiesnetem
Network emulation (delay, loss, corruption)tbf
Token bucket filter (bandwidth limiting)delay ms
Add latency to packetsloss percent
Drop percentage of packetsrate bandwidth
Maximum bandwidth rate
CAVEATS
Affects outgoing traffic only. For bidirectional control, configure on both ends. Changes are immediate and can disrupt network connectivity. Not persistent across reboots.
HISTORY
tc is part of iproute2, the Linux networking toolkit, providing advanced traffic shaping and network emulation.
