network-loss
Randomly drops packets at the specified percentage using Linux tc netem.
Target kind: Pod
Implementation: Daemon (ExecNetworkChaos with action: loss)
Rollback: Yes — removes tc netem rules
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
percent | string | Yes | — | Packet loss percentage (0-100) |
correlation | string | No | "0" | Correlation between successive drops (0-100) |
Example
apiVersion: chaos.chaosplane.io/v1alpha1
kind: ChaosExperiment
metadata:
name: network-loss-example
namespace: default
spec:
target:
kind: Pod
namespace: default
labelSelector:
matchLabels:
app: streaming-service
action:
type: network-loss
parameters:
percent: "10"
correlation: "25"
duration: 60s
rollback:
enabled: true
Rollback behavior
Removes the tc netem qdisc from the pod's network interface.
Implementation notes
Uses tc qdisc add dev eth0 root netem loss PERCENT% CORRELATION%. Even small loss percentages (1-5%) can significantly impact TCP throughput due to retransmission overhead. Use abort conditions to detect if loss is causing cascading failures.