Linux – netem for Mac OS X to emulate network latency and dropped packets

emulationlinuxmacosnetworkingperformance

I'm looking for an open source/free network emulator tool that I could use on Mac OS X, to simulate a slow network connection, limited bandwidth and other network characteristics such as dropped packets etc for both UDP/TCP connections (or even on the physical layer).

I'm looking for the simplest solution that would allow me to run TCP/UDP servers and have a few clients connect to them on localhost emulating various network connections.

I'm mainly wondering if I can use something like Linux's netem on Mac OS X (or even better cross-platform Windows/Linux/Mac).

Perhaps I can run VirtualBox and a Linux kernel running netem, has anyone had luck with that?

Related: Simulating a low-bandwidth, high-latency network connection on Linux

Best Answer

The developer tools in 10.7 come with a prefPane for emulating a limited network connection:

enter image description here

Via Network Link Conditioner in Lion ยป Matt Legend Gemmell