wondershaper – originally part of the Linux Advanced Routing & Shaping HOWTO, does bandwidth shaping to maintain low latency for interactive traffic as well as to make sure that uploads and downloads don’t interfere. (req: iproute2) Cool stuff. For BSD, see PF/AltQ