Looking for an inexpensive Linux based delay simulator for testing network.

Hi,
Can anyone provide information on how to simulate slow and congested links between nodes on the network using an inexpensive Linux Delay Simulator?
I want to create delay simulation profile in a way that delay should only apply to connections according to the filter criteria for testing.
Thanks!
