Linux hides a network chaos switch—here’s how it breaks your connection on purpose
Your ping spikes to 300 ms, the SSH session freezes, and the cloud dashboard throws a generic “network hiccup” toast. Before you curse the ISP, check the laptop itself: a single tc command buried since kernel 2.6 is probably torturing every packet on purpose, and most users never notice the saboteur lives inside iproute2.
The ghost in the network card
Its name is Netem, short for “network emulator,” originally slipped into the kernel so NASA engineers could mimic satellite links without launching anything. Today it ships with every mainstream distro, ready to add 200 ms of latency, drop five percent of frames, or reorder packets like a blackjack dealer—all without installing a single extra package. Run tc qdisc add dev eth0 root netem delay 200ms 40ms and you have instantly downgraded a gigabit line to 1990s modem vibes. Close the terminal, walk away, and the impairment lingers until someone remembers to type tc qdisc del dev eth0 root. That “someone” is rarely the intern who started the prank.
The appeal is real. Game developers use Netem to see how their lobby code behaves when a teenager’s Wi-Fi dips. SRE teams bake it into CI pipelines so micro-services meet graceful-degrade targets before investors do. Even LAN-party hosts crank latency to give the crowd a taste of overseas scrims. The dark side? A mistyped interface name can brick the office gateway at 9 a.m., leaving 300 Slack threads titled “internet down—anyone?”

Immortal rules and the one-line escape hatch
Because tc rules are stored in the kernel, not in the shell, they survive logout, reboot, and even systemd. The only trace is a cryptic line from tc qdisc show most admins never run. Veterans keep a “tc-clear” alias in muscle memory; rookies learn when Netflix starts buffering during a demo. Red Hat’s latest documentation quietly recommends wrapping any Netem script in a systemd timer that auto-expires after 30 minutes—corporate America’s version of a safety net.
Ubuntu 24.04 LTS plans to surface a desktop warning the moment tc rules hit the active interface, a concession to the growing number of developers who discovered chaos engineering through TikTok tutorials. Until then, the safest lab is still a $30 Raspberry Pi you can unplug when the loopback turns into a black hole.
So next time the connection stutters, skip the speed-test page. Open a terminal, type tc qdisc show, and stare at the culprit waving back. Kill it, buy your local admin a coffee, and remember: on Linux, the monster is usually a tool you forgot to switch off.
