network-corrupt
Randomly corrupts packets by flipping bits, using Linux tc netem.
Target kind: Pod
Implementation: Daemon (ExecNetworkChaos with action: corrupt)
Rollback: Yes — removes tc netem rules
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
percent | string | Yes | — | Percentage of packets to corrupt (0-100) |
Example
apiVersion: chaos.chaosplane.io/v1alpha1
kind: ChaosExperiment
metadata:
name: network-corrupt-example
namespace: default
spec:
target:
kind: Pod
namespace: default
labelSelector:
matchLabels:
app: data-pipeline
action:
type: network-corrupt
parameters:
percent: "5"
duration: 30s
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 corrupt PERCENT%. Corrupted packets are detected by TCP/IP checksums and retransmitted. Tests checksum validation, error detection, and protocol resilience. Higher-level protocols (TLS, HTTP/2) may handle corruption differently than raw TCP.