Throttle Network Bandwidth – How to Throttle Network Bandwidth Per Application on Mac OS X

itunesmacmacosthrottling

I notice that iTunes seems to suck up all my bandwidth and doesn’t play nice with other applications that use the web when it's downloading. In fact, it doesn't even give itself enough bandwidth when browsing the iTunes Store while downloading large or many files (podcasts, TV shows, large apps, etc).

I'm not concerned with getting all my downloads as soon as possible, they're really low priority, and I'd rather not have to do this while I'm awake, but I can't hit the refresh button if I'm in bed and forgot it already.

Is there an application or tool via the Terminal to limit the download bandwidth that iTunes gets without also hindering web browsers or other applications?

FOSS/GPL software is preferable, but pay software might be acceptable too.

Best Answer

GUI:

CLI (no port-specific filtering but can be adapted):

These tools rely on ports or port ranges as a filter criterium. If you don't know what ports your application uses you can check its documentation or use lsof while the appplication is running to reveal the ports numbers.

sudo lsof -i -P

Most or all of the tools use ipfw which is officially deprecated in favor of pf, so not sure if these solutions will work on OS X 10.9 and beyond.