ns2 code for network research simulations