Simulating a Wireless Network in NS2