dummynet
FreeBSD's tool for deliberately throttling, delaying and dropping network traffic — a bad network on demand.
Luigi Rizzo at the University of Pisa wrote dummynet in 1997 so that protocols could be tested under realistic conditions without access to an actual satellite link or an overloaded modem. Traffic sent in by ipfw rules ends up in a pipe with a set bandwidth, delay and loss rate, or in queues that share a pipe by weight. ipfw pipe 1 config bw 1Mbit/s delay 200ms plr 0.01 is more or less the whole interface.
It became both a research instrument and a practical way to shape traffic on a firewall. Dummynet has been ported to Linux and Windows, shipped in Mac OS X, and since FreeBSD 14 pf can send traffic through it too. The Linux counterpart is netem.