"General purpose IP network emulation/simulation tool for FreeBSD and Linux
We developed a realistic network topology emulation / simulation framework based on the FreeBSD and Linux operating system kernel partitioned into multiple lightweight virtual nodes, which can be interconnected via kernel-level links to form arbitrarily complex network topologies."
http://imunes.net/
https://github.com/imunes/imunes