Advanced Chaos Engineering: Network Partition & Clock Skew
Advanced · 45 minutes · 100 points
In this advanced SRE lab, you will simulate real-world chaos scenarios including network partitions, latency injection, and clock skew using Linux tools. You will use tc (traffic control), iptables, and libfaketime (which skews one process’s clock, the way Chaos Mesh TimeChaos does, without touching your machine’s clock) to understand how distributed systems behave under failure conditions. By the end, you will have hands-on experience scripting chaos experiments and validating system resilience using observable metrics.
What you’ll learn
- Simulate network latency and packet loss on a loopback interface using tc (traffic control) netem discipline
- Implement and validate a network partition using iptables DROP rules to mimic split-brain scenarios
- Inject artificial clock skew and understand its impact on time-sensitive distributed operations
- Write a chaos experiment script that automates fault injection, observation, and rollback
- Verify system observability by measuring and recording the impact of each chaos scenario
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- Docker daemon with --privileged support enabled
Topics: chaos-engineering, sre, network-partition, clock-skew, tc-netem, iptables, reliability, fault-injection, linux-kernel, distributed-systems
Create a free account to start this lab.