NS2 simulator for underwater sensor network