http://info.iet.unipi.it/~luigi/dummynet/
Dummnet simulates different network bandwidth rates and latencies by introducing delays or chokes, works on *nix flavours.
http://www.freenet.org.nz/python/pyshaper/
A python traffic shaper that can control network usage on a local machine by a number of useful factors including individual programs and so on. Could be very handy on satellite / edge / grps roaming.