NS is a discrete event simulator targeted at networking research. NS provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.
download latest NS2 installation files at this link
$ tar -xvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33
after 15 min installatin wil complts