netem

netem provides Network Emulation functionality for testing protocols by emulating the properties of wide area networks.

For more information see netem man page.