Skip to main content

network-duplicate

Duplicates packets at the specified percentage using Linux tc netem.

Target kind: Pod
Implementation: Daemon (ExecNetworkChaos with action: duplicate)
Rollback: Yes — removes tc netem rules

Parameters

NameTypeRequiredDefaultDescription
percentstringYesPercentage of packets to duplicate (0-100)

Example

apiVersion: chaos.chaosplane.io/v1alpha1
kind: ChaosExperiment
metadata:
name: network-duplicate-example
namespace: default
spec:
target:
kind: Pod
namespace: default
labelSelector:
matchLabels:
app: message-consumer
action:
type: network-duplicate
parameters:
percent: "20"
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 duplicate PERCENT%. Duplicate packets test idempotency, deduplication logic, and protocol handling of duplicate frames. TCP handles duplicates transparently, but application-level protocols may not.