Skip to main content

network-delay

Adds artificial latency to all outbound packets from the targeted pods using Linux tc netem.

Target kind: Pod
Implementation: Daemon (ExecNetworkChaos with action: delay)
Rollback: Yes — removes tc netem rules from the pod's network namespace

Parameters

NameTypeRequiredDefaultDescription
latencystringYesBase latency to add (e.g. "100ms", "1s")
jitterstringNo"0ms"Random jitter range
correlationstringNo"0"Correlation between successive delays (0-100)

Example

apiVersion: chaos.chaosplane.io/v1alpha1
kind: ChaosExperiment
metadata:
name: network-delay-example
namespace: default
spec:
target:
kind: Pod
namespace: default
labelSelector:
matchLabels:
app: frontend
action:
type: network-delay
parameters:
latency: "200ms"
jitter: "50ms"
correlation: "25"
duration: 60s
rollback:
enabled: true

Rollback behavior

Removes the tc netem qdisc from the pod's network interface. Traffic returns to normal immediately.

Implementation notes

Uses tc qdisc add dev eth0 root netem delay LATENCY JITTER CORRELATION% in the pod's network namespace. The latency parameter is required. Correlation makes consecutive packet delays correlated (realistic for real network conditions).